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

Spot when player is trapped and tell them about it #380

Closed scrom closed 8 years ago

scrom commented 8 years ago

if a player is locked in a dead-end location without a key, the game should recognise they're trapped and tell them to wait it out. (chances are they followed someone into that location. They'll usually come back.

scrom commented 8 years ago

Also - need to sort out creature looping/destinations so that at the end of a destination list they randomly wander for a while and then recover their destinations

scrom commented 8 years ago

I think I have the creature looping sorted but it'll need a thorough test.

scrom commented 8 years ago

It's a lot of code but I think I have all the logic needed to check if help is likely to come or not - again lots of testing needed!

scrom commented 8 years ago

changes required to creature destination handling, player ticks (and stored player attributes) and map.removeLocation are all now done

The removeLocation part has a seperate issue logged as there are no tests for this.

scrom commented 8 years ago

lots of tests needed around creature destinations to check for no regressions there. Playtesting seems to work ok though - including some nice messaging when being trapped (and why) and handling of when the exit re-opens, when a keyholder exits the location and locks you in.

I've not play tested the keyholder returning or waiting 100 or more turns yet.

scrom commented 8 years ago

mega test written for creature destinations - no assertions - just logging. All working but needs assertions