stats in case of win spacecampaign
authorPeriklis Ntanasis <pntanasis@gmail.com>
Sun, 11 Aug 2013 22:28:58 +0300
branchspacecampaign
changeset 9520 34c7ba17c66b
parent 9518 549ca737206c
child 9523 dd6c61b81c78
stats in case of win
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua	Sat Aug 10 22:57:27 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua	Sun Aug 11 22:28:58 2013 +0300
@@ -298,11 +298,21 @@
 
 function battleWin(gear)
 	-- add stats
+	SendStat('siGameResult', loc("Green Bananas won!")) --1
+	SendStat('siCustomAchievement', loc("You have eliminated all the visible enemy hogs!")) --11
+	SendStat('siPlayerKills','1',teamA.name)
+	SendStat('siPlayerKills','1',teamB.name)
+	SendStat('siPlayerKills','0',teamC.name)
 	EndGame()
 end
 
 function escapeWin(gear)
 	-- add stats
+	SendStat('siGameResult', loc("Hog Solo escaped successfully!")) --1
+	SendStat('siCustomAchievement', loc("You have reached the flying area successfully!")) --11
+	SendStat('siPlayerKills','1',teamA.name)
+	SendStat('siPlayerKills','0',teamB.name)
+	SendStat('siPlayerKills','0',teamC.name)
 	EndGame()
 end