[Template AAUnitJPNSPA Inherit=AAUnitJPNVehicleSPA]
{
	[BodyComponent]
	{
		health = 500
		defense = 400
	}
	
	[MoverComponent]
	{
		speed_max = 4.0
		acceleration = 2
		
		[WhenStartMoving template=FXC_CreateVFX]
		{
			VFX_IDS = start_exhaust_01
			location = exhaust_point_01	
	  	}
	  	
	  	[WhenStartMoving template=FXC_CreateVFX]
		{
			VFX_IDS = start_exhaust_01
			location = exhaust_point_02	
	  	}
	}


	[PropertiesComponent]
	{
		[Property]
		property_IDS = front
		
		[Property]
		property_IDS = support

		[Property]
		property_IDS = combat_unit
	}
	
	[PerformerComponent]
	
	[View]
	{
		resource_prefix = JPNTankSPA/JPNTankSPA

		[AspectNormal]
		{						
			[Animation Template=ObjectAnimationCustomPlay]
			ids = Recoil1
			length = 1
			kf = JPNTankSPA/JPNTankSPARecoil1.kf
		}
	}
}

;;----------------------------- UNITS ------------------------ ;;

[Thing Template=AAUnitJPNSPA]
{
	IDS = jpn_tank_spa
	name = "#jpn_tank_spa_Thing_name"
	editor_name = "#jpn_tank_spa_Thing_editor_name"

	[ElementComponent]
	{
		required_structures = jpn_motor_pool
	}

	[PerformerComponent]
	{
		
		[Ability Template=AAProjectileLocal]
		{						
			[AbilityDefinition Template=AASPAShot]
			{				
				name = "#jpn_tank_spa_AbilityDefinition_name"
				recharge_time = 20
				range = 24
				area = 4
				max_targets = 20
					
				[Flags] 
				bombard = true
				
				[Effect Template=BlastDamageEffect]
				amount = 5000

				[Effect Template=MoraleLossEffect]
				amount = 1

				[WhenDo Template=FXC_PlayObjectAnimation]
				object_animation_IDS = Recoil1
				
				[WhenDo template=FXC_PlaySFX]
				audio_ids = jpn_artillery_heavy
			}
		}
	}
}