mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-23 23:09:44 +00:00
Treat 0-weight armor as light armor in some respects
This commit is contained in:
parent
44dffe55ab
commit
160da0b149
2 changed files with 0 additions and 4 deletions
|
@ -146,9 +146,6 @@ namespace MWClass
|
|||
|
||||
float epsilon = 0.0005f;
|
||||
|
||||
if (ref->mBase->mData.mWeight == 0)
|
||||
return ESM::Skill::Unarmored;
|
||||
|
||||
if (ref->mBase->mData.mWeight <= iWeight * gmst.find ("fLightMaxMod")->getFloat() + epsilon)
|
||||
return ESM::Skill::LightArmor;
|
||||
|
||||
|
|
|
@ -1160,7 +1160,6 @@ namespace MWClass
|
|||
|
||||
switch(boots->getClass().getEquipmentSkill(*boots))
|
||||
{
|
||||
case ESM::Skill::Unarmored:
|
||||
case ESM::Skill::LightArmor:
|
||||
return (name == "left") ? "FootLightLeft" : "FootLightRight";
|
||||
case ESM::Skill::MediumArmor:
|
||||
|
|
Loading…
Reference in a new issue