Skip to content
This repository was archived by the owner on Oct 6, 2021. It is now read-only.
This repository was archived by the owner on Oct 6, 2021. It is now read-only.

Add a condition to a Player that indicates if they can act #37

@Rythious

Description

@Rythious

Problem Statement: As a player, I should have a state for my character which prevents me from interrupting my current state, so that I can have a more believable experience.

Current Situation: When a player initiates an attack on an NPC, they are able to leave the room with any of the valid move directions, but the fight continues despite the NPC not following the player.

Proposed Solution: Restrict the player from moving when they are in combat. This should be accomplished in a way that will support player states other than combat since there will be other reasons that a player cannot move, such as if they are sleeping or rooted.

Acceptance Criteria:
GIVEN a player is in an ongoing combat in a room with exits
WHEN the player attempts to exit prior to the fight completing
THEN they receive a message saying they cannot perform that action

GIVEN a player has been in combat in a room with exits
WHEN the combat is complete and the player attempts to leave the room
THEN they do not receive a message saying they cannot perform that action
AND they move to the appropriate room

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or requestserverFocus is on the ScratchMUD.Server

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions