share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert02.lua
changeset 14488 7bb7e5e54f70
parent 14401 6c21bd8547dd
child 14575 28d00ceb8b54
equal deleted inserted replaced
14487:d72fb761aa59 14488:7bb7e5e54f70
    73 	WaterRise = 150
    73 	WaterRise = 150
    74 	HealthDecrease = 0
    74 	HealthDecrease = 0
    75 	Map = "desert02_map"
    75 	Map = "desert02_map"
    76 	Theme = "Desert"
    76 	Theme = "Desert"
    77 
    77 
    78 	-- Hog Solo
    78 	-- Hero
    79 	AddTeam(teamA.name, teamA.color, "Simple", "Island", "Default", "hedgewars")
    79 	teamA.name = AddMissionTeam(teamA.color)
    80 	hero.gear = AddHog(hero.name, 0, 100, "war_desertgrenadier1")
    80 	hero.gear = AddMissionHog(100)
       
    81 	hero.name = GetHogName(hero.gear)
    81 	AnimSetGearPosition(hero.gear, hero.x, hero.y)
    82 	AnimSetGearPosition(hero.gear, hero.x, hero.y)
    82 	HogTurnLeft(hero.gear, true)
    83 	HogTurnLeft(hero.gear, true)
    83 
    84 
    84 	initCheckpoint("desert02")
    85 	initCheckpoint("desert02")
    85 
    86 
   170 end
   171 end
   171 
   172 
   172 -------------- ACTIONS ------------------
   173 -------------- ACTIONS ------------------
   173 
   174 
   174 function heroDeath(gear)
   175 function heroDeath(gear)
   175 	SendStat(siGameResult, loc("Hog Solo lost, try again!"))
   176 	SendStat(siGameResult, string.format(loc("%s lost, try again!"), hero.name))
   176 	SendStat(siCustomAchievement, loc("To win the game you have to go to the surface."))
   177 	SendStat(siCustomAchievement, loc("To win the game you have to go to the surface."))
   177 	SendStat(siCustomAchievement, loc("Most mines are not active."))
   178 	SendStat(siCustomAchievement, loc("Most mines are not active."))
   178 	SendStat(siCustomAchievement, loc("From the second turn and beyond the water rises."))
   179 	SendStat(siCustomAchievement, loc("From the second turn and beyond the water rises."))
   179 	sendSimpleTeamRankings({teamA.name})
   180 	sendSimpleTeamRankings({teamA.name})
   180 	EndGame()
   181 	EndGame()