munificent / hauberk

A web-based roguelike written in Dart.
http://munificent.github.io/hauberk/
Other
2k stars 200 forks source link

blackout. #43

Closed En810 closed 5 years ago

En810 commented 5 years ago

I have run across this glitch about 3 or four times, I will light a candle in a dark room, and I have a bunch of other light sources in my inventory. (lamps, tallow candles, wax candles, torches.) Nothing unusual happens until I get to the next floor, That's when all of my light sources just vanish from my inventory. : (

munificent commented 5 years ago

Strange! This only happens after using a light source item?

En810 commented 5 years ago

YEP, I only started seeing this after the last update. I'm assuming that lights last a certain amount of time and then exhaust, it seems like the timer is doing some bad math between levels.

munificent commented 5 years ago

No, there's actually no draining on light sources yet. I don't know what's going on. It's probably an issue around cloning the hero's data when leaving the level. (When you enter a level, it makes a copy of the hero. That way, if you die, you revert back to your state before entering the level.)

En810 commented 5 years ago

I wonder if I might be loosing them to environmental fire effects with out realizing it? :/

munificent commented 5 years ago

Yes, light sources can burn up if you are hit with fire attacks or walk on burning tiles.