[Template AAUSAAirplaneAttackBomb Template=AAAirplaneAttackBomb]
{
	mana_cost = 5
	range = 15
	area = 6
	recharge_time = 5
	max_targets = 20

	[WhenDo Template=FXC_PlaySFX]
	audio_ids = bomb_heavy
	at = TARGET_GROUND
}

[Thing Template=AAUnitUSAAirplaneBomber]
{
	IDS = usa_bomber
	name = "#usa_bomber_name"
	editor_name = "#usa_bomber_editor_name"
	
	[View]
	resource_prefix = USABomber/USABomber

	[PerformerComponent]
	{
		[Ability Template=AAProjectileLocal]
		{
			;spawn_position = -0.3,-3.0,-0.4
			
			[AbilityDefinition Template=AAUSAAirplaneAttackBomb]
			{
				IDS = usa_bomb1
				name = "#usa_bomber_AbilityDefinition_name"
			
				[Effect Template=BlastDamageEffect]
				amount = 20000
		
				[Effect Template=MoraleLossEffect]
				amount = 100.0
			}
		}

		[Ability Template=AAProjectileLocal]
		{
			;spawn_position = 0.3,-3.0,-0.3
			
			[AbilityDefinition Template=AAUSAAirplaneAttackBomb]
			{
				IDS = usa_bomb2
				name = "#usa_bomber_AbilityDefinition_name_2"
			
				[Effect Template=BlastDamageEffect]
				amount = 2000
		
				[Effect Template=MoraleLossEffect]
				amount = 100.0
			}
		}

		[Ability Template=AAProjectileLocal]
		{
			;spawn_position = -0.3,-3.5,-0.2
			
			[AbilityDefinition Template=AAUSAAirplaneAttackBomb]
			{
				IDS = usa_bomb3
				name = "#usa_bomber_AbilityDefinition_name_3"
					
				[Effect Template=BlastDamageEffect]
				amount = 2000
		
				[Effect Template=MoraleLossEffect]
				amount = 100.0
			}
		}

		[Ability Template=AAProjectileLocal]
		{
			;spawn_position = 0.3,-3.5,-0.1
			
			[AbilityDefinition Template=AAUSAAirplaneAttackBomb]
			{
				IDS = usa_bomb4
				name = "#usa_bomber_AbilityDefinition_name_4"
				
				[Effect Template=BlastDamageEffect]
				amount = 2000
		
				[Effect Template=MoraleLossEffect]
				amount = 100.0
			}
		}
				
		[Ability Template=AAProjectileLocal]
		{
			;spawn_position = 0.3,-3.5,-0.1
			required_properties = tech_napalm
			
			[AbilityDefinition Template=AAUSAAirplaneAttackBomb]
			{
				IDS = usa_bomb5
				mana_cost = 0		
				name = "#usa_bomber_AbilityDefinition_name_5"
				area = 10
				projectile_ids = napalm_bomb
				icon = /Properties/AbilityIcons/IconAbilityDamageFire.png
			
				[Effect Template=FireDamageEffect]
				amount = 100000
				
				[Effect Template=MoraleLossEffect]
				amount = 200
			}
		}	
	}
	
	[BodyComponent]
	{
		health = 10500
		defense = 200
	} 

 	[MoverComponent]
	{
		speed_max = 8
		turn_radius = 16
	}


	[PropertiesComponent]
	{
		[Property]
		property_IDS = bomber
		
		[Property]
		property_IDS = combat_unit
	}
}
