follow-up: add a general catch for "says"

This commit is contained in:
nhmall
2026-06-19 10:08:42 -04:00
parent 8705d12046
commit 04963ecf81
5 changed files with 14 additions and 5 deletions
+1
View File
@@ -2996,6 +2996,7 @@ extern void credit_report(struct monst *shkp, int idx,
boolean silent) NONNULLARG1;
extern void use_unpaid_trapobj(struct obj *, coordxy, coordxy) NONNULLARG1;
extern void noisy_shop(struct mkroom *);
extern const char *says(void);
/* ### shknam.c ### */
+2 -1
View File
@@ -299,7 +299,8 @@ demon_talk(struct monst *mtmp)
pline("%s says, \"Good hunting, %s.\"", Amonnam(mtmp),
flags.female ? "Sister" : "Brother");
else if (canseemon(mtmp))
pline("%s says something.", Amonnam(mtmp));
pline("%s %s something.", Amonnam(mtmp),
says());
if (!tele_restrict(mtmp))
(void) rloc(mtmp, RLOC_MSG);
return 1;
+3 -2
View File
@@ -554,10 +554,11 @@ outrumor(
switch (mechanism) {
case BY_ORACLE:
/* Oracle delivers the rumor */
pline("True to her word, the Oracle %ssays: ",
pline("True to her word, the Oracle %s%s: ",
(!rn2(4) ? "offhandedly "
: (!rn2(3) ? "casually "
: (rn2(2) ? "nonchalantly " : ""))));
: (rn2(2) ? "nonchalantly " : ""))),
says());
SetVoice((struct monst *) 0, 0, 80, voice_oracle);
verbalize1(line);
/* [WIS exercised by getrumor()] */
+6
View File
@@ -2049,6 +2049,12 @@ dopay(void)
return paid ? ECMD_TIME : ECMD_OK;
}
const char *
says(void)
{
return Deaf ? "signs" : "says";
}
/* for menustyle=Traditional, choose between paying for everything (by
declining to itemize), asking item-by-item (by accepting itemization),
or switch to selecting via menu (special 'm' answer at "Itemize? [ynq m]"
+2 -2
View File
@@ -264,8 +264,8 @@ ready_weapon(struct obj *wep)
!= (struct monst *) 0) {
/* check msound because we don't have access to muteshk() */
if (!Deaf && this_shkp->data->msound > MS_ANIMAL)
pline("%s says \"You be careful with my %s!\"",
shkname(this_shkp), xname(wep));
pline("%s %s \"You be careful with my %s!\"",
shkname(this_shkp), says(), xname(wep));
else
pline("%s looks apprehensive about your wielding %s %s.",
shkname(this_shkp), mhis(this_shkp), xname(wep));