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

creatures asked to "wait" in bus seemed to wait indefinitely #420

Closed scrom closed 8 years ago

scrom commented 8 years ago

and when asked to go elsewhere, refused. This might be a bug (or not) but affects playability a little.

scrom commented 8 years ago

standard "wait" seems to work fine. there may be some odd interaction between already being in a requested destination and waiting that I need to investigate.

scrom commented 8 years ago

tested and confirmed this definitely seems to be the case. Checking creature attributes shows no active waits which is very odd. - playtesting and probing further

scrom commented 8 years ago

I think I found it - creature tick was checking "willfollow" when wandering - even when player was not in creature location. This also explains why when affinity was high, it seemed like creatures stopped moving around so much (that one was just a feeling rather than identified)

scrom commented 8 years ago

Yep - that was it! Factored that decision making into its own function, fixed bug and playtested