@section_cost = 640

#BOW

ship_section_template = {
	key = "BATTLESHIP_BOW_L1M1S2"
	ship_size = battleship
	fits_on_slot = bow
	should_draw_components = yes
	entity = "battleship_bow_L1M1S2_entity"
	icon = "GFX_ship_part_core_bow"
	icon_frame = 1
	ai_tags = {
		gunship
		gunship_stealth
	}

	ai_weight = {
		weight = 10
	}

	component_slot = {
		name = "LARGE_GUN_01"
		template = "large_turret"
		locatorname = "large_gun_01"
	}
	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_01"
		template = "small_turret"
		locatorname = "small_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_02"
		template = "small_turret"
		locatorname = "small_gun_02"
	}

	large_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			alloys = @section_cost
		}
	}
}

#ship_section_template = {
#	key = "BATTLESHIP_BOW_L1S4"
#	ship_size = battleship
#	fits_on_slot = bow
#	should_draw_components = yes
#	entity = "battleship_bow_L1S4_entity"
#	icon = "GFX_ship_part_core_bow"
#	icon_frame = 1
#
#	component_slot = {
#		name = "LARGE_GUN_01"
#		template = "large_turret"
#		locatorname = "large_gun_01"
#	}
#
#	component_slot = {
#		name = "SMALL_GUN_01"
#		template = "small_turret"
#		locatorname = "small_gun_01"
#	}
#
#	component_slot = {
#		name = "SMALL_GUN_02"
#		template = "small_turret"
#		locatorname = "small_gun_02"
#	}
#
#	component_slot = {
#		name = "SMALL_GUN_03"
#		template = "small_turret"
#		locatorname = "small_gun_03"
#	}
#
#	component_slot = {
#		name = "SMALL_GUN_04"
#		template = "small_turret"
#		locatorname = "small_gun_04"
#	}
#
#	small_utility_slots = 1
#	medium_utility_slots = 2
#	large_utility_slots = 2
#
#	cost = 150
#}

ship_section_template = {
	key = "BATTLESHIP_BOW_L2"
	ship_size = battleship
	fits_on_slot = bow
	should_draw_components = yes
	entity = "battleship_bow_L2_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = {
		artillery
		artillery_stealth
	}

	ai_weight = {
		weight = 10
	}

	component_slot = {
		name = "LARGE_GUN_01"
		template = "large_turret"
		locatorname = "large_gun_01"
	}

	component_slot = {
		name = "LARGE_GUN_02"
		template = "large_turret"
		locatorname = "large_gun_02"
	}

	large_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			alloys = @section_cost
		}
	}
}

ship_section_template = {
	key = "BATTLESHIP_BOW_M1S2SHB"
	ship_size = battleship
	fits_on_slot = bow
	should_draw_components = yes
	entity = "battleship_bow_M1S2SHB_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = {
		carrier
		carrier_stealth
	}

	ai_weight = {
		weight = 10
	}

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

	component_slot = {
		name = "SMALL_GUN_01"
		template = "point_defence_turret"
		locatorname = "small_gun_01"
	}

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

	large_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			alloys = @section_cost
		}
	}
}

ship_section_template = {
	key = "BATTLESHIP_BOW_M2S4"
	ship_size = battleship
	fits_on_slot = bow
	should_draw_components = yes
	entity = "battleship_bow_XL1_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = {
		artillery
		artillery_stealth
	}

	prerequisites = {
		OR = {
			tech_energy_lance_1
			tech_energy_lance_2
			tech_arc_emitter_1
			tech_arc_emitter_2
			tech_mass_accelerator_1
			tech_mass_accelerator_2
			tech_archaeo_mass_accelerator
		}
	}

	ai_weight = {
		weight = 15
		modifier = {
			factor = 0
			has_no_valid_xl_weapon = yes
		}
	}

	component_slot = {
		name = "EXTRA_LARGE_01"
		template = "invisible_extra_large_fixed"
		locatorname = "xl_gun_01"
	}

	large_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			alloys = @section_cost
		}
	}
}

