summaryrefslogtreecommitdiff
path: root/src/actions
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
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')
-rw-r--r--src/actions/actions.cpp8
-rw-r--r--src/actions/actions.h1
2 files changed, 9 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());
diff --git a/src/actions/actions.h b/src/actions/actions.h
index bfacd0434..107f978aa 100644
--- a/src/actions/actions.h
+++ b/src/actions/actions.h
@@ -102,6 +102,7 @@ namespace Actions
decHandler(uploadLog);
decHandler(mercenaryFire);
decHandler(mercenaryToMaster);
+ decHandler(homunculusToMaster);
decHandler(useItem);
decHandler(useItemInv);
decHandler(invToStorage);