41 lines
3.5 KiB
Markdown
41 lines
3.5 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 neutral boundary when no challenge is open and a blue particle boundary while the Vigilante challenge is open.
|
|
- [x] A vacant Vigilante role opens the challenge after death, inactivity, relinquishment, or a new Tyrant reign, but only while a Tyrant is active, no Tyrant challenge is open, 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 builds temporary actual `BARRIER` blocks from one block below the arena floor through a default 12-block wall height, without permanently changing existing blocks.
|
|
- [x] Role-colored boundary particles remain visible from inside and outside an active fight at multiple wall heights.
|
|
- [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] With no challenger, the boss remains AI-disabled at the arena center; entry enables its AI and target, while reset restores full health, center position, no target, and disabled AI.
|
|
- [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] Block placement and breaking are denied inside the arena during an active fight so players cannot build over or modify the boundary.
|
|
- [x] Killing the boss assigns the challenger as Vigilante, removes the boss and barriers, and restores the passive particle boundary.
|
|
- [x] After winning, the new Vigilante is moved safely outside the arena before normal arena enforcement resumes.
|
|
- [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 arena vacancies](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)
|
|
- [Claim the Tyrant role in the arena](us-020-claim-tyrant-in-arena.md)
|