Message locations for Monster creation and teleporting
This commit is contained in:
+3
-1
@@ -1466,13 +1466,15 @@ makemon(
|
|||||||
mhidden_description(mtmp, FALSE, mbuf);
|
mhidden_description(mtmp, FALSE, mbuf);
|
||||||
what = upstart(strsubst(mbuf, ", mimicking ", ""));
|
what = upstart(strsubst(mbuf, ", mimicking ", ""));
|
||||||
}
|
}
|
||||||
if (what)
|
if (what) {
|
||||||
|
set_msg_xy(mtmp->mx, mtmp->my);
|
||||||
Norep("%s%s appears%s%c", what,
|
Norep("%s%s appears%s%c", what,
|
||||||
exclaim ? " suddenly" : "",
|
exclaim ? " suddenly" : "",
|
||||||
next2u(x, y) ? " next to you"
|
next2u(x, y) ? " next to you"
|
||||||
: (distu(x, y) <= (BOLT_LIM * BOLT_LIM)) ? " close by"
|
: (distu(x, y) <= (BOLT_LIM * BOLT_LIM)) ? " close by"
|
||||||
: "",
|
: "",
|
||||||
exclaim ? '!' : '.');
|
exclaim ? '!' : '.');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* if discernable and a threat, stop fiddling while Rome burns */
|
/* if discernable and a threat, stop fiddling while Rome burns */
|
||||||
if (go.occupation)
|
if (go.occupation)
|
||||||
|
|||||||
@@ -1613,6 +1613,7 @@ rloc_to_core(
|
|||||||
const char *next = (du <= 2) ? " next to you" : 0, /* next2u() */
|
const char *next = (du <= 2) ? " next to you" : 0, /* next2u() */
|
||||||
*nearu = (du <= BOLT_LIM * BOLT_LIM) ? " close by" : 0;
|
*nearu = (du <= BOLT_LIM * BOLT_LIM) ? " close by" : 0;
|
||||||
|
|
||||||
|
set_msg_xy(x, y);
|
||||||
mtmp->mstrategy &= ~STRAT_APPEARMSG; /* one chance only */
|
mtmp->mstrategy &= ~STRAT_APPEARMSG; /* one chance only */
|
||||||
if (telemsg && (couldsee(x, y) || sensemon(mtmp))) {
|
if (telemsg && (couldsee(x, y) || sensemon(mtmp))) {
|
||||||
pline("%s vanishes and reappears%s.",
|
pline("%s vanishes and reappears%s.",
|
||||||
|
|||||||
Reference in New Issue
Block a user