summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-06 19:49:15 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 19:49:15 +0300
commit575b5ce55b40ab3c923230299b893909ac0ab59e (patch)
treed0818a446aaa51054be6131407edf42897b93348 /src/net/ea
parentbd194dcc0f06959322253c91761a93d53c468ca0 (diff)
downloadplus-575b5ce55b40ab3c923230299b893909ac0ab59e.tar.gz
plus-575b5ce55b40ab3c923230299b893909ac0ab59e.tar.bz2
plus-575b5ce55b40ab3c923230299b893909ac0ab59e.tar.xz
plus-575b5ce55b40ab3c923230299b893909ac0ab59e.zip
Move processPlayerStorageAdd from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/inventoryhandler.cpp32
-rw-r--r--src/net/ea/inventoryhandler.h2
2 files changed, 0 insertions, 34 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp
index 5c4d2796c..488863a0d 100644
--- a/src/net/ea/inventoryhandler.cpp
+++ b/src/net/ea/inventoryhandler.cpp
@@ -286,38 +286,6 @@ void InventoryHandler::processPlayerStorageStatus(Net::MessageIn &msg)
BLOCK_END("InventoryHandler::processPlayerStorageStatus")
}
-void InventoryHandler::processPlayerStorageAdd(Net::MessageIn &msg)
-{
- BLOCK_START("InventoryHandler::processPlayerStorageAdd")
- // Move an item into storage
- const int index = msg.readInt16() - STORAGE_OFFSET;
- const int amount = msg.readInt32();
- const int itemId = msg.readInt16();
- unsigned char identified = msg.readUInt8();
- msg.readUInt8(); // attribute
- const uint8_t refine = msg.readUInt8();
- for (int i = 0; i < 4; i++)
- msg.readInt16(); // card i
-
- if (Item *const item = mStorage->getItem(index))
- {
- item->setId(itemId, identified);
- item->increaseQuantity(amount);
- }
- else
- {
- if (mStorage)
- {
- if (serverVersion < 1 && identified > 1)
- identified = 1;
-
- mStorage->setItem(index, itemId, amount,
- refine, identified, false);
- }
- }
- BLOCK_END("InventoryHandler::processPlayerStorageAdd")
-}
-
void InventoryHandler::processPlayerStorageRemove(Net::MessageIn &msg)
{
BLOCK_START("InventoryHandler::processPlayerStorageRemove")
diff --git a/src/net/ea/inventoryhandler.h b/src/net/ea/inventoryhandler.h
index 607ccdc0e..e0bfb6a1f 100644
--- a/src/net/ea/inventoryhandler.h
+++ b/src/net/ea/inventoryhandler.h
@@ -88,8 +88,6 @@ class InventoryHandler notfinal : public Net::InventoryHandler
void processPlayerStorageStatus(Net::MessageIn &msg);
- void processPlayerStorageAdd(Net::MessageIn &msg);
-
void processPlayerStorageRemove(Net::MessageIn &msg);
void processPlayerStorageClose(Net::MessageIn &msg);