Rangers always succeed in disarming bear traps
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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--;
|
||||||
|
|||||||
Reference in New Issue
Block a user