summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-22 21:26:32 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-22 21:26:32 +0300
commit70f7db29f291ea22e6dca7c03540beded7ec7bf8 (patch)
treef8acd516a552ad34fcf8f4d84169d90e001f55ad /src/actions
parent1e7d0d8e9873283a0ec09a62e579b718c3c06e51 (diff)
downloadplus-70f7db29f291ea22e6dca7c03540beded7ec7bf8.tar.gz
plus-70f7db29f291ea22e6dca7c03540beded7ec7bf8.tar.bz2
plus-70f7db29f291ea22e6dca7c03540beded7ec7bf8.tar.xz
plus-70f7db29f291ea22e6dca7c03540beded7ec7bf8.zip
Add chat command for feed homunculus.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp7
-rw-r--r--src/actions/actions.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index 65de77689..afd774b79 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -1609,6 +1609,13 @@ impHandler0(homunculusToMaster)
return true;
}
+impHandler0(homunculusFeed)
+{
+ if (homunculusHandler != nullptr)
+ homunculusHandler->feed();
+ 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 107f978aa..83072680c 100644
--- a/src/actions/actions.h
+++ b/src/actions/actions.h
@@ -103,6 +103,7 @@ namespace Actions
decHandler(mercenaryFire);
decHandler(mercenaryToMaster);
decHandler(homunculusToMaster);
+ decHandler(homunculusFeed);
decHandler(useItem);
decHandler(useItemInv);
decHandler(invToStorage);