Accessibility: Add location info to messages
Adds a new boolean option, accessiblemsg. If on, some game messages are prefixed with direction or location information, for example: (west): The newt bites! (northwest): You find a hidden door. I added the info to the most common messages, but several are still missing it.
This commit is contained in:
@@ -1606,8 +1606,9 @@ mpickgold(register struct monst* mtmp)
|
||||
add_to_minv(mtmp, gold);
|
||||
if (cansee(mtmp->mx, mtmp->my)) {
|
||||
if (flags.verbose && !mtmp->isgd)
|
||||
pline("%s picks up some %s.", Monnam(mtmp),
|
||||
mat_idx == GOLD ? "gold" : "money");
|
||||
pline_xy(mtmp->mx, mtmp->my,
|
||||
"%s picks up some %s.", Monnam(mtmp),
|
||||
mat_idx == GOLD ? "gold" : "money");
|
||||
newsym(mtmp->mx, mtmp->my);
|
||||
}
|
||||
}
|
||||
@@ -1666,7 +1667,8 @@ mpickstuff(struct monst *mtmp)
|
||||
char *otmpname = distant_name(otmp, doname);
|
||||
|
||||
if (flags.verbose)
|
||||
pline("%s picks up %s.", Monnam(mtmp), otmpname);
|
||||
pline_xy(mtmp->mx, mtmp->my,
|
||||
"%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