summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/skillhandler.cpp12
-rw-r--r--src/net/tmwa/skillhandler.h4
2 files changed, 16 insertions, 0 deletions
diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp
index da6a04b7e..26902f18e 100644
--- a/src/net/tmwa/skillhandler.cpp
+++ b/src/net/tmwa/skillhandler.cpp
@@ -93,6 +93,18 @@ void SkillHandler::usePos(const int id, const int level,
outMsg.writeInt16(static_cast<int16_t>(y));
}
+void SkillHandler::usePos(const int id, const int level,
+ const int x, const int y,
+ const std::string &text) const
+{
+ MessageOut outMsg(CMSG_SKILL_USE_POSITION_MORE);
+ outMsg.writeInt16(static_cast<int16_t>(level), "level");
+ outMsg.writeInt16(static_cast<int16_t>(id), "id");
+ outMsg.writeInt16(static_cast<int16_t>(x), "x");
+ outMsg.writeInt16(static_cast<int16_t>(y), "y");
+ outMsg.writeString(text, 80, "text");
+}
+
void SkillHandler::useMap(const int id, const std::string &map) const
{
MessageOut outMsg(CMSG_SKILL_USE_MAP);
diff --git a/src/net/tmwa/skillhandler.h b/src/net/tmwa/skillhandler.h
index a0be82c63..a1029ae6b 100644
--- a/src/net/tmwa/skillhandler.h
+++ b/src/net/tmwa/skillhandler.h
@@ -45,6 +45,10 @@ class SkillHandler final : public MessageHandler, public Ea::SkillHandler
void usePos(const int id, const int level,
const int x, const int y) const override final;
+ void usePos(const int id, const int level,
+ const int x, const int y,
+ const std::string &text) const override final;
+
void useMap(const int id, const std::string &map) const override final;
protected: