@cost1 = 5
@cost2 = 10
@cost3 = 15
@cost4 = 20
@cost_fauna_1 = 20
@cost_fauna_2 = 40
@cost_fauna_3 = 60
@cost_fauna_4 = 80
@power0 = -5
@power1 = -10
@power2 = -15
@power3 = -20
@power4 = -30

utility_component_template = {
	key = "AVC_HYPER_DRIVE_4"
	size = small

	icon = "GFX_avc_ship_part_hyper_drive_4"
	icon_frame = 1

	prerequisites = { "tech_avc_hyper_drive_4" }
	component_set = "ftl_components"
	
	potential = {
		is_eager_explorer_ship = no
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_HYPER_DRIVE_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 20
		}
	}

	ai_weight = {
		weight = 4
	}

	power = -30
	ftl = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 1
		ship_disengage_chance_mult = 0.25
		ship_windup_mult = -0.80
	}
}

utility_component_template = {
	key = "AVC_HYPER_DRIVE_5"
	size = small

	icon = "GFX_avc_ship_part_hyper_drive_5"
	icon_frame = 1

	prerequisites = { "tech_avc_hyper_drive_5" }
	component_set = "ftl_components"
	
	potential = {
		is_eager_explorer_ship = no
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_HYPER_DRIVE_6"
	resources = {
		category = ship_components
		cost = {
			alloys = 25
		}
	}

	ai_weight = {
		weight = 4
	}

	power = -35
	ftl = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 1
		ship_disengage_chance_mult = 0.50
		ship_windup_mult = -0.90
	}
}

utility_component_template = {
	key = "AVC_HYPER_DRIVE_6"
	size = small

	icon = "GFX_avc_ship_part_hyper_drive_6"
	icon_frame = 1

	prerequisites = { "tech_avc_hyper_drive_6" }
	component_set = "ftl_components"
	
	potential = {
		is_eager_explorer_ship = no
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	resources = {
		category = ship_components
		cost = {
			alloys = 30
		}
	}

	ai_weight = {
		weight = 4
	}

	power = -40
	ftl = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 1
		ship_disengage_chance_mult = 0.75
		ship_windup_mult = -1.00
	}
}

utility_component_template = {
	key = "AVC_JUMP_DRIVE_2"
	size = small

	icon = "GFX_avc_ship_part_jump_drive_2"
	icon_frame = 1

	prerequisites = { "tech_avc_jump_drive_2" }
	component_set = "ftl_components"
	
	potential = {
		ship_uses_jump_drives = yes
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_JUMP_DRIVE_3"
	resources = {
		category = ship_components
		cost = {
			alloys = 25
		}
	}

	ai_weight = {
		weight = 5
	}

	power = -35
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 1
		ship_windup_mult = -0.70
		ship_ftl_jumpdrive_range_mult = 0.25
	}
}

utility_component_template = {
	key = "AVC_JUMP_DRIVE_3"
	size = small

	icon = "GFX_avc_ship_part_jump_drive_3"
	icon_frame = 1

	prerequisites = { "tech_avc_jump_drive_3" }
	component_set = "ftl_components"
	
	potential = {
		ship_uses_jump_drives = yes
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_JUMP_DRIVE_4"
	resources = {
		category = ship_components
		cost = {
			alloys = 30
		}
	}

	ai_weight = {
		weight = 5
	}

	power = -40
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 1
		ship_windup_mult = -0.70
		ship_ftl_jumpdrive_range_mult = 0.50
	}

}

utility_component_template = {
	key = "AVC_JUMP_DRIVE_4"
	size = small

	icon = "GFX_avc_ship_part_jump_drive_4"
	icon_frame = 1

	prerequisites = { "tech_avc_jump_drive_4" }
	component_set = "ftl_components"
	
	potential = {
		ship_uses_jump_drives = yes
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_JUMP_DRIVE_5"
	resources = {
		category = ship_components
		cost = {
			alloys = 35
		}
	}

	ai_weight = {
		weight = 5
	}

	power = -45
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 1
		ship_windup_mult = -0.70
		ship_ftl_jumpdrive_range_mult = 0.75
	}
}

