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

@@ -1927,8 +1927,8 @@ use_offensive(struct monst *mtmp)
*/
if (cansee(mtmp->mx, mtmp->my)) {
otmp->dknown = 1;
pline_xy(mtmp->mx, mtmp->my,
"%s hurls %s!", Monnam(mtmp), singular(otmp, doname));
pline_mon(mtmp, "%s hurls %s!",
Monnam(mtmp), singular(otmp, doname));
}
m_throw(mtmp, mtmp->mx, mtmp->my, sgn(mtmp->mux - mtmp->mx),
sgn(mtmp->muy - mtmp->my),