diff Items.cpp @ 1989:33787c8938a5

Single and Two-handed ENUM
author zipi
date Sat, 02 Nov 2013 17:45:58 +0000
parents 5fcf6023f9c3
children d28d3c006077
line wrap: on
line diff
--- a/Items.cpp	Sat Nov 02 17:24:31 2013 +0000
+++ b/Items.cpp	Sat Nov 02 17:45:58 2013 +0000
@@ -549,17 +549,17 @@
 					{
 					if ( !_stricmp(test_string, "weapon") )
 						{
-						pItems[item_counter].uEquipType = EQUIP_OFF_HAND;
+						pItems[item_counter].uEquipType = EQUIP_SINGLE_HANDED;
 						break;
 						}
 					if ( !_stricmp(test_string, "weapon2") )
 						{
-						pItems[item_counter].uEquipType = EQUIP_MAIN_HAND;
+						pItems[item_counter].uEquipType = EQUIP_TWO_HANDED;
 						break;
 						}
 					if ( !_stricmp(test_string, "weapon1or2") )
 						{
-						pItems[item_counter].uEquipType = EQUIP_OFF_HAND;
+						pItems[item_counter].uEquipType = EQUIP_SINGLE_HANDED;
 						break;
 						}
 					if ( !(_stricmp(test_string, "missile")&&_stricmp(test_string, "bow")))
@@ -1618,7 +1618,7 @@
         PLAYER_SKILL_TYPE requested_skill = PLAYER_SKILL_INVALID;
         switch (uTreasureType)
             {
-        case 20: requested_equip = EQUIP_OFF_HAND; break;
+        case 20: requested_equip = EQUIP_SINGLE_HANDED; break;
         case 21: requested_equip = EQUIP_ARMOUR; break;
         case 22: requested_skill = PLAYER_SKILL_MISC; break;
         case 23: requested_skill = PLAYER_SKILL_SWORD; break;
@@ -1769,8 +1769,8 @@
     //try get special enhansment
     switch (out_item->GetItemEquipType())
         {
-    case EQUIP_OFF_HAND:
-    case EQUIP_MAIN_HAND :   
+    case EQUIP_SINGLE_HANDED:
+    case EQUIP_TWO_HANDED :   
     case EQUIP_BOW :    
         if ( !uBonusChanceWpSpecial[v6] )
             return;