ship_section_template = {
	key = "HARBINGER_STAGE_1_picket"
	ship_size = harbinger_stage_1
	fits_on_slot = mid
	should_draw_components = no
	icon = "GFX_ship_part_core_mid"
	entity = "harbinger_stage_1_ship_entity"

	ai_tags = {
		carrier
		carrier_stealth
	}

	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}
	}

	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}
	
	component_slot = {
		name = "STRIKE_CRAFT_03"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_04"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "PD_01"
		template = "point_defence_turret"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "PD_02"
		template = "point_defence_turret"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "PD_03"
		template = "point_defence_turret"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "PD_04"
		template = "point_defence_turret"
		locatorname = "weapon_02"
	}

	medium_utility_slots = 8
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
			food = @harbinger_stage_1_section_cost
			mult = @alloy_to_food_cost_ratio
		}
	}
}

ship_section_template = {
	key = "HARBINGER_STAGE_1_artillery"
	ship_size = harbinger_stage_1
	fits_on_slot = mid
	should_draw_components = no
	icon = "GFX_ship_part_core_mid"
	entity = "harbinger_stage_1_ship_entity"

	ai_tags = {
		artillery
		artillery_stealth
	}

	prerequisites = {
		OR = {
			tech_swarmer_missiles_1
			tech_swarmer_missiles_2
			tech_scourge_missile_1
			tech_energy_torpedoes_1
			tech_energy_torpedoes_2
		}
	}

	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_explosive
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_explosive }
		}
	}

	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}
	
	component_slot = {
		name = "STRIKE_CRAFT_03"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_04"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "TORPEDO_01"
		template = "invisible_missile_turret"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "TORPEDO_02"
		template = "invisible_missile_turret"
		locatorname = "weapon_02"
	}
	
component_slot = {
		name = "TORPEDO_03"
		template = "invisible_missile_turret"
		locatorname = "weapon_02"
	}

	medium_utility_slots = 8
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
			food = @harbinger_stage_1_section_cost
			mult = @alloy_to_food_cost_ratio
		}
	}
}

ship_section_template = {
	key = "HARBINGER_STAGE_2_picket"
	ship_size = harbinger_stage_2
	fits_on_slot = mid
	should_draw_components = no
	icon = "GFX_ship_part_core_mid"
	entity = "harbinger_stage_2_ship_entity"

	ai_tags = {
		carrier
		carrier_stealth
	}

	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}
	}

	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "STRIKE_CRAFT_03"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}
	
	component_slot = {
		name = "STRIKE_CRAFT_04"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_05"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "STRIKE_CRAFT_06"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "PD_01"
		template = "point_defence_turret"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "PD_02"
		template = "point_defence_turret"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "PD_03"
		template = "point_defence_turret"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "PD_04"
		template = "point_defence_turret"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "PD_05"
		template = "point_defence_turret"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "PD_06"
		template = "point_defence_turret"
		locatorname = "weapon_01"
	}

	medium_utility_slots = 4
	large_utility_slots = 4
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
			food = @harbinger_stage_2_section_cost
			mult = @alloy_to_food_cost_ratio
		}
	}
}

ship_section_template = {
	key = "HARBINGER_STAGE_2_artillery"
	ship_size = harbinger_stage_2
	fits_on_slot = mid
	should_draw_components = no
	icon = "GFX_ship_part_core_mid"
	entity = "harbinger_stage_2_ship_entity"

	ai_tags = {
		artillery
		artillery_stealth
	}

	prerequisites = {
		OR = {
			tech_swarmer_missiles_1
			tech_swarmer_missiles_2
			tech_scourge_missile_1
			tech_energy_torpedoes_1
			tech_energy_torpedoes_2
		}
	}

	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_explosive
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_explosive }
		}
	}

	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "STRIKE_CRAFT_03"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}
	
	component_slot = {
		name = "STRIKE_CRAFT_04"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_05"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "STRIKE_CRAFT_06"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "TORPEDO_01"
		template = "invisible_missile_turret"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "TORPEDO_02"
		template = "invisible_missile_turret"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "TORPEDO_03"
		template = "invisible_missile_turret"
		locatorname = "weapon_02"
	}
	
	component_slot = {
		name = "TORPEDO_04"
		template = "invisible_missile_turret"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "TORPEDO_05"
		template = "invisible_missile_turret"
		locatorname = "weapon_02"
	}

	medium_utility_slots = 4
	large_utility_slots = 4
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
			food = @harbinger_stage_2_section_cost
			mult = @alloy_to_food_cost_ratio
		}
	}
}

