@ct_section_cost = 40
@fr_section_cost = 60
@dt_section_cost = 120
@cr_section_cost = 240
@bs_section_cost = 640
@tt_section_cost = 1600

#########################
### Corvette Sections ###
#########################

ship_section_template = {
	key = "STZ_CORVETTE_VIRIDISIUM_MID_S5"
	ship_size = corvette
	fits_on_slot = mid
	should_draw_components = yes
	entity = "corvette_S3_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { gunship artillery brawler brawler_stealth }

	prerequisites = { stz_tech_viridisium_sections }

	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 = "invisible_small_turret"
		locatorname = "small_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_05"
		template = "invisible_small_turret"
		locatorname = "small_gun_02"
	}

	component_slot = {
		name = "SMALL_GUN_06"
		template = "invisible_small_turret"
		locatorname = "small_gun_01"
	}

	small_utility_slots = 5
	aux_utility_slots = 2

	ai_weight = {
		factor = 2
		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 = @ct_section_cost
			stz_sr_caerulenite = 10
			stz_sr_viridisium = 5
		}
	}
}

ship_section_template = {
	key = "STZ_CORVETTE_VIRIDISIUM_MID_S3PD3"
	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 = { stz_tech_viridisium_sections }

	ai_weight = {
		factor = 2
		modifier = {
			factor = 10.0
			is_ai = yes
			is_preferred_weapons = weapon_type_strike_craft
			has_technology = tech_cruisers
		}
		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_02"
		template = "invisible_point_defence_turret"
		locatorname = "small_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_03"
		template = "invisible_point_defence_turret"
		locatorname = "small_gun_01"
	}

	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 = "invisible_small_turret"
		locatorname = "small_gun_03"
	}

	small_utility_slots = 5
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
			alloys = @ct_section_cost
			stz_sr_caerulenite = 10
			stz_sr_viridisium = 5
		}
	}
}

ship_section_template = {
	key = "STZ_CORVETTE_VIRIDISIUM_MID_M3"
	ship_size = corvette
	fits_on_slot = mid
	should_draw_components = yes
	entity = "corvette_M1S1_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { gunship artillery brawler brawler_stealth }

	prerequisites = { stz_tech_viridisium_sections }

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

	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "invisible_medium_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_03"
		template = "invisible_medium_turret"
		locatorname = "medium_gun_01"
	}

	small_utility_slots = 5
	aux_utility_slots = 2

	ai_weight = {
		factor = 2
		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 = @ct_section_cost
			stz_sr_caerulenite = 10
			stz_sr_viridisium = 5
		}
	}
}

########################
### Frigate Sections ###
########################

ship_section_template = {
	key = "STZ_CORVETTE_VIRIDISIUM_MID_G2S2" # Used by the Frigate, not the Corvette
	ship_size = frigate
	fits_on_slot = mid
	should_draw_components = yes
	entity = "corvette_M1S1_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { explosive explosive_stealth energy_torpedoes energy_torpedoes_stealth }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {
		factor = 2
		modifier = {
			factor = 10.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 = "small_turret"
		locatorname = "small_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_02"
		template = "invisible_small_turret"
		locatorname = "small_gun_01"
	}

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

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

	small_utility_slots = 7
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
			alloys = @fr_section_cost
			stz_sr_caerulenite = 15
			stz_sr_viridisium = 7.5
		}
	}
}

##########################
### Destroyer Sections ###
##########################

#BOW

ship_section_template = {
	key = "STZ_DESTROYER_VIRIDISIUM_BOW_M2S3"
	ship_size = destroyer
	fits_on_slot = bow
	should_draw_components = yes
	entity = "destroyer_bow_M1S2_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { gunship brawler }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {
		factor = 2
		modifier = {
			factor = 10.0
			NOR = {
				has_ai_personality = peaceful_traders
				has_ai_personality = slaving_despots
				has_ai_personality = migrating_flock
				has_ai_personality = evangelising_zealots
				has_ai_personality = hive_mind
			}
		}
	}

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

	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "invisible_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"
	}

	component_slot = {
		name = "SMALL_GUN_03"
		template = "invisible_small_turret"
		locatorname = "small_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_04"
		template = "invisible_small_turret"
		locatorname = "small_gun_02"
	}

	small_utility_slots = 6

	resources = {
		category = ship_sections
		cost = {
			alloys = @dt_section_cost
			stz_sr_caerulenite = 10
			stz_sr_viridisium = 5
		}
	}
}

ship_section_template = {
	key = "STZ_DESTROYER_VIRIDISIUM_BOW_S5"
	ship_size = destroyer
	fits_on_slot = bow
	should_draw_components = yes
	entity = "destroyer_bow_S3_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { screen }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {
		factor = 2
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_explosive
		}
		modifier = {
			factor = 0.1
			has_technology = stz_tech_viridisium_sections
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_explosive }
		}
	}

	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 = "invisible_small_turret"
		locatorname = "small_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_05"
		template = "invisible_point_defence_turret"
		locatorname = "small_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_06"
		template = "invisible_point_defence_turret"
		locatorname = "small_gun_02"
	}

	component_slot = {
		name = "SMALL_GUN_07"
		template = "invisible_point_defence_turret"
		locatorname = "small_gun_03"
	}

	component_slot = {
		name = "SMALL_GUN_08"
		template = "invisible_point_defence_turret"
		locatorname = "small_gun_01"
	}

	small_utility_slots = 6

	resources = {
		category = ship_sections
		cost = {
			alloys = @dt_section_cost
			stz_sr_caerulenite = 10
			stz_sr_viridisium = 5
		}
	}
}

ship_section_template = {
	key = "STZ_DESTROYER_VIRIDISIUM_BOW_L2"
	ship_size = destroyer
	fits_on_slot = bow
	should_draw_components = yes
	entity = "destroyer_bow_L1_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { artillery artillery_stealth }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_kinetic
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_kinetic }
		}
	}

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

	component_slot = {
		name = "LARGE_GUN_02"
		template = "invisible_large_turret"
		locatorname = "large_gun_01"
	}

	small_utility_slots = 6

	resources = {
		category = ship_sections
		cost = {
			alloys = @dt_section_cost
			stz_sr_caerulenite = 10
			stz_sr_viridisium = 5
		}
	}
}

#STERN

