fix #K3518 - "WHAMMM!!!" vs deafness

Kicking a door can produce "WHAMMM!!!".  "Wham" doesn't necessarily
imply any noise but there's a strong suggestion that it does, so a
deaf hero shouldn't be able to hear it.  Give alternate feedback,
"Thwack!!" when deaf, and sometimes give that even when not deaf.

Also tone down "WHAMMM!!!" to Whammm!!".
This commit is contained in:
PatR
2022-01-18 14:13:56 -08:00
parent f420b9672f
commit 9f6f6c1250
2 changed files with 6 additions and 1 deletions

View File

@@ -1296,7 +1296,10 @@ dokick(void)
if (Blind)
feel_location(x, y); /* we know we hit it */
exercise(A_STR, TRUE);
pline("WHAMMM!!!");
/* note: this used to be unconditional "WHAMMM!!!" but that has a
fairly strong connotation of noise that a deaf hero shouldn't
hear; we've kept the extra 'm's and one of the extra '!'s */
pline("%s!!", (Deaf || !rn2(3)) ? "Thwack" : "Whammm");
if (in_town(x, y))
for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) {
if (DEADMONSTER(mtmp))