ship_section_template = {
	key = "OUTPOST_STARBASE_SECTION"
	ship_size = starbase_outpost

	fits_on_slot = "core"
	entity = "starbase_outpost_section_entity"
	icon = "GFX_ship_part_core_mid"

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "medium_gun_01"
	}

	small_utility_slots = 0
	medium_utility_slots = 0
	large_utility_slots = 2
	aux_utility_slots = 1
}

ship_section_template = {
	key = "STARPORT_STARBASE_SECTION"
	ship_size = starbase_starport

	fits_on_slot = "core"
	should_draw_components = yes
	entity = "starbase_starport_section_entity"
	icon = "GFX_ship_part_core_mid"

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "medium_turret"
		locatorname = "medium_gun_02"
	}

	component_slot = {
		name = "MEDIUM_GUN_03"
		template = "medium_turret"
		locatorname = "medium_gun_03"
	}

	small_utility_slots = 0
	medium_utility_slots = 0
	large_utility_slots = 4
	aux_utility_slots = 1
}

ship_section_template = {
	key = "STARHOLD_STARBASE_SECTION"
	ship_size = starbase_starhold

	fits_on_slot = "core"
	should_draw_components = yes
	entity = "starbase_starhold_section_entity"
	icon = "GFX_ship_part_core_mid"

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "medium_turret"
		locatorname = "medium_gun_02"
	}

	component_slot = {
		name = "MEDIUM_GUN_03"
		template = "medium_turret"
		locatorname = "medium_gun_03"
	}

	component_slot = {
		name = "MEDIUM_GUN_04"
		template = "medium_turret"
		locatorname = "medium_gun_04"
	}

	component_slot = {
		name = "MEDIUM_GUN_05"
		template = "medium_turret"
		locatorname = "medium_gun_05"
	}

	small_utility_slots = 0
	medium_utility_slots = 0
	large_utility_slots = 8
	aux_utility_slots = 1
}

ship_section_template = {
	key = "STARFORTRESS_STARBASE_SECTION"
	ship_size = starbase_starfortress

	fits_on_slot = "core"
	should_draw_components = yes
	entity = "starbase_starfortress_section_entity"
	icon = "GFX_ship_part_core_mid"

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "medium_turret"
		locatorname = "medium_gun_02"
	}

	component_slot = {
		name = "MEDIUM_GUN_03"
		template = "medium_turret"
		locatorname = "medium_gun_03"
	}

	component_slot = {
		name = "MEDIUM_GUN_04"
		template = "medium_turret"
		locatorname = "medium_gun_04"
	}

	component_slot = {
		name = "MEDIUM_GUN_05"
		template = "medium_turret"
		locatorname = "medium_gun_05"
	}

	component_slot = {
		name = "MEDIUM_GUN_06"
		template = "medium_turret"
		locatorname = "medium_gun_06"
	}

	component_slot = {
		name = "MEDIUM_GUN_07"
		template = "medium_turret"
		locatorname = "medium_gun_07"
	}

	small_utility_slots = 0
	medium_utility_slots = 0
	large_utility_slots = 12
	aux_utility_slots = 1
}

ship_section_template = {
	key = "CITADEL_STARBASE_SECTION"
	ship_size = starbase_citadel

	fits_on_slot = "core"
	should_draw_components = yes
	entity = "starbase_citadel_section_entity"
	icon = "GFX_ship_part_core_mid"

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "medium_turret"
		locatorname = "medium_gun_02"
	}

	component_slot = {
		name = "MEDIUM_GUN_03"
		template = "medium_turret"
		locatorname = "medium_gun_03"
	}

	component_slot = {
		name = "MEDIUM_GUN_04"
		template = "medium_turret"
		locatorname = "medium_gun_04"
	}

	component_slot = {
		name = "MEDIUM_GUN_05"
		template = "medium_turret"
		locatorname = "medium_gun_05"
	}

	component_slot = {
		name = "MEDIUM_GUN_06"
		template = "medium_turret"
		locatorname = "medium_gun_06"
	}

	component_slot = {
		name = "MEDIUM_GUN_07"
		template = "medium_turret"
		locatorname = "medium_gun_07"
	}

	component_slot = {
		name = "MEDIUM_GUN_08"
		template = "medium_turret"
		locatorname = "medium_gun_08"
	}

	component_slot = {
		name = "MEDIUM_GUN_09"
		template = "medium_turret"
		locatorname = "medium_gun_09"
	}

	component_slot = {
		name = "MEDIUM_GUN_010"
		template = "medium_turret"
		locatorname = "medium_gun_010"
	}

	component_slot = {
		name = "MEDIUM_GUN_011"
		template = "medium_turret"
		locatorname = "medium_gun_011"
	}

	component_slot = {
		name = "MEDIUM_GUN_012"
		template = "medium_turret"
		locatorname = "medium_gun_012"
	}

	component_slot = {
		name = "MEDIUM_GUN_013"
		template = "medium_turret"
		locatorname = "medium_gun_013"
	}

	small_utility_slots = 0
	medium_utility_slots = 0
	large_utility_slots = 18
	aux_utility_slots = 1
}

ship_section_template = {
	key = "SHIPYARD_STARBASE_SECTION"
	entity = "orbital_station_assemblyyard_section_entity"
	icon = "GFX_ship_part_core_mid"

	ship_size = starbase_outpost
	ship_size = starbase_starport
	ship_size = starbase_starhold
	ship_size = starbase_starfortress
	ship_size = starbase_citadel

	ship_size = starbase_waystation_1
	ship_size = starbase_waystation_2
	ship_size = starbase_waystation_3

	fits_on_slot = "1"
	fits_on_slot = "2"
	fits_on_slot = "3"
	fits_on_slot = "4"
	fits_on_slot = "5"
	fits_on_slot = "6"

	should_draw_components = yes
}

ship_section_template = {
	key = "BATTERY_STARBASE_SECTION"
	entity = "starbase_turret_section_entity"
	icon = "GFX_ship_part_core_mid"

	ship_size = starbase_outpost
	ship_size = starbase_starport
	ship_size = starbase_starhold
	ship_size = starbase_starfortress
	ship_size = starbase_citadel

	fits_on_slot = "1"
	fits_on_slot = "2"
	fits_on_slot = "3"
	fits_on_slot = "4"
	fits_on_slot = "5"
	fits_on_slot = "6"

	should_draw_components = yes

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "medium_turret"
		locatorname = "medium_gun_02"
	}
}

ship_section_template = {
	key = "MISSILE_STARBASE_SECTION"
	entity = "starbase_turret_section_entity"
	icon = "GFX_ship_part_core_mid"

	prerequisites = { tech_torpedoes_1 }

	ship_size = starbase_outpost
	ship_size = starbase_starport
	ship_size = starbase_starhold
	ship_size = starbase_starfortress
	ship_size = starbase_citadel

	fits_on_slot = "1"
	fits_on_slot = "2"
	fits_on_slot = "3"
	fits_on_slot = "4"
	fits_on_slot = "5"
	fits_on_slot = "6"

	should_draw_components = yes

	component_slot = {
		name = "TORPEDO_01"
		template = "medium_missile_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "TORPEDO_02"
		template = "medium_missile_turret"
		locatorname = "medium_gun_02"
	}
}

ship_section_template = {
	key = "HANGAR_STARBASE_SECTION"
	entity = "orbital_station_hangarbay_section_entity"
	icon = "GFX_ship_part_core_mid"

	ship_size = starbase_outpost
	ship_size = starbase_starport
	ship_size = starbase_starhold
	ship_size = starbase_starfortress
	ship_size = starbase_citadel

	fits_on_slot = "1"
	fits_on_slot = "2"
	fits_on_slot = "3"
	fits_on_slot = "4"
	fits_on_slot = "5"
	fits_on_slot = "6"

	should_draw_components = yes

	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		rotation = 90
		locatorname = "strike_craft_locator_01"
	}
}

