Make explosions give feedback message

... even when the explosion doesn't hit anything.
This commit is contained in:
Pasi Kallinen
2022-08-24 13:26:41 +03:00
parent 6766943455
commit 282b2a7bbe

View File

@@ -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++) {