]> granicus.if.org Git - nethack/commit
fix #H7065 - clairvoyance shows trap over monsters
authorPatR <rankin@nethack.org>
Sun, 11 Nov 2018 22:28:54 +0000 (14:28 -0800)
committerPatR <rankin@nethack.org>
Sun, 11 Nov 2018 22:28:54 +0000 (14:28 -0800)
commitab7fb9360e19d28707bb57cca36d1f3a5808721e
tree01bfc11798175f9dd588ce028b899de8ae508f61
parented70005c9b9a23257ae8cfd17218c20c2ff0e15e
fix #H7065 - clairvoyance shows trap over monsters

and over the hero.  3.6.0's clairvoyance tried to show things in
a non-standard sequence, which was intentional but had unintended
side-effects like the disappearing monsters complained about in the
report.  To make it work as intended would have required --More--
whenever it kicked in, which is much too intrusive when it happens
every N turns rather than when explicitly casting the spell.

Redo it substantially, and give preference to monsters over objects,
objects over traps, and traps over underlying terrain like normal
vision-based display does.  It now detects all monsters within its
bounding box but shows ones which aren't directly in view as
"unseen monster" unless via spell cast at skilled or expert, or at
basic when also having intrinsic clairvoyance.
doc/fixes36.2
src/detect.c
src/drawing.c
src/pager.c