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

flip pass/fail for destroy screen missions & register injury properly from missions #430

Closed scrom closed 8 years ago

scrom commented 8 years ago

the destroy screen mission should "fail" if the player does destroy the screen and "pass" if they don't.

As part of playtesting this I realised that the players health was reduced as expected but the screen didn't flash to register an injury from completing the mission.

This needs fixing - rather than calling "reduceHP" from "updateHealth", if the HP change is negative, we should call the standard "player.hurt"

scrom commented 8 years ago

done