summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index 7666825de..610b27194 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -258,6 +258,16 @@ void InventoryHandler::insertCard(const int cardIndex,
"item index");
}
+void InventoryHandler::favoriteItem(const Item *const item,
+ const bool favorite) const
+{
+ MessageOut outMsg(CMSG_PLAYER_FAVORITE_ITEM);
+ outMsg.writeInt16(static_cast<int16_t>(item->getInvIndex()
+ + INVENTORY_OFFSET),
+ "item index");
+ outMsg.writeInt8(favorite, "favorite flag");
+}
+
void InventoryHandler::processPlayerEquipment(Net::MessageIn &msg)
{
BLOCK_START("InventoryHandler::processPlayerEquipment")