#############
### POWER ###
#############
@power0 = 0
@power1 = -25
@power2 = -50
@power3 = -75
@power4 = -100

############
### COST ###
############
@cost0 = 2.5
@cost1 = 5
@cost2 = 7.5
@cost3 = 10

###############################
### SPECIAL SLOT COMPONENTS ###
###############################

utility_component_template = {
	key = "SPECIAL_SLOT_EMPTY"
	size = medium
	icon = "GFX_ship_part_empty_ftl_drive"
	icon_frame = 1
	power = @power0

	component_set = "special_ship_slot"
	
	ai_weight = { weight = 2 }
}

utility_component_template = {
	key = "SPECIAL_SLOT_MULTIPHASIC_SENSORS"
	size = medium
	icon = "GFX_special_slot_multiphasic_sensors"
	icon_frame = 1
	power = @power4
	
	resources = {
		category = ship_components
		cost = { alloys = @cost3 }
	}

	sensor_range = 2

	prerequisites = { "tech_specialcomponents_1" }
	
	potential = {
		is_ship_class = shipclass_military
	}
	component_set = "special_ship_slot"
	
	ai_weight = { weight = 1 }	
}

utility_component_template = {
	key = "SPECIAL_SLOT_DAMAGE_CONTROL"
	size = medium
	icon = "GFX_special_slot_damage_control"
	icon_frame = 1
	power = @power4
	
	resources = {
		category = ship_components
		cost = { alloys = @cost3 }
	}
	
	modifier = { 
		ship_hull_regen_add_perc = 0.01
		ship_armor_regen_add_perc = 0.01
	}
	
	prerequisites = { "tech_specialcomponents_1" }
	potential = {
		is_ship_class = shipclass_military
	}
	component_set = "special_ship_slot"
	
	ai_weight = { weight = 1 }	
}

utility_component_template = {
	key = "SPECIAL_SLOT_READY_ROOM"
	size = medium
	icon = "GFX_special_slot_ready_room"
	icon_frame = 1
	power = @power3
	
	resources = {
		category = ship_components
		cost = { alloys = @cost2 }
	}
	
	modifier = { ship_evasion_mult = 0.10 }
	
	potential = {
		is_ship_class = shipclass_military
	}
	component_set = "special_ship_slot"
	
	ai_weight = { weight = 1 }	
}

utility_component_template = {
	key = "SPECIAL_SLOT_CREW_LOUNGE"
	size = medium
	icon = "GFX_special_slot_crew_lounge"
	icon_frame = 1
	power = @power2
	
	resources = {
		category = ship_components
		cost = { alloys = @cost1 }
	}
	
	ship_modifier = { ship_accuracy_mult = 0.10 }
	
	potential = {
		is_ship_class = shipclass_military
	}
	component_set = "special_ship_slot"
	
	ai_weight = { weight = 1 }	
}

utility_component_template = {
	key = "SPECIAL_SLOT_FIRE_CONTROL"
	size = medium
	icon = "GFX_special_slot_fire_control"
	icon_frame = 1
	power = @power4
	
	resources = {
		category = ship_components
		cost = { alloys = @cost3 }
	}
	
	modifier = { ship_weapon_damage = 0.10 }
	ship_modifier = { ship_fire_rate_mult = 0.10 }

	prerequisites = { "tech_specialcomponents_1" }
	potential = {
		is_ship_class = shipclass_military
	}
	component_set = "special_ship_slot"
	
	ai_weight = { weight = 1 }	
}

utility_component_template = {
	key = "SPECIAL_SLOT_STRUCTURAL_INTEGRITY"
	size = medium
	icon = "GFX_special_slot_structural_integrity"
	icon_frame = 1
	power = @power4
	
	resources = {
		category = ship_components
		cost = { alloys = @cost3 }
	}
	
	modifier = { ship_hull_mult = 0.10 }

	prerequisites = { "tech_specialcomponents_1" }
	potential = {
		is_ship_class = shipclass_military
	}
	component_set = "special_ship_slot"

	ai_weight = { weight = 1 }	
}

utility_component_template = {
	key = "SPECIAL_SLOT_AUXILIARY_SHIELDS"
	size = medium
	icon = "GFX_special_slot_auxiliary_shields"
	icon_frame = 1
	power = @power4
	
	resources = {
		category = ship_components
		cost = { alloys = @cost3 }
	}
	
	modifier = { ship_shield_mult = 0.10 }

	prerequisites = { "tech_specialcomponents_1" }
	potential = {
		is_ship_class = shipclass_military
	}
	component_set = "special_ship_slot"
	
	ai_weight = { weight = 1 }	
}

