]> granicus.if.org Git - nethack/commit
detecting chest and door traps
authorPatR <rankin@nethack.org>
Tue, 31 May 2016 07:08:17 +0000 (00:08 -0700)
committerPatR <rankin@nethack.org>
Tue, 31 May 2016 07:08:17 +0000 (00:08 -0700)
commit71113a697111604f044c91ff3c84075251190be7
tree90b54b2710ad2a1ce37d49f7230396f8bf070d11
parent7404597ac547ba42b48916745ec6c8330c4ca33a
detecting chest and door traps

When confused gold detection finds a door trap or a chest trap, it
puts a bear trap glyph/tile on the map at that location.  (They
disappear once they're within sight.)  Those should be given their
own glyphs so that they can have their own tiles, but this doesn't
do that.  What it does do is describe such fake bear traps as
"trapped door" or "trapped chest" when examined with far-look.
The '^' command--if used while blind so that '^' hasn't disappeared
yet--needs to catch up: it says "I can't see a trap there" when the
adjacent '^' is a fake bear trap.
doc/fixes36.1
include/extern.h
src/detect.c
src/pager.c