erikhuck / role-play-adventure

0 stars 0 forks source link

Update conditions upon next turn #15

Closed erikhuck closed 3 months ago

erikhuck commented 3 months ago

The api/turns/next endpoint needs to be updated to accept the name and turnType of the character ending their turn. If the turnType is a player, then the player corresponding to the name needs to have their conditions updated. Namely their fatigue, hunger, thirst, and happiness decrement by 1.

REMEMBER to update the players field in the global state using the websocket.