#ship_section_template = {
#	key = "BATTLESHIP_BOW_M3S2"
#	ship_size = battleship
#	fits_on_slot = bow
#	should_draw_components = yes
#	entity = "battleship_bow_M3S2_entity"
#	icon = "GFX_ship_part_core_bow"
#
#
#	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 = "SMALL_GUN_01"
#		template = "small_turret"
#		locatorname = "small_gun_01"
#	}
#
#	component_slot = {
#		name = "SMALL_GUN_02"
#		template = "small_turret"
#		locatorname = "small_gun_02"
#	}
#
#	small_utility_slots = 1
#	medium_utility_slots = 2
#	large_utility_slots = 2
#
#	cost = 150
#}

#MID

#ship_section_template = {
#	key = "BATTLESHIP_MID_L2S4"
#	ship_size = battleship
#	fits_on_slot = mid
#	should_draw_components = yes
#	entity = "battleship_mid_L2S4_entity"
#	icon = "GFX_ship_part_core_mid"
#
#	component_slot = {
#		name = "LARGE_GUN_01"
#		template = "large_turret"
#		locatorname = "large_gun_01"
#	}
#	component_slot = {
#		name = "LARGE_GUN_02"
#		template = "large_turret"
#		locatorname = "large_gun_02"
#	}
#
#	component_slot = {
#		name = "SMALL_GUN_01"
#		template = "small_turret"
#		locatorname = "small_gun_01"
#
#	}
#
#	component_slot = {
#		name = "SMALL_GUN_02"
#		template = "small_turret"
#		locatorname = "small_gun_02"
#
#	}
#
#	component_slot = {
#		name = "SMALL_GUN_03"
#		template = "small_turret"
#		locatorname = "small_gun_03"
#
#	}
#
#	component_slot = {
#		name = "SMALL_GUN_04"
#		template = "small_turret"
#		locatorname = "small_gun_04"
#
#	}
#
#	small_utility_slots = 1
#	medium_utility_slots = 1
#	large_utility_slots = 2
#
#	cost = 150
#}
#
#ship_section_template = {
#	key = "BATTLESHIP_MID_L1M4"
#	ship_size = battleship
#	fits_on_slot = mid
#	should_draw_components = yes
#	entity = "battleship_mid_L1M4_entity"
#	icon = "GFX_ship_part_core_mid"
#
#	component_slot = {
#		name = "LARGE_GUN_01"
#		template = "large_turret"
#		locatorname = "large_gun_01"
#	}
#
#	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"
#	}
#
#	small_utility_slots = 1
#	medium_utility_slots = 1
#	large_utility_slots = 2
#
#	cost = 150
#}

ship_section_template = {
	key = "BATTLESHIP_MID_L2M2"
	ship_size = battleship
	fits_on_slot = mid
	should_draw_components = yes
	entity = "battleship_mid_L2M2_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = {
		gunship
		gunship_stealth
	}

	ai_weight = {
		weight = 10
	}

	component_slot = {
		name = "LARGE_GUN_01"
		template = "large_turret"
		locatorname = "large_gun_01"
	}
	component_slot = {
		name = "LARGE_GUN_02"
		template = "large_turret"
		locatorname = "large_gun_02"
	}

	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"
	}

	large_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			alloys = @section_cost
		}
	}
}

ship_section_template = {
	key = "BATTLESHIP_MID_L3"
	ship_size = battleship
	fits_on_slot = mid
	should_draw_components = yes
	entity = "battleship_mid_L3_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = {
		artillery
		artillery_stealth
	}

	ai_weight = {
		weight = 10
	}

	component_slot = {
		name = "LARGE_GUN_01"
		template = "large_turret"
		locatorname = "large_gun_01"
	}

	component_slot = {
		name = "LARGE_GUN_02"
		template = "large_turret"
		locatorname = "large_gun_02"
	}

	component_slot = {
		name = "LARGE_GUN_03"
		template = "large_turret"
		locatorname = "large_gun_03"
	}

	large_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			alloys = @section_cost
		}
	}
}

