From 22b3525f0bf1c103ea99e4bea7907686e3670acf Mon Sep 17 00:00:00 2001 From: nhmall Date: Wed, 8 Mar 2023 13:07:47 -0500 Subject: [PATCH] scroll labeling while blind #986 Adjust the wording a little as discussed in #986. Close #986. --- src/muse.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/muse.c b/src/muse.c index 22789d654..d6a549af8 100644 --- a/src/muse.c +++ b/src/muse.c @@ -241,6 +241,8 @@ mreadmsg(struct monst *mtmp, struct obj *otmp) /* directly see the monster reading the scroll */ pline("%s reads %s!", Monnam(mtmp), onambuf); } else { + char blindbuf[BUFSZ]; + boolean m_is_like_u = (!Hallucination && same_race(gy.youmonst.data, mtmp->data)); /* describe the unseen monster accurately if it is similar to the @@ -254,9 +256,11 @@ mreadmsg(struct monst *mtmp, struct obj *otmp) if (couldsee(mtmp->mx, mtmp->my) && mdistu(mtmp) <= 10 * 10) map_invisible(mtmp->mx, mtmp->my); - You_hear("%s reading %s.", + Snprintf(blindbuf, sizeof blindbuf, "reading %s.", onambuf); + strsubst(blindbuf, "reading a scroll labeled", "incant"); + You_hear("%s %s.", x_monnam(mtmp, ARTICLE_A, (char *) 0, mflags, FALSE), - onambuf); + blindbuf); } if (mtmp->mconf) pline("Being confused, %s mispronounces the magic words...",