share/hedgewars/Data/Missions/Scenario/User_Mission_-_Teamwork_2.lua
changeset 14503 d4aa64f51c9f
parent 14487 734a7af2dfc2
child 14516 ff2c1f25fc03
--- a/share/hedgewars/Data/Missions/Scenario/User_Mission_-_Teamwork_2.lua	Thu Dec 20 15:53:22 2018 +0100
+++ b/share/hedgewars/Data/Missions/Scenario/User_Mission_-_Teamwork_2.lua	Thu Dec 20 17:51:46 2018 +0100
@@ -9,7 +9,7 @@
 local Pack = nil
 local help = false
 local GameOver = false
-local playerTeamName = loc("Feeble Resistance")
+local playerTeamName
 
 function onGameInit()
 	Seed = 0
@@ -26,9 +26,10 @@
 	Map = "CrazyMission"
 	Theme = "CrazyMission"
 
-	AddTeam(playerTeamName, -1, "Statue", "Island", "Default", "cm_kiwi")
-	player = AddHog(loc("Greg"), 0, 30, "NoHat")
-	hlayer = AddHog(loc("Mark"), 0, 40, "NoHat")
+	local idx = AddMissionTeam(-1)
+	playerTeamName = GetTeamName(idx)
+	player = AddMissionHog(30)
+	hlayer = AddMissionHog(40)
 
 	AddTeam(loc("Cybernetic Empire"), -6, "ring", "Island", "Robot", "cm_binary")
 	enemy = AddHog(loc("WatchBot 4000"), 5, 50, "cyborg1")