diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-22 21:26:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-22 21:26:32 +0300 |
commit | 70f7db29f291ea22e6dca7c03540beded7ec7bf8 (patch) | |
tree | f8acd516a552ad34fcf8f4d84169d90e001f55ad /src/actions | |
parent | 1e7d0d8e9873283a0ec09a62e579b718c3c06e51 (diff) | |
download | manaverse-70f7db29f291ea22e6dca7c03540beded7ec7bf8.tar.gz manaverse-70f7db29f291ea22e6dca7c03540beded7ec7bf8.tar.bz2 manaverse-70f7db29f291ea22e6dca7c03540beded7ec7bf8.tar.xz manaverse-70f7db29f291ea22e6dca7c03540beded7ec7bf8.zip |
Add chat command for feed homunculus.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/actions.cpp | 7 | ||||
-rw-r--r-- | src/actions/actions.h | 1 |
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); |