Closed scrom closed 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
I think I have the creature looping sorted but it'll need a thorough test.
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!
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.
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.
mega test written for creature destinations - no assertions - just logging. All working but needs assertions
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.