Use Goals instead of ShowMission for Highlander mission dialog
authorWuzzy <almikes@aol.com>
Sat, 21 Nov 2015 21:37:20 +0100
changeset 11494 e02f2e98bf71
parent 11492 806da449d355
child 11495 9cdc4ba2104d
Use Goals instead of ShowMission for Highlander mission dialog
share/hedgewars/Data/Scripts/Multiplayer/Highlander.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Highlander.lua	Sat Nov 21 21:23:05 2015 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Highlander.lua	Sat Nov 21 21:37:20 2015 +0100
@@ -242,6 +242,8 @@
 	EnableGameFlags(gfInfAttack, gfRandomOrder, gfPerHogAmmo)
 	DisableGameFlags(gfResetWeps, gfSharedAmmo)
 	HealthCaseProb = 100
+	Goals = loc("Highlander: Eliminate enemy hogs and take their weapons.") .."|" ..
+	loc("Weapons are reset on end of turn.")
 end
 
 function onGameStart()
@@ -271,16 +273,6 @@
 
     --WriteLnToConsole('utiltot:'..utiltot..' atktot:'..atktot)
         
-	ShowMission	(
-				loc("HIGHLANDER"),
-				loc("Not all hogs are born equal."),
-
-				"- " .. loc("Eliminate enemy hogs and take their weapons.") .. "|" ..
-				"- " .. loc("Per-Hog Ammo") .. "|" ..
-				"- " .. loc("Weapons reset.") .. "|" ..
-				"- " .. loc("Unlimited Attacks") .. "|" ..
-				"", 4, 4000
-				)
 
 	runOnGears(StartingSetUp)
 	runOnGears(ConvertValues)