Skip to content

Commit fb6b529

Browse files
committed
Carrying the Master Key of Thievery in open inventory improves thievery chances.
The MKoT has to meet is_roguish_key() criteria, meaning it has to at least be uncursed for Rogues, and blessed for all others.
1 parent 6b0bf8a commit fb6b529

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

doc/evilhack-changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -3362,4 +3362,6 @@ The following changes to date are:
33623362
and the object placed inside of it that made the bag blow up
33633363
- Fix: Tiamat couldn't fly
33643364
- Fix: disarming spear trap chances luck check was inverted
3365+
- Carrying the Master Key of Thievery in open inventory improves thievery
3366+
chances
33653367

src/uhitm.c

+2
Original file line numberDiff line numberDiff line change
@@ -2541,6 +2541,8 @@ struct attack *mattk;
25412541

25422542
/* other conditions that could affect success, and these
25432543
can stack if multiple conditions are met */
2544+
if (has_roguish_key(&youmonst))
2545+
other -= 6; /* MKoT in open inventory, meets is_roguish_key() criteria */
25442546
if (mdef->mfrozen) /* target is immobile or incapacitated */
25452547
other -= 5;
25462548
if (mdef->mconf || mdef->mstun) /* target can't think straight */

0 commit comments

Comments
 (0)