share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/final.lua
changeset 11949 079d687671b2
parent 11692 68eddcdc9f26
child 11952 63988f36debf
equal deleted inserted replaced
11948:6da9bb4b3449 11949:079d687671b2
   149 	EndGame()
   149 	EndGame()
   150 end
   150 end
   151 
   151 
   152 function heroWin(gear)
   152 function heroWin(gear)
   153 	saveCompletedStatus(7)
   153 	saveCompletedStatus(7)
       
   154 	SaveCampaignVar("Won", "true")
   154 	SendStat(siGameResult, loc("Congratulations, you have saved Hogera!"))
   155 	SendStat(siGameResult, loc("Congratulations, you have saved Hogera!"))
   155 	SendStat(siCustomAchievement, loc("Hogera is safe!"))
   156 	SendStat(siCustomAchievement, loc("Hogera is safe!"))
   156 	SendStat(siPlayerKills,'1',teamA.name)
   157 	SendStat(siPlayerKills,'1',teamA.name)
   157 	EndGame()
   158 	EndGame()
   158 end
   159 end