ship_section_template = {
	key = "ASSEMBLYYARD_STARBASE_SECTION"

	ship_size = starbase_outpost
	ship_size = starbase_starport
	ship_size = starbase_starhold
	ship_size = starbase_starfortress
	ship_size = starbase_citadel

	ship_size = starbase_waystation_1
	ship_size = starbase_waystation_2
	ship_size = starbase_waystation_3

	entity = "orbital_station_assemblyyard_section_entity"
	icon = "GFX_ship_part_core_mid"
	fits_on_slot = "1"
	fits_on_slot = "2"
	fits_on_slot = "3"
	fits_on_slot = "4"
	fits_on_slot = "5"
	fits_on_slot = "6"

	should_draw_components = yes
}

ship_section_template = {
	key = "REFINERY_STARBASE_SECTION"

	ship_size = starbase_outpost
	ship_size = starbase_starport
	ship_size = starbase_starhold
	ship_size = starbase_starfortress
	ship_size = starbase_citadel

	ship_size = starbase_waystation_1
	ship_size = starbase_waystation_2
	ship_size = starbase_waystation_3

	entity = "orbital_station_refinery_section_entity"
	icon = "GFX_ship_part_core_mid"
	fits_on_slot = "1"
	fits_on_slot = "2"
	fits_on_slot = "3"
	fits_on_slot = "4"
	fits_on_slot = "5"
	fits_on_slot = "6"

	should_draw_components = yes
}

ship_section_template = {
	key = "SCIENCE_STARBASE_SECTION"

	ship_size = starbase_outpost
	ship_size = starbase_starport
	ship_size = starbase_starhold
	ship_size = starbase_starfortress
	ship_size = starbase_citadel

	ship_size = starbase_waystation_1
	ship_size = starbase_waystation_2
	ship_size = starbase_waystation_3

	entity = "orbital_station_science_section_entity"
	icon = "GFX_ship_part_core_mid"
	fits_on_slot = "1"
	fits_on_slot = "2"
	fits_on_slot = "3"
	fits_on_slot = "4"
	fits_on_slot = "5"
	fits_on_slot = "6"

	should_draw_components = yes
}

ship_section_template = {
	key = "CLOAKING_WAYSTATION_SECTION"

	ship_size = starbase_waystation_1
	ship_size = starbase_waystation_2
	ship_size = starbase_waystation_3

	entity = "orbital_station_science_section_entity"
	icon = "GFX_ship_part_core_mid"
	fits_on_slot = "1"
	fits_on_slot = "2"
	fits_on_slot = "3"
	fits_on_slot = "4"
	fits_on_slot = "5"
	fits_on_slot = "6"

	aux_utility_slots = 1

	should_draw_components = yes
}

ship_section_template = {
	key = "ANCHORAGE_STARBASE_SECTION"

	ship_size = starbase_outpost
	ship_size = starbase_starport
	ship_size = starbase_starhold
	ship_size = starbase_starfortress
	ship_size = starbase_citadel

	ship_size = starbase_waystation_1
	ship_size = starbase_waystation_2
	ship_size = starbase_waystation_3

	entity = "orbital_station_hangarbay_section_entity"
	icon = "GFX_ship_part_core_mid"
	fits_on_slot = "1"
	fits_on_slot = "2"
	fits_on_slot = "3"
	fits_on_slot = "4"
	fits_on_slot = "5"
	fits_on_slot = "6"

	should_draw_components = yes
}

##################
# Defense Platform
##################

ship_section_template = {
	key = "ION_CANNON_CORE"
	fits_on_slot = "ship"
	ship_size = ion_cannon
	entity = "ion_cannon_section_entity"
	icon = "GFX_ship_part_core_mid"

	component_slot = {
		name = "TITANIC_GUN_01"
		template = "invisible_titanic_fixed"
		locatorname = "xl_gun_01"
	}

	small_utility_slots = 0
	medium_utility_slots = 0
	large_utility_slots = 6
	aux_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			alloys = 500
		}
	}
}
