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

Wandering animals seem to be able to open doors #403

Closed scrom closed 9 years ago

scrom commented 9 years ago

After the rewrite for issue #400. Animals now seem to be able to open unlocked doors. Regression bug

scrom commented 9 years ago

Now prevented for "wandering" animals. Need to add some more handling in for animals with destinations (e.g. returning home) - as they'll still find a path with doors at the moment.

scrom commented 9 years ago

also need to add 2 tests. "wandering animals can't use doors" "animals with destinations can't use doors"

scrom commented 9 years ago

added test "animalCannotFindPathToPlantRoomDueToDoors" the wandering animal test is much harder to automate so I'll play test that one for now.