Accessibility: more message locations
Add a new pline_mon() which sets the message location to the monster location. Add locations to several trap messages.
This commit is contained in:
@@ -1786,8 +1786,7 @@ mpickgold(struct monst *mtmp)
|
||||
add_to_minv(mtmp, gold);
|
||||
if (cansee(mtmp->mx, mtmp->my)) {
|
||||
if (flags.verbose && !mtmp->isgd)
|
||||
pline_xy(mtmp->mx, mtmp->my,
|
||||
"%s picks up some %s.", Monnam(mtmp),
|
||||
pline_mon(mtmp, "%s picks up some %s.", Monnam(mtmp),
|
||||
mat_idx == GOLD ? "gold" : "money");
|
||||
newsym(mtmp->mx, mtmp->my);
|
||||
}
|
||||
@@ -1847,8 +1846,8 @@ mpickstuff(struct monst *mtmp)
|
||||
char *otmpname = distant_name(otmp, doname);
|
||||
|
||||
if (flags.verbose)
|
||||
pline_xy(mtmp->mx, mtmp->my,
|
||||
"%s picks up %s.", Monnam(mtmp), otmpname);
|
||||
pline_mon(mtmp, "%s picks up %s.",
|
||||
Monnam(mtmp), otmpname);
|
||||
}
|
||||
obj_extract_self(otmp3); /* remove from floor */
|
||||
(void) mpickobj(mtmp, otmp3); /* may merge and free otmp3 */
|
||||
|
||||
Reference in New Issue
Block a user