Feedback when boomerang hits sink
authorPasi Kallinen <paxed@alt.org>
Sat, 28 Mar 2015 17:38:15 +0000 (19:38 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 28 Mar 2015 17:38:15 +0000 (19:38 +0200)
doc/fixes35.0
src/zap.c

index f2e1b2890c3e72f1c5447c3346a690b0beb17fa5..1882ad286bc90135cefaf002b5fe2b1e3ae5fc72 100644 (file)
@@ -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
index 3674e5a4a041d38538dab9fa5139e913c4463e70..b8c846be3a564ecd3e1ad99427776391b466a09c 100644 (file)
--- 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);