ship_section_template = {
	key = "BATTLESHIP_MID_M4SHB"
	ship_size = battleship
	fits_on_slot = mid
	should_draw_components = yes
	entity = "battleship_mid_M4SHB_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = {
		carrier
		carrier_stealth
	}

	ai_weight = {
		weight = 10
	}

	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 = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		rotation = 90
		locatorname = "strike_craft_locator_01"
	}

	large_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			alloys = @section_cost
		}
	}
}

ship_section_template = {
	key = "BATTLESHIP_MID_S4LHB"
	ship_size = battleship
	fits_on_slot = mid
	should_draw_components = yes
	entity = "battleship_mid_S4LHB_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = {
		carrier
		carrier_stealth
	}

	ai_weight = {
		weight = 10
	}

	component_slot = {
		name = "SMALL_GUN_01"
		template = "small_turret"
		locatorname = "small_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_02"
		template = "small_turret"
		locatorname = "small_gun_02"
	}

	component_slot = {
		name = "SMALL_GUN_03"
		template = "point_defence_turret"
		locatorname = "small_gun_03"
	}

		component_slot = {
		name = "SMALL_GUN_04"
		template = "point_defence_turret"
		locatorname = "small_gun_04"
	}
	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		rotation = 90
		locatorname = "strike_craft_locator_01"
	}
	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		rotation = -90
		locatorname = "strike_craft_locator_02"
	}

	large_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			alloys = @section_cost
		}
	}
}

#STERN

#ship_section_template = {
#	key = "BATTLESHIP_STERN_M1S2"
#	ship_size = battleship
#	fits_on_slot = stern
#	should_draw_components = yes
#	entity = "battleship_stern_M1S2_entity"
#	icon = "GFX_ship_part_core_stern"
#
#	component_slot = {
#		name = "MEDIUM_GUN_01"
#		template = "medium_turret"
#		locatorname = "medium_gun_01"
#	}
#
#	component_slot = {
#		name = "SMALL_GUN_01"
#		template = "small_turret"
#		locatorname = "small_gun_01"
#	}
#
#	component_slot = {
#		name = "SMALL_GUN_02"
#		template = "small_turret"
#		locatorname = "small_gun_02"
#	}
#
#	small_utility_slots = 2
#	medium_utility_slots = 1
#	large_utility_slots = 2
#
#	cost = 150
#}

ship_section_template = {
	key = "BATTLESHIP_STERN_L1"
	ship_size = battleship
	fits_on_slot = stern
	should_draw_components = yes
	entity = "battleship_stern_L1_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = {
		artillery
		artillery_stealth
	}

	ai_weight = {
		weight = 10
	}

	component_slot = {
		name = "LARGE_GUN_01"
		template = "large_turret"
		locatorname = "large_gun_01"
	}

	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
			alloys = @section_cost
		}
	}
}

ship_section_template = {
	key = "BATTLESHIP_STERN_M2"
	ship_size = battleship
	fits_on_slot = stern
	should_draw_components = yes
	entity = "battleship_stern_M2_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = {
		gunship
		gunship_stealth
		carrier
		carrier_stealth
	}

	ai_weight = {
		weight = 10
	}

	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"
	}

	aux_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			alloys = @section_cost
		}
	}
}

#ship_section_template = {
#	key = "BATTLESHIP_STERN_S4"
#	ship_size = battleship
#	fits_on_slot = stern
#	should_draw_components = yes
#	entity = "battleship_stern_S4_entity"
#	icon = "GFX_ship_part_core_stern"
#
#	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 = "SMALL_GUN_01"
#		template = "point_defence_turret"
#		locatorname = "small_gun_01"
#	}
#
#	component_slot = {
#		name = "SMALL_GUN_01"
#		template = "point_defence_turret"
#		locatorname = "small_gun_01"
#	}
#
#	component_slot = {
#		name = "SMALL_GUN_02"
#		template = "point_defence_turret"
#		locatorname = "small_gun_02"
#	}
#	component_slot = {
#		name = "STRIKE_CRAFT_01"
#		template = "large_strike_craft"
#		rotation = 90
#		locatorname = "strike_craft_locator_01"
#	}
#
#	aux_utility_slots = 2
#
#	resources = {
#		category = ship_sections
#		cost = {
#			alloys = @section_cost
#		}
#	}
#}
