From 16b5c64933bf29d8e56e0d989ebab18ddae143a8 Mon Sep 17 00:00:00 2001 From: Joseph Botosh Date: Tue, 17 Feb 2015 21:47:01 +0200 Subject: Add key to heal most damaged player --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 5 +++++ src/input/pages/other.cpp | 6 ++++++ 3 files changed, 12 insertions(+) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 9bc25f49d..8ce40ffe2 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -536,6 +536,7 @@ namespace InputAction CHAT_GUILD_TAB, DROP_CLEAR, WINDOW_CART, + HEAL_MOST_DAMAGED, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 013efa81f..57cd4d7fe 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3974,6 +3974,11 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputCondition::SHORTCUT0, "cart|opencart", false}, + {"keyMagicHealMostDamaged", + defaultAction(&Actions::healmd), + InputCondition::GAME | InputCondition::VALIDSPEED, + "healmd|saveass", + false}, }; #undef defaultAction diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index 92de50f58..98714bd9a 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -145,6 +145,12 @@ SetupActionData setupActionDataOther[] = InputAction::MAGIC_INMA1, "", }, + { + // TRANSLATORS: input action name + N_("Heal the most injured player"), + InputAction::HEAL_MOST_DAMAGED, + "", + }, { // TRANSLATORS: input action name N_("Use #itenplz spell"), -- cgit v1.2.3-60-g2f50