diff options
author | Joseph Botosh <rumly111@gmail.com> | 2015-06-05 20:34:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-25 21:38:30 +0300 |
commit | f67a60ea6108e2c70186bf4742c223179ac5f4be (patch) | |
tree | c057d9dc5a8c9716b24b5ba2dc4cb576832ee1dc /src/gamemodifiers.cpp | |
parent | 760b544fb26dcfc5103a44bf977cd8cd95b0862a (diff) | |
download | plus-f67a60ea6108e2c70186bf4742c223179ac5f4be.tar.gz plus-f67a60ea6108e2c70186bf4742c223179ac5f4be.tar.bz2 plus-f67a60ea6108e2c70186bf4742c223179ac5f4be.tar.xz plus-f67a60ea6108e2c70186bf4742c223179ac5f4be.zip |
add targetingType feature
Diffstat (limited to 'src/gamemodifiers.cpp')
-rw-r--r-- | src/gamemodifiers.cpp | 12 |
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) { |