[Inventory] Remove Trader's Satchel ID from inventory.cpp (#1423)

* Remove Trader's Satchel ID from inventory.cpp

Not sure if this is the right way to do this, but seems to work...

* Update inventory.cpp

Readibility.
This commit is contained in:
Kurt Gilpin 2021-06-24 14:14:00 -05:00 committed by GitHub
parent 1f154af2ca
commit 5a2b5cd295
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1673,7 +1673,10 @@ bool Client::SwapItem(MoveItem_Struct* move_in) {
if (dstbag)
dstbagid = dstbag->GetItem()->ID;
}
if (srcitemid==17899 || srcbagid==17899 || dstitemid==17899 || dstbagid==17899){
if ((srcbagid && srcbag->GetItem()->BagType == EQ::item::BagTypeTradersSatchel) ||
(dstbagid && dstbag->GetItem()->BagType == EQ::item::BagTypeTradersSatchel) ||
(srcitemid && src_inst->GetItem()->BagType == EQ::item::BagTypeTradersSatchel) ||
(dstitemid && dst_inst->GetItem()->BagType == EQ::item::BagTypeTradersSatchel)) {
this->Trader_EndTrader();
this->Message(Chat::Red,"You cannot move your Trader Satchels, or items inside them, while Trading.");
}