From: Pasi Kallinen Date: Sat, 28 Mar 2015 17:38:15 +0000 (+0200) Subject: Feedback when boomerang hits sink X-Git-Tag: NetHack-3.6.0_RC01~525 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf7143094f54ab5eb2310c9109c5f415baf26d16;p=nethack Feedback when boomerang hits sink --- diff --git a/doc/fixes35.0 b/doc/fixes35.0 index f2e1b2890..1882ad286 100644 --- a/doc/fixes35.0 +++ b/doc/fixes35.0 @@ -889,6 +889,7 @@ show t-shirt text at end of game inventory disclose hitting with a polearm remembers the position of the last monster you hit allow showing legal polearm positions when asked for location to hit add messages for trying to pick up some terrain features +boomerang makes noise when hitting a sink Platform- and/or Interface-Specific Fixes diff --git a/src/zap.c b/src/zap.c index 3674e5a4a..b8c846be3 100644 --- a/src/zap.c +++ b/src/zap.c @@ -3283,8 +3283,10 @@ int dx, dy; } tmp_at(bhitpos.x, bhitpos.y); delay_output(); - if(IS_SINK(levl[bhitpos.x][bhitpos.y].typ)) + if(IS_SINK(levl[bhitpos.x][bhitpos.y].typ)) { + if (!Deaf) pline("Klonk!"); break; /* boomerang falls on sink */ + } /* ct==0, initial position, we want next delta to be same; ct==5, opposite position, repeat delta undoes first one */ if (ct % 5 != 0) i += (counterclockwise ? -1 : 1);