ship_section_template = {
	key = "HARBINGER_STAGE_3_picket"
	ship_size = harbinger_stage_3
	fits_on_slot = mid
	should_draw_components = no
	icon = "GFX_ship_part_core_mid"
	entity = "harbinger_stage_3_ship_entity"

	ai_tags = {
		carrier
		carrier_stealth
	}

	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}
	}

	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "STRIKE_CRAFT_03"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_04"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}
	
	component_slot = {
		name = "STRIKE_CRAFT_05"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_06"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "STRIKE_CRAFT_07"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_08"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "PD_01"
		template = "point_defence_turret"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "PD_02"
		template = "point_defence_turret"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "PD_03"
		template = "point_defence_turret"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "PD_04"
		template = "point_defence_turret"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "PD_05"
		template = "point_defence_turret"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "PD_06"
		template = "point_defence_turret"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "PD_07"
		template = "point_defence_turret"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "PD_08"
		template = "point_defence_turret"
		locatorname = "weapon_02"
	}

	large_utility_slots = 8
	aux_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			food = @harbinger_stage_3_section_cost
			mult = @alloy_to_food_cost_ratio
		}
	}
}

ship_section_template = {
	key = "HARBINGER_STAGE_3_artillery"
	ship_size = harbinger_stage_3
	fits_on_slot = mid
	should_draw_components = no
	icon = "GFX_ship_part_core_mid"
	entity = "harbinger_stage_3_ship_entity"

	ai_tags = {
		artillery
		artillery_stealth
	}

	prerequisites = {
		OR = {
			tech_swarmer_missiles_1
			tech_swarmer_missiles_2
			tech_scourge_missile_1
			tech_energy_torpedoes_1
			tech_energy_torpedoes_2
		}
	}

	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_explosive
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_explosive }
		}
	}

	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "STRIKE_CRAFT_03"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_04"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}
	
	component_slot = {
		name = "STRIKE_CRAFT_05"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_06"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "STRIKE_CRAFT_07"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_08"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "TORPEDO_01"
		template = "invisible_missile_turret"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "TORPEDO_02"
		template = "invisible_missile_turret"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "TORPEDO_03"
		template = "invisible_missile_turret"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "TORPEDO_04"
		template = "invisible_missile_turret"
		locatorname = "weapon_02"
	}
	
	component_slot = {
		name = "TORPEDO_05"
		template = "invisible_missile_turret"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "TORPEDO_06"
		template = "invisible_missile_turret"
		locatorname = "weapon_02"
	}

	large_utility_slots = 8
	aux_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			food = @harbinger_stage_3_section_cost
			mult = @alloy_to_food_cost_ratio
		}
	}
}

ship_section_template = {
	key = "large_fallen_harbinger_section"
	ship_size = large_fallen_harbinger
	fits_on_slot = mid
	should_draw_components = no
	icon = "GFX_ship_part_core_mid"
	entity = "biogenesis_01_fallen_empire_harbinger_stage_3_ship_entity"

	ai_tags = {
		artillery
		artillery_stealth
	}

	prerequisites = {
		OR = {
			tech_swarmer_missiles_1
			tech_swarmer_missiles_2
			tech_scourge_missile_1
			tech_energy_torpedoes_1
			tech_energy_torpedoes_2
		}
	}

	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}
	}

	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "STRIKE_CRAFT_03"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_04"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "STRIKE_CRAFT_05"
		template = "large_strike_craft"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_06"
		template = "large_strike_craft"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "TORPEDO_01"
		template = "invisible_missile_turret"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "TORPEDO_02"
		template = "invisible_missile_turret"
		locatorname = "weapon_02"
	}

	component_slot = {
		name = "TORPEDO_03"
		template = "invisible_missile_turret"
		locatorname = "weapon_01"
	}

	component_slot = {
		name = "TORPEDO_04"
		template = "invisible_missile_turret"
		locatorname = "weapon_02"
	}

	large_utility_slots = 6
	aux_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			food = @harbinger_stage_3_section_cost
			mult = @alloy_to_food_cost_ratio
		}
	}
}