ship_section_template = {
	key = "STZ_DESTROYER_VIRIDISIUM_STERN_PD5"
	ship_size = destroyer
	fits_on_slot = stern
	should_draw_components = yes
	entity = "destroyer_stern_S2_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = { screen }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {
		factor = 2
		modifier = {
			factor = 10.0
			NOR = {
				has_ai_personality = peaceful_traders
				has_ai_personality = slaving_despots
				has_ai_personality = migrating_flock
				has_ai_personality = evangelising_zealots
				has_ai_personality = hive_mind
			}
		}
	}


	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 = "invisible_point_defence_turret"
		locatorname = "small_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_04"
		template = "invisible_point_defence_turret"
		locatorname = "small_gun_02"
	}

	small_utility_slots = 2
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
			alloys = @dt_section_cost
			stz_sr_caerulenite = 10
			stz_sr_viridisium = 5
		}
	}
}

ship_section_template = {
	key = "STZ_DESTROYER_VIRIDISIUM_STERN_S3"
	ship_size = destroyer
	fits_on_slot = stern
	should_draw_components = yes
	entity = "destroyer_stern_S2_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = { gunship brawler }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		modifier = {
			factor = 10.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 = "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 = "invisible_small_turret"
		locatorname = "small_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_04"
		template = "invisible_small_turret"
		locatorname = "small_gun_02"
	}

	small_utility_slots = 2
	aux_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			alloys = @dt_section_cost
			stz_sr_caerulenite = 10
			stz_sr_viridisium = 5
		}
	}
}

ship_section_template = {
	key = "STZ_DESTROYER_VIRIDISIUM_STERN_M2"
	ship_size = destroyer
	fits_on_slot = stern
	should_draw_components = yes
	entity = "destroyer_stern_M1_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = { artillery artillery_stealth }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_kinetic
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_kinetic }
		}
	}

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

	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "invisible_medium_turret"
		locatorname = "medium_gun_01"
	}

	small_utility_slots = 2
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
			alloys = @dt_section_cost
			stz_sr_caerulenite = 10
			stz_sr_viridisium = 5
		}
	}
}

########################
### Cruiser Sections ###
########################

#BOW

ship_section_template = {
	key = "STZ_CRUISER_VIRIDISIUM_BOW_L2M1"
	ship_size = cruiser
	fits_on_slot = bow
	should_draw_components = yes
	entity = "cruiser_bow_L1_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { artillery artillery_stealth }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {
		factor = 2
		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_kinetic
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_kinetic }
		}
	}

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

	component_slot = {
		name = "LARGE_GUN_02"
		template = "invisible_large_turret"
		locatorname = "large_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "invisible_medium_turret"
		locatorname = "large_gun_01"
	}

	medium_utility_slots = 4
	aux_utility_slots = 1

	resources = {
		category = ship_sections
		cost = {
			alloys = @cr_section_cost
			stz_sr_caerulenite = 20
			stz_sr_viridisium = 10
		}
	}
}

ship_section_template = {
	key = "STZ_CRUISER_VIRIDISIUM_BOW_G3S2"
	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 = { stz_tech_viridisium_sections }

	ai_weight = {
		factor = 2
		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 = "TORPEDO_02"
		template = "invisible_missile_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "TORPEDO_03"
		template = "invisible_missile_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"
	}

	medium_utility_slots = 4
	aux_utility_slots = 1

	resources = {
		category = ship_sections
		cost = {
			alloys = @cr_section_cost
			stz_sr_caerulenite = 20
			stz_sr_viridisium = 10
		}
	}
}

ship_section_template = {
	key = "STZ_CRUISER_VIRIDISIUM_BOW_M4"
	ship_size = cruiser
	fits_on_slot = bow
	should_draw_components = yes
	entity = "cruiser_bow_M2_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { gunship carrier }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_energy
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_energy }
		}
	}

	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 = "invisible_medium_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_04"
		template = "invisible_medium_turret"
		locatorname = "medium_gun_02"
	}

	component_slot = {
		name = "MEDIUM_GUN_05"
		template = "invisible_medium_turret"
		locatorname = "medium_gun_01"
	}

	medium_utility_slots = 4
	aux_utility_slots = 1

	resources = {
		category = ship_sections
		cost = {
			alloys = @cr_section_cost
			stz_sr_caerulenite = 20
			stz_sr_viridisium = 10
		}
	}
}

ship_section_template = {
	key = "STZ_CRUISER_VIRIDISIUM_BOW_X1S2"
	ship_size = cruiser
	fits_on_slot = bow
	should_draw_components = yes
	entity = "cruiser_bow_M2_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { artillery artillery_stealth }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_kinetic
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_kinetic }
		}
	}

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

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

	medium_utility_slots = 4
	aux_utility_slots = 1

	resources = {
		category = ship_sections
		cost = {
			alloys = @cr_section_cost
			stz_sr_caerulenite = 20
			stz_sr_viridisium = 10
		}
	}
}

#MID
ship_section_template = {
	key = "STZ_CRUISER_VIRIDISIUM_MID_S3HB"
	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 }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {
		factor = 3
		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 = "PD_01"
		template = "point_defence_turret"
		locatorname = "small_gun_01"
	}

	component_slot = {
		name = "PD_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"
	}

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

	medium_utility_slots = 4
	aux_utility_slots = 1

	resources = {
		category = ship_sections
		cost = {
			alloys = @cr_section_cost
			stz_sr_caerulenite = 20
			stz_sr_viridisium = 10
		}
	}
}

ship_section_template = {
	key = "STZ_CRUISER_VIRIDISIUM_MID_L2M1"
	ship_size = cruiser
	fits_on_slot = mid
	should_draw_components = yes
	entity = "cruiser_mid_L1M1_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { artillery artillery_stealth }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_kinetic
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_kinetic }
		}
	}

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

	component_slot = {
		name = "LARGE_GUN_02"
		template = "invisible_large_turret"
		locatorname = "large_gun_01"
	}

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

	medium_utility_slots = 4
	aux_utility_slots = 1

	resources = {
		category = ship_sections
		cost = {
			alloys = @cr_section_cost
			stz_sr_caerulenite = 20
			stz_sr_viridisium = 10
		}
	}
}

