From 862e8f821789014b6167f37976b80694d6d310e3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 21 Apr 2017 04:44:53 +0300 Subject: Add item options into item and get it from server. --- src/net/tmwa/inventoryrecv.cpp | 2 ++ src/net/tmwa/traderecv.cpp | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/net/tmwa') diff --git a/src/net/tmwa/inventoryrecv.cpp b/src/net/tmwa/inventoryrecv.cpp index 9be77c993..974fd40c8 100644 --- a/src/net/tmwa/inventoryrecv.cpp +++ b/src/net/tmwa/inventoryrecv.cpp @@ -362,6 +362,7 @@ void InventoryRecv::processPlayerStorage(Net::MessageIn &msg) itemId, itemType, cards, + nullptr, amount, 0, ItemColor_one, @@ -448,6 +449,7 @@ void InventoryRecv::processPlayerStorageEquip(Net::MessageIn &msg) itemId, itemType, cards, + nullptr, amount, refine, ItemColor_one, diff --git a/src/net/tmwa/traderecv.cpp b/src/net/tmwa/traderecv.cpp index a737845fe..a8233ef50 100644 --- a/src/net/tmwa/traderecv.cpp +++ b/src/net/tmwa/traderecv.cpp @@ -79,6 +79,7 @@ void TradeRecv::processTradeItemAdd(Net::MessageIn &msg) tradeWindow->addItem2(type, ItemType::Unknown, cards, + nullptr, 4, false, amount, @@ -118,6 +119,7 @@ void TradeRecv::processTradeItemAddResponse(Net::MessageIn &msg) tradeWindow->addItem2(item->getId(), item->getType(), item->getCards(), + nullptr, 4, true, quantity, -- cgit v1.2.3-70-g09d2