From 1e7d0d8e9873283a0ec09a62e579b718c3c06e51 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 22 Jun 2017 21:13:07 +0300 Subject: Add chat command for move homunculus to master. --- src/actions/actions.cpp | 8 ++++++++ src/actions/actions.h | 1 + 2 files changed, 9 insertions(+) (limited to 'src/actions') 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); -- cgit v1.2.3-60-g2f50