Make explosions give feedback message
... even when the explosion doesn't hit anything.
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user