stats on case of win spacecampaign
authorPeriklis Ntanasis <pntanasis@gmail.com>
Thu, 01 Aug 2013 23:54:45 +0300
branchspacecampaign
changeset 9445 7656a8cb4b13
parent 9443 3fd77bcdd725
child 9447 285fb0e61a3f
stats on case of win
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua	Thu Aug 01 23:43:43 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua	Thu Aug 01 23:54:45 2013 +0300
@@ -492,7 +492,10 @@
 	elseif cratesFound == 1 then
 		-- end game
 		AnimSay(hero.gear, loc("Hoo Ray!!!"), SAY_SHOUT, 5000)
-		-- do stats etc
+		SendStat('siGameResult', loc("Congratulations, you got the part!")) --1
+		SendStat('siCustomAchievement', loc("To win the game you had to collect 2 crates with no specific order")) --11
+		SendStat('siPlayerKills','1',teamC.name)
+		SendStat('siPlayerKills','0',teamB.name)
 		EndGame()
 	end
 end
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua	Thu Aug 01 23:43:43 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua	Thu Aug 01 23:54:45 2013 +0300
@@ -380,7 +380,7 @@
 	AnimCaption(hero.gear, loc("Congrats! You won!"), 6000)
 	AnimWait(hero.gear,5000)	
 	
-	SendStat('siGameResult', loc("Hog Solo win, conrgatulations!")) --1
+	SendStat('siGameResult', loc("Hog Solo won, conrgatulations!")) --1
 	SendStat('siCustomAchievement', loc("Eliminated the evil minions")) --11
 	SendStat('siCustomAchievement', loc("Drove the professor away")) --11
 	SendStat('siPlayerKills','1',teamD.name)