From 19efb4ffc495e1f597424008a2261cd3c008f356 Mon Sep 17 00:00:00 2001 From: k21971 Date: Wed, 3 Jul 2024 02:52:26 +0000 Subject: [PATCH] Adjust feedback when hitting a water-based monster or one that is underwater with burning hands spell. There's also a 25% chance that the players burning hands will be extinguished from hitting a monster that is underwater or a monster that is water-based. --- doc/evilhack-changelog.md | 2 ++ src/uhitm.c | 12 ++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/evilhack-changelog.md b/doc/evilhack-changelog.md index 89c505386..481b603b2 100644 --- a/doc/evilhack-changelog.md +++ b/doc/evilhack-changelog.md @@ -3535,4 +3535,6 @@ The following changes to date are: - Wand of probing or a stethoscope used on oneself will show reflection status (spell only) - Tweak power cost for wizards casting force bolt spell +- Adjust feedback when hitting a water-based monster or one that is + underwater with burning hands spell diff --git a/src/uhitm.c b/src/uhitm.c index 2e28590bc..41a4c2ec5 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -2116,8 +2116,16 @@ int dieroll; makeplural(body_part(HAND)), mon_nam(mon)); } else { - You("burn %s with your %s!", mon_nam(mon), - makeplural(body_part(HAND))); + You("%s %s with your %s!", + can_vaporize(mon->data) + ? "vaporize part of" : "burn", + mon_nam(mon), makeplural(body_part(HAND))); + + if (!rn2(4) && + (mon_underwater(mon) || can_vaporize(mon->data))) { + u.umburn = 0; + Your("%s are extinguished.", makeplural(body_part(HAND))); + } if (completelyburns(mon->data) || is_wooden(mon->data) || mon->data == &mons[PM_GREEN_SLIME]) {