nroutasuo / level13

Incremental browser text adventure
Apache License 2.0
213 stars 71 forks source link

[JS Error] TypeError: Cannot read properties of undefined (reading 'Injury') #252

Closed Yiu113 closed 2 years ago

Yiu113 commented 2 years ago

Details: Used a basic first aid kit. Crashed the game. Reloads at the last ivsited camp.

Seed: 9877 Position: 15.8.7 (inCamp: false) Stacktrace: TypeError: Cannot read properties of undefined (reading 'Injury') at constructor.useItem (https://nroutasuo.github.io/level13/src/game/PlayerActionFunctions.js?v=0.4.2:1657:32) at constructor.performAction (https://nroutasuo.github.io/level13/src/game/PlayerActionFunctions.js?v=0.4.2:243:27) at constructor.startAction (https://nroutasuo.github.io/level13/src/game/PlayerActionFunctions.js?v=0.4.2:136:10) at m.fn.init. (https://nroutasuo.github.io/level13/src/game/UIFunctions.js?v=0.4.2:195:57) at HTMLButtonElement. (https://nroutasuo.github.io/level13/src/core/ExceptionHandler.js?v=0.4.2:11:18) at HTMLButtonElement.dispatch (https://nroutasuo.github.io/level13/lib/jquery//jquery-1.11.1.min.js?v=0.4.2:3:8436) at HTMLButtonElement.r.handle (https://nroutasuo.github.io/level13/lib/jquery//jquery-1.11.1.min.js?v=0.4.2:3:5139)

nroutasuo commented 2 years ago

Thanks for posting the details!

nroutasuo commented 2 years ago

Just published an update (0.4.3) that should fix this.