summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-22 21:57:15 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-22 21:57:15 +0300
commit917235b0e5ffd8e8e7ec32ea65ca537f0217b954 (patch)
tree547e6c6ec98080de98919214ca04a388239baede /src/actions/actions.cpp
parent0f6dad4c14f1f87797f903d8b4c4b87dcbc6a907 (diff)
downloadmv-917235b0e5ffd8e8e7ec32ea65ca537f0217b954.tar.gz
mv-917235b0e5ffd8e8e7ec32ea65ca537f0217b954.tar.bz2
mv-917235b0e5ffd8e8e7ec32ea65ca537f0217b954.tar.xz
mv-917235b0e5ffd8e8e7ec32ea65ca537f0217b954.zip
Add chat command for feed pet.
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index afd774b79..f9ce46cd9 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -90,12 +90,13 @@
#include "net/ipc.h"
#include "net/mercenaryhandler.h"
#include "net/net.h"
-#include "net/vendinghandler.h"
#include "net/npchandler.h"
#include "net/playerhandler.h"
+#include "net/pethandler.h"
#include "net/serverfeatures.h"
#include "net/uploadcharinfo.h"
#include "net/tradehandler.h"
+#include "net/vendinghandler.h"
#include "resources/iteminfo.h"
#include "resources/memorymanager.h"
@@ -1616,6 +1617,13 @@ impHandler0(homunculusFeed)
return true;
}
+impHandler0(petFeed)
+{
+ if (petHandler != nullptr)
+ petHandler->feed();
+ return true;
+}
+
impHandler(useItem)
{
const int itemId = atoi(event.args.c_str());