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.
82 KiB
82 KiB