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

load, quit, save and restore can accidentally be called by player #489

Closed scrom closed 8 years ago

scrom commented 8 years ago

the handling for these 4 words in the client all detected for the presence of the word as characters without spaces in the user input string.

There aren't many words that have these as substrings but it's always possible from game data/objects so needs to be handled more accurately.

The most common I could think of was "quite". "quit doing that" would also trigger the same

These need to be changed to explicitly detect them at the start of a user input string and not as part of other words.

scrom commented 8 years ago

fixed