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

@@ -348,7 +348,7 @@ mon_arrive(struct monst *mtmp, boolean with_you)
&& !rn2(mtmp->mtame ? 10 : mtmp->mpeaceful ? 5 : 2))
rloc_to(mtmp, u.ux, u.uy);
else
mnexto(mtmp);
mnexto(mtmp, RLOC_NOMSG);
return;
}
/*
@@ -470,9 +470,9 @@ mon_arrive(struct monst *mtmp, boolean with_you)
mtmp->mx = 0; /*(already is 0)*/
mtmp->my = xyflags;
if (xlocale)
failed_to_place = !mnearto(mtmp, xlocale, ylocale, FALSE);
failed_to_place = !mnearto(mtmp, xlocale, ylocale, FALSE, RLOC_NOMSG);
else
failed_to_place = !rloc(mtmp, TRUE);
failed_to_place = !rloc(mtmp, RLOC_NOMSG);
if (failed_to_place)
m_into_limbo(mtmp); /* try again next time hero comes to this level */