[Template AAJPNAirplaneAttackBomb Template=AAAirplaneAttackBomb]
{
	mana_cost = 5
	range = 15
	area = 6
	recharge_time = 5
	max_targets = 12

	targets = +enemy, +water, -air
							
	[Effect Template=APDamageEffect]
	amount = 5000
			
	[Effect Template=MoraleLossEffect]
	amount = 5.0

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

[Thing Template=AAUnitJPNAirplaneBomber]
{
	IDS = jpn1_bomber
	name = "#jpn1_bomber_name"
	editor_name = "#jpn1_bomber_editor_name"
	
	[View]
	resource_prefix = JPNTransportAir/JPNTransportAir

	[PerformerComponent]
	{
		[Ability Template=AAProjectileLocal]
		{
			;spawn_position = -0.3,-3.0,-0.4
			
			[AbilityDefinition Template=AAJPNAirplaneAttackBomb]
			IDS = jpn_bomb1
			name = "#jpn1_bomber_AbilityDefinition_name"
		}

		[Ability Template=AAProjectileLocal]
		{
			;spawn_position = 0.3,-3.0,-0.3
			
			[AbilityDefinition Template=AAJPNAirplaneAttackBomb]
			IDS = jpn_bomb2
			name = "#jpn1_bomber_AbilityDefinition_name_2"
		}

		[Ability Template=AAProjectileLocal]
		{
			;spawn_position = -0.3,-3.5,-0.2
			
			[AbilityDefinition Template=AAJPNAirplaneAttackBomb]
			IDS = jpn_bomb3
			name = "#jpn1_bomber_AbilityDefinition_name_3"

		}

		[Ability Template=AAProjectileLocal]
		{
			;spawn_position = 0.3,-3.5,-0.1
			
			[AbilityDefinition Template=AAJPNAirplaneAttackBomb]
			IDS = jpn_bomb4
			name = "#jpn1_bomber_AbilityDefinition_name_4"

		}
	}
	
	[BodyComponent]
	{
		health = 3000
		defense = 30
	} 

 	[MoverComponent]
	{
		speed_max = 9
		turn_radius = 15
	}


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