share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit03.lua
changeset 12538 952afc3d2df2
parent 12514 d89dabfd07ce
child 12573 a778c1bb032e
equal deleted inserted replaced
12537:66566cfe0a7e 12538:952afc3d2df2
   209 
   209 
   210 function heroDeath(gear)
   210 function heroDeath(gear)
   211 	SendStat(siGameResult, loc("Hog Solo lost, try again!"))
   211 	SendStat(siGameResult, loc("Hog Solo lost, try again!"))
   212 	SendStat(siCustomAchievement, loc("You have to eliminate all the enemies."))
   212 	SendStat(siCustomAchievement, loc("You have to eliminate all the enemies."))
   213 	SendStat(siCustomAchievement, loc("Read the challenge objectives from within the mission for more details."))
   213 	SendStat(siCustomAchievement, loc("Read the challenge objectives from within the mission for more details."))
   214 	SendStat(siPlayerKills,'1',teamB.name)
   214 	sendSimpleTeamRankings({teamB.name, teamC.name, teamA.name})
   215 	SendStat(siPlayerKills,'0',teamA.name)
       
   216 	EndGame()
   215 	EndGame()
   217 end
   216 end
   218 
   217 
   219 function heroWin(gear)
   218 function heroWin(gear)
   220 	saveBonus(2, 1)
   219 	saveBonus(2, 1)
   229 		if record ~= nil then
   228 		if record ~= nil then
   230 			SendStat(siCustomAchievement, loc("This is a new personal best, congratulations!"))
   229 			SendStat(siCustomAchievement, loc("This is a new personal best, congratulations!"))
   231 		end
   230 		end
   232 	end
   231 	end
   233 	SendStat(siCustomAchievement, loc("You will gain some extra ammo from the crates the next time you play the \"Getting to the device\" mission."))
   232 	SendStat(siCustomAchievement, loc("You will gain some extra ammo from the crates the next time you play the \"Getting to the device\" mission."))
   234 	SendStat(siPlayerKills,'1',teamA.name)
   233 	sendSimpleTeamRankings({teamA.name, teamB.name, teamC.name})
   235 	SaveCampaignVar("Mission10Won", "true")
   234 	SaveCampaignVar("Mission10Won", "true")
   236 	checkAllMissionsCompleted()
   235 	checkAllMissionsCompleted()
   237 	EndGame()
   236 	EndGame()
   238 end
   237 end
   239 
   238