Files
nethack/doc
PatR 1fd943e860 trap/secret door detection enhancement
The old secret door detection just redisplayed locations with
discoveries (secret doors and traps, mostly).  Somewhere along the
line it was augmented to find hidden monsters and to deliver one or
two messages reporting how many things had been discovered.  Now it
has been augmented again, to find trapped doors and chests, and to
supply a message when the detection attempt fails to find anything.

More substantially, it highlights the relevant locations as they're
found, before the feedback message(s).

Initially I was using tmp_at() to mark all significant locations,
but that required --More-- and for player to acknowledge it when
detection was done.  That would probably be ok for wand of secret
door detection and spell of detect unseen, but it would be a hassle
for ^E.  It's been revised to use flash_glyph_at() [previously only
used when ^G creates unseen monsters, I think].

The new behavior seems to be working reasonably well.  For curses,
the 'timed_delay' option must be set.  flash_glyph_at() calls
flush_screen() between its output and nap in each cycle of multiple
flashes, but that evidently isn't sufficient for curses.  Maybe
curses init should just force on 'timed_delay'.

I've left the tmp_at() stuff in.  We might want to modify things to
use it instead of flash_glyph_at() when the accessibility flag is
set.  Its current compile-time selection won't be adequate though.
2024-08-29 14:08:23 -07:00
..
2022-06-18 10:29:15 -04:00
2024-02-28 20:15:56 -08:00
2023-08-28 16:17:41 -04:00
2022-01-29 22:57:22 -05:00
2022-01-29 22:57:22 -05:00
2022-01-29 22:57:22 -05:00
2024-02-28 20:15:56 -08:00
2024-05-16 23:38:54 -07:00
2018-11-11 10:29:52 -05:00
2018-11-11 10:29:52 -05:00
2024-02-28 20:15:56 -08:00
2024-02-29 09:03:00 -05:00
2024-02-28 20:15:56 -08:00
2022-02-22 20:14:44 -05:00
2024-02-28 20:15:56 -08:00
2024-02-29 07:40:19 -05:00
2024-03-19 18:59:23 +02:00