summaryrefslogtreecommitdiff
path: root/src/input
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/input
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/input')
-rw-r--r--src/input/inputactionmap.h6
-rw-r--r--src/input/pages/other.cpp6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index 881368195..66224664c 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -5714,6 +5714,12 @@ static const InputActionData inputActionData
"homunculusfeed|homunfeed|feedhomun|feedhomunculus",
UseArgs_false,
Protected_false},
+ {"keyPetFeed",
+ defaultAction(&Actions::petFeed),
+ InputCondition::INGAME,
+ "petfeed|feedpet",
+ UseArgs_false,
+ Protected_false},
};
#undef defaultAction
diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp
index 3d37bd982..bcfab0806 100644
--- a/src/input/pages/other.cpp
+++ b/src/input/pages/other.cpp
@@ -434,6 +434,12 @@ SetupActionData setupActionDataOther[] =
"",
},
{
+ // TRANSLATORS: input action name
+ N_("Feed pet"),
+ InputAction::PET_FEED,
+ "",
+ },
+ {
"",
InputAction::NO_VALUE,
""