share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua
branchspacecampaign
changeset 9445 7656a8cb4b13
parent 9443 3fd77bcdd725
child 9447 285fb0e61a3f
equal deleted inserted replaced
9443:3fd77bcdd725 9445:7656a8cb4b13
   490 		AnimSay(hero.gear, loc("Haven't found it yet..."), SAY_THINK, 5000)
   490 		AnimSay(hero.gear, loc("Haven't found it yet..."), SAY_THINK, 5000)
   491 		cratesFound = cratesFound + 1
   491 		cratesFound = cratesFound + 1
   492 	elseif cratesFound == 1 then
   492 	elseif cratesFound == 1 then
   493 		-- end game
   493 		-- end game
   494 		AnimSay(hero.gear, loc("Hoo Ray!!!"), SAY_SHOUT, 5000)
   494 		AnimSay(hero.gear, loc("Hoo Ray!!!"), SAY_SHOUT, 5000)
   495 		-- do stats etc
   495 		SendStat('siGameResult', loc("Congratulations, you got the part!")) --1
       
   496 		SendStat('siCustomAchievement', loc("To win the game you had to collect 2 crates with no specific order")) --11
       
   497 		SendStat('siPlayerKills','1',teamC.name)
       
   498 		SendStat('siPlayerKills','0',teamB.name)
   496 		EndGame()
   499 		EndGame()
   497 	end
   500 	end
   498 end
   501 end