Accessibility: mon_movement

Adds a new boolean option, mon_movement. When hero notices monster
movement, give a message. Use with spot_monsters and accessiblemsg.
This commit is contained in:
Pasi Kallinen
2024-02-07 19:46:53 +02:00
parent e5e63b886e
commit 6b9f411a32
6 changed files with 40 additions and 2 deletions

View File

@@ -193,6 +193,7 @@ struct accessibility_data {
coord msg_loc; /* accessiblemsg: location */
boolean mon_notices; /* msg when hero notices a monster */
int mon_notices_blocked; /* temp disable mon_notices */
boolean mon_movement; /* msg when hero sees monster move */
};
/* Use notice_mon_off() / notice_mon_on() to temporarily disable

View File

@@ -460,6 +460,9 @@ static int optfn_##a(int, int, boolean, char *, char *);
NHOPTO("message types", Advanced, o_message_types, BUFSZ,
opt_in, set_in_game,
No, Yes, No, NoAlias, "edit message types")
NHOPTB(mon_movement, Advanced, 0, opt_in, set_in_game,
Off, Yes, No, No, NoAlias, &a11y.mon_movement, Term_False,
"message when hero sees monster movement")
NHOPTB(monpolycontrol, Advanced, 0, opt_in, set_wizonly,
Off, Yes, No, No, NoAlias, &iflags.mon_polycontrol, Term_False,
"control monster polymorphs")