30 = 30

###护卫舰与雷击舰

#雷击舰导弹核心
ship_section_template = {
	key = "CORVETTE_MID_S3_FRIGATE"
	ship_size = frigate
	fits_on_slot = mid
	should_draw_components = yes
	entity = "corvette_S3_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { explosive }
	
	prerequisites = { tech_corvette_hull_1 }

	ai_weight = {
		weight = 0
	}

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

	small_utility_slots = 4
	aux_utility_slots = 1

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

#雷击舰缠斗核心
ship_section_template = {
	key = "CORVETTE_MID_G1P1_FRIGATE"
	ship_size = frigate
	fits_on_slot = mid
	should_draw_components = yes
	entity = "corvette_M1S1_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { screen explosive }
	
	prerequisites = { tech_corvette_hull_1 }

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

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

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

	small_utility_slots = 4
	aux_utility_slots = 1

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

#护卫舰点防核心
ship_section_template = {
	key = "CORVETTE_MID_P3"
	ship_size = corvette
	fits_on_slot = mid
	should_draw_components = yes
	entity = "corvette_S3_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { screen }
	
	prerequisites = { tech_corvette_hull_2 }
	
	ai_weight = {
		weight = 0
	}

	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 = "SMALL_GUN_03"
		template = "point_defence_turret"
		locatorname = "small_gun_03"
	}

	small_utility_slots = 3
	aux_utility_slots = 1

	ai_weight = {
		modifier = {
			factor = 10.0
			OR = {
				is_preferred_weapons = weapon_type_kinetic
				is_preferred_weapons = weapon_type_energy
			}
		}
		modifier = {
			factor = 0.1
			NOR = {
				is_preferred_weapons = weapon_type_kinetic
				is_preferred_weapons = weapon_type_energy
			}
		}
	}

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

#护卫舰炮艇核心
ship_section_template = {
	key = "CORVETTE_MID_M1S1_CORVETTE"
	ship_size = corvette
	fits_on_slot = mid
	should_draw_components = yes
	entity = "corvette_M1S1_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { screen explosive }
	
	prerequisites = { tech_corvette_hull_1 }

	ai_weight = {
		modifier = {
			factor = 10.0
			OR = {
				is_preferred_weapons = weapon_type_kinetic
				is_preferred_weapons = weapon_type_energy
			}
		}
		modifier = {
			factor = 0.1
			NOR = {
				is_preferred_weapons = weapon_type_kinetic
				is_preferred_weapons = weapon_type_energy
			}
		}
	}

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

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

	small_utility_slots = 3
	aux_utility_slots = 1

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

###驱逐舰

ship_section_template = {
	key = "DESTROYER_BOW_G1P2"
	ship_size = destroyer
	fits_on_slot = bow
	should_draw_components = yes
	entity = "destroyer_bow_M1S2_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { screen explosive }
	
	prerequisites = { tech_destroyer_hull_1 }

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

	component_slot = {
		name = "TORPEDO_01"
		template = "medium_missile_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"
	}

	small_utility_slots = 6

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

ship_section_template = {
	key = "DESTROYER_STERN_G1"
	ship_size = destroyer
	fits_on_slot = stern
	should_draw_components = yes
	entity = "destroyer_stern_M1_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = { explosive }
	
	prerequisites = { tech_destroyer_hull_1 }
	
	ai_weight = {
		modifier = {
			factor = 2.0
			is_preferred_weapons = weapon_type_explosive
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_explosive }
		}
	}

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

	aux_utility_slots = 2

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

###巡航舰

ship_section_template = {
	key = "CRUISER_BOW_H1"
	ship_size = cruiser
	fits_on_slot = bow
	should_draw_components = yes
	entity = "cruiser_bow_L1_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { carrier }
	
	prerequisites = { tech_cruiser_hull_1 }
	
	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.5
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}
	}
	
	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		locatorname = "strike_craft_locator_01"
	}

	medium_utility_slots = 4

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

ship_section_template = {
	key = "CRUISER_BOW_G1P2"
	ship_size = cruiser
	fits_on_slot = bow
	should_draw_components = yes
	entity = "cruiser_bow_M1S2_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { explosive explosive_stealth energy_torpedoes energy_torpedoes_stealth }
	
	prerequisites = { tech_cruiser_hull_1 }
	
	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 = "TORPEDO_01"
		template = "medium_missile_turret"
		locatorname = "medium_gun_01"
	}

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

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

	medium_utility_slots = 4

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

ship_section_template = {
	key = "CRUISER_STERN_P2"
	ship_size = cruiser
	fits_on_slot = stern
	should_draw_components = yes
	entity = "cruiser_stern_S2_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = { screen }
	
	prerequisites = { tech_cruiser_hull_1 }

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

	aux_utility_slots = 2

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

ship_section_template = {
	key = "CRUISER_MID_G3"
	ship_size = cruiser
	fits_on_slot = mid
	should_draw_components = yes
	entity = "cruiser_mid_M3_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { gunship }

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

	component_slot = {
		name = "TORPEDO_03"
		template = "medium_missile_turret"
		locatorname = "medium_gun_03"
	}

	medium_utility_slots = 4

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

ship_section_template = {
	key = "CRUISER_MID_H1S2"
	ship_size = cruiser
	fits_on_slot = mid
	should_draw_components = yes
	entity = "cruiser_mid_S2HB_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { carrier }

	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 = "small_turret"
		locatorname = "small_gun_01"
	}
	component_slot = {
		name = "SMALL_GUN_02"
		template = "small_turret"
		locatorname = "small_gun_02"
	}
	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		rotation = 90
		locatorname = "strike_craft_locator_01"
	}

	medium_utility_slots = 4

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

ship_section_template = {
	key = "CRUISER_STERN_G1"
	ship_size = cruiser
	fits_on_slot = stern
	should_draw_components = yes
	entity = "cruiser_stern_M1_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = { explosive }
	
	prerequisites = { tech_cruiser_hull_1 }
	
	ai_weight = {
		modifier = {
			factor = 2.0
			is_preferred_weapons = weapon_type_explosive
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_explosive }
		}
	}

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

	aux_utility_slots = 3

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

###主力舰

ship_section_template = {
	key = "BATTLESHIP_BOW_H2"
	ship_size = battleship
	fits_on_slot = bow
	should_draw_components = yes
	entity = "battleship_bow_L2_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { carrier }
	
	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.5
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}
	}
	
	prerequisites = { tech_battleship_hull_1 }
	
	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		locatorname = "strike_craft_locator_01"
	}
	
	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		locatorname = "strike_craft_locator_02"
	}

	large_utility_slots = 3

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

