# Note: The Ember ship "Stern" applies a VFX for the entire ship
# All other sections use the normal Infernal cruiser & battleship design

### CRUISER

#BOW

ship_section_template = {
	key = "EMBER_CRUISER_BOW_L1"
	ship_size = ember_cruiser
	fits_on_slot = bow
	should_draw_components = yes
	entity = "infernal_01_cruiser_bow_L1_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = {
		artillery
		artillery_stealth
	}

	ai_weight = {
		weight = 10
	}

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

	medium_utility_slots = 4
}

ship_section_template = {
	key = "EMBER_CRUISER_BOW_M1S2"
	ship_size = ember_cruiser
	fits_on_slot = bow
	should_draw_components = yes
	entity = "infernal_01_cruiser_bow_M1S2_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = {
		explosive
		explosive_stealth
		energy_torpedoes
		energy_torpedoes_stealth
	}

	prerequisites = { tech_torpedoes_1 }

	ai_weight = {
		weight = 10
	}

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

ship_section_template = {
	key = "EMBER_CRUISER_BOW_M2"
	ship_size = ember_cruiser
	fits_on_slot = bow
	should_draw_components = yes
	entity = "infernal_01_cruiser_bow_M2_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = {
		gunship
		gunship_stealth
		carrier
		carrier_stealth
	}

	ai_weight = {
		weight = 10
	}

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

	medium_utility_slots = 4
}

#MID
ship_section_template = {
	key = "EMBER_CRUISER_MID_S2HB"
	ship_size = ember_cruiser
	fits_on_slot = mid
	should_draw_components = yes
	entity = "infernal_01_cruiser_mid_S2HB_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = {
		carrier
		carrier_stealth
	}

	ai_weight = {
		weight = 10
	}

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

	medium_utility_slots = 4
}

ship_section_template = {
	key = "EMBER_CRUISER_MID_L1M1"
	ship_size = ember_cruiser
	fits_on_slot = mid
	should_draw_components = yes
	entity = "infernal_01_cruiser_mid_L1M1_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = {
		artillery
		artillery_stealth
	}

	ai_weight = {
		weight = 10
	}

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

	medium_utility_slots = 4
}

ship_section_template = {
	key = "EMBER_CRUISER_MID_M3"
	ship_size = ember_cruiser
	fits_on_slot = mid
	should_draw_components = yes
	entity = "infernal_01_cruiser_mid_M3_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = {
		gunship
		gunship_stealth
	}

	ai_weight = {
		weight = 10
	}

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "medium_gun_01"
	}
	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "medium_turret"
		locatorname = "medium_gun_02"
	}
	component_slot = {
		name = "MEDIUM_GUN_03"
		template = "medium_turret"
		locatorname = "medium_gun_03"
	}

	medium_utility_slots = 4
}

ship_section_template = {
	key = "EMBER_CRUISER_MID_M2S2"
	ship_size = ember_cruiser
	fits_on_slot = mid
	should_draw_components = yes
	entity = "infernal_01_cruiser_mid_M2S2_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = {
		explosive
		explosive_stealth
		energy_torpedoes
		energy_torpedoes_stealth
	}

	prerequisites = { tech_torpedoes_1 }

	ai_weight = {
		weight = 10
	}

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

#STERN

ship_section_template = {
	key = "EMBER_CRUISER_STERN_M1"
	ship_size = ember_cruiser
	fits_on_slot = stern
	should_draw_components = yes
	entity = "infernal_01_cruiser_stern_M1_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = {
		artillery
		artillery_stealth
		carrier
		carrier_stealth
	}

	ai_weight = {
		weight = 10
	}

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

	aux_utility_slots = 2
}

ship_section_template = {
	key = "EMBER_CRUISER_STERN_S2"
	ship_size = ember_cruiser
	fits_on_slot = stern
	should_draw_components = yes
	entity = "infernal_01_cruiser_stern_S2_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = {
		gunship
		gunship_stealth
		explosive
		explosive_stealth
		energy_torpedoes
		energy_torpedoes_stealth
	}

	ai_weight = {
		weight = 10
	}

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

	aux_utility_slots = 3
}