ship_section_template = {
	key = "STZ_CRUISER_VIRIDISIUM_MID_M5"
	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 }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_energy
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_energy }
		}
	}

	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 = "invisible_medium_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_05"
		template = "invisible_medium_turret"
		locatorname = "medium_gun_02"
	}

	medium_utility_slots = 4
	aux_utility_slots = 1

	resources = {
		category = ship_sections
		cost = {
			alloys = @cr_section_cost
			stz_sr_caerulenite = 20
			stz_sr_viridisium = 10
		}
	}
}

ship_section_template = {
	key = "STZ_CRUISER_VIRIDISIUM_MID_G3S2"
	ship_size = cruiser
	fits_on_slot = mid
	should_draw_components = yes
	entity = "cruiser_mid_M2S2_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { explosive explosive_stealth energy_torpedoes energy_torpedoes_stealth }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {
		factor = 3
		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 = "TORPEDO_02"
		template = "medium_missile_turret"
		locatorname = "medium_gun_02"
	}

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

	component_slot = {
		name = "TORPEDO_04"
		template = "invisible_missile_turret"
		locatorname = "medium_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 = "invisible_small_turret"
		locatorname = "small_gun_01"
	}

	medium_utility_slots = 4
	aux_utility_slots = 1

	resources = {
		category = ship_sections
		cost = {
			alloys = @cr_section_cost
			stz_sr_caerulenite = 20
			stz_sr_viridisium = 10
		}
	}
}

#STERN

ship_section_template = {
	key = "STZ_CRUISER_VIRIDISIUM_STERN_M3"
	ship_size = cruiser
	fits_on_slot = stern
	should_draw_components = yes
	entity = "cruiser_stern_M1_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = { gunship	}

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_energy
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_energy }
		}
	}

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

	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "invisible_medium_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_03"
		template = "invisible_medium_turret"
		locatorname = "medium_gun_01"
	}

	medium_utility_slots = 4
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
			alloys = @cr_section_cost
			stz_sr_caerulenite = 20
			stz_sr_viridisium = 10
		}
	}
}

ship_section_template = {
	key = "STZ_CRUISER_VIRIDISIUM_STERN_G2S2"
	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 explosive_stealth energy_torpedoes energy_torpedoes_stealth	}

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		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 = "TORPEDO_02"
		template = "invisible_missile_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_01"
		template = "invisible_small_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_02"
		template = "invisible_small_turret"
		locatorname = "medium_gun_01"
	}

	medium_utility_slots = 4
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
			alloys = @cr_section_cost
			stz_sr_caerulenite = 20
			stz_sr_viridisium = 10
		}
	}
}

ship_section_template = {
	key = "STZ_CRUISER_VIRIDISIUM_STERN_L1M1"
	ship_size = cruiser
	fits_on_slot = stern
	should_draw_components = yes
	entity = "cruiser_stern_M1_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = { artillery artillery_stealth carrier	}

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_kinetic
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_kinetic }
		}
	}

	component_slot = {
		name = "LARGE_GUN_01"
		template = "invisible_large_turret"
		locatorname = "medium_gun_01"
	}

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

	medium_utility_slots = 4
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
			alloys = @cr_section_cost
			stz_sr_caerulenite = 20
			stz_sr_viridisium = 10
		}
	}
}

ship_section_template = {
	key = "STZ_CRUISER_VIRIDISIUM_STERN_S4"
	ship_size = cruiser
	fits_on_slot = stern
	should_draw_components = yes
	entity = "cruiser_stern_S2_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = {	gunship explosive explosive_stealth energy_torpedoes energy_torpedoes_stealth }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		modifier = {
			factor = 10.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 = "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 = "invisible_small_turret"
		locatorname = "small_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_04"
		template = "invisible_small_turret"
		locatorname = "small_gun_02"
	}

	component_slot = {
		name = "SMALL_GUN_05"
		template = "invisible_point_defence_turret"
		locatorname = "small_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_06"
		template = "invisible_point_defence_turret"
		locatorname = "small_gun_02"
	}

	medium_utility_slots = 4
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
			alloys = @cr_section_cost
			stz_sr_caerulenite = 20
			stz_sr_viridisium = 10
		}
	}
}

############################
### Battleships Sections ###
############################

### Viridisium Bow Section
ship_section_template = {
	key = "STZ_BATTLESHIP_VIRIDISIUM_BOW_T1"
	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 }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 3

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_energy
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_energy }
		}
	}

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

	large_utility_slots = 5

	resources = {
		category = ship_sections
		cost = {
			alloys = @bs_section_cost
			stz_sr_caerulenite = 40
			stz_sr_viridisium = 20
		}
	}
}

ship_section_template = {
	key = "STZ_BATTLESHIP_VIRIDISIUM_BOW_X2"
	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 }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 3

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_kinetic
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_kinetic }
		}
	}

	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 = 5

	resources = {
		category = ship_sections
		cost = {
			alloys = @bs_section_cost
			stz_sr_caerulenite = 40
			stz_sr_viridisium = 20
		}
	}
}

ship_section_template = {
	key = "STZ_BATTLESHIP_VIRIDISIUM_BOW_M1P2SHB"
	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 }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 3

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

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

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

	large_utility_slots = 5

	resources = {
		category = ship_sections
		cost = {
			alloys = @bs_section_cost
			stz_sr_caerulenite = 40
			stz_sr_viridisium = 20
		}
	}
}

ship_section_template = {
	key = "STZ_BATTLESHIP_VIRIDISIUM_BOW_L1M4S4"
	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 }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 3

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

	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 = "invisible_medium_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_03"
		template = "invisible_medium_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_04"
		template = "invisible_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"
	}

	component_slot = {
		name = "SMALL_GUN_03"
		template = "invisible_small_turret"
		locatorname = "small_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_04"
		template = "invisible_small_turret"
		locatorname = "small_gun_02"
	}

	large_utility_slots = 5

	resources = {
		category = ship_sections
		cost = {
			alloys = @bs_section_cost
			stz_sr_caerulenite = 40
			stz_sr_viridisium = 20
		}
	}
}

