share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/final.lua
changeset 12539 19192a3cb674
parent 12538 952afc3d2df2
child 12581 a85de735f87c
equal deleted inserted replaced
12538:952afc3d2df2 12539:19192a3cb674
   147 function heroDeath(gear)
   147 function heroDeath(gear)
   148 	SendStat(siGameResult, loc("Hog Solo lost, try again!"))
   148 	SendStat(siGameResult, loc("Hog Solo lost, try again!"))
   149 	SendStat(siCustomAchievement, loc("You have to destroy all the explosives without dying!"))
   149 	SendStat(siCustomAchievement, loc("You have to destroy all the explosives without dying!"))
   150 	SendStat(siCustomAchievement, loc("Red areas are indestructible."))
   150 	SendStat(siCustomAchievement, loc("Red areas are indestructible."))
   151 	SendStat(siCustomAchievement, loc("Green areas are portal-proof and repel portals."))
   151 	SendStat(siCustomAchievement, loc("Green areas are portal-proof and repel portals."))
   152 	SendStat(siPlayerKills,'0',teamA.name)
   152 	sendSimpleTeamRankings({teamA.name})
   153 	EndGame()
   153 	EndGame()
   154 end
   154 end
   155 
   155 
   156 function heroWin(gear)
   156 function heroWin(gear)
   157 	saveCompletedStatus(7)
   157 	saveCompletedStatus(7)
   158 	SaveCampaignVar("Won", "true")
   158 	SaveCampaignVar("Won", "true")
   159 	checkAllMissionsCompleted()
   159 	checkAllMissionsCompleted()
   160 	SendStat(siGameResult, loc("Congratulations, you have saved Hogera!"))
   160 	SendStat(siGameResult, loc("Congratulations, you have saved Hogera!"))
   161 	SendStat(siCustomAchievement, loc("Hogera is safe!"))
   161 	SendStat(siCustomAchievement, loc("Hogera is safe!"))
   162 	SendStat(siPlayerKills,'0',teamA.name)
   162 	sendSimpleTeamRankings({teamA.name})
   163 	EndGame()
   163 	EndGame()
   164 end
   164 end