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:
@@ -720,7 +720,7 @@ use_defensive(struct monst* mtmp)
|
||||
}
|
||||
if (oseen && how)
|
||||
makeknown(how);
|
||||
(void) rloc(mtmp, TRUE);
|
||||
(void) rloc(mtmp, RLOC_MSG);
|
||||
return 2;
|
||||
case MUSE_WAN_TELEPORTATION:
|
||||
g.zap_oseen = oseen;
|
||||
@@ -1395,7 +1395,7 @@ mbhitm(register struct monst* mtmp, register struct obj* otmp)
|
||||
if (cansee(mtmp->mx, mtmp->my))
|
||||
pline("%s resists the magic!", Monnam(mtmp));
|
||||
} else if (!tele_restrict(mtmp))
|
||||
(void) rloc(mtmp, TRUE);
|
||||
(void) rloc(mtmp, RLOC_MSG);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user