TS: Simplify mission panel, fix bad string concatenation
authorWuzzy <Wuzzy2@mail.ru>
Sat, 05 Jan 2019 21:07:22 +0100
changeset 14541 c96079ee4687
parent 14540 213a636f57fe
child 14542 8a11548cb1d2
TS: Simplify mission panel, fix bad string concatenation
share/hedgewars/Data/Scripts/Multiplayer/The_Specialists.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/The_Specialists.lua	Sat Jan 05 20:58:12 2019 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/The_Specialists.lua	Sat Jan 05 21:07:22 2019 +0100
@@ -219,24 +219,12 @@
 	ClearGameFlags()
 	EnableGameFlags(gfResetWeps, gfInfAttack, gfPlaceHog, gfPerHogAmmo, gfSwitchHog)
 	HealthCaseProb = 100
+	Goals = loc("The Specialists: Each hedgehog starts with its own weapon set")
 end
 
 function onGameStart()
 
 	CreateTeam()
-
-	ShowMission(
-		loc("THE SPECIALISTS"),
-		loc("a Hedgewars mini-game"),
-		loc("Eliminate the enemy specialists.") .. "|" ..
-		" " .. "|" ..
-		loc("Game Modifiers: ") .. "|" ..
-		loc("Per-Hog Ammo") .. "|" ..
-		loc("Weapons Reset") .. "|" ..
-		loc("Unlimited Attacks") .. "|" ..
-		"", 4, 4000
-	)
-
 	trackTeams()
 
 end
@@ -245,7 +233,7 @@
 function onNewTurn()
 
 	started = true
-	AddCaption(loc("Prepare yourself") .. ", " .. GetHogName(CurrentHedgehog).. "!")
+	AddCaption(string.format(loc("Prepare yourself, %s!"), GetHogName(CurrentHedgehog)))
 
 end