JoseGlezMtz / VideoGame

Repositorio para trabajo del Videojuego
MIT License
0 stars 0 forks source link

Implement resistance to be taken into account in an attack #88

Closed EnriqueMartinezdeVR closed 4 months ago

EnriqueMartinezdeVR commented 4 months ago

Description:

Implement logic to subtract stamina from a card when it is attacked by an opponent or player. This involves updating the game state to reflect stamina changes and ensuring that the card's stamina is accurately tracked.

Related Requirements:

Combat mechanics

Goal In Context:

The game will correctly update the HP, taking into account the resistance of the character.

Preconditions:

Game state is initialized and maintained.

Successful End Condition: The game can access the resistance values and use these to update the HP values depending on the opponent's attack.

Primary Actors:

Developer Main Flow: