rmtew  committed 1c48ce7

Fix #170. Little known fact that objects get more difficult to unlock the deeper into the dungeon you get. If a locked object in your inventory is examined, this fact combined with items in your inventory not being in the dungeon, results in a crash.

  • Participants
  • Parent commits 11461fb
  • Branches master

Comments (0)

Files changed (1)

File src/Help.cpp

   if (HasStati(LOCKED))
     Desc += Format("__<14>Locked:<7> Picking its lock requires a Skill Check against a DC of <11>%d<7>.",
-        19 + m->Depth);
+        19 + p->m->Depth);
   if (HasStati(TRIED, SK_LOCKPICKING, p))
     Desc += Format("__<14>Tried:<7> You have already tried to pick its lock today.\n");