ship_section_template = {
	key = "BATTLESHIP_BOW_H1M1S2"
	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 = { carrier }
	
	ai_weight = {
		modifier = {
			factor = 2.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.5
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}
	}
	
	prerequisites = { tech_battleship_hull_1 }

	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		locatorname = "strike_craft_locator_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 = 640
		}
	}
}

ship_section_template = {
	key = "BATTLESHIP_MID_L2H1"
	ship_size = battleship
	fits_on_slot = mid
	should_draw_components = yes
	entity = "battleship_mid_L2M2_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { carrier gunship }
	
	ai_weight = {
		modifier = {
			factor = 2.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.5
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}
	}
	
	prerequisites = { tech_battleship_hull_1 }

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

	large_utility_slots = 3

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

ship_section_template = {
	key = "BATTLESHIP_MID_L2P2"
	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 }
	
	ai_weight = {
		modifier = {
			factor = 0.1
			is_preferred_weapons = weapon_type_strike_craft
		}
	}
	
	prerequisites = { tech_battleship_hull_1 }

	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 = "PD_01"
		template = "point_defence_turret"
		locatorname = "medium_gun_01"
	}

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

	large_utility_slots = 3

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

ship_section_template = {
	key = "BATTLESHIP_MID_S8H1"
	ship_size = battleship
	fits_on_slot = mid
	should_draw_components = yes
	entity = "battleship_mid_S4LHB_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { explosive carrier }
	
	ai_weight = {
		weight = 0
	}
	
	prerequisites = { tech_battleship_hull_1 }

	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_01"
	}
	
	component_slot = {
		name = "SMALL_GUN_03"
		template = "small_turret"
		locatorname = "small_gun_02"
	}

	component_slot = {
		name = "SMALL_GUN_04"
		template = "small_turret"
		locatorname = "small_gun_02"
	}
	
	component_slot = {
		name = "SMALL_GUN_05"
		template = "small_turret"
		locatorname = "small_gun_03"
	}

	component_slot = {
		name = "SMALL_GUN_06"
		template = "small_turret"
		locatorname = "small_gun_03"
	}
	
	component_slot = {
		name = "SMALL_GUN_07"
		template = "small_turret"
		locatorname = "small_gun_04"
	}

	component_slot = {
		name = "SMALL_GUN_08"
		template = "small_turret"
		locatorname = "small_gun_04"
	}

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

	large_utility_slots = 3

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

