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

fleeing creature backed into a corner should not escape every time #439

Closed scrom closed 8 years ago

scrom commented 8 years ago

when in combat with a creature they will flee when attacked. Once backed into a corner, their ability to flee should be reduced and when they do manage to escape they would have to push past the player.

fix creature.flee to make this happen

scrom commented 8 years ago

tested and working. Have set it so that creature can push past roughly 1 in 3 times.