From 282b2a7bbee5a28115a3f93d491174cacdfd8f67 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 24 Aug 2022 13:26:41 +0300 Subject: [PATCH] Make explosions give feedback message ... even when the explosion doesn't hit anything. --- src/explode.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/explode.c b/src/explode.c index 871cbfd9a..7ec286a9e 100644 --- a/src/explode.c +++ b/src/explode.c @@ -50,6 +50,7 @@ explode( char hallu_buf[BUFSZ], killr_buf[BUFSZ]; short exploding_wand_typ = 0; boolean you_exploding = (olet == MON_EXPLODE && type >= 0); + boolean didmsg = FALSE; if (olet == WAND_CLASS) { /* retributive strike */ /* 'type' is passed as (wand's object type * -1); save @@ -324,10 +325,15 @@ explode( str = "explosion"; generic = TRUE; } - if (!Deaf && olet != SCROLL_CLASS) + if (!Deaf && olet != SCROLL_CLASS) { You_hear("a blast."); + didmsg = TRUE; + } } + if (!Deaf && !didmsg) + pline("Boom!"); + if (dam) { for (i = 0; i < 3; i++) { for (j = 0; j < 3; j++) {