From 2b019f52da91cb37c00dfa34be6dd3e99e459d47 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 6 Mar 2016 02:55:41 +0300 Subject: Add support for two new equipment slots in hercules. --- src/net/eathena/inventoryhandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/net/eathena/inventoryhandler.cpp') 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]); -- cgit v1.2.3-70-g09d2