Treat 0-weight armor as light armor in some respects

This commit is contained in:
Allofich 2016-10-04 22:44:47 +09:00
parent 44dffe55ab
commit 160da0b149
2 changed files with 0 additions and 4 deletions

View file

@ -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;

View file

@ -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: