36 lines
2.8 KiB
Markdown
36 lines
2.8 KiB
Markdown
---
|
|
type: User Story
|
|
title: "US-019: Claim the Vigilante role in the arena"
|
|
description: Let one eligible player at a time defeat a protected arena boss to claim a vacant Vigilante role.
|
|
status: done
|
|
---
|
|
|
|
# US-019: Claim the Vigilante role in the arena
|
|
|
|
As an **opted-in participant**, I want a visible one-player boss challenge for a vacant Vigilante role so that succession is earned through an open contest.
|
|
|
|
## Acceptance criteria
|
|
|
|
- [x] An administrator can set and inspect a durable arena center, and configuration validates the arena radius and boss strength.
|
|
- [x] The configured arena has a continuously visible particle boundary, including when no fight is active.
|
|
- [x] A vacant Vigilante role opens the challenge after death, inactivity, relinquishment, or a new Tyrant reign, but a boss exists only while a Tyrant is active and the game is running.
|
|
- [x] The challenge boss defaults to an armored, 80-health enhanced zombie, does not burn in sunlight, and remains within a default 10-block-radius arena.
|
|
- [x] All online opted-in players are told when the role opens and receive the arena world and coordinates; opted-in players receive the same notice when they log in while it remains open, and opted-out players do not.
|
|
- [x] Exactly one eligible opted-in non-Tyrant player may enter as challenger, including when entry is attempted by walking or teleportation.
|
|
- [x] Starting a fight replaces the passive particle boundary with temporary actual `BARRIER` blocks that are removed safely without permanently changing existing blocks.
|
|
- [x] Any non-challenger who enters or respawns inside the arena is moved safely outside it.
|
|
- [x] Existing mobs in the arena and mobs that spawn or enter it are removed while preserving the arena boss.
|
|
- [x] The boss attacks only the active challenger, and only that challenger can damage the boss.
|
|
- [x] Challenger death, disconnect, or leaving by any mechanism ends the fight and resets the boss to full health at its spawn; death counts as leaving and the same player may retry immediately.
|
|
- [x] Killing the boss assigns the challenger as Vigilante, removes the boss and barriers, and restores the passive particle boundary.
|
|
- [x] Pausing, resetting, restarting, reloading, and repeated or concurrent events cannot duplicate the boss, barriers, challenger, or Vigilante assignment.
|
|
- [x] If the arena is not configured when a challenge should open, the Vigilante remains vacant and administrators receive a clear warning.
|
|
|
|
## Related
|
|
|
|
- [Start, pause, and administer the game](us-001-start-pause-and-administer.md)
|
|
- [Support the Vigilante and Followers](us-008-support-vigilante-and-followers.md)
|
|
- [Handle inactivity and pending selections](us-010-handle-inactivity-and-selection.md)
|
|
- [Configure and persist game state](us-012-configure-and-persist-state.md)
|
|
- [Tyrant game state machine](../concepts/game-state-machine.md)
|