]> granicus.if.org Git - nethack/commitdiff
fix #K3518 - "WHAMMM!!!" vs deafness
authorPatR <rankin@nethack.org>
Tue, 18 Jan 2022 22:13:56 +0000 (14:13 -0800)
committerPatR <rankin@nethack.org>
Tue, 18 Jan 2022 22:13:56 +0000 (14:13 -0800)
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!!".

doc/fixes37.0
src/dokick.c

index 7cc2fb7a226c9baf312823436071829988abd2d4..a1b55234b39e402f76fdf2a096e868d09b88b54b 100644 (file)
@@ -748,6 +748,8 @@ when two or more shops share a wall and hero uses Passes_walls to carry an
 redo the unpaid_cost fix to handle shop items inside hero-owned container
 flyers shouldn't fall on arrival when going down holes or trap doors
 change movement keys and some special keys into extended commands
+"WHAMMM!!!" feedback when kicking a door suggests noise so if hero is deaf an
+       alternate message should be given
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
index e7ba06dbf177b21523e7ab2a6284c609942f7d79..8f9b81255292b020a4ca1cd321e04dc25d8f0355 100644 (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))