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:
Pasi Kallinen
2024-06-13 19:04:30 +03:00
parent a86b9e6899
commit a72b95e4bc
10 changed files with 113 additions and 70 deletions

View File

@@ -839,9 +839,9 @@ mon_wield_item(struct monst *mon)
if (canseemon(mon)) {
boolean newly_welded;
pline_xy(mon->mx, mon->my,
"%s wields %s%c", Monnam(mon), doname(obj),
exclaim ? '!' : '.');
pline_mon(mon, "%s wields %s%c",
Monnam(mon), doname(obj),
exclaim ? '!' : '.');
/* 3.6.3: mwelded() predicate expects the object to have its
W_WEP bit set in owormmask, but the pline here and for
artifact_light don't want that because they'd have '(weapon