changeset 1976:998e1babff31

Fixing bug with itemSkillTypes
author Grumpy7
date Sat, 26 Oct 2013 01:50:35 -0700
parents c22dd8b6c3f4
children 780dd567f1da
files Player.cpp
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;