share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/final.lua
changeset 11965 72be38f6d0c0
parent 11952 63988f36debf
child 12049 030464f34d47
equal deleted inserted replaced
11964:f3c1679694d3 11965:72be38f6d0c0
   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("Mission1Won", "true")
       
   155 	SaveCampaignVar("Won", "true")
   154 	SaveCampaignVar("Won", "true")
       
   155 	checkAllMissionsCompleted()
   156 	SendStat(siGameResult, loc("Congratulations, you have saved Hogera!"))
   156 	SendStat(siGameResult, loc("Congratulations, you have saved Hogera!"))
   157 	SendStat(siCustomAchievement, loc("Hogera is safe!"))
   157 	SendStat(siCustomAchievement, loc("Hogera is safe!"))
   158 	SendStat(siPlayerKills,'1',teamA.name)
   158 	SendStat(siPlayerKills,'1',teamA.name)
   159 	EndGame()
   159 	EndGame()
   160 end
   160 end