diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-06 19:22:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 19:42:03 +0300 |
commit | 0d990d032d98ea26da479b6378087d0d7dd2a91e (patch) | |
tree | bfad702538e6d55357b78fce29e694cc8e3b86e9 /src/net/ea/inventoryhandler.cpp | |
parent | 813779679c40323d29aaa6cb334210e3944d5c99 (diff) | |
download | mv-0d990d032d98ea26da479b6378087d0d7dd2a91e.tar.gz mv-0d990d032d98ea26da479b6378087d0d7dd2a91e.tar.bz2 mv-0d990d032d98ea26da479b6378087d0d7dd2a91e.tar.xz mv-0d990d032d98ea26da479b6378087d0d7dd2a91e.zip |
Move processPlayerStorageEquip from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/ea/inventoryhandler.cpp')
-rw-r--r-- | src/net/ea/inventoryhandler.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index 2accd70b5..5c4d2796c 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -182,46 +182,6 @@ int InventoryHandler::getSlot(const int eAthenaSlot) return static_cast<int>(EQUIP_POINTS[position]); } -void InventoryHandler::processPlayerStorageEquip(Net::MessageIn &msg) -{ - BLOCK_START("InventoryHandler::processPlayerStorageEquip") - msg.readInt16(); // length - const int number = (msg.getLength() - 4) / 20; - - for (int loop = 0; loop < number; loop++) - { - int cards[4]; - const int index = msg.readInt16() - STORAGE_OFFSET; - const int itemId = msg.readInt16(); - const uint8_t itemType = msg.readUInt8(); - uint8_t identified = msg.readUInt8(); - const int amount = 1; - msg.readInt16(); // Equip Point? - msg.readInt16(); // Another Equip Point? - msg.readUInt8(); // Attribute (broken) - const uint8_t refine = msg.readUInt8(); - for (int i = 0; i < 4; i++) - cards[i] = msg.readInt16(); - - if (mDebugInventory) - { - logger->log("Index: %d, ID: %d, Type: %d, Identified: %u, " - "Qty: %d, Cards: %d, %d, %d, %d, Refine: %u", - index, itemId, itemType, - static_cast<unsigned int>(identified), amount, - cards[0], cards[1], cards[2], cards[3], - static_cast<unsigned int>(refine)); - } - - if (serverVersion < 1 && identified > 1U) - identified = 1U; - - mInventoryItems.push_back(Ea::InventoryItem(index, - itemId, amount, refine, identified, false)); - } - BLOCK_END("InventoryHandler::processPlayerStorageEquip") -} - void InventoryHandler::processPlayerInventoryRemove(Net::MessageIn &msg) { BLOCK_START("InventoryHandler::processPlayerInventoryRemove") |