share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua
changeset 14647 ab6be7d200b0
parent 14509 7bb7e5e54f70
child 14919 4596357d002d
equal deleted inserted replaced
14646:835072bcbfb6 14647:ab6be7d200b0
   502 		RestoreHog(yellowArmy[3].gear)
   502 		RestoreHog(yellowArmy[3].gear)
   503 		AnimCaption(hero.gear, string.format(loc("%s enters the battlefield"), yellowArmy[3].name), 5000)
   503 		AnimCaption(hero.gear, string.format(loc("%s enters the battlefield"), yellowArmy[3].name), 5000)
   504 		if not chooseToBattle and not GetHealth(yellow1.gear) then
   504 		if not chooseToBattle and not GetHealth(yellow1.gear) then
   505 			SetGearPosition(yellowArmy[3].gear, yellow1.x, yellow1.y)
   505 			SetGearPosition(yellowArmy[3].gear, yellow1.x, yellow1.y)
   506 		end
   506 		end
       
   507 		AnimOutOfNowhere(yellowArmy[3].gear)
   507 	elseif TotalRounds == 7 then
   508 	elseif TotalRounds == 7 then
   508 		RestoreHog(yellowArmy[4].gear)
   509 		RestoreHog(yellowArmy[4].gear)
   509 		RestoreHog(yellowArmy[5].gear)
   510 		RestoreHog(yellowArmy[5].gear)
   510 		AnimCaption(hero.gear, string.format(loc("%s and %s enter the battlefield"), yellowArmy[4].name, yellowArmy[5].name), 5000)
   511 		AnimCaption(hero.gear, string.format(loc("%s and %s enter the battlefield"), yellowArmy[4].name, yellowArmy[5].name), 5000)
   511 		if not chooseToBattle and not GetHealth(yellow1.gear) and not GetHealth(yellowArmy[3].gear) then
   512 		if not chooseToBattle and not GetHealth(yellow1.gear) and not GetHealth(yellowArmy[3].gear) then
   512 			SetGearPosition(yellowArmy[4].gear, yellow1.x, yellow1.y)
   513 			SetGearPosition(yellowArmy[4].gear, yellow1.x, yellow1.y)
   513 		end
   514 		end
       
   515 		AnimOutOfNowhere(yellowArmy[4].gear)
       
   516 		AnimOutOfNowhere(yellowArmy[5].gear)
   514 	elseif TotalRounds == 10 then
   517 	elseif TotalRounds == 10 then
   515 		RestoreHog(yellowArmy[6].gear)
   518 		RestoreHog(yellowArmy[6].gear)
   516 		RestoreHog(yellowArmy[7].gear)
   519 		RestoreHog(yellowArmy[7].gear)
   517 		AnimCaption(hero.gear, string.format(loc("%s and %s enter the battlefield"), yellowArmy[6].name, yellowArmy[7].name), 5000)
   520 		AnimCaption(hero.gear, string.format(loc("%s and %s enter the battlefield"), yellowArmy[6].name, yellowArmy[7].name), 5000)
   518 		if not chooseToBattle and not GetHealth(yellow1.gear) and not GetHealth(yellowArmy[3].gear)
   521 		if not chooseToBattle and not GetHealth(yellow1.gear) and not GetHealth(yellowArmy[3].gear)
   519 				and not GetHealth(yellowArmy[4].gear) then
   522 				and not GetHealth(yellowArmy[4].gear) then
   520 			SetGearPosition(yellowArmy[6].gear, yellow1.x, yellow1.y)
   523 			SetGearPosition(yellowArmy[6].gear, yellow1.x, yellow1.y)
   521 		end
   524 		end
       
   525 		AnimOutOfNowhere(yellowArmy[6].gear)
       
   526 		AnimOutOfNowhere(yellowArmy[7].gear)
   522 	end
   527 	end
   523 end
   528 end
   524 
   529 
   525 function saveVariables()
   530 function saveVariables()
   526 	saveCompletedStatus(2)
   531 	saveCompletedStatus(2)