share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua
changeset 12538 952afc3d2df2
parent 12527 b0492168f1ad
child 12571 903a30fb49e6
equal deleted inserted replaced
12537:66566cfe0a7e 12538:952afc3d2df2
   488 		saveCompletedStatus(5)
   488 		saveCompletedStatus(5)
   489 		AnimSay(hero.gear, loc("I found it! Hooray!"), SAY_SHOUT, 5000)
   489 		AnimSay(hero.gear, loc("I found it! Hooray!"), SAY_SHOUT, 5000)
   490 		PlaySound(sndVictory, hero.gear)
   490 		PlaySound(sndVictory, hero.gear)
   491 		SendStat(siGameResult, loc("Congratulations, you won!"))
   491 		SendStat(siGameResult, loc("Congratulations, you won!"))
   492 		SendStat(siCustomAchievement, loc("To win the game you had to collect the 2 crates with no specific order."))
   492 		SendStat(siCustomAchievement, loc("To win the game you had to collect the 2 crates with no specific order."))
   493 		SendStat(siPlayerKills,'1',teamC.name)
   493 		sendSimpleTeamRankings({teamC.name, teamA.name, teamB.name})
   494 		SendStat(siPlayerKills,'0',teamB.name)
       
   495 		EndGame()
   494 		EndGame()
   496 	end
   495 	end
   497 end
   496 end
   498 
   497 
   499 function lose()
   498 function lose()
   500 	SendStat(siGameResult, loc("Hog Solo lost, try again!"))
   499 	SendStat(siGameResult, loc("Hog Solo lost, try again!"))
   501 	SendStat(siCustomAchievement, loc("To win the game you have to find the right crate."))
   500 	SendStat(siCustomAchievement, loc("To win the game you have to find the right crate."))
   502 	SendStat(siCustomAchievement, loc("You can avoid some battles."))
   501 	SendStat(siCustomAchievement, loc("You can avoid some battles."))
   503 	SendStat(siCustomAchievement, loc("Use your ammo wisely."))
   502 	SendStat(siCustomAchievement, loc("Use your ammo wisely."))
   504 	SendStat(siCustomAchievement, loc("Don't destroy the device crate!"))
   503 	SendStat(siCustomAchievement, loc("Don't destroy the device crate!"))
   505 	SendStat(siPlayerKills,'1',teamB.name)
   504 	sendSimpleTeamRankings({teamB.name, teamC.name, teamA.name})
   506 	SendStat(siPlayerKills,'0',teamC.name)
       
   507 	EndGame()
   505 	EndGame()
   508 end
   506 end