scrom / Experiments

a NodeJS text adventure - deliberately coded badly to re-experience the pain of legacy code
http://mvta.herokuapp.com/
2 stars 0 forks source link

Implement need for player to rest #378

Closed scrom closed 8 years ago

scrom commented 8 years ago

At present a player can only rest or sit if injured. Make this activity-based as well

Much like hunger. If player has been walking around for too long they get tired and then exhausted. Whilst exhausted, player movements should take 2 ticks instead of 1. (or twice as many ticks)

As part of this, implement "take a nap", "nap", "power nap" as actions, "have a sleep", "take a break" etc. (sleep and rest are already supported)

scrom commented 8 years ago

in progress

scrom commented 8 years ago

That took a bit more than expected - mostly yak-shaving around the need for more tests and the desire to restrict run/climb activities based on exhaustion.