changeset 2158:10f03a70ab6d

m
author Ritor1
date Fri, 10 Jan 2014 17:56:19 +0600
parents c6d8253d4cbc
children 67a83bc1a7de
files Player.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Player.cpp	Fri Jan 10 17:42:57 2014 +0600
+++ b/Player.cpp	Fri Jan 10 17:56:19 2014 +0600
@@ -3175,9 +3175,9 @@
           {
             if (this->pInventoryItemList[this->pEquipment.pIndices[i] - 1].uEnchantmentType - 1 == attr)//if (currEquippedItem->IsRegularEnchanmentForAttribute(attr))
             {
-              if ( attr > CHARACTER_ATTRIBUTE_RESIST_BODY && v5 < currEquippedItem->m_enchantmentStrength )
+              if ( attr > CHARACTER_ATTRIBUTE_RESIST_BODY && v5 < currEquippedItem->m_enchantmentStrength )//for skills bonuses
                 v5 = currEquippedItem->m_enchantmentStrength;
-              else
+              else // for resisits and attributes bonuses
                 v5 += currEquippedItem->m_enchantmentStrength;
             }
           }