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

View File

@@ -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--;