ship_section_template = {
	key = "BATTLESHIP_STERN_H1"
	ship_size = battleship
	fits_on_slot = stern
	should_draw_components = yes
	entity = "battleship_stern_M2_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = { carrier }
	
	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.5
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}
	}
	
	prerequisites = { tech_battleship_hull_1 }

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

	aux_utility_slots = 2

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

ship_section_template = {
	key = "BATTLESHIP_STERN_P2S2"
	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 carrier explosive }
	
	ai_weight = {
		modifier = {
			factor = 5.0
			is_preferred_weapons = weapon_type_explosive
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_explosive }
		}
	}
	
	prerequisites = { tech_battleship_hull_1 }

	component_slot = {
		name = "PD_01"
		template = "point_defence_turret"
		locatorname = "medium_gun_01"

	}
	component_slot = {
		name = "PD_02"
		template = "point_defence_turret"
		locatorname = "medium_gun_02"
	}
	
	component_slot = {
		name = "small_gun_01"
		template = "small_turret"
		locatorname = "medium_gun_01"

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

	aux_utility_slots = 3

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

ship_section_template = {
	key = "BATTLESHIP_STERN_G2"
	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 carrier explosive }
	
	ai_weight = {
		modifier = {
			factor = 5.0
			is_preferred_weapons = weapon_type_explosive
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_explosive }
		}
	}
	
	prerequisites = { tech_battleship_hull_1 }
	
	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"
	}

	aux_utility_slots = 3

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

###指挥舰

#BOW

ship_section_template = {
	key = "TITAN_BOW_X2"
	ship_size = titan
	fits_on_slot = bow
	should_draw_components = yes
	entity = "titan_bow_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { gunship }
	
	prerequisites = { tech_titan_hull_1 }

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

	large_utility_slots = 6

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

ship_section_template = {
	key = "TITAN_BOW_H4P2"
	ship_size = titan
	fits_on_slot = bow
	should_draw_components = yes
	entity = "titan_bow_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { carrier }
	
	prerequisites = { tech_titan_hull_1 }

	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.5
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}		
	}
	
	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		locatorname = "xl_gun_01"
	}
	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		locatorname = "xl_gun_01"
	}
	component_slot = {
		name = "STRIKE_CRAFT_03"
		template = "large_strike_craft"
		locatorname = "xl_gun_01"
	}
	component_slot = {
		name = "STRIKE_CRAFT_04"
		template = "large_strike_craft"
		locatorname = "xl_gun_01"
	}
	component_slot = {
		name = "PD_01"
		template = "invisible_point_defence_turret"
	}
	component_slot = {
		name = "PD_02"
		template = "invisible_point_defence_turret"
	}

	large_utility_slots = 6

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

#MID

ship_section_template = {
	key = "TITAN_MID_H4"
	ship_size = titan
	fits_on_slot = mid
	should_draw_components = yes
	entity = "titan_mid_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { carrier }
	
	prerequisites = { tech_titan_hull_1 }
	
	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.5
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}		
	}

	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		locatorname = "large_gun_01"
	}
	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		locatorname = "large_gun_02"
	}
	component_slot = {
		name = "STRIKE_CRAFT_03"
		template = "large_strike_craft"
		locatorname = "large_gun_03"
	}
	component_slot = {
		name = "STRIKE_CRAFT_04"
		template = "large_strike_craft"
		locatorname = "large_gun_04"
	}

	large_utility_slots = 6

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

ship_section_template = {
	key = "TITAN_MID_T1"
	ship_size = titan
	fits_on_slot = mid
	should_draw_components = yes
	entity = "titan_mid_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { artillery gunship }
	
	prerequisites = { tech_titan_hull_1 }
	
	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.5
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}		
	}

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

	large_utility_slots = 0

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

