diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-06 02:55:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-06 02:55:41 +0300 |
commit | 2b019f52da91cb37c00dfa34be6dd3e99e459d47 (patch) | |
tree | 566694f2c0951e200cbba175836bc24204e335f0 /src/net/eathena/inventoryhandler.cpp | |
parent | 3c6d3063170bb51c27bdb9dccc566e16027eb15f (diff) | |
download | manaverse-2b019f52da91cb37c00dfa34be6dd3e99e459d47.tar.gz manaverse-2b019f52da91cb37c00dfa34be6dd3e99e459d47.tar.bz2 manaverse-2b019f52da91cb37c00dfa34be6dd3e99e459d47.tar.xz manaverse-2b019f52da91cb37c00dfa34be6dd3e99e459d47.zip |
Add support for two new equipment slots in hercules.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index ce87e5660..90608764f 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -56,6 +56,8 @@ const EquipSlot::Type EQUIP_CONVERT[] = EquipSlot::PROJECTILE_SLOT, // 13 SPRITE_EVOL2 EquipSlot::COSTUME_ROBE_SLOT, // 14 SPRITE_EVOL3 EquipSlot::RING1_SLOT, // 15 SPRITE_EVOL4 + EquipSlot::EVOL_SLOT3, // 16 SPRITE_EVOL5 + EquipSlot::EVOL_SLOT4, // 17 SPRITE_EVOL6 }; namespace EAthena @@ -207,7 +209,7 @@ void InventoryHandler::selectEgg(const Item *const item) const int InventoryHandler::convertFromServerSlot(const int serverSlot) const { - if (serverSlot < 0 || serverSlot > 15) + if (serverSlot < 0 || serverSlot > 17) return 0; return CAST_S32(EQUIP_CONVERT[serverSlot]); |