summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-23 16:45:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-23 16:45:46 +0300
commitd20744c0ff83572dc209389df900826b7d088546 (patch)
treeb6a91790f6c52d016e57cfdba687251c1f01409f /src/net/eathena
parenta22d7bce703101ba3ae15cb5b8545381dfe863c4 (diff)
downloadmanaplus-d20744c0ff83572dc209389df900826b7d088546.tar.gz
manaplus-d20744c0ff83572dc209389df900826b7d088546.tar.bz2
manaplus-d20744c0ff83572dc209389df900826b7d088546.tar.xz
manaplus-d20744c0ff83572dc209389df900826b7d088546.zip
Add support for additional slots in net code.
Now projectile slot depend on server.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/inventoryhandler.cpp2
-rw-r--r--src/net/eathena/inventoryhandler.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index af08fa1b2..384ca86b2 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -57,7 +57,7 @@ const Equipment::Slot EQUIP_CONVERT[] =
Equipment::EQUIP_FIGHT1_SLOT, // 10 SPRITE_WEAPON
Equipment::EQUIP_FIGHT2_SLOT, // 11 SPRITE_SHIELD
Equipment::EQUIP_EVOL_RING2_SLOT, // 12
- Equipment::EQUIP_EVOL_RING2_SLOT, // 13 SPRITE_EVOL2
+ Equipment::EQUIP_PROJECTILE_SLOT, // 13 SPRITE_EVOL2
Equipment::EQUIP_COSTUME_ROBE_SLOT, // 14 SPRITE_EVOL3
Equipment::EQUIP_MISSING1_SLOT, // 15 SPRITE_EVOL4
};
diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h
index 272d3a82b..794f9ca7a 100644
--- a/src/net/eathena/inventoryhandler.h
+++ b/src/net/eathena/inventoryhandler.h
@@ -71,6 +71,9 @@ class InventoryHandler final : public MessageHandler,
int convertFromServerSlot(const int serverSlot)
const override final A_WARN_UNUSED;
+ int getProjectileSlot() const override final
+ { return 23; }
+
protected:
static void processPlayerEquipment(Net::MessageIn &msg);