# Icons set here are the ones show in the actual slot. 

@cost1 = 5
@cost2 = 10
@cost3 = 15
@cost4 = 20

@power1 = -10
@power2 = -15
@power3 = -20
@power4 = -30

#############
# UTILITIES #
#############

### NON-FTL DRIVE
utility_component_template = {
	key = "EMPTY_DRIVE"
	size = small
	icon = "GFX_ship_part_empty_ftl_drive"
	icon_frame = 1
	power = 0
	cost = 0
	should_ai_use = no
	
	class_restriction = { shipclass_military shipclass_constructor shipclass_colonizer shipclass_science_ship shipclass_transport shipclass_military_special }
	component_set = "ftl_components"
}

### HYPER DRIVES
utility_component_template = {
	key = "HYPER_DRIVE_1"
	size = small
	icon = "GFX_ship_part_hyper_drive_1"
	icon_frame = 1
	power = @power1
	cost = @cost1
	ftl = yes
	
	ai_weight = {
		weight = 1
	}
	
	class_restriction = { shipclass_military shipclass_constructor shipclass_colonizer shipclass_science_ship shipclass_transport shipclass_military_special }
	prerequisites = { "tech_hyper_drive_1" }
	component_set = "ftl_components"
	upgrades_to = "HYPER_DRIVE_2"
}

utility_component_template = {
	key = "HYPER_DRIVE_2"
	size = small
	icon = "GFX_ship_part_hyper_drive_2"
	icon_frame = 1
	power = @power2
	cost = @cost2
	ftl = yes
	ship_modifier = {
		ship_windup_mult = -0.3
	}
	
	ai_weight = {
		weight = 2
	}
	
	class_restriction = { shipclass_military shipclass_constructor shipclass_colonizer shipclass_science_ship shipclass_transport shipclass_military_special }
	prerequisites = { "tech_hyper_drive_2" }
	component_set = "ftl_components"
	upgrades_to = "HYPER_DRIVE_3"
}

utility_component_template = {
	key = "HYPER_DRIVE_3"
	size = small
	icon = "GFX_ship_part_hyper_drive_3"
	icon_frame = 1
	power = @power3
	cost = @cost3
	ftl = yes
	ship_modifier = {
		ship_windup_mult = -0.5
	}
	
	ai_weight = {
		weight = 3
	}
	
	class_restriction = { shipclass_military shipclass_constructor shipclass_colonizer shipclass_science_ship shipclass_transport shipclass_military_special }
	prerequisites = { "tech_hyper_drive_3" }
	component_set = "ftl_components"
}

### Jump drives
utility_component_template = {
	key = "JUMP_DRIVE_1"
	size = small
	icon = "GFX_ship_part_jump_drive_1"
	icon_frame = 1
	power = @power4
	cost = @cost4
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_windup_mult = -0.7
	}
	
	ai_weight = {
		weight = 4
	}

	class_restriction = { shipclass_military shipclass_constructor shipclass_colonizer shipclass_science_ship shipclass_transport shipclass_military_special }
	prerequisites = { "tech_jump_drive_1" }
	component_set = "ftl_components"
	upgrades_to = "PSI_JUMP_DRIVE_1"
}

### Jump drives
utility_component_template = {
	key = "PSI_JUMP_DRIVE_1"
	size = small
	icon = "GFX_ship_part_psi_jump_drive_1"
	icon_frame = 1
	power = @power4
	cost = @cost4
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_windup_mult = -0.8
		ship_ftl_jumpdrive_range_mult = 0.5
	}
	
	ai_weight = {
		weight = 5
	}

	class_restriction = { shipclass_military shipclass_constructor shipclass_colonizer shipclass_science_ship shipclass_transport shipclass_military_special }
	prerequisites = { "tech_psi_jump_drive_1" }
	component_set = "ftl_components"
}