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

bug: autoclosing office doors opened by creatures are being reported closed by player #405

Closed scrom closed 8 years ago

scrom commented 8 years ago

This particularly happens when entering a room (from elsewhere) as a previously opened door closes. This'll be a fun one to track down. It appears to be another issue related to the work from issue #400

scrom commented 8 years ago

the same happens if waiting in a location too. Problem now fixed and confirmed working. Autolock/autoclose doors were being closed in both creature tick and location inventory / artefact tick. Creatures should not close autoclose doors. This is now much clearer in the code