From f67a60ea6108e2c70186bf4742c223179ac5f4be Mon Sep 17 00:00:00 2001 From: Joseph Botosh Date: Fri, 5 Jun 2015 20:34:19 +0300 Subject: add targetingType feature --- src/gamemodifiers.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/gamemodifiers.cpp') 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) { -- cgit v1.2.3-60-g2f50