utility_component_template = {
	key = "AVC_JUMP_DRIVE_5"
	size = small

	icon = "GFX_avc_ship_part_jump_drive_5"
	icon_frame = 1

	prerequisites = { "tech_avc_jump_drive_5" }
	component_set = "ftl_components"
	
	potential = {
		ship_uses_jump_drives = yes
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	resources = {
		category = ship_components
		cost = {
			alloys = 40
		}
	}

	ai_weight = {
		weight = 5
	}

	power = -50
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 1
		ship_windup_mult = -0.70
		ship_ftl_jumpdrive_range_mult = 1
	}
}

utility_component_template = {
	key = "AVC_PSI_JUMP_DRIVE_2"
	size = small

	icon = "GFX_avc_ship_part_psi_jump_drive_2"
	icon_frame = 1

	prerequisites = { "tech_avc_psi_jump_drive_2" }
	component_set = "ftl_components"
	
	potential = {
		ship_uses_jump_drives = yes
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	upgrades_to = "AVC_PSI_JUMP_DRIVE_3"
	resources = {
		category = ship_components
		cost = {
			alloys = 30
		}
	}

	ai_weight = {
		weight = 6
	}

	power = -40
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 2
		ship_windup_mult = -0.80
		ship_ftl_jumpdrive_range_mult = 1
	}
}

utility_component_template = {
	key = "AVC_PSI_JUMP_DRIVE_3"
	size = small

	icon = "GFX_avc_ship_part_psi_jump_drive_3"
	icon_frame = 1

	prerequisites = { "tech_avc_psi_jump_drive_3" }
	component_set = "ftl_components"
	
	potential = {
		ship_uses_jump_drives = yes
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = no
	}
	
	resources = {
		category = ship_components
		cost = {
			alloys = 40
		}
	}

	ai_weight = {
		weight = 6
	}

	power = -50
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 2
		ship_windup_mult = -0.80
		ship_ftl_jumpdrive_range_mult = 1.5
	}
}

utility_component_template = {
	key = "AVC_BIO_DRIVE_4"
	size = small
	
	icon = "GFX_ship_part_avw_bio_subspace_drive_4"
	icon_frame = 1
	
	prerequisites = { "tech_avc_hyper_drive_4" "tech_hyper_drive_bio_integration" }
	component_set = "ftl_components_bio"
	upgrades_to = "AVC_BIO_DRIVE_5"
	resources = {
		category = ship_components
		inline_script = {
			script = "grand_archive/mutations/component_dynamic_cost"
			COST = 80
		}
	}
	
	ai_weight = {
		weight = 4
	}

	power = 0
	ftl = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 1
		ship_disengage_chance_mult = 0.25
		ship_windup_mult = -0.80
	}

}

utility_component_template = {
	key = "AVC_BIO_DRIVE_5"
	size = small
	
	icon = "GFX_ship_part_avw_bio_subspace_drive_5"
	icon_frame = 1
	
	prerequisites = { "tech_avc_hyper_drive_5" "tech_hyper_drive_bio_integration" }
	component_set = "ftl_components_bio"
	upgrades_to = "AVC_BIO_DRIVE_6"
	resources = {
		category = ship_components
		inline_script = {
			script = "grand_archive/mutations/component_dynamic_cost"
			COST = 100
		}
	}
	
	ai_weight = {
		weight = 5
	}

	power = 0
	ftl = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 1
		ship_disengage_chance_mult = 0.50
		ship_windup_mult = -0.90
	}

}

utility_component_template = {
	key = "AVC_BIO_DRIVE_6"
	size = small
	
	icon = "GFX_ship_part_avw_bio_subspace_drive_6"
	icon_frame = 1
	
	prerequisites = { "tech_avc_hyper_drive_6" "tech_hyper_drive_bio_integration" }
	component_set = "ftl_components_bio"

	resources = {
		category = ship_components
		inline_script = {
			script = "grand_archive/mutations/component_dynamic_cost"
			COST = 120
		}
	}
	
	ai_weight = {
		weight = 6
	}

	power = 0
	ftl = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 1
		ship_disengage_chance_mult = 0.75
		ship_windup_mult = -1.00
	}

}

