share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/final.lua
changeset 14488 7bb7e5e54f70
parent 13770 baf15d31cd42
child 14898 4596357d002d
equal deleted inserted replaced
14487:d72fb761aa59 14488:7bb7e5e54f70
    48 	Theme = "EarthRise"
    48 	Theme = "EarthRise"
    49 	-- Disable Sudden Death
    49 	-- Disable Sudden Death
    50 	WaterRise = 0
    50 	WaterRise = 0
    51 	HealthDecrease = 0
    51 	HealthDecrease = 0
    52 
    52 
    53 	-- Hog Solo
    53 	-- Hero
    54 	AddTeam(teamA.name, teamA.color, "Simple", "Island", "Default", "hedgewars")
    54 	teamA.name = AddMissionTeam(teamA.color)
    55 	hero.gear = AddHog(hero.name, 0, 1, "war_desertgrenadier1")
    55 	hero.gear = AddMissionHog(1)
       
    56 	hero.name = GetHogName(hero.gear)
    56 	AnimSetGearPosition(hero.gear, hero.x, hero.y)
    57 	AnimSetGearPosition(hero.gear, hero.x, hero.y)
    57 
    58 
    58 	initCheckpoint("final")
    59 	initCheckpoint("final")
    59 
    60 
    60 	AnimInit()
    61 	AnimInit()
   149 end
   150 end
   150 
   151 
   151 -------------- ACTIONS ------------------
   152 -------------- ACTIONS ------------------
   152 
   153 
   153 function heroDeath(gear)
   154 function heroDeath(gear)
   154 	SendStat(siGameResult, loc("Hog Solo lost, try again!"))
   155 	SendStat(siGameResult, string.format(loc("%s lost, try again!"), hero.name))
   155 	SendStat(siCustomAchievement, loc("You have to destroy all the explosives without dying!"))
   156 	SendStat(siCustomAchievement, loc("You have to destroy all the explosives without dying!"))
   156 	SendStat(siCustomAchievement, loc("Areas surrounded by a security border are indestructible."))
   157 	SendStat(siCustomAchievement, loc("Areas surrounded by a security border are indestructible."))
   157 	SendStat(siCustomAchievement, loc("Areas surrounded by a green dashed outline are portal-proof and repel portals."))
   158 	SendStat(siCustomAchievement, loc("Areas surrounded by a green dashed outline are portal-proof and repel portals."))
   158 	sendSimpleTeamRankings({teamA.name})
   159 	sendSimpleTeamRankings({teamA.name})
   159 	EndGame()
   160 	EndGame()