Rangers always succeed in disarming bear traps

This commit is contained in:
Pasi Kallinen
2022-07-18 17:22:19 +03:00
parent 88ec641770
commit e4cb3f0832
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -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) spell: an angry shopkeeper becomes pacified (but never tamed)
wielding a bec de corbin makes ravens generate peaceful wielding a bec de corbin makes ravens generate peaceful
moving with 'm' prefix allows hero to enter a known pit carefully 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 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
+2
View File
@@ -4554,6 +4554,8 @@ untrap_prob(
/* Your own traps are better known than others. */ /* Your own traps are better known than others. */
if (ttmp->madeby_u) if (ttmp->madeby_u)
chance--; chance--;
if (Role_if(PM_RANGER) && ttmp->ttyp == BEAR_TRAP && chance <= 3)
return 0; /* always succeeds */
if (Role_if(PM_ROGUE)) { if (Role_if(PM_ROGUE)) {
if (rn2(2 * MAXULEV) < u.ulevel) if (rn2(2 * MAXULEV) < u.ulevel)
chance--; chance--;