### Viridisium Mid Sections
ship_section_template = {
	key = "STZ_BATTLESHIP_VIRIDISIUM_MID_L2M5S4P2"
	ship_size = battleship
	fits_on_slot = mid
	should_draw_components = yes
	entity = "battleship_mid_L2M2_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { artillery gunship }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 3

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

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

	component_slot = {
		name = "MEDIUM_GUN_03"
		template = "invisible_medium_turret"
		locatorname = "medium_gun_01"
	}
	
	component_slot = {
		name = "MEDIUM_GUN_04"
		template = "invisible_medium_turret"
		locatorname = "medium_gun_02"
	}
		
	component_slot = {
		name = "MEDIUM_GUN_05"
		template = "invisible_medium_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_01"
		template = "invisible_small_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_02"
		template = "invisible_small_turret"
		locatorname = "medium_gun_02"
	}

	component_slot = {
		name = "SMALL_GUN_03"
		template = "invisible_small_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_04"
		template = "invisible_small_turret"
		locatorname = "medium_gun_02"
	}

	component_slot = {
		name = "SMALL_GUN_05"
		template = "invisible_point_defence_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_06"
		template = "invisible_point_defence_turret"
		locatorname = "medium_gun_02"
	}

	large_utility_slots = 5

	resources = {
		category = ship_sections
		cost = {
			alloys = @bs_section_cost
			stz_sr_caerulenite = 40
			stz_sr_viridisium = 20
		}
	}
}

ship_section_template = {
	key = "STZ_BATTLESHIP_VIRIDISIUM_MID_L5M2"
	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 }
	
	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 3

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_kinetic
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_kinetic }
		}
	}

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

	component_slot = {
		name = "LARGE_GUN_04"
		template = "invisible_large_turret"
		locatorname = "large_gun_01"
	}
	
	component_slot = {
		name = "LARGE_GUN_05"
		template = "invisible_large_turret"
		locatorname = "large_gun_02"
	}

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "invisible_medium_turret"
		locatorname = "large_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "invisible_medium_turret"
		locatorname = "large_gun_02"
	}

	large_utility_slots = 5

	resources = {
		category = ship_sections
		cost = {
			alloys = @bs_section_cost
			stz_sr_caerulenite = 40
			stz_sr_viridisium = 20
		}
	}
}

ship_section_template = {
	key = "STZ_BATTLESHIP_VIRIDISIUM_MID_L2M3HB"
	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 gunship }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 3

		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 = "LARGE_GUN_01"
		template = "large_turret"
		locatorname = "medium_gun_03"
	}

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

	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 = "invisible_medium_turret"
		locatorname = "medium_gun_03"
	}

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

	component_slot = {
		name = "SMALL_GUN_01"
		template = "invisible_point_defence_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_02"
		template = "invisible_point_defence_turret"
		locatorname = "medium_gun_02"
	}

	large_utility_slots = 5

	resources = {
		category = ship_sections
		cost = {
			alloys = @bs_section_cost
			stz_sr_caerulenite = 40
			stz_sr_viridisium = 20
		}
	}
}

ship_section_template = {
	key = "STZ_BATTLESHIP_VIRIDISIUM_MID_M2P4HB"
	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 }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 3

		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 = "MEDIUM_GUN_01"
		template = "invisible_medium_turret"
		locatorname = "small_gun_01"
	}
	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "invisible_medium_turret"
		locatorname = "small_gun_02"
	}
	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"
	}

		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"
	}
	component_slot = {
		name = "STRIKE_CRAFT_03"
		template = "large_strike_craft"
		rotation = 90
		locatorname = "strike_craft_locator_01"
	}
	component_slot = {
		name = "STRIKE_CRAFT_04"
		template = "large_strike_craft"
		rotation = -90
		locatorname = "strike_craft_locator_02"
	}

	large_utility_slots = 5

	resources = {
		category = ship_sections
		cost = {
			alloys = @bs_section_cost
			stz_sr_caerulenite = 40
			stz_sr_viridisium = 20
		}
	}
}

### Viridisium Stern Sections
ship_section_template = {
	key = "STZ_BATTLESHIP_VIRIDISIUM_STERN_L2"
	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 }
	
	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 3

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_kinetic
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_kinetic }
		}
	}

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

	component_slot = {
		name = "LARGE_GUN_02"
		template = "invisible_large_turret"
		locatorname = "large_gun_01"
	}

	aux_utility_slots = 5

	resources = {
		category = ship_sections
		cost = {
			alloys = @bs_section_cost
			stz_sr_caerulenite = 40
			stz_sr_viridisium = 20
		}
	}
}

ship_section_template = {
	key = "STZ_BATTLESHIP_VIRIDISIUM_STERN_M3S2"
	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 }
	
	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 3

		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 = "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 = "invisible_medium_turret"
		locatorname = "medium_gun_01"

	}
	
	component_slot = {
		name = "SMALL_GUN_04"
		template = "invisible_small_turret"
		locatorname = "medium_gun_02"
	}

	component_slot = {
		name = "SMALL_GUN_05"
		template = "invisible_small_turret"
		locatorname = "medium_gun_01"

	}

	aux_utility_slots = 5

	resources = {
		category = ship_sections
		cost = {
			alloys = @bs_section_cost
			stz_sr_caerulenite = 40
			stz_sr_viridisium = 20
		}
	}
}

ship_section_template = {
	key = "STZ_BATTLESHIP_VIRIDISIUM_STERN_S4HB"
	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 }
	
	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 3

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

	component_slot = {
		name = "SMALL_GUN_02"
		template = "small_turret"
		locatorname = "medium_gun_02"

	}

	component_slot = {
		name = "SMALL_GUN_03"
		template = "invisible_point_defence_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_04"
		template = "invisible_point_defence_turret"
		locatorname = "medium_gun_02"

	}

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

	aux_utility_slots = 5

	resources = {
		category = ship_sections
		cost = {
			alloys = @bs_section_cost
			stz_sr_caerulenite = 40
			stz_sr_viridisium = 20
		}
	}
}

######################
### Titan Sections ###
######################

### Advanced Bow Section
ship_section_template = {
	key = "STZ_TITAN_VIRIDISIUM_BOW_T1X2"
	ship_size = titan
	fits_on_slot = bow
	should_draw_components = yes
	entity = "titan_bow_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { artillery gunship }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_energy
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_energy }
		}
	}

	component_slot = {
		name = "TITANIC_01"
		template = "invisible_titanic_fixed"
		locatorname = "xl_gun_01"
	}
	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 = 10

	resources = {
		category = ship_sections
		cost = {
			alloys = @tt_section_cost
			stz_sr_caerulenite = 100
			stz_sr_viridisium = 50
		}
	}
}

