diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-21 14:40:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-21 14:40:14 +0300 |
commit | 0875a6ddfda9ece1af4a818e38be1f99e578c59a (patch) | |
tree | 7bef19d2a2f41f090be11dfe5a8af88716e7b21c /src/net/eathena/inventoryhandler.cpp | |
parent | 40a60a7bb7fd3291fde0a2a689f674a8169c7b64 (diff) | |
download | plus-0875a6ddfda9ece1af4a818e38be1f99e578c59a.tar.gz plus-0875a6ddfda9ece1af4a818e38be1f99e578c59a.tar.bz2 plus-0875a6ddfda9ece1af4a818e38be1f99e578c59a.tar.xz plus-0875a6ddfda9ece1af4a818e38be1f99e578c59a.zip |
Add to item field favorite.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 4189dde81..fcdeb68c3 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -326,7 +326,9 @@ void InventoryHandler::processPlayerEquipment(Net::MessageIn &msg) if (inventory) { inventory->setItem(index, itemId, 1, refine, - 1, flags.bits.isIdentified, flags.bits.isDamaged, true, false); + 1, flags.bits.isIdentified, flags.bits.isDamaged, + flags.bits.isFavorite, + true, false); } if (equipType) @@ -422,7 +424,8 @@ void InventoryHandler::processPlayerInventoryAdd(Net::MessageIn &msg) amount += item->getQuantity(); inventory->setItem(index, itemId, amount, refine, - 1, identified != 0, damaged != 0, equipType != 0, false); + 1, identified != 0, damaged != 0, false, + equipType != 0, false); } ArrowsListener::distributeEvent(); } @@ -467,7 +470,8 @@ void InventoryHandler::processPlayerInventory(Net::MessageIn &msg) { inventory->setItem(index, itemId, amount, 0, 1, flags.bits.isIdentified, - flags.bits.isDamaged, false, false); + flags.bits.isDamaged, flags.bits.isFavorite, + false, false); } } BLOCK_END("InventoryHandler::processPlayerInventory") @@ -500,7 +504,7 @@ void InventoryHandler::processPlayerStorage(Net::MessageIn &msg) mInventoryItems.push_back(Ea::InventoryItem(index, itemId, amount, 0, 1, flags.bits.isIdentified, - flags.bits.isDamaged, false)); + flags.bits.isDamaged, flags.bits.isFavorite, false)); } BLOCK_END("InventoryHandler::processPlayerInventory") } @@ -599,7 +603,7 @@ void InventoryHandler::processPlayerStorageEquip(Net::MessageIn &msg) mInventoryItems.push_back(Ea::InventoryItem(index, itemId, amount, refine, 1, flags.bits.isIdentified, - flags.bits.isDamaged, false)); + flags.bits.isDamaged, flags.bits.isFavorite, false)); } BLOCK_END("InventoryHandler::processPlayerStorageEquip") } @@ -630,7 +634,7 @@ void InventoryHandler::processPlayerStorageAdd(Net::MessageIn &msg) if (mStorage) { mStorage->setItem(index, itemId, amount, - refine, 1, identified != 0, false, false, false); + refine, 1, identified != 0, false, false, false, false); } } BLOCK_END("InventoryHandler::processPlayerStorageAdd") |