summaryrefslogtreecommitdiff
path: root/src/net/eathena/refinehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/refinehandler.cpp')
-rw-r--r--src/net/eathena/refinehandler.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/refinehandler.cpp b/src/net/eathena/refinehandler.cpp
index c6b3e0d25..d602250a3 100644
--- a/src/net/eathena/refinehandler.cpp
+++ b/src/net/eathena/refinehandler.cpp
@@ -50,4 +50,20 @@ void RefineHandler::addItem(const Item *const item) const
item->getInvIndex() + INVENTORY_OFFSET), "inv index");
}
+void RefineHandler::refineItem(const Item *const item1,
+ const Item *const item2,
+ int blessing) const
+{
+ if (item1 == nullptr ||
+ item2 == nullptr)
+ {
+ return;
+ }
+ createOutPacket(CMSG_REFINE_ITEM);
+ outMsg.writeInt16(CAST_S16(
+ item1->getInvIndex() + INVENTORY_OFFSET), "inv index");
+ outMsg.writeItemId(item2->getId(), "item id");
+ outMsg.writeInt8(blessing, "blessing");
+}
+
} // namespace EAthena