From e5b8fc86eb836ff23fad57029c60ea02366507ad Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Mon, 1 Aug 2022 22:30:43 +0300 Subject: [PATCH] Make explosions burn monster armor --- doc/fixes3-7-0.txt | 1 + src/explode.c | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 769685ca5..bb8b3960a 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -987,6 +987,7 @@ greased saddle makes it impossible to mount the steed if an item-using monster zaps a wand of digging downward on a level that doesn't allow holes but does allow pits, create a pit and trigger it no longer override the effect of a new moon by simply carring a lizard corpse +make explosions burn monster's armor just like they do hero's armor Fixes to 3.7.0-x Problems that Were Exposed Via git Repository diff --git a/src/explode.c b/src/explode.c index fb5f61515..227bb636b 100644 --- a/src/explode.c +++ b/src/explode.c @@ -435,14 +435,15 @@ explode( pline("%s is caught in the %s!", Monnam(mtmp), str); } + if (adtyp == AD_FIRE) { + (void) burnarmor(mtmp); + ignite_items(mtmp->minvent); + } idamres += destroy_mitem(mtmp, SCROLL_CLASS, (int) adtyp); idamres += destroy_mitem(mtmp, SPBOOK_CLASS, (int) adtyp); idamnonres += destroy_mitem(mtmp, POTION_CLASS, (int) adtyp); - idamnonres += destroy_mitem(mtmp, WAND_CLASS, (int) adtyp); idamnonres += destroy_mitem(mtmp, RING_CLASS, (int) adtyp); - - if (adtyp == AD_FIRE) - ignite_items(mtmp->minvent); + idamnonres += destroy_mitem(mtmp, WAND_CLASS, (int) adtyp); if (explmask[i][j] == 1) { golemeffects(mtmp, (int) adtyp, dam + idamres);