fix github issue #842 - lamp/lantern feedback

Issue reported by GorillaSapiens:  you get notified if a lamp burns
out even if you're blind at the time.

That is intended behavior; you can feel the heat or lack of heat
from a lamp or candle.  But the comment from copperwater pointed out
that you shouldn't be able to feel that for a brass lantern.

This suppresses the "power has run out" feedback if blind at the
time.  However, applying a lantern to turn it on or off still gives
the on/off feedback on the assumption that there's a switch and you
can feel its position.  When hero is blind and lantern is out of
power, trying to turn it on yields "nothing seems to happen".  It's
not completely consistent since you would feel the switch in its On
position but claiming that the lantern is on would be a lie.

The basic on and off messages referred to "lamp" even when using a
brass lantern.  I thought that that had been fixed a long time ago.

Fixes #842
This commit is contained in:
PatR
2022-08-13 15:55:10 -07:00
parent 607774367a
commit 1a6456ad82
3 changed files with 50 additions and 23 deletions

View File

@@ -996,6 +996,9 @@ chances of random item being an artifact depends on already existing artifacts
monsters can zap wands of teleportation at hero
piranhas devour corpses
turn on menucolors boolean automatically if any menucolors are defined
blind hero was notified when brass lantern burned out even though it isn't
warm enough to detect that by touch; manually switching the lantern
on or off can be determined that way so still gives on/off message
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository