diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-04 11:49:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:56 +0300 |
commit | f803ebaf78e5d4064653ec0a9494ab643e910e76 (patch) | |
tree | ff18e62102dbfd15c5b6f9c934c6fb5d01b144ea | |
parent | 1fe5c43facfce35b53a6dd29c4e9c95f22cd5986 (diff) | |
download | plus-f803ebaf78e5d4064653ec0a9494ab643e910e76.tar.gz plus-f803ebaf78e5d4064653ec0a9494ab643e910e76.tar.bz2 plus-f803ebaf78e5d4064653ec0a9494ab643e910e76.tar.xz plus-f803ebaf78e5d4064653ec0a9494ab643e910e76.zip |
Add new slots definition.
-rw-r--r-- | src/equipment.h | 7 | ||||
-rw-r--r-- | src/net/ea/inventoryhandler.cpp | 33 |
2 files changed, 27 insertions, 13 deletions
diff --git a/src/equipment.h b/src/equipment.h index 047f2a79e..1c40d455c 100644 --- a/src/equipment.h +++ b/src/equipment.h @@ -61,6 +61,13 @@ class Equipment final EQUIP_PROJECTILE_SLOT = 10, EQUIP_EVOL_RING1_SLOT = 11, EQUIP_EVOL_RING2_SLOT = 12, + EQUIP_COSTUME_ROBE_SLOT = 13, + EQUIP_SHADOW_ARMOR_SLOT = 14, + EQUIP_SHADOW_WEAPON_SLOT = 15, + EQUIP_SHADOW_SHIELD_SLOT = 16, + EQUIP_SHADOW_SHOES_SLOT = 17, + EQUIP_SHADOW_ACCESSORY1_SLOT = 18, + EQUIP_SHADOW_ACCESSORY2_SLOT = 19, EQUIP_VECTOREND }; diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index a1b7dbd8e..4fca6d2d2 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -44,19 +44,26 @@ extern int serverVersion; const Equipment::Slot EQUIP_POINTS[Equipment::EQUIP_VECTOREND] = { - Equipment::EQUIP_LEGS_SLOT, - Equipment::EQUIP_FIGHT1_SLOT, - Equipment::EQUIP_GLOVES_SLOT, - Equipment::EQUIP_RING2_SLOT, - Equipment::EQUIP_RING1_SLOT, - Equipment::EQUIP_FIGHT2_SLOT, - Equipment::EQUIP_FEET_SLOT, - Equipment::EQUIP_NECK_SLOT, - Equipment::EQUIP_HEAD_SLOT, - Equipment::EQUIP_TORSO_SLOT, - Equipment::EQUIP_EVOL_RING1_SLOT, - Equipment::EQUIP_EVOL_RING2_SLOT, - Equipment::EQUIP_PROJECTILE_SLOT, + Equipment::EQUIP_LEGS_SLOT, // Lower Headgear + Equipment::EQUIP_FIGHT1_SLOT, // Weapon + Equipment::EQUIP_GLOVES_SLOT, // Garment + Equipment::EQUIP_RING2_SLOT, // Accessory 1 + Equipment::EQUIP_RING1_SLOT, // Armor + Equipment::EQUIP_FIGHT2_SLOT, // Shield + Equipment::EQUIP_FEET_SLOT, // Footgear + Equipment::EQUIP_NECK_SLOT, // Accessory 2 + Equipment::EQUIP_HEAD_SLOT, // Upper Headgear + Equipment::EQUIP_TORSO_SLOT, // Middle Headgear + Equipment::EQUIP_EVOL_RING1_SLOT, // Costume Top Headgear + Equipment::EQUIP_EVOL_RING2_SLOT, // Costume Mid Headgear + Equipment::EQUIP_PROJECTILE_SLOT, // Costume Low Headgear + Equipment::EQUIP_COSTUME_ROBE_SLOT, // Costume Garment/Robe + Equipment::EQUIP_SHADOW_ARMOR_SLOT, // Shadow Armor + Equipment::EQUIP_SHADOW_WEAPON_SLOT, // Shadow Weapon + Equipment::EQUIP_SHADOW_SHIELD_SLOT, // Shadow Shield + Equipment::EQUIP_SHADOW_SHOES_SLOT, // Shadow Shoes + Equipment::EQUIP_SHADOW_ACCESSORY2_SLOT, // Shadow Accessory 2 + Equipment::EQUIP_SHADOW_ACCESSORY1_SLOT, // Shadow Accessory 1 }; // missing EQUIP_RING1_SLOT |