Message locations for Monster creation and teleporting

This commit is contained in:
Pasi Kallinen
2024-01-03 10:28:16 +02:00
parent 6db79b9f18
commit db4a44735e
2 changed files with 4 additions and 1 deletions

View File

@@ -1466,13 +1466,15 @@ makemon(
mhidden_description(mtmp, FALSE, mbuf);
what = upstart(strsubst(mbuf, ", mimicking ", ""));
}
if (what)
if (what) {
set_msg_xy(mtmp->mx, mtmp->my);
Norep("%s%s appears%s%c", what,
exclaim ? " suddenly" : "",
next2u(x, y) ? " next to you"
: (distu(x, y) <= (BOLT_LIM * BOLT_LIM)) ? " close by"
: "",
exclaim ? '!' : '.');
}
}
/* if discernable and a threat, stop fiddling while Rome burns */
if (go.occupation)

View File

@@ -1613,6 +1613,7 @@ rloc_to_core(
const char *next = (du <= 2) ? " next to you" : 0, /* next2u() */
*nearu = (du <= BOLT_LIM * BOLT_LIM) ? " close by" : 0;
set_msg_xy(x, y);
mtmp->mstrategy &= ~STRAT_APPEARMSG; /* one chance only */
if (telemsg && (couldsee(x, y) || sensemon(mtmp))) {
pline("%s vanishes and reappears%s.",