From 9b553ed2102e12dd1e523cd9d09d3913c0f09cc5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 19 Jul 2012 00:24:38 +0300 Subject: Add new mode to move to target option "(B) attack range - 1". --- src/localplayer.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/localplayer.cpp b/src/localplayer.cpp index ef4d24a88..52d154231 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -1791,6 +1791,14 @@ void LocalPlayer::moveToTarget(int dist) dist = mAttackRange; if (dist == 1 && serverVersion < 1) dist = 2; + break; + case 8: + dist = mAttackRange - 1; + if (dist < 1) + dist = 1; + if (dist == 1 && serverVersion < 1) + dist = 2; + break; default: break; } @@ -1945,7 +1953,7 @@ std::string LocalPlayer::getCrazyMoveTypeString() } } -static const unsigned moveToTargetTypeSize = 8; +static const unsigned moveToTargetTypeSize = 9; void LocalPlayer::changeMoveToTargetType() { @@ -1963,6 +1971,7 @@ static const char *moveToTargetTypeStrings[] = N_("(7) moves to target in distance 7"), N_("(A) moves to target in attack range"), N_("(a) archer attack range"), + N_("(B) moves to target in attack range - 1"), N_("(?) move to target") }; -- cgit v1.2.3-70-g09d2