### BATTLESHIP

#BOW

ship_section_template = {
	key = "EMBER_BATTLESHIP_BOW_L1M1S2"
	ship_size = ember_battleship
	fits_on_slot = bow
	should_draw_components = yes
	entity = "infernal_01_battleship_bow_L1M1S2_entity"
	icon = "GFX_ship_part_core_bow"
	icon_frame = 1
	ai_tags = {
		gunship
		gunship_stealth
	}

	ai_weight = {
		weight = 10
	}

	component_slot = {
		name = "LARGE_GUN_01"
		template = "large_turret"
		locatorname = "large_gun_01"
	}
	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "medium_gun_01"
	}
	component_slot = {
		name = "SMALL_GUN_01"
		template = "small_turret"
		locatorname = "small_gun_01"
	}
	component_slot = {
		name = "SMALL_GUN_02"
		template = "small_turret"
		locatorname = "small_gun_02"
	}

	large_utility_slots = 3
}

ship_section_template = {
	key = "EMBER_BATTLESHIP_BOW_L2"
	ship_size = ember_battleship
	fits_on_slot = bow
	should_draw_components = yes
	entity = "infernal_01_battleship_bow_L2_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = {
		artillery
		artillery_stealth
	}

	ai_weight = {
		weight = 10
	}

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

	large_utility_slots = 3
}

ship_section_template = {
	key = "EMBER_BATTLESHIP_BOW_M1S2SHB"
	ship_size = ember_battleship
	fits_on_slot = bow
	should_draw_components = yes
	entity = "infernal_01_battleship_bow_M1S2SHB_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = {
		carrier
		carrier_stealth
	}

	ai_weight = {
		weight = 10
	}

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "medium_gun_01"
	}
	component_slot = {
		name = "SMALL_GUN_01"
		template = "point_defence_turret"
		locatorname = "small_gun_01"
	}
	component_slot = {
		name = "SMALL_GUN_02"
		template = "point_defence_turret"
		locatorname = "small_gun_02"
	}
	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		rotation = 90
		locatorname = "strike_craft_locator_01"
	}

	large_utility_slots = 3
}

ship_section_template = {
	key = "EMBER_BATTLESHIP_BOW_XL"
	ship_size = ember_battleship
	fits_on_slot = bow
	should_draw_components = yes
	entity = "infernal_01_battleship_bow_XL1_entity"
	icon = "GFX_ship_part_core_bow"
	ai_tags = {
		artillery
		artillery_stealth
	}

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

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

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

	large_utility_slots = 3
}

#MID

ship_section_template = {
	key = "EMBER_BATTLESHIP_MID_L2M2"
	ship_size = ember_battleship
	fits_on_slot = mid
	should_draw_components = yes
	entity = "infernal_01_battleship_mid_L2M2_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = {
		gunship
		gunship_stealth
	}

	ai_weight = {
		weight = 10
	}

	component_slot = {
		name = "LARGE_GUN_01"
		template = "large_turret"
		locatorname = "large_gun_01"
	}
	component_slot = {
		name = "LARGE_GUN_02"
		template = "large_turret"
		locatorname = "large_gun_02"
	}
	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "medium_gun_01"
	}
	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "medium_turret"
		locatorname = "medium_gun_02"
	}

	large_utility_slots = 3
}

ship_section_template = {
	key = "EMBER_BATTLESHIP_MID_L3"
	ship_size = ember_battleship
	fits_on_slot = mid
	should_draw_components = yes
	entity = "infernal_01_battleship_mid_L3_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = {
		artillery
		artillery_stealth
	}

	ai_weight = {
		weight = 10
	}

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

	large_utility_slots = 3
}

