mbkarle / mind-the-fog

Roguelike JavaScript game--mind the fog!
2 stars 1 forks source link

Descent multiple hero present locations w dog #90

Closed akarle closed 7 years ago

akarle commented 7 years ago

Happens specifically when you descend for the first time and then step on the dog and then move off of the dog.

akarle commented 7 years ago

Update: its a hero_present issue! when you step on the dog, the dog has its hero_present property set to true!

Doesn't show up as a problem on the first floor bc of the fact that less positions are updated on the first floor...

akarle commented 7 years ago

It was an issue with the fact that if you move on top of the dog then the dog object has hero_present true but the location underneath (loc_standing_on) has NOT had its property set to true.

The quick fix is seen in the commit diff.