ship_section_template = {
	key = "STZ_TITAN_VIRIDISIUM_BOW_T2"
	ship_size = titan
	fits_on_slot = bow
	should_draw_components = yes
	entity = "titan_bow_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { artillery gunship }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 3

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_energy
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_energy }
		}
	}

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

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

	large_utility_slots = 10

	resources = {
		category = ship_sections
		cost = {
			alloys = @tt_section_cost
			stz_sr_caerulenite = 100
			stz_sr_viridisium = 50
		}
	}
}

ship_section_template = {
	key = "STZ_TITAN_VIRIDISIUM_BOW_T1H2M4"
	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 = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 3

		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 = "TITANIC_01"
		template = "invisible_titanic_fixed"
		locatorname = "xl_gun_01"
	}

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

	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		rotation = -90
		locatorname = "xl_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "invisible_medium_turret"
		locatorname = "xl_gun_01"

	}

	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "invisible_medium_turret"
		locatorname = "xl_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_03"
		template = "invisible_medium_turret"
		locatorname = "xl_gun_01"

	}
	
	component_slot = {
		name = "MEDIUM_GUN_04"
		template = "invisible_medium_turret"
		locatorname = "xl_gun_01"
	}

	large_utility_slots = 10

	resources = {
		category = ship_sections
		cost = {
			alloys = @tt_section_cost
			stz_sr_caerulenite = 100
			stz_sr_viridisium = 50
		}
	}
}

ship_section_template = {
	key = "STZ_TITAN_VIRIDISIUM_BOW_T1L3M2"
	ship_size = titan
	fits_on_slot = bow
	should_draw_components = yes
	entity = "titan_bow_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = { artillery gunship }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 3

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_kinetic
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_kinetic }
		}
	}

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

	component_slot = {
		name = "LARGE_GUN_01"
		template = "invisible_large_turret"
		locatorname = "xl_gun_01"
	}

	component_slot = {
		name = "LARGE_GUN_02"
		template = "invisible_large_turret"
		locatorname = "xl_gun_01"
	}

	component_slot = {
		name = "LARGE_GUN_03"
		template = "invisible_large_turret"
		locatorname = "xl_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "invisible_medium_turret"
		locatorname = "xl_gun_01"

	}

	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "invisible_medium_turret"
		locatorname = "xl_gun_01"
	}

	large_utility_slots = 10

	resources = {
		category = ship_sections
		cost = {
			alloys = @tt_section_cost
			stz_sr_caerulenite = 100
			stz_sr_viridisium = 50
		}
	}
}

### Advanced Mid Section
ship_section_template = {
	key = "STZ_TITAN_VIRIDISIUM_MID_L6M4"
	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 = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_kinetic
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_kinetic }
		}
	}

	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"
	}
	component_slot = {
		name = "LARGE_GUN_04"
		template = "large_turret"
		locatorname = "large_gun_04"
	}
	component_slot = {
		name = "LARGE_GUN_05"
		template = "invisible_large_turret"
		locatorname = "large_gun_01"
	}
	component_slot = {
		name = "LARGE_GUN_06"
		template = "invisible_large_turret"
		locatorname = "large_gun_02"
	}
	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "invisible_medium_turret"
		locatorname = "large_gun_01"

	}
	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "invisible_medium_turret"
		locatorname = "large_gun_02"
	}
	component_slot = {
		name = "MEDIUM_GUN_03"
		template = "invisible_medium_turret"
		locatorname = "large_gun_03"

	}
	component_slot = {
		name = "MEDIUM_GUN_04"
		template = "invisible_medium_turret"
		locatorname = "large_gun_04"
	}


	large_utility_slots = 10

	resources = {
		category = ship_sections
		cost = {
			alloys = @tt_section_cost
			stz_sr_caerulenite = 100
			stz_sr_viridisium = 50
		}
	}
}

ship_section_template = {
	key = "STZ_TITAN_VIRIDISIUM_MID_X4"
	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 = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_energy
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_energy }
		}
	}

	component_slot = {
		name = "EXTRA_LARGE_01"
		template = "extra_large_turret"
		locatorname = "large_gun_01"
	}
	component_slot = {
		name = "EXTRA_LARGE_02"
		template = "extra_large_turret"
		locatorname = "large_gun_02"
	}
	component_slot = {
		name = "EXTRA_LARGE_03"
		template = "extra_large_turret"
		locatorname = "large_gun_03"
	}
	component_slot = {
		name = "EXTRA_LARGE_04"
		template = "extra_large_turret"
		locatorname = "large_gun_04"
	}


	large_utility_slots = 10

	resources = {
		category = ship_sections
		cost = {
			alloys = @tt_section_cost
			stz_sr_caerulenite = 100
			stz_sr_viridisium = 50
		}
	}
}

ship_section_template = {
	key = "STZ_TITAN_VIRIDISIUM_MID_H6M2P4"
	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 = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		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"
		rotation = 90
		locatorname = "large_gun_01"
	}

	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		rotation = -90
		locatorname = "large_gun_02"
	}

	component_slot = {
		name = "STRIKE_CRAFT_03"
		template = "large_strike_craft"
		rotation = 90
		locatorname = "large_gun_03"
	}

	component_slot = {
		name = "STRIKE_CRAFT_04"
		template = "large_strike_craft"
		rotation = -90
		locatorname = "large_gun_04"
	}

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "large_gun_03"

	}

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

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

	component_slot = {
		name = "SMALL_GUN_02"
		template = "point_defence_turret"
		locatorname = "large_gun_02"

	}

	component_slot = {
		name = "SMALL_GUN_03"
		template = "invisible_point_defence_turret"
		locatorname = "large_gun_03"
	}

	component_slot = {
		name = "SMALL_GUN_04"
		template = "invisible_point_defence_turret"
		locatorname = "large_gun_04"

	}

	large_utility_slots = 10

	resources = {
		category = ship_sections
		cost = {
			alloys = @tt_section_cost
			stz_sr_caerulenite = 100
			stz_sr_viridisium = 50
		}
	}
}