utility_component_template = {
	key = "SPECIAL_SLOT_QUANTUM_THRUSTERS"
	size = medium
	icon = "GFX_special_slot_quantum_thrusters"
	icon_frame = 1
	power = @power4
	
	resources = {
		category = ship_components
		cost = { alloys = @cost3 }
	}
	
	modifier = {
		ship_speed_mult = 0.20
		ships_upkeep_mult = 0.05
	}

	prerequisites = { "tech_specialcomponents_1" }
	potential = {
		is_ship_class = shipclass_military
	}
	component_set = "special_ship_slot"

	ai_weight = { weight = 1 }	
}

utility_component_template = {
	key = "SPECIAL_SLOT_DEFLECTOR_ARRAY"
	size = medium
	icon = "GFX_special_slot_deflector_array"
	icon_frame = 1
	power = @power3
	
	resources = {
		category = ship_components
		cost = { alloys = @cost2 }
	}
	
	modifier = { ship_shield_regen_add_perc = 0.025 }
	
	potential = {
		is_ship_class = shipclass_military
	}
	component_set = "special_ship_slot"
	
	ai_weight = { weight = 1 }	
}

utility_component_template = {
	key = "SPECIAL_SLOT_NAVIGATIONAL_ARRAY"
	size = medium
	icon = "GFX_special_slot_navigational_array"
	icon_frame = 1
	power = @power3
	
	resources = {
		category = ship_components
		cost = { alloys = @cost2 }
	}
	
	ship_modifier = {
		ship_ftl_jumpdrive_range_mult = 0.25
		ship_tracking_mult = 0.10
	}

	prerequisites = { "tech_specialcomponents_1" }
	potential = {
		is_ship_class = shipclass_military
	}
	component_set = "special_ship_slot"
	
	valid_for_country = {
		OR = {
			has_technology = tech_jump_drive_1
			has_technology = tech_psi_jump_drive_1
		}
	}

	ai_weight = { weight = 1 }
}

utility_component_template = {
	key = "SPECIAL_SLOT_KITCHEN_SINK"
	size = medium
	icon = "GFX_special_slot_kitchen_sink"
	icon_frame = 1
	power = @power1
	
	resources = {
		category = ship_components
		cost = { alloys = @cost0 }
	}
	
	modifier = { ships_logistics_mult = -0.02 }
	potential = {
		is_ship_class = shipclass_military
	}
	component_set = "special_ship_slot"
	
	ai_weight = { weight = 1 }
}

utility_component_template = {
	key = "SPECIAL_SLOT_STELLAR_CARTOGRAPHY"
	size = medium
	icon = "GFX_special_slot_stellar_cartography"
	icon_frame = 1
	power = @power3
	
	resources = {
		category = ship_components
		cost = { alloys = @cost2 }
	}

	ship_modifier = {
		ship_windup_mult = -0.20
		ship_jumpdrive_cooldown_mult = -0.20
		ship_interstellar_speed_mult = 0.20
	}

	prerequisites = { "tech_specialcomponents_1" }
	potential = {
		is_ship_class = shipclass_military
	}
	component_set = "special_ship_slot"
	
	ai_weight = { weight = 1 }
}

utility_component_template = {
	key = "SPECIAL_SLOT_MARS_WEAPON_SYSTEM"
	size = medium
	icon = "GFX_special_slot_mars_system"
	icon_frame = 1
	power = @power4
	
	resources = {
		category = ship_components
		cost = { alloys = @cost1 }		
	}

	modifier = { 
		weapon_type_point_defense_weapon_damage_mult = 0.25 
		weapon_type_point_defense_weapon_fire_rate_mult = 0.25
	}

	prerequisites = { "tech_specialcomponents_1" }
	potential = {
		is_ship_class = shipclass_military
	}
	component_set = "special_ship_slot"

	ai_weight = { weight = 1 }
}

utility_component_template = {
	key = "SPECIAL_SLOT_STRIKE_CRAFT"
	size = medium
	icon = "GFX_special_slot_strike_craft"
	icon_frame = 1
	power = @power2
	
	resources = {
		category = ship_components
		cost = { alloys = @cost1 }		
	}

	modifier = {
		weapon_type_strike_craft_weapon_damage_mult = 0.2
		weapon_type_strike_craft_speed_mult = 0.2
	}

	prerequisites = { "tech_Carrier_1" }
	potential = {
		is_ship_size = Carrier
	}
	component_set = "special_ship_slot"
	
	ai_weight = { weight = 1 }
}