|
|
|
@ -114,8 +114,6 @@ namespace MWMechanics
|
|
|
|
|
x = std::min(iBlockMaxChance, std::max(iBlockMinChance, x));
|
|
|
|
|
|
|
|
|
|
if (Misc::Rng::roll0to99() < x)
|
|
|
|
|
{
|
|
|
|
|
if (!(weapon.isEmpty() && !attacker.getClass().isNpc())) // Unarmed creature attacks don't affect armor condition
|
|
|
|
|
{
|
|
|
|
|
// Reduce shield durability by incoming damage
|
|
|
|
|
int shieldhealth = shield->getClass().getItemHealth(*shield);
|
|
|
|
@ -124,7 +122,6 @@ namespace MWMechanics
|
|
|
|
|
shield->getCellRef().setCharge(shieldhealth);
|
|
|
|
|
if (shieldhealth == 0)
|
|
|
|
|
inv.unequipItem(*shield, blocker);
|
|
|
|
|
}
|
|
|
|
|
// Reduce blocker fatigue
|
|
|
|
|
const float fFatigueBlockBase = gmst.find("fFatigueBlockBase")->mValue.getFloat();
|
|
|
|
|
const float fFatigueBlockMult = gmst.find("fFatigueBlockMult")->mValue.getFloat();
|
|
|
|
|