From cf7143094f54ab5eb2310c9109c5f415baf26d16 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 28 Mar 2015 19:38:15 +0200 Subject: [PATCH] Feedback when boomerang hits sink --- doc/fixes35.0 | 1 + src/zap.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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);