forked from teamnwah/openmw-tes3coop
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;
|
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)
|
if (ref->mBase->mData.mWeight <= iWeight * gmst.find ("fLightMaxMod")->getFloat() + epsilon)
|
||||||
return ESM::Skill::LightArmor;
|
return ESM::Skill::LightArmor;
|
||||||
|
|
||||||
|
|
|
@ -1160,7 +1160,6 @@ namespace MWClass
|
||||||
|
|
||||||
switch(boots->getClass().getEquipmentSkill(*boots))
|
switch(boots->getClass().getEquipmentSkill(*boots))
|
||||||
{
|
{
|
||||||
case ESM::Skill::Unarmored:
|
|
||||||
case ESM::Skill::LightArmor:
|
case ESM::Skill::LightArmor:
|
||||||
return (name == "left") ? "FootLightLeft" : "FootLightRight";
|
return (name == "left") ? "FootLightLeft" : "FootLightRight";
|
||||||
case ESM::Skill::MediumArmor:
|
case ESM::Skill::MediumArmor:
|
||||||
|
|
Loading…
Reference in a new issue