# HG changeset patch # User Periklis Ntanasis # Date 1376249338 -10800 # Node ID 34c7ba17c66b103cbdb2691045ac1bdb58c76e03 # Parent 549ca737206c88d7afa26de67a8da5adeddb88ea stats in case of win diff -r 549ca737206c -r 34c7ba17c66b 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