share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death01.lua
changeset 12538 952afc3d2df2
parent 12535 baee67bfa5c2
child 12571 903a30fb49e6
equal deleted inserted replaced
12537:66566cfe0a7e 12538:952afc3d2df2
   266 -------------- ACTIONS ------------------
   266 -------------- ACTIONS ------------------
   267 
   267 
   268 function heroDeath(gear)
   268 function heroDeath(gear)
   269 	SendStat(siGameResult, loc("Hog Solo lost, try again!"))
   269 	SendStat(siGameResult, loc("Hog Solo lost, try again!"))
   270 	SendStat(siCustomAchievement, loc("To win the game you have to eliminate all your enemies."))
   270 	SendStat(siCustomAchievement, loc("To win the game you have to eliminate all your enemies."))
   271 	SendStat(siPlayerKills,'1',teamC.name)
   271 	sendSimpleTeamRankings({teamC.name, teamA.name})
   272 	SendStat(siPlayerKills,'0',teamA.name)
       
   273 	EndGame()
   272 	EndGame()
   274 end
   273 end
   275 
   274 
   276 function enemiesDeath(gear)
   275 function enemiesDeath(gear)
   277 	saveCompletedStatus(6)
   276 	saveCompletedStatus(6)
   278 	SendStat(siGameResult, loc("Congratulations, you won!"))
   277 	SendStat(siGameResult, loc("Congratulations, you won!"))
   279 	SendStat(siCustomAchievement, loc("You have successfully eliminated Professor Hogevil."))
   278 	SendStat(siCustomAchievement, loc("You have successfully eliminated Professor Hogevil."))
   280 	SendStat(siCustomAchievement, loc("You have rescued H and Dr. Cornelius."))
   279 	SendStat(siCustomAchievement, loc("You have rescued H and Dr. Cornelius."))
   281 	SendStat(siCustomAchievement, loc("You have acquired the last device part."))
   280 	SendStat(siCustomAchievement, loc("You have acquired the last device part."))
   282 	SendStat(siCustomAchievement, loc("Now go and play the menu mission to complete the campaign."))
   281 	SendStat(siCustomAchievement, loc("Now go and play the menu mission to complete the campaign."))
   283 	SendStat(siPlayerKills,'1',teamA.name)
   282 	sendSimpleTeamRankings({teamA.name, teamC.name})
   284 	SendStat(siPlayerKills,'0',teamC.name)
       
   285 	EndGame()
   283 	EndGame()
   286 end
   284 end
   287 
   285 
   288 -------------- ANIMATIONS ------------------
   286 -------------- ANIMATIONS ------------------
   289 
   287