ship_section_template = {
	key = "STZ_TITAN_VIRIDISIUM_MID_X2L4"
	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 = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_kinetic
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_kinetic }
		}
	}

	component_slot = {
		name = "EXTRA_LARGE_01"
		template = "extra_large_turret"
		locatorname = "large_gun_03"
	}
	component_slot = {
		name = "EXTRA_LARGE_02"
		template = "extra_large_turret"
		locatorname = "large_gun_04"
	}
	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 = "invisible_large_turret"
		locatorname = "large_gun_03"
	}
	component_slot = {
		name = "LARGE_GUN_04"
		template = "invisible_large_turret"
		locatorname = "large_gun_04"
	}

	large_utility_slots = 10

	resources = {
		category = ship_sections
		cost = {
			alloys = @tt_section_cost
			stz_sr_caerulenite = 100
			stz_sr_viridisium = 50
		}
	}
}

### Advanced Stern Section
ship_section_template = {
	key = "STZ_TITAN_VIRIDISIUM_STERN_L4"
	ship_size = titan
	fits_on_slot = stern
	should_draw_components = yes
	entity = "titan_stern_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = { artillery gunship }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_kinetic
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_kinetic }
		}
	}

	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 = "invisible_large_turret"
		locatorname = "large_gun_01"
	}
	component_slot = {
		name = "LARGE_GUN_04"
		template = "invisible_large_turret"
		locatorname = "large_gun_02"
	}

	aux_utility_slots = 5

	resources = {
		category = ship_sections
		cost = {
			alloys = @tt_section_cost
			stz_sr_caerulenite = 100
			stz_sr_viridisium = 50
		}
	}
}

ship_section_template = {
	key = "STZ_TITAN_VIRIDISIUM_STERN_L3M2"
	ship_size = titan
	fits_on_slot = stern
	should_draw_components = yes
	entity = "titan_stern_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = { carrier gunship }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		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 = "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 = "invisible_large_turret"
		locatorname = "large_gun_01"
	}
	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "invisible_medium_turret"
		locatorname = "large_gun_01"

	}
	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "invisible_medium_turret"
		locatorname = "large_gun_02"
	}


	aux_utility_slots = 5

	resources = {
		category = ship_sections
		cost = {
			alloys = @tt_section_cost
			stz_sr_caerulenite = 100
			stz_sr_viridisium = 50
		}
	}
}

ship_section_template = {
	key = "STZ_TITAN_VIRIDISIUM_STERN_X2"
	ship_size = titan
	fits_on_slot = stern
	should_draw_components = yes
	entity = "titan_stern_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = { artillery gunship }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {

		factor = 2

		modifier = {
			factor = 10.0
			is_preferred_weapons = weapon_type_energy
		}
		modifier = {
			factor = 0.1
			NOT = { is_preferred_weapons = weapon_type_energy }
		}
	}

	component_slot = {
		name = "EXTRA_LARGE_01"
		template = "extra_large_turret"
		locatorname = "large_gun_01"
	}
	component_slot = {
		name = "EXTRA_LARGE_02"
		template = "extra_large_turret"
		locatorname = "large_gun_02"
	}


	aux_utility_slots = 5

	resources = {
		category = ship_sections
		cost = {
			alloys = @tt_section_cost
			stz_sr_caerulenite = 100
			stz_sr_viridisium = 50
		}
	}
}

###########################
### Juggernaut Sections ###
###########################

ship_section_template = {
	key = "STZ_VIRIDISIUM_CORE_JUGGERNAUT_SECTION"
	ship_size = juggernaut

	fits_on_slot = "core"
	entity = "juggernaut_core_section_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { carrier artillery }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {
		factor = 2
	}

	component_slot = {
		name = "TITANIC_01"
		template = "invisible_titanic_turret"
		locatorname = "xl_gun_01"
	}
	component_slot = {
		name = "TITANIC_02"
		template = "invisible_titanic_turret"
		locatorname = "xl_gun_02"
	}

	component_slot = {
		name = "EXTRA_LARGE_01"
		template = "extra_large_turret"
		locatorname = "xl_gun_01"
	}
	component_slot = {
		name = "EXTRA_LARGE_02"
		template = "extra_large_turret"
		locatorname = "xl_gun_02"
	}

	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"
	}
	component_slot = {
		name = "STRIKE_CRAFT_03"
		template = "large_strike_craft"
		locatorname = "strike_craft_locator_03"
	}
	component_slot = {
		name = "STRIKE_CRAFT_04"
		template = "large_strike_craft"
		locatorname = "strike_craft_locator_04"
	}
	component_slot = {
		name = "STRIKE_CRAFT_05"
		template = "large_strike_craft"
		locatorname = "strike_craft_locator_05"
	}
	component_slot = {
		name = "STRIKE_CRAFT_06"
		template = "large_strike_craft"
		locatorname = "strike_craft_locator_06"
	}
	component_slot = {
		name = "STRIKE_CRAFT_07"
		template = "large_strike_craft"
		locatorname = "strike_craft_locator_01"
	}
	component_slot = {
		name = "STRIKE_CRAFT_08"
		template = "large_strike_craft"
		locatorname = "strike_craft_locator_02"
	}

	component_slot = {
		name = "LARGE_GUN_01"
		template = "large_turret"
		locatorname = "gun_1"
	}
	component_slot = {
		name = "LARGE_GUN_02"
		template = "large_turret"
		locatorname = "gun_2"
	}
	component_slot = {
		name = "LARGE_GUN_03"
		template = "large_turret"
		locatorname = "gun_3"
	}
	component_slot = {
		name = "LARGE_GUN_04"
		template = "large_turret"
		locatorname = "gun_4"
	}
	component_slot = {
		name = "LARGE_GUN_05"
		template = "large_turret"
		locatorname = "gun_5"
	}

	small_utility_slots = 0
	medium_utility_slots = 0
	large_utility_slots = 30
	aux_utility_slots = 5

	resources = {
		category = ship_sections
		cost = {
			alloys = 10000
			stz_sr_caerulenite = 1000
			stz_sr_viridisium = 1000
		}
	}
}

###########################
### Ion Cannon Sections ###
###########################

ship_section_template = {
	key = "STZ_VIRIDISIUM_ION_CANNON_T2"
	fits_on_slot = "ship"
	ship_size = ion_cannon
	entity = "ion_cannon_section_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { artillery }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {
		factor = 2
	}

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

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

	small_utility_slots = 0
	medium_utility_slots = 0
	large_utility_slots = 12
	aux_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			alloys = 500
			stz_sr_caerulenite =  100
			stz_sr_viridisium =  50
		}
	}
}

