|
|
|
@ -48,7 +48,6 @@ namespace MWMechanics
|
|
|
|
|
resultMessage = "#{sLockImpossible}";
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MWBase::Environment::get().getMechanicsManager()->objectOpened(mActor, lock);
|
|
|
|
|
if (Misc::Rng::roll0to99() <= x)
|
|
|
|
|
{
|
|
|
|
|
lock.getClass().unlock(lock);
|
|
|
|
@ -60,6 +59,7 @@ namespace MWMechanics
|
|
|
|
|
resultMessage = "#{sLockFail}";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MWBase::Environment::get().getMechanicsManager()->objectOpened(mActor, lock);
|
|
|
|
|
int uses = lockpick.getClass().getItemHealth(lockpick);
|
|
|
|
|
--uses;
|
|
|
|
|
lockpick.getCellRef().setCharge(uses);
|
|
|
|
@ -89,7 +89,6 @@ namespace MWMechanics
|
|
|
|
|
resultMessage = "#{sTrapImpossible}";
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MWBase::Environment::get().getMechanicsManager()->objectOpened(mActor, trap);
|
|
|
|
|
if (Misc::Rng::roll0to99() <= x)
|
|
|
|
|
{
|
|
|
|
|
trap.getCellRef().setTrap("");
|
|
|
|
@ -102,6 +101,7 @@ namespace MWMechanics
|
|
|
|
|
resultMessage = "#{sTrapFail}";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MWBase::Environment::get().getMechanicsManager()->objectOpened(mActor, trap);
|
|
|
|
|
int uses = probe.getClass().getItemHealth(probe);
|
|
|
|
|
--uses;
|
|
|
|
|
probe.getCellRef().setCharge(uses);
|
|
|
|
|