From 683b78068fc8aff3278c3cfe1b766688bfa56860 Mon Sep 17 00:00:00 2001 From: PatR Date: Sat, 10 Jul 2021 17:37:38 -0700 Subject: [PATCH] gold kicking bit One of the gold kicking changes I had pending. The "Thwwpingg" message is obviously intended as a sound effect so shouldn't be given if the hero is Deaf. --- src/dokick.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/dokick.c b/src/dokick.c index 6fa333553..48199baba 100644 --- a/src/dokick.c +++ b/src/dokick.c @@ -1,4 +1,4 @@ -/* NetHack 3.7 dokick.c $NHDT-Date: 1608673689 2020/12/22 21:48:09 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.162 $ */ +/* NetHack 3.7 dokick.c $NHDT-Date: 1625963851 2021/07/11 00:37:31 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.167 $ */ /* Copyright (c) Izchak Miller, Mike Stephenson, Steve Linhart, 1989. */ /* NetHack may be freely redistributed. See license for details. */ @@ -641,9 +641,10 @@ really_kick_object(xchar x, xchar y) "send coins flying in all directions", }; - pline("Thwwpingg!"); + if (!Deaf) + pline1("Thwwpingg!"); You("%s!", flyingcoinmsg[rn2(SIZE(flyingcoinmsg))]); - (void) scatter(x, y, rn2(3) + 1, VIS_EFFECTS | MAY_HIT, + (void) scatter(x, y, rnd(3), VIS_EFFECTS | MAY_HIT, g.kickedobj); newsym(x, y); return 1;