share/hedgewars/Data/Missions/Training/Basic_Training_-_Flying_Saucer.lua
changeset 13745 2bb7141496a9
parent 13669 85506d95977d
child 13755 110d6c1e817f
equal deleted inserted replaced
13744:b3b55b03d499 13745:2bb7141496a9
   196 
   196 
   197 	SendStat(siGameResult, loc("You have finished the Flying Saucer Training!"))
   197 	SendStat(siGameResult, loc("You have finished the Flying Saucer Training!"))
   198 	SendStat(siCustomAchievement, loc("Good job!"))
   198 	SendStat(siCustomAchievement, loc("Good job!"))
   199 	SendStat(siPlayerKills, "0", loc("Hogonauts"))
   199 	SendStat(siPlayerKills, "0", loc("Hogonauts"))
   200 
   200 
   201 	TurnTimeLeft = 0
   201 	SetTurnTimeLeft(0)
   202 	EndGame()
   202 	EndGame()
   203 end,
   203 end,
   204 }
   204 }
   205 
   205 
   206 -- Just a wrapper for ShowMission
   206 -- Just a wrapper for ShowMission
   502 	end
   502 	end
   503 end
   503 end
   504 
   504 
   505 function onGameTick20()
   505 function onGameTick20()
   506 	if (TurnTimeLeft < 1500000 and not Objective) then
   506 	if (TurnTimeLeft < 1500000 and not Objective) then
   507 		TurnTimeLeft = TurnTime
   507 		SetTurnTimeLeft(TurnTime)
   508 	end
   508 	end
   509 	if Check then
   509 	if Check then
   510 		CheckTimer = CheckTimer - 20
   510 		CheckTimer = CheckTimer - 20
   511 		if CheckTimer <= 0 then
   511 		if CheckTimer <= 0 then
   512 			if HasHedgehogLandedYet() then
   512 			if HasHedgehogLandedYet() then