share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit03.lua
changeset 12049 030464f34d47
parent 11965 72be38f6d0c0
child 12088 1da37e2ba6fd
equal deleted inserted replaced
12048:475a1289f940 12049:030464f34d47
    79 	Explosives = 0
    79 	Explosives = 0
    80 	Map = "fruit03_map"
    80 	Map = "fruit03_map"
    81 	Theme = "Fruit"
    81 	Theme = "Fruit"
    82 
    82 
    83 	-- Hog Solo
    83 	-- Hog Solo
    84 	AddTeam(teamA.name, teamA.color, "Bone", "Island", "HillBilly", "cm_birdy")
    84 	AddTeam(teamA.name, teamA.color, "Bone", "Island", "HillBilly", "hedgewars")
    85 	hero.gear = AddHog(hero.name, 0, 100, "war_desertgrenadier1")
    85 	hero.gear = AddHog(hero.name, 0, 100, "war_desertgrenadier1")
    86 	AnimSetGearPosition(hero.gear, hero.x, hero.y)
    86 	AnimSetGearPosition(hero.gear, hero.x, hero.y)
    87 	-- enemies
    87 	-- enemies
    88 	local hats = { "Bandit", "fr_apple", "fr_banana", "fr_lemon", "fr_orange",
    88 	local hats = { "Bandit", "fr_apple", "fr_banana", "fr_lemon", "fr_orange",
    89 					"fr_pumpkin", "Gasmask", "NinjaFull", "NinjaStraight", "NinjaTriangle" }
    89 					"fr_pumpkin", "Gasmask", "NinjaFull", "NinjaStraight", "NinjaTriangle" }
    90 	AddTeam(teamC.name, teamC.color, "Bone", "Island", "HillBilly", "cm_birdy")
    90 	AddTeam(teamC.name, teamC.color, "Bone", "Island", "HillBilly", "cm_bars")
    91 	for i=1,table.getn(enemiesEven) do
    91 	for i=1,table.getn(enemiesEven) do
    92 		enemiesEven[i].gear = AddHog(enemiesEven[i].name, 1, 100, hats[GetRandom(table.getn(hats))+1])
    92 		enemiesEven[i].gear = AddHog(enemiesEven[i].name, 1, 100, hats[GetRandom(table.getn(hats))+1])
    93 		AnimSetGearPosition(enemiesEven[i].gear, enemiesEven[i].x, enemiesEven[i].y)
    93 		AnimSetGearPosition(enemiesEven[i].gear, enemiesEven[i].x, enemiesEven[i].y)
    94 	end
    94 	end
    95 	AddTeam(teamB.name, teamB.color, "Bone", "Island", "HillBilly", "cm_birdy")
    95 	AddTeam(teamB.name, teamB.color, "Bone", "Island", "HillBilly", "cm_bars")
    96 	for i=1,table.getn(enemiesOdd) do
    96 	for i=1,table.getn(enemiesOdd) do
    97 		enemiesOdd[i].gear = AddHog(enemiesOdd[i].name, 1, 100, hats[GetRandom(table.getn(hats))+1])
    97 		enemiesOdd[i].gear = AddHog(enemiesOdd[i].name, 1, 100, hats[GetRandom(table.getn(hats))+1])
    98 		AnimSetGearPosition(enemiesOdd[i].gear, enemiesOdd[i].x, enemiesOdd[i].y)
    98 		AnimSetGearPosition(enemiesOdd[i].gear, enemiesOdd[i].x, enemiesOdd[i].y)
    99 	end
    99 	end
   100 
   100