ship_section_template = {
	key = "EMBER_BATTLESHIP_MID_M4SHB"
	ship_size = ember_battleship
	fits_on_slot = mid
	should_draw_components = yes
	entity = "infernal_01_battleship_mid_M4SHB_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = {
		carrier
		carrier_stealth
	}

	ai_weight = {
		weight = 10
	}

	component_slot = {
		name = "MEDIUM_GUN_01"
		template = "medium_turret"
		locatorname = "medium_gun_01"
	}
	component_slot = {
		name = "MEDIUM_GUN_02"
		template = "medium_turret"
		locatorname = "medium_gun_02"
	}
	component_slot = {
		name = "MEDIUM_GUN_03"
		template = "medium_turret"
		locatorname = "medium_gun_03"
	}
	component_slot = {
		name = "MEDIUM_GUN_04"
		template = "medium_turret"
		locatorname = "medium_gun_04"
	}
	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		rotation = 90
		locatorname = "strike_craft_locator_01"
	}

	large_utility_slots = 3
}

ship_section_template = {
	key = "EMBER_BATTLESHIP_MID_S4LHB"
	ship_size = ember_battleship
	fits_on_slot = mid
	should_draw_components = yes
	entity = "infernal_01_battleship_mid_S4LHB_entity"
	icon = "GFX_ship_part_core_mid"
	ai_tags = {
		carrier
		carrier_stealth
	}

	ai_weight = {
		weight = 10
	}

	component_slot = {
		name = "SMALL_GUN_01"
		template = "small_turret"
		locatorname = "small_gun_01"
	}
	component_slot = {
		name = "SMALL_GUN_02"
		template = "small_turret"
		locatorname = "small_gun_02"
	}
	component_slot = {
		name = "SMALL_GUN_03"
		template = "point_defence_turret"
		locatorname = "small_gun_03"
	}
	component_slot = {
		name = "SMALL_GUN_04"
		template = "point_defence_turret"
		locatorname = "small_gun_04"
	}
	component_slot = {
		name = "STRIKE_CRAFT_01"
		template = "large_strike_craft"
		rotation = 90
		locatorname = "strike_craft_locator_01"
	}
	component_slot = {
		name = "STRIKE_CRAFT_02"
		template = "large_strike_craft"
		rotation = -90
		locatorname = "strike_craft_locator_02"
	}

	large_utility_slots = 3
}

#STERN

ship_section_template = {
	key = "EMBER_BATTLESHIP_STERN_L1"
	ship_size = ember_battleship
	fits_on_slot = stern
	should_draw_components = yes
	entity = "infernal_01_battleship_stern_L1_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = {
		artillery
		artillery_stealth
	}

	ai_weight = {
		weight = 10
	}

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

	aux_utility_slots = 2
}

ship_section_template = {
	key = "EMBER_BATTLESHIP_STERN_M2"
	ship_size = ember_battleship
	fits_on_slot = stern
	should_draw_components = yes
	entity = "infernal_01_battleship_stern_M2_entity"
	icon = "GFX_ship_part_core_stern"
	ai_tags = {
		gunship
		gunship_stealth
		carrier
		carrier_stealth
	}

	ai_weight = {
		weight = 10
	}

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

	aux_utility_slots = 3
}

### CONDUIT

ship_section_template = {
	key = "entropy_conduit_key"
	ship_size = entropy_conduit
	ship_size = conduit_station
	fits_on_slot = "core"
	entity = "empty_section_entity"
	icon = "GFX_ship_part_core_mid"

	component_slot = {
		name = "EXTRA_LARGE_01"
		template = "invisible_extra_large_turret"
		locatorname = "root"
	}

	aux_utility_slots = 1
}

### STARFIRE CANNON

ship_section_template = {
	key = "starfire_cannon_key"
	fits_on_slot = "ship"
	ship_size = starfire_cannon
	entity = "infernal_01_ion_cannon_section_entity"
	icon = "GFX_ship_part_core_mid"

	component_slot = {
		name = "XL_GUN_01"
		template = "invisible_extra_large_fixed"
		locatorname = "xl_gun_01"
	}
	aux_utility_slots = 3
}
