share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua
changeset 12591 7510fe66bfbb
parent 12580 0c5ce463949b
child 12592 0b27d8b4f8e7
equal deleted inserted replaced
12590:b28f09d70e73 12591:7510fe66bfbb
   109 	WaterRise = 0
   109 	WaterRise = 0
   110 	Delay = 5
   110 	Delay = 5
   111 	Map = "moon01_map"
   111 	Map = "moon01_map"
   112 	Theme = "Cheese" -- Because ofc moon is made of cheese :)
   112 	Theme = "Cheese" -- Because ofc moon is made of cheese :)
   113 	-- Hog Solo
   113 	-- Hog Solo
   114 	AddTeam(teamD.name, teamD.color, "Bone", "Island", "HillBilly", "hedgewars")
   114 	AddTeam(teamD.name, teamD.color, "Simple", "Island", "HillBilly", "hedgewars")
   115 	if tonumber(GetCampaignVar("HeroHealth")) then
   115 	if tonumber(GetCampaignVar("HeroHealth")) then
   116 		hero.gear = AddHog(hero.name, 0, tonumber(GetCampaignVar("HeroHealth")), "war_desertgrenadier1")
   116 		hero.gear = AddHog(hero.name, 0, tonumber(GetCampaignVar("HeroHealth")), "war_desertgrenadier1")
   117 	else
   117 	else
   118 		hero.gear = AddHog(hero.name, 0, 100, "war_desertgrenadier1")
   118 		hero.gear = AddHog(hero.name, 0, 100, "war_desertgrenadier1")
   119 	end
   119 	end
   120 	AnimSetGearPosition(hero.gear, hero.x, hero.y)
   120 	AnimSetGearPosition(hero.gear, hero.x, hero.y)
   121 	-- PAotH
   121 	-- PAotH
   122 	AddTeam(teamA.name, teamA.color, "Bone", "Island", "HillBilly", "cm_galaxy")
   122 	AddTeam(teamA.name, teamA.color, "Earth", "Island", "HillBilly", "cm_galaxy")
   123 	paoth1.gear = AddHog(paoth1.name, 0, 100, "scif_2001O")
   123 	paoth1.gear = AddHog(paoth1.name, 0, 100, "scif_2001O")
   124 	AnimSetGearPosition(paoth1.gear, paoth1.x, paoth1.y)
   124 	AnimSetGearPosition(paoth1.gear, paoth1.x, paoth1.y)
   125 	HogTurnLeft(paoth1.gear, true)
   125 	HogTurnLeft(paoth1.gear, true)
   126 	paoth2.gear = AddHog(paoth2.name, 0, 100, "scif_2001Y")
   126 	paoth2.gear = AddHog(paoth2.name, 0, 100, "scif_2001Y")
   127 	AnimSetGearPosition(paoth2.gear, paoth2.x, paoth2.y)
   127 	AnimSetGearPosition(paoth2.gear, paoth2.x, paoth2.y)
   131 	HogTurnLeft(paoth3.gear, true)
   131 	HogTurnLeft(paoth3.gear, true)
   132 	paoth4.gear = AddHog(paoth4.name, 0, 100, "scif_2001Y")
   132 	paoth4.gear = AddHog(paoth4.name, 0, 100, "scif_2001Y")
   133 	AnimSetGearPosition(paoth4.gear, paoth4.x, paoth4.y)
   133 	AnimSetGearPosition(paoth4.gear, paoth4.x, paoth4.y)
   134 	HogTurnLeft(paoth4.gear, true)
   134 	HogTurnLeft(paoth4.gear, true)
   135 	-- Professor
   135 	-- Professor
   136 	AddTeam(teamC.name, teamC.color, "Bone", "Island", "HillBilly", "cm_sine")
   136 	AddTeam(teamC.name, teamC.color, "star", "Island", "HillBilly", "cm_sine")
   137 	professor.gear = AddHog(professor.name, 0, professor.health, "tophats")
   137 	professor.gear = AddHog(professor.name, 0, professor.health, "tophats")
   138 	AnimSetGearPosition(professor.gear, professor.x, professor.y)
   138 	AnimSetGearPosition(professor.gear, professor.x, professor.y)
   139 	HogTurnLeft(professor.gear, true)
   139 	HogTurnLeft(professor.gear, true)
   140 	-- Minions
   140 	-- Minions
   141 	AddTeam(teamB.name, teamB.color, "Bone", "Island", "HillBilly", "cm_sine")
   141 	AddTeam(teamB.name, teamB.color, "eyecross", "Island", "HillBilly", "cm_sine")
   142 	minion1.gear = AddHog(minion1.name, 1, 50, "Gasmask")
   142 	minion1.gear = AddHog(minion1.name, 1, 50, "Gasmask")
   143 	AnimSetGearPosition(minion1.gear, minion1.x, minion1.y)
   143 	AnimSetGearPosition(minion1.gear, minion1.x, minion1.y)
   144 	HogTurnLeft(minion1.gear, true)
   144 	HogTurnLeft(minion1.gear, true)
   145 	minion2.gear = AddHog(minion2.name, 1, 50, "Gasmask")
   145 	minion2.gear = AddHog(minion2.name, 1, 50, "Gasmask")
   146 	AnimSetGearPosition(minion2.gear, minion2.x, minion2.y)
   146 	AnimSetGearPosition(minion2.gear, minion2.x, minion2.y)