weapon_component_template = {
	type = instant
	
	key = "LARGE_MASS_ACCELERATOR_3"
	size = extra_large
	
	icon = "GFX_ship_part_mass_accelerator_3"
	icon_frame = 1

	damage = { min = 734 max = 1466 }
	windup = { min = 5 max = 15 }
	total_fire_time = 30

	firing_arc = 25.0
	min_range = 30.0
	
	range = 250.0
	accuracy = 0.8
	tracking = 0.1
  
	shield_damage = 2.0
  shield_penetration = 0.25
	armor_damage = 0.75
  
	power = -250
	
	prerequisites = { "EW_tech_mass_accelerator_3" }
	component_set = "MASS_ACCELERATOR_3"
	projectile_gfx = "adv_kinetic_artillery"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_artillery artillery }
	upgrades_to = "LARGE_MASS_ACCELERATOR_4"

	resources = {
		category = ship_components
		cost = {
			alloys = 300
			volatile_motes = 0.6
		}		
		upkeep = {
			energy = 3
			alloys = 0.6
		}
	}

	target_weights = {
    giga_planet_behemoth = 15
    giga_massive_planet = 10
		titan = 5
    Dreadnought = 4
    Carrier = 3
		battleship = 2
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
	}
}

weapon_component_template = {
	type = instant
	
	key = "LARGE_MASS_ACCELERATOR_4"
	size = extra_large
	
	icon = "GFX_ship_part_mass_accelerator_4"
	icon_frame = 1

	damage = { min = 971 max = 1945 }
	windup = { min = 5 max = 15 }
	total_fire_time = 30
	
	firing_arc = 25.0
	min_range = 30.0
	use_ship_kill_target = no
	
	range = 275.0
	accuracy = 0.85
	tracking = 0.1
  
	shield_damage = 2.0
  shield_penetration = 0.333
	armor_damage = 0.75
  
	power = -300
	
	prerequisites = { "EW_tech_mass_accelerator_4" }
	component_set = "MASS_ACCELERATOR_4"
	projectile_gfx = "adv_kinetic_artillery"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_artillery artillery }
	upgrades_to = "LARGE_MASS_ACCELERATOR_5"

	resources = {
		category = ship_components
		cost = {
			alloys = 400
			volatile_motes = 0.9
		}		
		upkeep = {
			energy = 4
			alloys = 0.8
		}
	}

	target_weights = {
    giga_planet_behemoth = 15
    giga_massive_planet = 10
		titan = 5
    Dreadnought = 4
    Carrier = 3
		battleship = 2
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
	}
}

weapon_component_template = {
	type = instant
	
	key = "LARGE_MASS_ACCELERATOR_5"
	size = extra_large
	
	icon = "GFX_ship_part_mass_accelerator_5"
	icon_frame = 1

	damage = { min = 1185 max = 2370 }
	windup = { min = 5 max = 15 }
	total_fire_time = 30
	
	firing_arc = 25.0
	min_range = 30.0
	use_ship_kill_target = no
	power = -450
	
	range = 300.0
	accuracy = 0.9
	tracking = 0.1
  
	shield_damage = 2.0
  shield_penetration = 0.5
  armor_damage = 0.75
  
	
	prerequisites = { "EW_tech_mass_accelerator_5" }
	component_set = "MASS_ACCELERATOR_5"
	projectile_gfx = "adv_kinetic_artillery"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_artillery artillery }

	resources = {
		category = ship_components
		cost = {
			alloys = 550
			volatile_motes = 1.1
		}		
		upkeep = {
			energy = 5
			alloys = 1
		}
	}

	target_weights = {
    giga_planet_behemoth = 15
    giga_massive_planet = 10
		titan = 5
    Dreadnought = 4
    Carrier = 3
		battleship = 2
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
	}
}

weapon_component_template = {
	type = instant
	prio_projectile = yes
	
	key = "TITANIC_MASS_ACCELERATOR_5"
	size = titanic
	
	icon = "GFX_ship_part_mass_accelerator_5"
	icon_frame = 1

	damage = { min = 2368 max = 4736 }
	windup = { min = 5 max = 15 }
	total_fire_time = 30
  
  on_hit = {
    inline_script = {
      script = ship_components/collateral_damage
      RANGE = 15
      DAMAGE = 240
    }
  }
	
	firing_arc = 10.0
	min_range = 45.0
	use_ship_kill_target = no
	power = -750
	
	range = 360.0
	accuracy = 1.0
	tracking = 0.1
  
	shield_damage = 2.0
  shield_penetration = 0.5
  armor_damage = 0.75
  
	
	prerequisites = { "EW_tech_mass_accelerator_5" }
	component_set = "TITANIC_MASS_ACCELERATOR_5"
	projectile_gfx = "adv_kinetic_artillery"
	tags = { weapon_type_kinetic }
	ai_tags = { weapon_role_artillery artillery }

	resources = {
		category = ship_components
		cost = {
			alloys = 900
			volatile_motes = 2.5
		}		
		upkeep = {
			energy = 8
			alloys = 1.5
		}
	}

	target_weights = {
    giga_planet_behemoth = 15
    giga_massive_planet = 10
		titan = 5
    Dreadnought = 4
    Carrier = 3
		battleship = 2
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = volatile_motes }
		}
	}
}