--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert03.lua Fri Dec 21 02:07:11 2018 +0100
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert03.lua Fri Dec 21 06:33:33 2018 +0100
@@ -73,9 +73,10 @@
WaterRise = 0
HealthDecrease = 0
- -- Hog Solo
- AddTeam(teamA.name, teamA.color, "Simple", "Island", "Default", "hedgewars")
- hero.gear = AddHog(hero.name, 0, 1, "war_desertgrenadier1")
+ -- Hero
+ teamA.name = AddMissionTeam(teamA.color)
+ hero.gear = AddMissionHog(1)
+ hero.name = GetHogName(hero.gear)
AnimSetGearPosition(hero.gear, hero.x, hero.y)
initCheckpoint("desert03")
@@ -235,7 +236,7 @@
end
function gameOver()
- SendStat(siGameResult, loc("Hog Solo lost, try again!"))
+ SendStat(siGameResult, string.format(loc("%s lost, try again!"), hero.name))
SendStat(siCustomAchievement, loc("You have to destroy all the targets."))
SendStat(siCustomAchievement, loc("You will fail if you run out of ammo and there are still targets available."))
SendStat(siCustomAchievement, loc("Read the challenge objectives from within the mission for more details."))