share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit03.lua
changeset 9810 54c0fdec4600
parent 9758 3b8058b251b8
child 9831 afa4e3e04cc5
equal deleted inserted replaced
9809:1e32628eb167 9810:54c0fdec4600
    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_birdy")
    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[math.random(1,table.getn(hats))])
    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_birdy")
    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[math.random(1,table.getn(hats))])
    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 
   101 	initCheckpoint("fruit03")
   101 	initCheckpoint("fruit03")
   102 
   102