add ^ and " choices to / command

Like /m for nearby monsters and /O for all objects, implement /^
and /" to view a list of nearby traps or all known traps.  Only
lists discovered traps (or mimics immitating traps, or detected
door or chest traps iff still shown as such on map), but lists
map traps even when an object or monster at the same location is
blocking view of them.

For traps on the Water and Air levels that have been mapped, they
will only be listed when within line of sight so that this feature
can't be used to track portal location as it moves around.  However,
when within line of sight it does allow the portal to be recognized
if that has become covered.
This commit is contained in:
PatR
2021-05-30 17:31:47 -07:00
parent 494b374e12
commit 53888a713c
2 changed files with 112 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.554 $ $NHDT-Date: 1622363511 2021/05/30 08:31:51 $
NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.555 $ $NHDT-Date: 1622421099 2021/05/31 00:31:39 $
General Fixes and Modified Features
-----------------------------------
@@ -1015,6 +1015,8 @@ using 'f' while quiver is empty and 'autoquiver' is Off when wielding a
to Maskerade
monsters can see and remember hero resistances
monsters can gain resistances by eating corpses
menu for what-is command supports /^ and /" to view a list of nearby or whole
level visible and remembered traps
Platform- and/or Interface-Specific New Features