Skip to content

Commit 2f7ec79

Browse files
committed
Fix: incorrect feedback when attempting to steal from a monster and the objects being stolen have the oilskin object property.
1 parent ef579bc commit 2f7ec79

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

doc/evilhack-changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -3356,4 +3356,6 @@ The following changes to date are:
33563356
the Crossbow of Carl
33573357
- Fix: object property from wearing a t-shirt persisted if the t-shirt was
33583358
destoryed or fell off when polymorphing
3359+
- Fix: incorrect feedback when attempting to steal from a monster and
3360+
the objects being stolen have the oilskin object property
33593361

src/uhitm.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -2467,7 +2467,7 @@ struct attack *mattk;
24672467
otmp->greased ? "greased" : "slippery",
24682468
(otmp->greased || objects[otmp->otyp].oc_name_known)
24692469
? xname(otmp)
2470-
: cloak_simple_name(otmp));
2470+
: simpleonames(otmp));
24712471

24722472
if (otmp->greased && !rn2(2)) {
24732473
pline_The("grease wears off.");
@@ -2655,7 +2655,7 @@ struct attack *mattk;
26552655
mhis(mdef));
26562656

26572657
/* only triggered if (stealoid && items have already been stolen).
2658-
failing to steal a greased object will stop you from stealing
2658+
failing to steal a greased object will stop you from stealing
26592659
anything else to avoid infinite loop nastiness */
26602660
if (otmp && (otmp->greased || otmp->otyp == OILSKIN_CLOAK
26612661
|| otmp->otyp == OILSKIN_SACK
@@ -2668,7 +2668,7 @@ struct attack *mattk;
26682668
otmp->greased ? "greased" : "slippery",
26692669
(otmp->greased || objects[otmp->otyp].oc_name_known)
26702670
? xname(otmp)
2671-
: cloak_simple_name(otmp));
2671+
: simpleonames(otmp));
26722672

26732673
if (otmp->greased && !rn2(2)) {
26742674
pline_The("grease wears off.");

0 commit comments

Comments
 (0)