1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 05:53:50 +00:00

Add missing skill increases for armor hits

This commit is contained in:
scrawl 2014-01-26 22:00:36 +01:00
parent 82146e7f8d
commit b8db151da7

View file

@ -726,6 +726,9 @@ namespace MWClass
if (armorref.mCharge == 0) if (armorref.mCharge == 0)
inv.unequipItem(armor, ptr); inv.unequipItem(armor, ptr);
if (ptr.getRefData().getHandle() == "player")
skillUsageSucceeded(ptr, get(armor).getEquipmentSkill(armor), 0);
switch(get(armor).getEquipmentSkill(armor)) switch(get(armor).getEquipmentSkill(armor))
{ {
case ESM::Skill::LightArmor: case ESM::Skill::LightArmor:
@ -739,6 +742,8 @@ namespace MWClass
break; break;
} }
} }
else if(ptr.getRefData().getHandle() == "player")
skillUsageSucceeded(ptr, ESM::Skill::Unarmored, 0);
} }
} }