summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-22 22:15:50 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-22 22:15:50 +0300
commit92eb0630eb067fbe0a18edb93a02f6fd424c3212 (patch)
tree8dc535f94f3fbf26979905f583af92ecb95f166f /src/actions
parent917235b0e5ffd8e8e7ec32ea65ca537f0217b954 (diff)
downloadmanaplus-92eb0630eb067fbe0a18edb93a02f6fd424c3212.tar.gz
manaplus-92eb0630eb067fbe0a18edb93a02f6fd424c3212.tar.bz2
manaplus-92eb0630eb067fbe0a18edb93a02f6fd424c3212.tar.xz
manaplus-92eb0630eb067fbe0a18edb93a02f6fd424c3212.zip
Add chat command for drop pet's loot.
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 f9ce46cd9..96a6e48ca 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -1624,6 +1624,13 @@ impHandler0(petFeed)
return true;
}
+impHandler0(petDropLoot)
+{
+ if (petHandler != nullptr)
+ petHandler->dropLoot();
+ 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 f7f5ea0ba..bbe1c4847 100644
--- a/src/actions/actions.h
+++ b/src/actions/actions.h
@@ -105,6 +105,7 @@ namespace Actions
decHandler(homunculusToMaster);
decHandler(homunculusFeed);
decHandler(petFeed);
+ decHandler(petDropLoot);
decHandler(useItem);
decHandler(useItemInv);
decHandler(invToStorage);