facerix / Canvassa

Dojo-powered JavaScript clone of the Legend of Zelda
http://www.buyog.com/code/loc/Canvassa
12 stars 3 forks source link

Restrict blue candle usage #10

Closed facerix closed 14 years ago

facerix commented 14 years ago
facerix commented 14 years ago

much easier than I expected:

in loc.Candle:

add this line to loc.Player.updateInventory(), under a new 'loc.Candle' clause: dojo.connect(game, 'setupMapScreen', game.player.inventory[3].reset);

That should do it.

facerix commented 14 years ago

made a few minor tweaks based on runtime testing of this solution. seems to work.