summaryrefslogtreecommitdiff
path: root/src/gamemodifiers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamemodifiers.cpp')
-rw-r--r--src/gamemodifiers.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gamemodifiers.cpp b/src/gamemodifiers.cpp
index ba0bdaab6..e55c4060f 100644
--- a/src/gamemodifiers.cpp
+++ b/src/gamemodifiers.cpp
@@ -87,6 +87,7 @@ void GameModifiers::init()
settings.followMode = config.getIntValue("followMode");
settings.attackWeaponType = config.getIntValue("attackWeaponType");
settings.attackType = config.getIntValue("attackType");
+ settings.targetingType = config.getIntValue("targetingType");
settings.quickDropCounter = config.getIntValue("quickDropCounter");
settings.pickUpType = config.getIntValue("pickUpType");
settings.magicAttackType = config.getIntValue("magicAttackType");
@@ -269,6 +270,16 @@ addModifier2(AttackType, attackType, "attackType", 4,
N_("(?) attack")
})
+addModifier2(TargetingType, targetingType, "targetingType", 2,
+{
+ // TRANSLATORS: targeting type in status bar
+ N_("(D) don't switch target"),
+ // TRANSLATORS: targeting type in status bar
+ N_("(C) always attack closest"),
+ // TRANSLATORS: targeting type in status bar
+ N_("(?) targeting")
+})
+
const unsigned GameModifiers::mQuickDropCounterSize = 31;
changeMethod(QuickDropCounter, quickDropCounter, "quickDropCounter")
@@ -490,6 +501,7 @@ void GameModifiers::resetModifiers()
settings.pvpAttackType = config.resetIntValue("pvpAttackType");
settings.quickDropCounter = config.resetIntValue("quickDropCounter");
settings.pickUpType = config.resetIntValue("pickUpType");
+ settings.targetingType = config.resetIntValue("targetingType");
settings.mapDrawType = MapType::NORMAL;
if (viewport)
{