fix issue #1458 - inappropriate verbal messages
Issue reported by chappg: succubi could produce "it's on the house" (quoted verbal message) when hero is deaf. The mail daemon could produce a variety of verbal message when hero is deaf. The succubus/incubus one is easy to fix. The mail daemon ones are untested and a couple haven't been given non-verbal alternatives. Fixes #1458
This commit is contained in:
10
src/mhitu.c
10
src/mhitu.c
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 mhitu.c $NHDT-Date: 1740534854 2025/02/25 17:54:14 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.327 $ */
|
||||
/* NetHack 3.7 mhitu.c $NHDT-Date: 1762750699 2025/11/09 20:58:19 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.334 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2012. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -2264,8 +2264,12 @@ doseduce(struct monst *mon)
|
||||
if (cost > umoney)
|
||||
cost = umoney;
|
||||
if (!cost) {
|
||||
SetVoice(mon, 0, 80, 0);
|
||||
verbalize("It's on the house!");
|
||||
if (!Deaf) {
|
||||
SetVoice(mon, 0, 80, 0);
|
||||
verbalize("It's on the house!");
|
||||
} else {
|
||||
pline("No charge.");
|
||||
}
|
||||
} else {
|
||||
pline_mon(mon, "%s takes %ld %s for services rendered!",
|
||||
noit_Monnam(mon), cost, currency(cost));
|
||||
|
||||
Reference in New Issue
Block a user