Skip to content

Commit

Permalink
Adjust feedback when hitting a water-based monster or one that is und…
Browse files Browse the repository at this point in the history
…erwater 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.
  • Loading branch information
k21971 committed Jul 3, 2024
1 parent 7901906 commit 19efb4f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions doc/evilhack-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

12 changes: 10 additions & 2 deletions src/uhitm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

0 comments on commit 19efb4f

Please sign in to comment.