ship_section_template = {
	key = "STZ_VIRIDISIUM_ION_CANNON_T1X2"
	fits_on_slot = "ship"
	ship_size = ion_cannon
	entity = "ion_cannon_section_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { artillery }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {
		factor = 2
	}

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

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

	small_utility_slots = 0
	medium_utility_slots = 0
	large_utility_slots = 12
	aux_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			alloys = 500
			stz_sr_caerulenite =  100
			stz_sr_viridisium =  50
		}
	}
}

ship_section_template = {
	key = "STZ_VIRIDISIUM_ION_CANNON_T1L4"
	fits_on_slot = "ship"
	ship_size = ion_cannon
	entity = "ion_cannon_section_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { artillery gunship }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {
		factor = 2
	}

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

	component_slot = {
		name = "LARGE_GUN_01"
		template = "invisible_large_turret"
		locatorname = "xl_gun_01"
	}

	component_slot = {
		name = "LARGE_GUN_02"
		template = "invisible_large_turret"
		locatorname = "xl_gun_01"
	}

	component_slot = {
		name = "LARGE_GUN_03"
		template = "invisible_large_turret"
		locatorname = "xl_gun_01"
	}

	component_slot = {
		name = "LARGE_GUN_04"
		template = "invisible_large_turret"
		locatorname = "xl_gun_01"
	}

	small_utility_slots = 0
	medium_utility_slots = 0
	large_utility_slots = 12
	aux_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			alloys = 500
			stz_sr_caerulenite =  100
			stz_sr_viridisium =  50
		}
	}
}

ship_section_template = {
	key = "STZ_VIRIDISIUM_ION_CANNON_T1H4"
	fits_on_slot = "ship"
	ship_size = ion_cannon
	entity = "ion_cannon_section_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { carrier }

	prerequisites = { stz_tech_viridisium_sections }

	ai_weight = {
		factor = 2
	}

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

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

	small_utility_slots = 0
	medium_utility_slots = 0
	large_utility_slots = 12
	aux_utility_slots = 3

	resources = {
		category = ship_sections
		cost = {
			alloys = 500
			stz_sr_caerulenite =  100
			stz_sr_viridisium =  50
		}
	}
}

##########################
### Defensive Platform ###
##########################

ship_section_template = {
	key = "STZ_VIRIDISIUM_MILITARY_STATION_S8"
	ship_size = military_station_small
	ship_size = military_station_medium
	ai_tags = { gunship }

	fits_on_slot = "north"
	fits_on_slot = "west"
	fits_on_slot = "east"
	fits_on_slot = "south"
	should_draw_components = yes

	entity = "military_station_section_light_entity"
	icon = "GFX_ship_part_core_mid"

	prerequisites = { stz_tech_viridisium_sections }

	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"
		is_side_slot = no
	}

	component_slot = {
		name = "SMALL_GUN_04"
		template = "small_turret"
		locatorname = "small_gun_04"
		is_side_slot = no
	}

	component_slot = {
		name = "SMALL_GUN_05"
		template = "invisible_small_turret"
		locatorname = "small_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_06"
		template = "invisible_small_turret"
		locatorname = "small_gun_02"
	}

	component_slot = {
		name = "SMALL_GUN_07"
		template = "invisible_small_turret"
		locatorname = "small_gun_03"
		is_side_slot = no
	}

	component_slot = {
		name = "SMALL_GUN_08"
		template = "invisible_small_turret"
		locatorname = "small_gun_04"
		is_side_slot = no
	}

	large_utility_slots = 3
	aux_utility_slots = 2

	resources = {
		category = ship_sections
        cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = no
                }
            }
            alloys = @defense_platform_section_cost
        }
        cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = yes
                }
            }
            alloys = @defense_platform_section_cost
            mult = 0.5
        }
        cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = yes
                }
            }
            food = @defense_platform_section_cost
            mult = @halved_alloy_to_food_cost_ratio
        }
		cost = {
			stz_sr_caerulenite = 10
			stz_sr_viridisium = 5
		}
	}

	ai_weight = {
		factor = 2
		modifier = {
			factor = 10
			is_preferred_weapons = weapon_type_kinetic
		}
	}
}

ship_section_template = {
	key = "STZ_VIRIDISIUM_MILITARY_STATION_P8"
	ship_size = military_station_small
	ship_size = military_station_medium
	ai_tags = { screen }

	fits_on_slot = "north"
	fits_on_slot = "west"
	fits_on_slot = "east"
	fits_on_slot = "south"
	should_draw_components = yes

	entity = "military_station_section_light_entity"
	icon = "GFX_ship_part_core_mid"

	prerequisites = { stz_tech_viridisium_sections }

	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"
		is_side_slot = no
	}

	component_slot = {
		name = "SMALL_GUN_04"
		template = "point_defence_turret"
		locatorname = "small_gun_04"
		is_side_slot = no
	}

	component_slot = {
		name = "SMALL_GUN_05"
		template = "invisible_point_defence_turret"
		locatorname = "small_gun_01"
	}

	component_slot = {
		name = "SMALL_GUN_06"
		template = "invisible_point_defence_turret"
		locatorname = "small_gun_02"
	}

	component_slot = {
		name = "SMALL_GUN_07"
		template = "invisible_point_defence_turret"
		locatorname = "small_gun_03"
		is_side_slot = no
	}

	component_slot = {
		name = "SMALL_GUN_08"
		template = "invisible_point_defence_turret"
		locatorname = "small_gun_04"
		is_side_slot = no
	}

	large_utility_slots = 3
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = no
                }
            }
            alloys = @defense_platform_section_cost
        }
        cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = yes
                }
            }
            alloys = @defense_platform_section_cost
            mult = 0.5
        }
        cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = yes
                }
            }
            food = @defense_platform_section_cost
            mult = @halved_alloy_to_food_cost_ratio
        }
		cost = {
			stz_sr_caerulenite = 10
			stz_sr_viridisium = 5
		}
	}

	ai_weight = {
		factor = 2
	}
}