utility_component_template = {
	key = "AVC_BIO_JUMP_DRIVE_2"
	size = small
	
	icon = "GFX_ship_part_avc_bio_jump_drive_2"
	icon_frame = 1
	
	prerequisites = { "tech_avc_jump_drive_2" "tech_hyper_drive_bio_integration" }
	component_set = "ftl_components_bio"
	upgrades_to = "AVC_BIO_JUMP_DRIVE_3"
	resources = {
		category = ship_components
		inline_script = {
			script = "grand_archive/mutations/component_dynamic_cost"
			COST = 100
		}
	}

	ai_weight = {
		weight = 6
	}
	
	power = 0
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 1
		ship_windup_mult = -0.70
		ship_ftl_jumpdrive_range_mult = 0.25
	}

}

utility_component_template = {
	key = "AVC_BIO_JUMP_DRIVE_3"
	size = small
	
	icon = "GFX_ship_part_avc_bio_jump_drive_3"
	icon_frame = 1
	
	prerequisites = { "tech_avc_jump_drive_3" "tech_hyper_drive_bio_integration" }
	component_set = "ftl_components_bio"
	upgrades_to = "AVC_BIO_JUMP_DRIVE_4"
	resources = {
		category = ship_components
		inline_script = {
			script = "grand_archive/mutations/component_dynamic_cost"
			COST = 120
		}
	}

	ai_weight = {
		weight = 7
	}
	
	power = 0
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 1
		ship_windup_mult = -0.70
		ship_ftl_jumpdrive_range_mult = 0.50
	}

}

utility_component_template = {
	key = "AVC_BIO_JUMP_DRIVE_4"
	size = small
	
	icon = "GFX_ship_part_avc_bio_jump_drive_4"
	icon_frame = 1
	
	prerequisites = { "tech_avc_jump_drive_4" "tech_hyper_drive_bio_integration" }
	component_set = "ftl_components_bio"
	upgrades_to = "AVC_BIO_JUMP_DRIVE_5"
	resources = {
		category = ship_components
		inline_script = {
			script = "grand_archive/mutations/component_dynamic_cost"
			COST = 140
		}
	}

	ai_weight = {
		weight = 8
	}
	
	power = 0
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 1
		ship_windup_mult = -0.70
		ship_ftl_jumpdrive_range_mult = 0.75
	}

}

utility_component_template = {
	key = "AVC_BIO_JUMP_DRIVE_5"
	size = small
	
	icon = "GFX_ship_part_avc_bio_jump_drive_5"
	icon_frame = 1
	
	prerequisites = { "tech_avc_jump_drive_5" "tech_hyper_drive_bio_integration" }
	component_set = "ftl_components_bio"

	resources = {
		category = ship_components
		inline_script = {
			script = "grand_archive/mutations/component_dynamic_cost"
			COST = 160
		}
	}

	ai_weight = {
		weight = 9
	}
	
	power = 0
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 1
		ship_windup_mult = -0.70
		ship_ftl_jumpdrive_range_mult = 1.00
	}

}

utility_component_template = {
	key = "AVC_BIO_PSI_DRIVE_2"
	size = small
	
	icon = "GFX_ship_part_avc_bio_psi_drive_2"
	icon_frame = 1
	
	prerequisites = { "tech_avc_psi_jump_drive_2" "tech_hyper_drive_bio_integration" }
	component_set = "ftl_components_bio"
	upgrades_to = "AVC_BIO_PSI_DRIVE_3"
	resources = {
		category = ship_components
		inline_script = {
			script = "grand_archive/mutations/component_dynamic_cost"
			COST = 100
		}
	}

	ai_weight = {
		weight = 7
	}
	
	power = 0
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 2
		ship_windup_mult = -0.80
		ship_ftl_jumpdrive_range_mult = 1
	}
	
}

utility_component_template = {
	key = "AVC_BIO_PSI_DRIVE_3"
	size = small
	
	icon = "GFX_ship_part_avc_bio_psi_drive_3"
	icon_frame = 1
	
	prerequisites = { "tech_avc_psi_jump_drive_3" "tech_hyper_drive_bio_integration" }
	component_set = "ftl_components_bio"

	resources = {
		category = ship_components
		inline_script = {
			script = "grand_archive/mutations/component_dynamic_cost"
			COST = 120
		}
	}

	ai_weight = {
		weight = 10
	}
	
	power = 0
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 2
		ship_windup_mult = -0.80
		ship_ftl_jumpdrive_range_mult = 1.5
	}
	
}
