
# inherited from corvette

# ship_section_template = {
# 	key = "PLNMG_DS_FRIGATE" #S1G1
# 	ship_size = planetmega_defence_ship
# 	fits_on_slot = mid
# 	should_draw_components = yes
# 	entity = "crisis_corvette_M1S1_entity"
# 	icon = "GFX_ship_part_core_mid"
# 	ai_tags = { explosive energy_torpedoes }
#
# 	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 = "SMALL_GUN_01" # template matters more!
# 		template = "point_defence_turret"
# 		locatorname = "small_gun_01"
# 	}
#
# 	component_slot = {
# 		name = "TORPEDO_01"
# 		template = "medium_missile_turret"
# 		locatorname = "medium_gun_01"
# 	}
#
# 	small_utility_slots = 3
# 	aux_utility_slots = 1
# }

# ship_section_template = {
# 	key = "PLNMG_DS_CORVETTE" #S3
# 	ship_size = planetmega_defence_ship
# 	fits_on_slot = mid
# 	should_draw_components = yes
# 	entity = "crisis_corvette_S3_entity"
# 	icon = "GFX_ship_part_core_mid"
# 	ai_tags = { gunship artillery brawler }
#
# 	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 = 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
# 			}
# 		}
# 	}
# }

# destroyer types

ship_section_template = {
	key = "PLNMG_DS_DESTROYER" #M1S2P2
	ship_size = planetmega_defence_ship
	fits_on_slot = mid
	should_draw_components = yes
	entity = "crisis_destroyer_1L2S_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { brawler artillery }
	prerequisites = { tech_planetmega_active_defense }

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "large_gun_01"
	}
	component_slot = {
		name = "SMALL_GUN_01"
		template = "small_turret"
		locatorname = "small_gun_01"
	}
	component_slot = {
		name = "SMALL_GUN_02"
		template = "invisible_small_turret"
		locatorname = "small_gun_01"
	}
	component_slot = {
		name = "PD_01"
		template = "point_defence_turret"
		locatorname = "small_gun_02"
	}
	component_slot = {
		name = "PD_02"
		template = "invisible_point_defence_turret"
		locatorname = "small_gun_02"
	}

	small_utility_slots = 6
	aux_utility_slots = 2
}

ship_section_template = {
	key = "PLNMG_DS_MULTIFUNC" #MGSP
	ship_size = planetmega_defence_ship
	fits_on_slot = mid
	should_draw_components = yes
	entity = "crisis_destroyer_1M2S1M_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { brawler explosive energy_torpedoes }
	prerequisites = { tech_planetmega_active_defense }

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "medium_gun_01"
	}
	component_slot = {
		name = "TORPEDO_01"
		template = "medium_missile_turret"
		locatorname = "medium_gun_02"
	}
	component_slot = {
		name = "SMALL_GUN_01"
		template = "small_turret"
		locatorname = "small_gun_01"
	}
	component_slot = {
		name = "PD_01"
		template = "point_defence_turret"
		locatorname = "small_gun_02"
	}

	medium_utility_slots = 3
	aux_utility_slots = 2
}

# common cruiser type

# ship_section_template = {
# 	key = "PLNMG_DS_MID_GUN" #M3S4P2
# 	ship_size = planetmega_defence_ship
# 	fits_on_slot = mid
# 	should_draw_components = yes
# 	entity = "crisis_destroyer_1L2S_entity"
# 	icon = "GFX_ship_part_core_mid"
# 	ai_tags = { brawler artillery }
# 	prerequisites = { tech_plnmg_ship_space_extension }
#
# 	component_slot = {
# 		name = "MISSILE_01"
# 		template = "medium_missile_turret"
# 		locatorname = "large_gun_01"
# 	}
# 	component_slot = {
# 		name = "MISSILE_02"
# 		template = "invisible_missile_turret"
# 		locatorname = "large_gun_01"
# 	}
# 	component_slot = {
# 		name = "MISSILE_03"
# 		template = "invisible_missile_turret"
# 		locatorname = "large_gun_01"
# 	}
# 	component_slot = {
# 		name = "SMALL_GUN_01"
# 		template = "small_turret"
# 		locatorname = "small_gun_01"
# 	}
# 	component_slot = {
# 		name = "SMALL_GUN_02"
# 		template = "invisible_small_turret"
# 		locatorname = "small_gun_01"
# 	}
# 	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_01"
# 	}
# 	component_slot = {
# 		name = "PD_01"
# 		template = "point_defence_turret"
# 		locatorname = "small_gun_02"
# 	}
# 	component_slot = {
# 		name = "PD_02"
# 		template = "invisible_point_defence_turret"
# 		locatorname = "small_gun_02"
# 	}
#
# 	modifier = { ship_hull_add = 1200 }
#
# 	medium_utility_slots = 4
# 	aux_utility_slots = 3
# }
#
# ship_section_template = {
# 	key = "PLNMG_DS_STRIKE" #M3H1P2
# 	ship_size = planetmega_defence_ship
# 	fits_on_slot = mid
# 	should_draw_components = yes
# 	entity = "crisis_destroyer_1M2S1M_entity"
# 	icon = "GFX_ship_part_core_mid"
# 	ai_tags = { brawler artillery }
# 	prerequisites = { tech_plnmg_ship_space_extension }
#
# 	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 = "STRIKE_CRAFT_01"
# 		template = "large_strike_craft"
# 		locatorname = "medium_gun_02"
# 	}
# 	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"
# 	}
#
# 	modifier = { ship_hull_add = 1200 }
#
# 	medium_utility_slots = 4
# 	aux_utility_slots = 3
# }

# crisis cruiser type
# (none because no good ones)

# special cruiser type

ship_section_template = {
	key = "PLNMG_DS_ARTILLERY" #X1
	ship_size = planetmega_defence_ship
	fits_on_slot = mid
	should_draw_components = yes
	entity = "crisis_destroyer_1L2S_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = { carrier artillery }
	prerequisites = { tech_plnmg_ship_space_extension }

	component_slot = {
		name = "XL_01"
		template = "extra_large_turret"
		locatorname = "large_gun_01"
	}
	# component_slot = {
	# 	name = "H_01"
	# 	template = "large_strike_craft"
	# 	locatorname = "large_gun_01"
	# 	is_side_slot = yes
	# }
	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"
	}

	modifier = {
		ship_hull_add = 1000
		ship_evasion_mult = -0.35
		ship_speed_mult = -0.15
	}
	medium_utility_slots = 4
	aux_utility_slots = 2
}
