follow-up: add a general catch for "says"
This commit is contained in:
@@ -2996,6 +2996,7 @@ extern void credit_report(struct monst *shkp, int idx,
|
|||||||
boolean silent) NONNULLARG1;
|
boolean silent) NONNULLARG1;
|
||||||
extern void use_unpaid_trapobj(struct obj *, coordxy, coordxy) NONNULLARG1;
|
extern void use_unpaid_trapobj(struct obj *, coordxy, coordxy) NONNULLARG1;
|
||||||
extern void noisy_shop(struct mkroom *);
|
extern void noisy_shop(struct mkroom *);
|
||||||
|
extern const char *says(void);
|
||||||
|
|
||||||
|
|
||||||
/* ### shknam.c ### */
|
/* ### shknam.c ### */
|
||||||
|
|||||||
+2
-1
@@ -299,7 +299,8 @@ demon_talk(struct monst *mtmp)
|
|||||||
pline("%s says, \"Good hunting, %s.\"", Amonnam(mtmp),
|
pline("%s says, \"Good hunting, %s.\"", Amonnam(mtmp),
|
||||||
flags.female ? "Sister" : "Brother");
|
flags.female ? "Sister" : "Brother");
|
||||||
else if (canseemon(mtmp))
|
else if (canseemon(mtmp))
|
||||||
pline("%s says something.", Amonnam(mtmp));
|
pline("%s %s something.", Amonnam(mtmp),
|
||||||
|
says());
|
||||||
if (!tele_restrict(mtmp))
|
if (!tele_restrict(mtmp))
|
||||||
(void) rloc(mtmp, RLOC_MSG);
|
(void) rloc(mtmp, RLOC_MSG);
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
+3
-2
@@ -554,10 +554,11 @@ outrumor(
|
|||||||
switch (mechanism) {
|
switch (mechanism) {
|
||||||
case BY_ORACLE:
|
case BY_ORACLE:
|
||||||
/* Oracle delivers the rumor */
|
/* 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(4) ? "offhandedly "
|
||||||
: (!rn2(3) ? "casually "
|
: (!rn2(3) ? "casually "
|
||||||
: (rn2(2) ? "nonchalantly " : ""))));
|
: (rn2(2) ? "nonchalantly " : ""))),
|
||||||
|
says());
|
||||||
SetVoice((struct monst *) 0, 0, 80, voice_oracle);
|
SetVoice((struct monst *) 0, 0, 80, voice_oracle);
|
||||||
verbalize1(line);
|
verbalize1(line);
|
||||||
/* [WIS exercised by getrumor()] */
|
/* [WIS exercised by getrumor()] */
|
||||||
|
|||||||
@@ -2049,6 +2049,12 @@ dopay(void)
|
|||||||
return paid ? ECMD_TIME : ECMD_OK;
|
return paid ? ECMD_TIME : ECMD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *
|
||||||
|
says(void)
|
||||||
|
{
|
||||||
|
return Deaf ? "signs" : "says";
|
||||||
|
}
|
||||||
|
|
||||||
/* for menustyle=Traditional, choose between paying for everything (by
|
/* for menustyle=Traditional, choose between paying for everything (by
|
||||||
declining to itemize), asking item-by-item (by accepting itemization),
|
declining to itemize), asking item-by-item (by accepting itemization),
|
||||||
or switch to selecting via menu (special 'm' answer at "Itemize? [ynq m]"
|
or switch to selecting via menu (special 'm' answer at "Itemize? [ynq m]"
|
||||||
|
|||||||
+2
-2
@@ -264,8 +264,8 @@ ready_weapon(struct obj *wep)
|
|||||||
!= (struct monst *) 0) {
|
!= (struct monst *) 0) {
|
||||||
/* check msound because we don't have access to muteshk() */
|
/* check msound because we don't have access to muteshk() */
|
||||||
if (!Deaf && this_shkp->data->msound > MS_ANIMAL)
|
if (!Deaf && this_shkp->data->msound > MS_ANIMAL)
|
||||||
pline("%s says \"You be careful with my %s!\"",
|
pline("%s %s \"You be careful with my %s!\"",
|
||||||
shkname(this_shkp), xname(wep));
|
shkname(this_shkp), says(), xname(wep));
|
||||||
else
|
else
|
||||||
pline("%s looks apprehensive about your wielding %s %s.",
|
pline("%s looks apprehensive about your wielding %s %s.",
|
||||||
shkname(this_shkp), mhis(this_shkp), xname(wep));
|
shkname(this_shkp), mhis(this_shkp), xname(wep));
|
||||||
|
|||||||
Reference in New Issue
Block a user