ship_section_template = {
	key = "TITAN_MID_G8"
	ship_size = titan
	fits_on_slot = mid
	should_draw_components = yes
	entity = "titan_mid_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { energy_torpedoes }
	
	prerequisites = { tech_titan_hull_1 }

	component_slot = {
		name = "TORPEDO_01"
		template = "medium_missile_turret"
		locatorname = "large_gun_01"
	}
	component_slot = {
		name = "TORPEDO_02"
		template = "medium_missile_turret"
		locatorname = "large_gun_02"
	}
	component_slot = {
		name = "TORPEDO_03"
		template = "medium_missile_turret"
		locatorname = "large_gun_03"
	}
	component_slot = {
		name = "TORPEDO_04"
		template = "medium_missile_turret"
		locatorname = "large_gun_04"
	}
		component_slot = {
		name = "TORPEDO_05"
		template = "medium_missile_turret"
		locatorname = "large_gun_01"
	}
	component_slot = {
		name = "TORPEDO_06"
		template = "medium_missile_turret"
		locatorname = "large_gun_02"
	}
	component_slot = {
		name = "TORPEDO_07"
		template = "medium_missile_turret"
		locatorname = "large_gun_03"
	}
	component_slot = {
		name = "TORPEDO_08"
		template = "medium_missile_turret"
		locatorname = "large_gun_04"
	}
	large_utility_slots = 6

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

ship_section_template = {
	key = "TITAN_MID_M8"
	ship_size = titan
	fits_on_slot = mid
	should_draw_components = yes
	entity = "titan_mid_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { explosive }
	
	prerequisites = { tech_titan_hull_1 }

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "large_gun_01"
	}
	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "medium_turret"
		locatorname = "large_gun_02"
	}
	component_slot = {
		name = "MEDIUM_GUN_03"
		template = "medium_turret"
		locatorname = "large_gun_03"
	}
	component_slot = {
		name = "MEDIUM_GUN_04"
		template = "medium_turret"
		locatorname = "large_gun_04"
	}
		component_slot = {
		name = "MEDIUM_GUN_05"
		template = "medium_turret"
		locatorname = "large_gun_01"
	}
	component_slot = {
		name = "MEDIUM_GUN_06"
		template = "medium_turret"
		locatorname = "large_gun_02"
	}
	component_slot = {
		name = "MEDIUM_GUN_07"
		template = "medium_turret"
		locatorname = "large_gun_03"
	}
	component_slot = {
		name = "MEDIUM_GUN_08"
		template = "medium_turret"
		locatorname = "large_gun_04"
	}
	large_utility_slots = 6

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

#STERN

ship_section_template = {
	key = "TITAN_STERN_H1P4"
	ship_size = titan
	fits_on_slot = stern
	should_draw_components = yes
	entity = "titan_stern_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = { carrier }
	
	prerequisites = { tech_titan_hull_1 }
	
	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.5
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}		
	}

	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		locatorname = "large_gun_01"
	}
	
	component_slot = {
		name = "SMALL_GUN_01"
		template = "invisible_point_defence_turret"
	}
	
	component_slot = {
		name = "SMALL_GUN_02"
		template = "invisible_point_defence_turret"
	}
	
	component_slot = {
		name = "SMALL_GUN_03"
		template = "invisible_point_defence_turret"
	}
	
	component_slot = {
		name = "SMALL_GUN_04"
		template = "invisible_point_defence_turret"
	}

	aux_utility_slots = 3

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

ship_section_template = {
	key = "TITAN_STERN_G4"
	ship_size = titan
	fits_on_slot = stern
	should_draw_components = yes
	entity = "titan_stern_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = { energy_torpedoes }
	
	prerequisites = { tech_titan_hull_1 }
	
	component_slot = {
		name = "TORPEDO_01"
		template = "medium_missile_turret"
		locatorname = "large_gun_01"
	}
	
	component_slot = {
		name = "TORPEDO_02"
		template = "medium_missile_turret"
		locatorname = "large_gun_02"
	}
	
	component_slot = {
		name = "TORPEDO_03"
		template = "medium_missile_turret"
		locatorname = "large_gun_01"
	}
	
	component_slot = {
		name = "TORPEDO_04"
		template = "medium_missile_turret"
		locatorname = "large_gun_02"
	}

	aux_utility_slots = 3

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

ship_section_template = {
	key = "TITAN_STERN_M4"
	ship_size = titan
	fits_on_slot = stern
	should_draw_components = yes
	entity = "titan_stern_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = { explosive }
	
	prerequisites = { tech_titan_hull_1 }
	
	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.5
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}		
	}
	
	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "large_gun_01"
	}
	
	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "medium_turret"
		locatorname = "large_gun_02"
	}
	
	component_slot = {
		name = "MEDIUM_GUN_03"
		template = "medium_turret"
		locatorname = "large_gun_01"
	}
	
	component_slot = {
		name = "MEDIUM_GUN_04"
		template = "medium_turret"
		locatorname = "large_gun_02"
	}

	aux_utility_slots = 3

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



