summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-22 21:13:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-22 21:13:07 +0300
commit1e7d0d8e9873283a0ec09a62e579b718c3c06e51 (patch)
treef54c3317f1d3fe70cfc2634dba7b0a7744270ece /src/actions/actions.cpp
parentbda7b8cc0776456e8d392be45be9b74183cf0f37 (diff)
downloadplus-1e7d0d8e9873283a0ec09a62e579b718c3c06e51.tar.gz
plus-1e7d0d8e9873283a0ec09a62e579b718c3c06e51.tar.bz2
plus-1e7d0d8e9873283a0ec09a62e579b718c3c06e51.tar.xz
plus-1e7d0d8e9873283a0ec09a62e579b718c3c06e51.zip
Add chat command for move homunculus to master.
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index adc84b15f..65de77689 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -84,6 +84,7 @@
#include "net/buysellhandler.h"
#include "net/chathandler.h"
#include "net/download.h"
+#include "net/homunculushandler.h"
#include "net/gamehandler.h"
#include "net/inventoryhandler.h"
#include "net/ipc.h"
@@ -1601,6 +1602,13 @@ impHandler0(mercenaryToMaster)
return true;
}
+impHandler0(homunculusToMaster)
+{
+ if (homunculusHandler != nullptr)
+ homunculusHandler->moveToMaster();
+ return true;
+}
+
impHandler(useItem)
{
const int itemId = atoi(event.args.c_str());