--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death01.lua Tue Apr 12 15:41:48 2016 -0400
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death01.lua Wed Apr 13 14:59:14 2016 +0200
@@ -44,17 +44,17 @@
local teamB = {}
local teamC = {}
-- hedgehogs values
-hero.name = "Hog Solo"
+hero.name = loc("Hog Solo")
hero.x = 520
hero.y = 845
hero.dead = false
-paoth1.name = "H"
+paoth1.name = loc("H")
paoth1.x = 3730
paoth1.y = 1480
-paoth2.name = "Dr.Cornelius"
+paoth2.name = loc("Dr. Cornelius")
paoth2.x = 3800
paoth2.y = 1480
-professor.name = "Prof. Hogevil"
+professor.name = loc("Prof. Hogevil")
professor.dead = false
thug1.x = 1265
thug1.y = 1400
@@ -123,7 +123,7 @@
HogTurnLeft(professor.bot, true)
professor.gear = professor.bot
for i=1,table.getn(thugs) do
- thugs[i].gear = AddHog(loc("thug").." #"..i, 1, thugs[i].health, "war_desertgrenadier1")
+ thugs[i].gear = AddHog(string.format(loc("Thug #%d"), i), 1, thugs[i].health, "war_desertgrenadier1")
AnimSetGearPosition(thugs[i].gear, thugs[i].x, thugs[i].y)
HogTurnLeft(thugs[i].gear, not thugs[i].turnLeft)
end
@@ -265,7 +265,7 @@
function heroDeath(gear)
SendStat(siGameResult, loc("Hog Solo lost, try again!"))
- SendStat(siCustomAchievement, loc("To win the game you have to eliminate all your enemies"))
+ SendStat(siCustomAchievement, loc("To win the game you have to eliminate all your enemies."))
SendStat(siPlayerKills,'1',teamC.name)
SendStat(siPlayerKills,'0',teamA.name)
EndGame()
@@ -274,10 +274,10 @@
function enemiesDeath(gear)
saveCompletedStatus(6)
SendStat(siGameResult, loc("Congratulations, you won!"))
- SendStat(siCustomAchievement, loc("You have successfully eliminated Professor Hogevil"))
- SendStat(siCustomAchievement, loc("You have rescued H and Dr.Cornelius"))
- SendStat(siCustomAchievement, loc("You have acquired the last device part"))
- SendStat(siCustomAchievement, loc("Now go and play the menu mission to complete the campaign"))
+ SendStat(siCustomAchievement, loc("You have successfully eliminated Professor Hogevil."))
+ SendStat(siCustomAchievement, loc("You have rescued H and Dr. Cornelius."))
+ SendStat(siCustomAchievement, loc("You have acquired the last device part."))
+ SendStat(siCustomAchievement, loc("Now go and play the menu mission to complete the campaign."))
SendStat(siPlayerKills,'1',teamA.name)
SendStat(siPlayerKills,'0',teamC.name)
EndGame()
@@ -296,11 +296,11 @@
-- DIALOG01, GAME START, INTRODUCTION
AddSkipFunction(dialog01, Skipanim, {dialog01})
table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}})
- table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("Somewhere in the uninhabitable Death Planet..."), 5000}})
+ table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("Somewhere on the uninhabitable Death Planet ..."), 5000}})
table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("Welcome Hog Solo, surprised to see me?"), SAY_SAY, 4000}})
table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("As you can see I have survived our last encounter and I had time to plot my master plan!"), SAY_SAY, 4000}})
table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("I've thought that the best way to get the device is to let you collect most of the parts for me!"), SAY_SAY, 4000}})
- table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("So, now I got the last part and I have your friends captured..."), SAY_SAY, 4000}})
+ table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("So, now I got the last part and I have your friends captured."), SAY_SAY, 4000}})
table.insert(dialog01, {func = AnimSay, args = {professor.human, loc("Will you give me the other parts?"), SAY_SAY, 4000}})
table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}})
table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("I will never hand you the parts!"), SAY_SAY, 4000}})