###生物泰坦###

#BOW

ship_section_template = {
	key = "BIO_TITAN_BOW_X2P2"
	ship_size = bio_titan
	fits_on_slot = bow
	should_draw_components = yes
	entity = "titan_bow_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { gunship }
	
	prerequisites = { tech_titan_hull_1 }

	component_slot = {
		name = "EXTRA_LARGE_01"
		template = "invisible_extra_large_fixed"
		locatorname = "xl_gun_01"
	}
		
	component_slot = {
		name = "EXTRA_LARGE_02"
		template = "invisible_extra_large_fixed"
		locatorname = "xl_gun_01"
	}
	
	component_slot = {
		name = "PD_01"
		template = "invisible_point_defence_turret"
	}
	component_slot = {
		name = "PD_02"
		template = "invisible_point_defence_turret"
	}

	large_utility_slots = 6

	resources = {
		category = ship_sections
		cost = {
			food = 5600
		}
	}
}

ship_section_template = {
	key = "BIO_TITAN_BOW_H4P2"
	ship_size = bio_titan
	fits_on_slot = bow
	should_draw_components = yes
	entity = "titan_bow_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { carrier }
	
	prerequisites = { tech_titan_hull_1 }

	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.5
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}		
	}
	
	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		locatorname = "xl_gun_01"
	}
	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		locatorname = "xl_gun_01"
	}
	component_slot = {
		name = "STRIKE_CRAFT_03"
		template = "large_strike_craft"
		locatorname = "xl_gun_01"
	}
	component_slot = {
		name = "STRIKE_CRAFT_04"
		template = "large_strike_craft"
		locatorname = "xl_gun_01"
	}
	component_slot = {
		name = "PD_01"
		template = "invisible_point_defence_turret"
	}
	component_slot = {
		name = "PD_02"
		template = "invisible_point_defence_turret"
	}

	large_utility_slots = 6

	resources = {
		category = ship_sections
		cost = {
			food = 5600
		}
	}
}

ship_section_template = {
	key = "BIO_TITAN_MID_H4P2"
	ship_size = bio_titan
	fits_on_slot = mid
	should_draw_components = yes
	entity = "titan_mid_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { carrier }
	
	prerequisites = { tech_titan_hull_1 }
	
	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.5
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}		
	}

	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		locatorname = "large_gun_01"
	}
	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		locatorname = "large_gun_02"
	}
	component_slot = {
		name = "STRIKE_CRAFT_03"
		template = "large_strike_craft"
		locatorname = "large_gun_03"
	}
	component_slot = {
		name = "STRIKE_CRAFT_04"
		template = "large_strike_craft"
		locatorname = "large_gun_04"
	}
	component_slot = {
		name = "SMALL_GUN_01"
		template = "invisible_point_defence_turret"
	}
	component_slot = {
		name = "SMALL_GUN_02"
		template = "invisible_point_defence_turret"
	}

	large_utility_slots = 6

	resources = {
		category = ship_sections
		cost = {
			food = 5600
		}
	}
}

#STERN

ship_section_template = {
	key = "BIO_TITAN_STERN_H2P1"
	ship_size = bio_titan
	fits_on_slot = stern
	should_draw_components = yes
	entity = "titan_stern_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = { carrier }
	
	prerequisites = { tech_titan_hull_1 }
	
	ai_weight = {
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0.5
			NOT = { is_preferred_weapons = weapon_type_strike_craft }
		}		
	}

	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		locatorname = "large_gun_01"
	}
	
	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		locatorname = "large_gun_02"
	}
	
	component_slot = {
		name = "SMALL_GUN_01"
		template = "invisible_point_defence_turret"
	}

	aux_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			food = 5600
		}
	}
}