# HG changeset patch # User Grumpy7 # Date 1382777435 25200 # Node ID 998e1babff3102dc1c2b812a2f8645c4f3a7eeaf # Parent c22dd8b6c3f42d6f2115eb2fb5f8372800283d69 Fixing bug with itemSkillTypes diff -r c22dd8b6c3f4 -r 998e1babff31 Player.cpp --- a/Player.cpp Sat Oct 26 00:54:12 2013 -0700 +++ b/Player.cpp Sat Oct 26 01:50:35 2013 -0700 @@ -3578,30 +3578,36 @@ if (currItem != nullptr && (!currItem->IsBroken())) { PLAYER_SKILL_TYPE itemSkillType = (PLAYER_SKILL_TYPE)currItem->GetPlayerSkillType(); - int currArmorSkillLevel = GetActualSkillLevel(itemSkillType); + int currArmorSkillLevel = 0; int multiplier = 0; switch (itemSkillType) { case PLAYER_SKILL_STAFF: + currArmorSkillLevel = GetActualSkillLevel(itemSkillType); multiplier = GetMultiplierForSkillLevel(currArmorSkillLevel, 0, 1, 1, 1); break; case PLAYER_SKILL_SWORD: case PLAYER_SKILL_SPEAR: + currArmorSkillLevel = GetActualSkillLevel(itemSkillType); multiplier = GetMultiplierForSkillLevel(currArmorSkillLevel, 0, 0, 0, 1); break; case PLAYER_SKILL_SHIELD: + currArmorSkillLevel = GetActualSkillLevel(itemSkillType); wearingArmor = true; multiplier = GetMultiplierForSkillLevel(currArmorSkillLevel, 1, 1, 2, 2); break; case PLAYER_SKILL_LEATHER: + currArmorSkillLevel = GetActualSkillLevel(itemSkillType); wearingLeather = true; multiplier = GetMultiplierForSkillLevel(currArmorSkillLevel, 1, 1, 2, 2); break; case PLAYER_SKILL_CHAIN: + currArmorSkillLevel = GetActualSkillLevel(itemSkillType); wearingArmor = true; multiplier = GetMultiplierForSkillLevel(currArmorSkillLevel, 1, 1, 1, 1); break; case PLAYER_SKILL_PLATE: + currArmorSkillLevel = GetActualSkillLevel(itemSkillType); wearingArmor = true; multiplier = GetMultiplierForSkillLevel(currArmorSkillLevel, 1, 1, 1, 1); break;