ship_section_template = {
	key = "STZ_VIRIDISIUM_MILITARY_STATION_M4"
	ship_size = military_station_small
	ship_size = military_station_medium
	ai_tags = { gunship }

	fits_on_slot = "north"
	fits_on_slot = "west"
	fits_on_slot = "east"
	fits_on_slot = "south"
	should_draw_components = yes

	entity = "military_station_section_medium_entity"
	icon = "GFX_ship_part_core_mid"

	prerequisites = { stz_tech_viridisium_sections }

	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 = "invisible_medium_turret"
		locatorname = "medium_gun_01"
	}

	component_slot = {
		name = "MEDIUM_GUN_04"
		template = "invisible_medium_turret"
		locatorname = "medium_gun_02"
	}

	large_utility_slots = 3
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = no
                }
            }
            alloys = @defense_platform_section_cost
        }
        cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = yes
                }
            }
            alloys = @defense_platform_section_cost
            mult = 0.5
        }
        cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = yes
                }
            }
            food = @defense_platform_section_cost
            mult = @halved_alloy_to_food_cost_ratio
        }
		cost = {
			stz_sr_caerulenite = 10
			stz_sr_viridisium = 5
		}
	}

	ai_weight = {
		factor = 2
		modifier = {
			factor = 10
			OR = {
				is_preferred_weapons = weapon_type_energy
				is_preferred_weapons = weapon_type_kinetic
			}
		}
	}
}

ship_section_template = {
	key = "STZ_VIRIDISIUM_MILITARY_STATION_G4"
	ship_size = military_station_small
	ship_size = military_station_medium
	ai_tags = { explosive energy_torpedoes }

	fits_on_slot = "north"
	fits_on_slot = "west"
	fits_on_slot = "east"
	fits_on_slot = "south"
	should_draw_components = yes

	entity = "military_station_section_medium_entity"
	icon = "GFX_ship_part_core_mid"

	prerequisites = { stz_tech_viridisium_sections }

	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 = "invisible_missile_turret"
		locatorname = "medium_gun_01"
	}

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

	large_utility_slots = 3
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = no
                }
            }
            alloys = @defense_platform_section_cost
        }
        cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = yes
                }
            }
            alloys = @defense_platform_section_cost
            mult = 0.5
        }
        cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = yes
                }
            }
            food = @defense_platform_section_cost
            mult = @halved_alloy_to_food_cost_ratio
        }
		cost = {
			stz_sr_caerulenite = 10
			stz_sr_viridisium = 5
		}
	}

	ai_weight = {
		factor = 2
		modifier = {
			factor = 10
			is_preferred_weapons = weapon_type_explosive
		}
	}
}

ship_section_template = {
	key = "STZ_VIRIDISIUM_MILITARY_STATION_L2"
	ship_size = military_station_small
	ship_size = military_station_medium
	ai_tags = { artillery }

	fits_on_slot = "north"
	fits_on_slot = "west"
	fits_on_slot = "east"
	fits_on_slot = "south"
	should_draw_components = yes

	entity = "military_station_section_heavy_entity"
	icon = "GFX_ship_part_core_mid"

	prerequisites = { stz_tech_viridisium_sections }

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

	component_slot = {
		name = "LARGE_GUN_02"
		template = "invisible_large_turret"
		locatorname = "large_gun_01"
	}

	large_utility_slots = 3
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = no
                }
            }
            alloys = @defense_platform_section_cost
        }
        cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = yes
                }
            }
            alloys = @defense_platform_section_cost
            mult = 0.5
        }
        cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = yes
                }
            }
            food = @defense_platform_section_cost
            mult = @halved_alloy_to_food_cost_ratio
        }
		cost = {
			stz_sr_caerulenite = 10
			stz_sr_viridisium = 5
		}
	}

	ai_weight = {
		factor = 2
	}
}

ship_section_template = {
	key = "STZ_VIRIDISIUM_MILITARY_STATION_H2"
	ship_size = military_station_small
	ship_size = military_station_medium
	ai_tags = { carrier }

	fits_on_slot = "north"
	fits_on_slot = "west"
	fits_on_slot = "east"
	fits_on_slot = "south"
	should_draw_components = yes

	entity = "military_station_section_hangar_entity"
	icon = "GFX_ship_part_core_mid"

	prerequisites = { stz_tech_viridisium_sections }

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

	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		rotation = 90
		locatorname = "large_gun_01"
	}

	large_utility_slots = 3
	aux_utility_slots = 2

	ai_weight = {
		factor = 2
		modifier = {
			factor = 10
			is_preferred_weapons = weapon_type_strike_craft
		}
	}

	resources = {
		category = ship_sections
		cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = no
                }
            }
            alloys = @defense_platform_section_cost
        }
        cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = yes
                }
            }
            alloys = @defense_platform_section_cost
            mult = 0.5
        }
        cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = yes
                }
            }
            food = @defense_platform_section_cost
            mult = @halved_alloy_to_food_cost_ratio
        }
		cost = {
			stz_sr_caerulenite = 10
			stz_sr_viridisium = 5
		}
	}
}

ship_section_template = {
	key = "STZ_VIRIDISIUM_MILITARY_STATION_X1"
	ship_size = military_station_small
	ship_size = military_station_medium
	ai_tags = { artillery }

	fits_on_slot = "north"
	fits_on_slot = "west"
	fits_on_slot = "east"
	fits_on_slot = "south"
	should_draw_components = yes

	entity = "military_station_section_heavy_entity"
	icon = "GFX_ship_part_core_mid"

	prerequisites = { stz_tech_viridisium_sections }

	component_slot = {
		name = "EXTRA_LARGE_01"
		template = "extra_large_turret"
		locatorname = "large_gun_01"
	}

	large_utility_slots = 3
	aux_utility_slots = 2

	resources = {
		category = ship_sections
		cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = no
                }
            }
            alloys = @defense_platform_section_cost
        }
        cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = yes
                }
            }
            alloys = @defense_platform_section_cost
            mult = 0.5
        }
        cost = {
            trigger = {
                from = {
                    country_uses_bio_ships = yes
                }
            }
            food = @defense_platform_section_cost
            mult = @halved_alloy_to_food_cost_ratio
        }
		cost = {
			stz_sr_caerulenite = 10
			stz_sr_viridisium = 5
		}
	}

	ai_weight = {
		factor = 2
	}
}