ASA moon02: Tweak messages and blue hog face dir
authorWuzzy <Wuzzy2@mail.ru>
Thu, 14 Nov 2019 17:25:48 +0100
changeset 15510 d94c42c174a1
parent 15509 266ff128a65a
child 15511 f315bb93db1f
ASA moon02: Tweak messages and blue hog face dir
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon02.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon02.lua	Thu Nov 14 17:12:31 2019 +0100
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon02.lua	Thu Nov 14 17:25:48 2019 +0100
@@ -130,6 +130,9 @@
 			runnerTime = runnerTime + runner.places[currentPosition].turnTime
 			SetTeamLabel(teamB.name, string.format(loc("%.1fs"), runnerTime/1000))
 		else
+			if currentPosition > 2 then
+				AddCaption(loc("Go, get him again!"), capcolDefault, capgrpGameState)
+			end
 			SetWeapon(amRope)
 			SetTurnTimeLeft(runner.places[currentPosition].turnTime + previousTimeLeft)
 			previousTimeLeft = 0
@@ -268,9 +271,6 @@
 function moveRunner()
 	if currentPosition == 4 then
 		currentPosition = currentPosition + 1
-		if GetX(hero.gear) > GetX(runner.gear) then
-			HogTurnLeft(runner.gear, false)
-		end
 		AddAnim(dialog02)
 
 		-- Update time record
@@ -295,7 +295,6 @@
 		AddAmmo(hero.gear, amRope, 1)
 		if currentPosition ~= 1 then
 			if currentPosition > 1 and currentPosition < 4 then
-				AnimCaption(hero.gear, loc("Go, get him again!"), 3000)
 				AnimSay(runner.gear, loc("You got me!"), SAY_SAY, 3000)
 			end
 			runnerCaught = true
@@ -306,6 +305,9 @@
 		SetGearPosition(runner.gear, runner.places[currentPosition].x, runner.places[currentPosition].y)
 		EndTurn(true)
 	end
+	if runner.gear and hero.gear then
+		HogTurnLeft(runner.gear, GetX(hero.gear) < GetX(runner.gear))
+	end
 end
 
 function lose()