Accessibility: give a message when teleporting a monster

Teleporting a monster only updated the map. Give a message
so blind players can get the same information.
Making a monster invisible gives the same message, if you
cannot detect invisible.
Several other places where monsters teleported themselves
now also give the same message.
This commit is contained in:
Pasi Kallinen
2021-12-07 00:06:17 +02:00
parent e25f8ec6e3
commit f6b7be49f4
27 changed files with 146 additions and 92 deletions

View File

@@ -1454,9 +1454,9 @@ extern void killed(struct monst *);
extern void xkilled(struct monst *, int);
extern void mon_to_stone(struct monst *);
extern void m_into_limbo(struct monst *);
extern void mnexto(struct monst *);
extern void mnexto(struct monst *, unsigned);
extern void maybe_mnexto(struct monst *);
extern int mnearto(struct monst *, xchar, xchar, boolean);
extern int mnearto(struct monst *, xchar, xchar, boolean, unsigned);
extern void m_respond(struct monst *);
extern void setmangry(struct monst *, boolean);
extern void wakeup(struct monst *, boolean);
@@ -2576,7 +2576,8 @@ extern void domagicportal(struct trap *);
extern void tele_trap(struct trap *);
extern void level_tele_trap(struct trap *, unsigned);
extern void rloc_to(struct monst *, int, int);
extern boolean rloc(struct monst *, boolean);
extern void rloc_to_flag(struct monst *, int, int, unsigned);
extern boolean rloc(struct monst *, unsigned);
extern boolean tele_restrict(struct monst *);
extern void mtele_trap(struct monst *, struct trap *, int);
extern int mlevel_tele_trap(struct monst *, struct trap *, boolean, int);

View File

@@ -442,6 +442,12 @@ typedef struct sortloot_item Loot;
#define SUPPRESS_HISTORY 4
#define URGENT_MESSAGE 8
/* rloc() flags */
#define RLOC_NONE 0x00
#define RLOC_ERR 0x01 /* allow impossible() if no rloc */
#define RLOC_MSG 0x02 /* show vanish/appear msg */
#define RLOC_NOMSG 0x04 /* prevent appear msg, even for STRAT_APPEARMSG */
/* Lua callback functions */
enum nhcore_calls {
NHCORE_START_NEW_GAME = 0,