diff options
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/buysellrecv.cpp | 35 | ||||
-rw-r--r-- | src/net/ea/buysellrecv.h | 1 |
2 files changed, 0 insertions, 36 deletions
diff --git a/src/net/ea/buysellrecv.cpp b/src/net/ea/buysellrecv.cpp index 9ecaa5bbc..359e08038 100644 --- a/src/net/ea/buysellrecv.cpp +++ b/src/net/ea/buysellrecv.cpp @@ -90,39 +90,4 @@ void BuySellRecv::processNpcSell(Net::MessageIn &msg) } } -void BuySellRecv::processNpcBuyResponse(Net::MessageIn &msg) -{ - const uint8_t response = msg.readUInt8("response"); - if (response == 0U) - { - NotifyManager::notify(NotifyTypes::BUY_DONE); - return; - } - // Reset player money since buy dialog already assumed purchase - // would go fine - if (Ea::BuySellRecv::mBuyDialog) - { - Ea::BuySellRecv::mBuyDialog->setMoney( - PlayerInfo::getAttribute(Attributes::MONEY)); - } - switch (response) - { - case 1: - NotifyManager::notify(NotifyTypes::BUY_FAILED_NO_MONEY); - break; - - case 2: - NotifyManager::notify(NotifyTypes::BUY_FAILED_OVERWEIGHT); - break; - - case 3: - NotifyManager::notify(NotifyTypes::BUY_FAILED_TOO_MANY_ITEMS); - break; - - default: - NotifyManager::notify(NotifyTypes::BUY_FAILED); - break; - }; -} - } // namespace Ea diff --git a/src/net/ea/buysellrecv.h b/src/net/ea/buysellrecv.h index f00be68e8..6f32c7dc4 100644 --- a/src/net/ea/buysellrecv.h +++ b/src/net/ea/buysellrecv.h @@ -41,7 +41,6 @@ namespace Ea void processNpcBuySellChoice(Net::MessageIn &msg); void processNpcSell(Net::MessageIn &msg); - void processNpcBuyResponse(Net::MessageIn &msg); } // namespace BuySellRecv } // namespace Ea |