draconisPW / PWMAngband

A free, multi-player roguelike dungeon exploration game based on Angband
35 stars 12 forks source link

Meaningless "You are starving!!" message when a character dies #625

Closed draconisPW closed 6 months ago

draconisPW commented 6 months ago

Putting here so I don't forget to fix this while working on other stuff.

When a character dies, you get two meaningless messages: "You are starving!!" and then "You are no longer hungry." When a player dies and is turned into a ghost, it is fed so the hunger status is cleared if he died from starvation. This explains the second message if the status was "hungry" or worse before death, but does not explain the first one which is clearly a bug.

draconisPW commented 6 months ago

When the character dies, all effects are cleared, but now food is managed by an effect (TMD_FOOD), so it must be skipped while clearing all others. Fixed in next commit.