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

Tests need to be written for handling of positioned objects #356

Open scrom opened 8 years ago

scrom commented 8 years ago

see issue #353 notes.

Particular cases around opening/closing locked/unlock doors and other artefacts with items placed/hidden "on".

(that's about 10 tests just in that lot)

scrom commented 8 years ago

From exploring inventory.getObject there's at least one odd example. Positioned objects will only be shown for "locked" artefacts and "open" items (artefacts and creatures).

this seems inconsistent and odd but would need playtesting to understand the impact.