Skip to content

Commit

Permalink
Rangers always succeed in disarming bear traps
Browse files Browse the repository at this point in the history
  • Loading branch information
paxed committed Jul 18, 2022
1 parent 88ec641 commit e4cb3f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/fixes3-7-0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,7 @@ make taming via magic harp be consistent with scroll of taming and charm
spell: an angry shopkeeper becomes pacified (but never tamed)
wielding a bec de corbin makes ravens generate peaceful
moving with 'm' prefix allows hero to enter a known pit carefully
rangers always succeed in disarming bear traps, unless impaired


Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
Expand Down
2 changes: 2 additions & 0 deletions src/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -4554,6 +4554,8 @@ untrap_prob(
/* Your own traps are better known than others. */
if (ttmp->madeby_u)
chance--;
if (Role_if(PM_RANGER) && ttmp->ttyp == BEAR_TRAP && chance <= 3)
return 0; /* always succeeds */
if (Role_if(PM_ROGUE)) {
if (rn2(2 * MAXULEV) < u.ulevel)
chance--;
Expand Down

0 comments on commit e4cb3f0

Please sign in to comment.