share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon02.lua
changeset 14578 50f511588635
parent 14577 221380cdee7e
child 14580 1a68c8a07d1f
equal deleted inserted replaced
14577:221380cdee7e 14578:50f511588635
   276 	SendStat(siGameResult, loc("Too slow! Try again ..."))
   276 	SendStat(siGameResult, loc("Too slow! Try again ..."))
   277 	SendStat(siCustomAchievement, loc("You have to catch the other hog 3 times."))
   277 	SendStat(siCustomAchievement, loc("You have to catch the other hog 3 times."))
   278 	SendStat(siCustomAchievement, loc("The time that you have left when you reach the blue hedgehog will be added to the next turn."))
   278 	SendStat(siCustomAchievement, loc("The time that you have left when you reach the blue hedgehog will be added to the next turn."))
   279 	SendStat(siCustomAchievement, loc("Each turn you'll have only one rope to use."))
   279 	SendStat(siCustomAchievement, loc("Each turn you'll have only one rope to use."))
   280 	SendStat(siCustomAchievement, loc("You'll lose if you die or if your time is up."))
   280 	SendStat(siCustomAchievement, loc("You'll lose if you die or if your time is up."))
   281 	SendStat(siPointType, loc("milliseconds"))
   281 	SendStat(siPointType, "!TIME")
   282 	SendStat(siPlayerKills, tostring(runnerTimeTotal), teamB.name)
   282 	SendStat(siPlayerKills, tostring(runnerTimeTotal), teamB.name)
   283 	SendStat(siPlayerKills, tostring(GetTeamStats(teamA.name).Kills), teamA.name)
   283 	SendStat(siPointType, "!EMPTY")
       
   284 	SendStat(siPlayerKills, "0", teamA.name)
   284 	EndGame()
   285 	EndGame()
   285 end
   286 end
   286 
   287 
   287 function win()
   288 function win()
   288 	SendStat(siGameResult, loc("Congratulations, you are the fastest!"))
   289 	SendStat(siGameResult, loc("Congratulations, you are the fastest!"))
   289 	-- siCustomAchievements were added earlier
   290 	-- siCustomAchievements were added earlier
   290 	SendStat(siPointType, loc("milliseconds"))
   291 	SendStat(siPointType, "!TIME")
   291 	SendStat(siPlayerKills, tostring(winningTime), teamA.name)
   292 	SendStat(siPlayerKills, tostring(winningTime), teamA.name)
   292 	SendStat(siPointType, loc("milliseconds"))
   293 	SendStat(siPointType, "!TIME")
   293 	SendStat(siPlayerKills, tostring(runnerTimeTotal), teamB.name)
   294 	SendStat(siPlayerKills, tostring(runnerTimeTotal), teamB.name)
   294 	SaveCampaignVar("Mission13Won", "true")
   295 	SaveCampaignVar("Mission13Won", "true")
   295 	checkAllMissionsCompleted()
   296 	checkAllMissionsCompleted()
   296 	EndGame()
   297 	EndGame()
   297 end
   298 end