Skip to content

Add PvP Toggle to Protector Nodes #83

Description

@monk-afk

Add a checkbox to the owner formspec allowing a toggle for enabling PvP within the protected area.

Protector:

  • When PvP is enabled, the owner of the protected area must be vulnerable to damage
  • When PvP is enabled, disable node interaction (digging/placing) for anyone inside the protected radius, including the owner and members.
  • Placer tool does not transfer the checkbox state when crouch is pressed while using the placer.
  • Existing bug fixed: using the placer tool doesn't transfer the 'allow factions' state
  • Register protector:protect_hidden which can be toggled via command /protector_view [hide|block|logo] with registered alias /pb.

Bones:

  • Change bones placement condition from if not protected from this player to if not protected

Bonespos:

  • Ensure positions are saved only on successful bones placement.

QA/Testing:

  • Protector owner can enable pvp
  • PvP State does not transfer using placer while shift/crouch
  • Protector owner cannot place or dig within the protected area when PvP is enabled
  • Owner of PvP-enabled protected area can take damage
  • Neither owner nor guests drop bones while inside protected area, regardless of meta states (faction/pvp)
  • Faction members can still access nodes inside a faction-shared protected area
  • Faction-shared state transfers when placer tool is used while holding shift/crouch
  • Confirm members also transfer
  • Confirm /bones command is not over-written if player dies without dropping bones after a bonespos was recorded

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions