Skip to content

Commit bf42405

Browse files
committed
Burning hands/shocking grasp spell status can be viewed in inventory.
When choosing to wield an object, if you choose ? or * as an option, it allows you to see 'your bare hands'. If either spell is active, it'll show as (engulfed in flame) or (energized) next to 'your bare hands' for each spell.
1 parent ea328a5 commit bf42405

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/evilhack-changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -3531,4 +3531,5 @@ The following changes to date are:
35313531
- Forcefighting a door or any type of tree while burning hands spell
35323532
is active can burn them down
35333533
- Fix: using burning hands to burn down a tree or a door uses a charge
3534+
- Burning hands/shocking grasp spell status can be viewed in inventory
35343535

src/invent.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -1805,9 +1805,11 @@ register const char *let, *word;
18051805
else if (!strcmp(word, "write with"))
18061806
Sprintf(qbuf, "your %s", body_part(FINGERTIP));
18071807
else if (!strcmp(word, "wield"))
1808-
Sprintf(qbuf, "your %s %s%s", uarmg ? "gloved" : "bare",
1808+
Sprintf(qbuf, "your %s %s%s%s%s", uarmg ? "gloved" : "bare",
18091809
makeplural(body_part(HAND)),
1810-
!uwep ? " (wielded)" : "");
1810+
!uwep ? " (wielded)" : "",
1811+
u.umburn ? " (engulfed in flame)" : "",
1812+
u.umshock ? " (energized)" : "");
18111813
else if (!strcmp(word, "ready"))
18121814
Sprintf(qbuf, "empty quiver%s",
18131815
!uquiver ? " (nothing readied)" : "");

0 commit comments

Comments
 (0)