@cost1 = 5
@cost2 = 10
@cost3 = 15
@cost4 = 20
@power0 = -5
@power1 = -10
@power2 = -15
@power3 = -20
@power4 = -30
@computer_cost0 = 0
@computer_cost1 = 5
@computer_cost2 = 10
@computer_cost3 = 20
@computer_power0 = -5
@computer_power1 = -10
@computer_power2 = -15
@computer_power3 = -25

utility_component_template = {
	key = "SMALL_BIO_ARMOR_5"
	size = small
	icon = "GFX_ship_part_bio_armor_5"
	icon_frame = 1
	power = 0
	inline_script = {
		script = ship_components/bio_ship_armor
		SIZE = s
		TIER = 5
	}

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	prerequisites = { "tech_ship_armor_5" }
	component_set = "BIO_ARMOR_5"
	upgrades_to = "AVC_BIOSHIP_SMALL_ARMOR_6"

	ai_weight = {
		weight = @T5_weight
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}
}

utility_component_template = {
	key = "MEDIUM_BIO_ARMOR_5"
	size = medium
	icon = "GFX_ship_part_bio_armor_5"
	icon_frame = 1
	power = 0
	inline_script = {
		script = ship_components/bio_ship_armor
		SIZE = m
		TIER = 5
	}

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	prerequisites = { "tech_ship_armor_5" }
	component_set = "BIO_ARMOR_5"
	upgrades_to = "AVC_BIOSHIP_MEDIUM_ARMOR_6"

	ai_weight = {
		weight = @T5_weight
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}
}

utility_component_template = {
	key = "LARGE_BIO_ARMOR_5"
	size = large
	icon = "GFX_ship_part_bio_armor_5"
	icon_frame = 1
	power = 0
	inline_script = {
		script = ship_components/bio_ship_armor
		SIZE = l
		TIER = 5
	}

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	prerequisites = { "tech_ship_armor_5" }
	component_set = "BIO_ARMOR_5"
	upgrades_to = "AVC_BIOSHIP_LARGE_ARMOR_6"

	ai_weight = {
		weight = @T5_weight
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}
}

utility_component_template = {
	key = "SMALL_DRAGON_BIO_ARMOR"
	size = small
	icon = "GFX_ship_part_bio_dragon_armor"
	icon_frame = 1
	power = 0
	inline_script = {
		script = ship_components/bio_ship_armor
		SIZE = s
		TIER = 6
	}

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	prerequisites = { "tech_dragon_armor" }
	component_set = "DRAGON_BIO_ARMOR"
	upgrades_to = "AVC_BIOSHIP_SMALL_DRAGON_ARMOR_2"

	ai_weight = {
		weight = @T6_weight
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}
}

utility_component_template = {
	key = "MEDIUM_DRAGON_BIO_ARMOR"
	size = medium
	icon = "GFX_ship_part_bio_dragon_armor"
	icon_frame = 1
	power = 0
	inline_script = {
		script = ship_components/bio_ship_armor
		SIZE = m
		TIER = 6
	}

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	prerequisites = { "tech_dragon_armor" }
	component_set = "DRAGON_BIO_ARMOR"
	upgrades_to = "AVC_BIOSHIP_MEDIUM_DRAGON_ARMOR_2"

	ai_weight = {
		weight = @T6_weight
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}
}

utility_component_template = {
	key = "LARGE_DRAGON_BIO_ARMOR"
	size = large
	icon = "GFX_ship_part_bio_dragon_armor"
	icon_frame = 1
	power = 0
	inline_script = {
		script = ship_components/bio_ship_armor
		SIZE = l
		TIER = 6
	}

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	prerequisites = { "tech_dragon_armor" }
	component_set = "DRAGON_BIO_ARMOR"
	upgrades_to = "AVC_BIOSHIP_LARGE_DRAGON_ARMOR_2"

	ai_weight = {
		weight = @T6_weight
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}
}

utility_component_template = {
	key = "SMALL_BIO_SHIELD_5"
	size = small
	icon = "GFX_ship_part_bio_shield_5"
	icon_frame = 1
	power = @power_S5
	resources = {
		category = ship_components
		cost = {
			alloys = @shield_s_t5_cost
			exotic_gases = 0.333
		}
		upkeep = {
			food = @shield_s_t5_upkeep_energy
			alloys = @shield_s_t5_upkeep_alloys
		}
	}
	modifier = {
		ship_shield_add = @bio_ship_shield_S5
		ship_shield_regen_add_static= @bio_ship_regen_S5 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = @hardening_T5
	}
	prerequisites = { "tech_shields_5" }
	upgrades_to = "AVC_BIOSHIP_SMALL_SHIELD_6"
	component_set = "BIO_SHIELD_5"

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	ai_weight = {
		weight = @T5_weight
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = exotic_gases }
		}
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 0
		}
	}
}

utility_component_template = {
	key = "MEDIUM_BIO_SHIELD_5"
	size = medium
	icon = "GFX_ship_part_bio_shield_5"
	icon_frame = 1
	power = @power_M5
	resources = {
		category = ship_components
		cost = {
			alloys = @shield_m_t5_cost
			exotic_gases = 0.666
		}
		upkeep = {
			food = @shield_m_t5_upkeep_energy
			alloys = @shield_m_t5_upkeep_alloys
		}
	}
	modifier = {
		ship_shield_add = @bio_ship_shield_M5
		ship_shield_regen_add_static= @bio_ship_regen_M5 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = @hardening_T5
	}
	prerequisites = { "tech_shields_5" }
	upgrades_to = "AVC_BIOSHIP_MEDIUM_SHIELD_6"
	component_set = "BIO_SHIELD_5"

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	ai_weight = {
		weight = @T5_weight
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = exotic_gases }
		}
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 0
		}
	}
}

utility_component_template = {
	key = "LARGE_BIO_SHIELD_5"
	size = large
	icon = "GFX_ship_part_bio_shield_5"
	icon_frame = 1
	power = @power_L5
	resources = {
		category = ship_components
		cost = {
			alloys = @shield_l_t5_cost
			exotic_gases = 1.333
		}
		upkeep = {
			food = @shield_l_t5_upkeep_energy
			alloys = @shield_l_t5_upkeep_alloys
		}
	}
	modifier = {
		ship_shield_add = @bio_ship_shield_L5
		ship_shield_regen_add_static= @bio_ship_regen_L5 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = @hardening_T5
	}
	prerequisites = { "tech_shields_5" }
	upgrades_to = "AVC_BIOSHIP_LARGE_SHIELD_6"
	component_set = "BIO_SHIELD_5"

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	ai_weight = {
		weight = @T5_weight
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = exotic_gases }
		}
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 0
		}
	}
}

utility_component_template = {
	key = "SMALL_DARK_MATTER_BIO_DEFLECTOR"
	size = small
	icon = "GFX_ship_part_bio_dark_matter_shield"
	icon_frame = 1
	power = @power_S6
	resources = {
		category = ship_components
		cost = {
			alloys = @shield_s_t6_cost
			sr_dark_matter = 0.25
		}
		upkeep = {
			food = @shield_s_t6_upkeep_energy
			alloys = @shield_s_t6_upkeep_alloys
		}
	}
	modifier = {
		ship_shield_add = @bio_ship_shield_S6
		ship_shield_regen_add_static = @bio_ship_regen_S6 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = @hardening_T6
	}
	prerequisites = { "tech_dark_matter_deflector" }
	upgrades_to = "AVC_BIOSHIP_SMALL_DARK_MATTER_SHIELD_2"
	component_set = "DARK_MATTER_BIO_DEFLECTOR"

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	ai_weight = {
		weight = @T5_weight
		modifier = {
			factor = 0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
		modifier = {
			factor = 0.0
			is_ai = yes
		}
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 0
		}
	}
}

utility_component_template = {
	key = "MEDIUM_DARK_MATTER_BIO_DEFLECTOR"
	size = medium
	icon = "GFX_ship_part_bio_dark_matter_shield"
	icon_frame = 1
	power = @power_M6
	resources = {
		category = ship_components
		cost = {
			alloys = @shield_m_t6_cost
			sr_dark_matter = 0.5
		}
		upkeep = {
			food = @shield_m_t6_upkeep_energy
			alloys = @shield_m_t6_upkeep_alloys
		}
	}
	modifier = {
		ship_shield_add = @bio_ship_shield_M6
		ship_shield_regen_add_static = @bio_ship_regen_M6 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = @hardening_T6
	}
	prerequisites = { "tech_dark_matter_deflector" }
	upgrades_to = "AVC_BIOSHIP_MEDIUM_DARK_MATTER_SHIELD_2"
	component_set = "DARK_MATTER_BIO_DEFLECTOR"

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	ai_weight = {
		weight = @T5_weight
		modifier = {
			factor = 0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
		modifier = {
			factor = 0.0
			is_ai = yes
		}
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 0
		}
	}
}

utility_component_template = {
	key = "LARGE_DARK_MATTER_BIO_DEFLECTOR"
	size = large
	icon = "GFX_ship_part_bio_dark_matter_shield"
	icon_frame = 1
	power = @power_L6
	resources = {
		category = ship_components
		cost = {
			alloys = @shield_l_t6_cost
			sr_dark_matter = 1
		}
		upkeep = {
			food = @shield_l_t6_upkeep_energy
			alloys = @shield_l_t6_upkeep_alloys
		}
	}
	modifier = {
		ship_shield_add = @bio_ship_shield_L6
		ship_shield_regen_add_static = @bio_ship_regen_L6 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = @hardening_T6
	}
	prerequisites = { "tech_dark_matter_deflector" }
	upgrades_to = "AVC_BIOSHIP_LARGE_DARK_MATTER_SHIELD_2"
	component_set = "DARK_MATTER_BIO_DEFLECTOR"

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	ai_weight = {
		weight = @T5_weight
		modifier = {
			factor = 0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
		modifier = {
			factor = 0.0
			is_ai = yes
		}
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 0
		}
	}
}

utility_component_template = {
	key = "SMALL_PSI_BIO_SHIELD"
	size = small
	icon = "GFX_ship_part_bio_psi_shield"
	icon_frame = 1
	power = @power_S7
	resources = {
		category = ship_components
		cost = {
			alloys = @shield_s_t7_cost
			sr_zro = 0.111
		}
		upkeep = {
			food = @shield_s_t7_upkeep_energy
			alloys = @shield_s_t7_upkeep_alloys
		}
	}
	modifier = {
		ship_shield_add = @bio_ship_shield_S7
		ship_shield_regen_add_static = @bio_ship_regen_S7 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = @hardening_T6
	}
	prerequisites = { "tech_psionic_shield" }
	upgrades_to = "AVC_BIOSHIP_SMALL_PSIONIC_SHIELD_2"
	component_set = "PSI_BIO_SHIELD"

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	ai_weight = {
		weight = @T5_weight
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_zro }
		}
		modifier = {
			factor = 0.0
			is_ai = yes
		}
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 0
		}
	}
}

utility_component_template = {
	key = "MEDIUM_PSI_BIO_SHIELD"
	size = medium
	icon = "GFX_ship_part_bio_psi_shield"
	icon_frame = 1
	power = @power_M7
	resources = {
		category = ship_components
		cost = {
			alloys = @shield_m_t7_cost
			sr_zro = 0.222
		}
		upkeep = {
			food = @shield_m_t7_upkeep_energy
			alloys = @shield_m_t7_upkeep_alloys
		}
	}
	modifier = {
		ship_shield_add = @bio_ship_shield_M7
		ship_shield_regen_add_static = @bio_ship_regen_M7 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = @hardening_T6
	}
	prerequisites = { "tech_psionic_shield" }
	upgrades_to = "AVC_BIOSHIP_MEDIUM_PSIONIC_SHIELD_2"
	component_set = "PSI_BIO_SHIELD"

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	ai_weight = {
		weight = @T5_weight
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_zro }
		}
		modifier = {
			factor = 0.0
			is_ai = yes
		}
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 0
		}
	}
}

utility_component_template = {
	key = "LARGE_PSI_BIO_SHIELD"
	size = large
	icon = "GFX_ship_part_bio_psi_shield"
	icon_frame = 1
	power = @power_L7
	resources = {
		category = ship_components
		cost = {
			alloys = @shield_l_t7_cost
			sr_zro = 0.333
		}
		upkeep = {
			food = @shield_l_t7_upkeep_energy
			alloys = @shield_l_t7_upkeep_alloys
		}
	}
	modifier = {
		ship_shield_add = @bio_ship_shield_L7
		ship_shield_regen_add_static = @bio_ship_regen_L7 #Regeneration per day
	}
	ship_modifier = {
		ship_shield_hardening_add = @hardening_T6
	}
	prerequisites = { "tech_psionic_shield" }
	upgrades_to = "AVC_BIOSHIP_LARGE_PSIONIC_SHIELD_2"
	component_set = "PSI_BIO_SHIELD"

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	ai_weight = {
		weight = @T5_weight
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_zro }
		}
		modifier = {
			factor = 0.0
			is_ai = yes
		}
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 0
		}
	}
}

utility_component_template = {
	key = "CORVETTE_BIO_ZERO_POINT_REACTOR"
	size = small
	icon = "GFX_ship_part_bio_reactor_5"
	icon_frame = 1
	power = @corvette_reactor_power_5
	resources = {
		category = ship_components
		cost = {
			food = @corvette_reactor_cost_5
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			energy = 0.28
		}
		upkeep = {
			food = 0.028
			mult = @alloy_to_food_cost_ratio
		}
	}

	prerequisites = { "tech_zero_point_power" }
	component_set = "power_core"
	potential = {
		ship_uses_corvette_reactors = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	upgrades_to = "CORVETTE_AVC_BIOSHIP_REACTOR_6"

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "DESTROYER_BIO_ZERO_POINT_REACTOR"
	size = small
	icon = "GFX_ship_part_bio_reactor_5"
	icon_frame = 1
	power = @destroyer_reactor_power_5
	resources = {
		category = ship_components
		cost = {
			food = @destroyer_reactor_cost_5
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			energy = 0.57
		}
		upkeep = {
			food = 0.057
			mult = @alloy_to_food_cost_ratio
		}
	}

	prerequisites = { "tech_zero_point_power" }
	component_set = "power_core"
	potential = {
		ship_uses_destroyer_reactors = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	upgrades_to = "DESTROYER_AVC_BIOSHIP_REACTOR_6"

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "CRUISER_BIO_ZERO_POINT_REACTOR"
	size = small
	icon = "GFX_ship_part_bio_reactor_5"
	icon_frame = 1
	power = @cruiser_reactor_power_5
	resources = {
		category = ship_components
		cost = {
			food = @cruiser_reactor_cost_5
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			energy = 1.14
		}
		upkeep = {
			food = 0.114
			mult = @alloy_to_food_cost_ratio
		}
	}

	prerequisites = { "tech_zero_point_power" }
	component_set = "power_core"
	potential = {
		ship_uses_cruiser_reactors = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	upgrades_to = "CRUISER_AVC_BIOSHIP_REACTOR_6"

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "BATTLESHIP_BIO_ZERO_POINT_REACTOR"
	size = small
	icon = "GFX_ship_part_bio_reactor_5"
	icon_frame = 1
	power = @battleship_reactor_power_5
	resources = {
		category = ship_components
		cost = {
			food = @battleship_reactor_cost_5
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			energy = 2.29
		}
		upkeep = {
			food = 0.229
			mult = @alloy_to_food_cost_ratio
		}
	}

	prerequisites = { "tech_zero_point_power" }
	component_set = "power_core"
	potential = {
		ship_uses_battleship_reactors = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	upgrades_to = "BATTLESHIP_AVC_BIOSHIP_REACTOR_6"

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "TITAN_BIO_ZERO_POINT_REACTOR"
	size = small
	icon = "GFX_ship_part_bio_reactor_5"
	icon_frame = 1
	power = @titan_reactor_power_5
	resources = {
		category = ship_components
		cost = {
			food = @titan_reactor_cost_5
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			energy = 4.56
		}
		upkeep = {
			food = 0.456
			mult = @alloy_to_food_cost_ratio
		}
	}

	prerequisites = { "tech_zero_point_power" }
	component_set = "power_core"
	potential = {
		ship_uses_titan_reactors = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	upgrades_to = "TITAN_AVC_BIOSHIP_REACTOR_6"

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "COLOSSUS_BIO_ZERO_POINT_REACTOR"
	size = small
	icon = "GFX_ship_part_bio_reactor_5"
	icon_frame = 1
	power = @colossus_power

	component_set = "power_core"
	potential = {
		ship_uses_colossus_components = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}
	upgrades_to = "COLOSSUS_AVC_BIOSHIP_REACTOR_6"

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "JUGGERNAUT_BIO_ZERO_POINT_REACTOR"
	size = small
	icon = "GFX_ship_part_bio_reactor_5"
	icon_frame = 1
	power = @juggernaut_reactor_power_5
	resources = {
		category = ship_components
		cost = {
			food = @juggernaut_reactor_cost_5
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			energy = 15.99
		}
		upkeep = {
			food = 1.599
			mult = @alloy_to_food_cost_ratio
		}
	}

	prerequisites = { "tech_zero_point_power" }
	component_set = "power_core"
	potential = {
		ship_uses_juggernaut_reactors = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	upgrades_to = "JUGGERNAUT_AVC_BIOSHIP_REACTOR_6"

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "PLATFORM_BIO_ZERO_POINT_REACTOR"
	size = large
	icon = "GFX_ship_part_bio_reactor_5"
	icon_frame = 1
	power = @platform_reactor_power_5
	resources = {
		category = ship_components
		cost = {
			food = @platform_reactor_cost_5
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			energy = 0.57
		}
		upkeep = {
			food = 0.057
			mult = @alloy_to_food_cost_ratio
		}
	}

	prerequisites = { "tech_zero_point_power" }
	component_set = "power_core"
	potential = {
		ship_uses_platform_reactors = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	upgrades_to = "PLATFORM_AVC_BIOSHIP_REACTOR_6"

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "ION_CANNON_BIO_ZERO_POINT_REACTOR"
	size = small
	icon = "GFX_ship_part_bio_reactor_5"
	icon_frame = 1
	power = @battleship_reactor_power_5
	resources = {
		category = ship_components
		cost = {
			alloys = @cruiser_reactor_cost_5
		}
	}

	component_set = "power_core"
	potential = {
		ship_uses_ion_cannon_components = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}
	upgrades_to = "ION_CANNON_AVC_BIOSHIP_REACTOR_6"

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "STARBASE_BIO_ZERO_POINT_REACTOR"
	size = large
	icon = "GFX_ship_part_bio_reactor_5"
	icon_frame = 1
	power = @starbase_reactor_power_5

	prerequisites = { "tech_zero_point_power" }
	component_set = "power_core"
	potential = {
		ship_uses_starbase_components = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	upgrades_to = "STARBASE_AVC_BIOSHIP_REACTOR_6"

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "CORVETTE_BIO_DARK_MATTER_REACTOR"
	size = small
	icon = "GFX_ship_part_bio_dark_matter_power_core"
	icon_frame = 1
	power = @corvette_reactor_power_6
	resources = {
		category = ship_components
		cost = {
			sr_dark_matter = 1
		}
		cost = {
			food = @corvette_reactor_cost_6
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			energy = 0.37
		}
		upkeep = {
			food = 0.037
			mult = @alloy_to_food_cost_ratio
		}
	}

	prerequisites = { "tech_dark_matter_power_core" }
	component_set = "power_core"
	potential = {
		ship_uses_corvette_reactors = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	upgrades_to = "CORVETTE_AVC_BIOSHIP_DARK_MATTER_REACTOR_2"

	ai_weight = {
		weight = 6
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
		modifier = {
			factor = 0.0
			is_ai = yes
		}
	}
}

utility_component_template = {
	key = "DESTROYER_BIO_DARK_MATTER_REACTOR"
	size = small
	icon = "GFX_ship_part_bio_dark_matter_power_core"
	icon_frame = 1
	power = @destroyer_reactor_power_6
	resources = {
		category = ship_components
		cost = {
			sr_dark_matter = 2
		}
		cost = {
			food = @destroyer_reactor_cost_6
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			energy = 0.74
		}
		upkeep = {
			food = 0.074
			mult = @alloy_to_food_cost_ratio
		}
	}

	prerequisites = { "tech_dark_matter_power_core" }
	component_set = "power_core"
	potential = {
		ship_uses_destroyer_reactors = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	upgrades_to = "DESTROYER_AVC_BIOSHIP_DARK_MATTER_REACTOR_2"

	ai_weight = {
		weight = 6
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
		modifier = {
			factor = 0.0
			is_ai = yes
		}
	}
}

utility_component_template = {
	key = "CRUISER_BIO_DARK_MATTER_REACTOR"
	size = small
	icon = "GFX_ship_part_bio_dark_matter_power_core"
	icon_frame = 1
	power = @cruiser_reactor_power_6
	resources = {
		category = ship_components
		cost = {
			sr_dark_matter = 4
		}
		cost = {
			food = @cruiser_reactor_cost_6
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			energy = 1.48
		}
		upkeep = {
			food = 0.148
			mult = @alloy_to_food_cost_ratio
		}
	}

	prerequisites = { "tech_dark_matter_power_core" }
	component_set = "power_core"
	potential = {
		ship_uses_cruiser_reactors = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	upgrades_to = "CRUISER_AVC_BIOSHIP_DARK_MATTER_REACTOR_2"

	ai_weight = {
		weight = 6
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
		modifier = {
			factor = 0.0
			is_ai = yes
		}
	}
}

utility_component_template = {
	key = "BATTLESHIP_BIO_DARK_MATTER_REACTOR"
	size = small
	icon = "GFX_ship_part_bio_dark_matter_power_core"
	icon_frame = 1
	power = @battleship_reactor_power_6
	resources = {
		category = ship_components
		cost = {
			sr_dark_matter = 8
		}
		cost = {
			food = @battleship_reactor_cost_6
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			energy = 2.98
		}
		upkeep = {
			food = 0.298
			mult = @alloy_to_food_cost_ratio
		}
	}

	prerequisites = { "tech_dark_matter_power_core" }
	component_set = "power_core"
	potential = {
		ship_uses_battleship_reactors = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	upgrades_to = "BATTLESHIP_AVC_BIOSHIP_DARK_MATTER_REACTOR_2"

	ai_weight = {
		weight = 6
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
		modifier = {
			factor = 0.0
			is_ai = yes
		}
	}
}

utility_component_template = {
	key = "TITAN_BIO_DARK_MATTER_REACTOR"
	size = small
	icon = "GFX_ship_part_bio_dark_matter_power_core"
	icon_frame = 1
	power = @titan_reactor_power_6
	resources = {
		category = ship_components
		cost = {
			sr_dark_matter = 16
		}
		cost = {
			food = @titan_reactor_cost_6
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			energy = 5.93
		}
		upkeep = {
			food = 0.593
			mult = @alloy_to_food_cost_ratio
		}
	}

	prerequisites = { "tech_dark_matter_power_core" }
	component_set = "power_core"
	potential = {
		ship_uses_titan_reactors = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	upgrades_to = "TITAN_AVC_BIOSHIP_DARK_MATTER_REACTOR_2"

	ai_weight = {
		weight = 6
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
		modifier = {
			factor = 0.0
			is_ai = yes
		}
	}
}

utility_component_template = {
	key = "COLOSSUS_BIO_DARK_MATTER_REACTOR"
	size = small
	icon = "GFX_ship_part_bio_dark_matter_power_core"
	icon_frame = 1
	power = @colossus_power
	resources = {
		category = ship_components
	}

	prerequisites = { "tech_dark_matter_power_core" }
	component_set = "power_core"
	potential = {
		ship_uses_colossus_components = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}
	upgrades_to = "COLOSSUS_AVC_BIOSHIP_DARK_MATTER_REACTOR_2"

	ai_weight = {
		weight = 6
	}
}

utility_component_template = {
	key = "JUGGERNAUT_BIO_DARK_MATTER_REACTOR"
	size = small
	icon = "GFX_ship_part_bio_dark_matter_power_core"
	icon_frame = 1
	power = @juggernaut_reactor_power_6
	resources = {
		category = ship_components
		cost = {
			sr_dark_matter = 32
		}
		cost = {
			food = @juggernaut_reactor_cost_6
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			energy = 20.79
		}
		upkeep = {
			food = 2.079
			mult = @alloy_to_food_cost_ratio
		}
	}

	prerequisites = { "tech_dark_matter_power_core" }
	component_set = "power_core"
	potential = {
		ship_uses_juggernaut_reactors = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	upgrades_to = "JUGGERNAUT_AVC_BIOSHIP_DARK_MATTER_REACTOR_2"

	ai_weight = {
		weight = 6
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
		modifier = {
			factor = 0.0
			is_ai = yes
		}
	}
}

utility_component_template = {
	key = "PLATFORM_BIO_DARK_MATTER_REACTOR"
	size = large
	icon = "GFX_ship_part_bio_dark_matter_power_core"
	icon_frame = 1
	power = @platform_reactor_power_6
	resources = {
		category = ship_components
		cost = {
			sr_dark_matter = 4
		}
		cost = {
			food = @platform_reactor_cost_6
			mult = @alloy_to_food_cost_ratio
		}
		upkeep = {
			energy = 0.74
		}
		upkeep = {
			food = 0.074
			mult = @alloy_to_food_cost_ratio
		}
	}

	prerequisites = { "tech_dark_matter_power_core" }
	component_set = "power_core"
	potential = {
		ship_uses_platform_reactors = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	upgrades_to = "PLATFORM_AVC_BIOSHIP_DARK_MATTER_REACTOR_2"

	ai_weight = {
		weight = 6
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
		modifier = {
			factor = 0.0
			is_ai = yes
		}
	}
}

utility_component_template = {
	key = "ION_CANNON_BIO_DARK_MATTER_REACTOR"
	size = small
	icon = "GFX_ship_part_bio_dark_matter_power_core"
	icon_frame = 1
	power = @battleship_reactor_power_6
	resources = {
		category = ship_components
		cost = {
			sr_dark_matter = 8
		}
		cost = {
			food = @cruiser_reactor_cost_6
			mult = @alloy_to_food_cost_ratio
		}
	}

	prerequisites = { "tech_dark_matter_power_core" }
	component_set = "power_core"
	potential = {
		ship_uses_ion_cannon_components = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}
	upgrades_to = "ION_CANNON_AVC_BIOSHIP_DARK_MATTER_REACTOR_2"

	ai_weight = {
		weight = 6
		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
		modifier = {
			factor = 0.0
			is_ai = yes
		}
	}
}

utility_component_template = {
	key = "STARBASE_BIO_DARK_MATTER_REACTOR"
	size = large
	icon = "GFX_ship_part_bio_dark_matter_power_core"
	icon_frame = 1
	power = @starbase_reactor_power_6

	prerequisites = { "tech_dark_matter_power_core" }
	component_set = "power_core"
	potential = {
		ship_uses_starbase_components = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	upgrades_to = "STARBASE_AVC_BIOSHIP_DARK_MATTER_REACTOR_2"

	ai_weight = {
		weight = 6
	}
}

utility_component_template = {
	key = "BIO_HYPER_DRIVE_3"
	size = small
	icon = "GFX_ship_part_bioship_hyper_drive_3"
	icon_frame = 1
	power = @power3
	resources = {
		category = ship_components
		cost = {
			food = @cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	ftl = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 1
		ship_windup_mult = -0.5
	}

	ai_weight = {
		weight = 3
	}

	potential = {
		is_eager_explorer_ship = no
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	prerequisites = { "tech_hyper_drive_3" }
	component_set = "ftl_components"
	upgrades_to = "AVC_BIOSHIP_HYPER_DRIVE_4"
}

utility_component_template = {
	key = "BIO_JUMP_DRIVE_1"
	size = small
	icon = "GFX_ship_part_bioship_jump_drive_1"
	icon_frame = 1
	power = @power4
	resources = {
		category = ship_components
		cost = {
			food = @cost4
			mult = @alloy_to_food_cost_ratio
		}
	}
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 1
		ship_windup_mult = -0.7
	}

	ai_weight = {
		weight = 4
	}

	potential = {
		ship_uses_jump_drives = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}

	prerequisites = { "tech_jump_drive_1" }
	component_set = "ftl_components"
	upgrades_to = "AVC_BIOSHIP_JUMP_DRIVE_2"
}

utility_component_template = {
	key = "BIO_PSI_JUMP_DRIVE_1"
	size = small
	icon = "GFX_ship_part_bioship_psi_jump_drive_1"
	icon_frame = 1
	power = @power4
	resources = {
		category = ship_components
		cost = {
			food = @cost4
			mult = @alloy_to_food_cost_ratio
		}
	}
	ftl = yes
	jumpdrive = yes
	ship_modifier = {
		ship_disengage_opportunities_add = 2
		ship_windup_mult = -0.8
		ship_ftl_jumpdrive_range_mult = 0.50
	}

	ai_weight = {
		weight = 5
	}

	potential = {
		ship_uses_jump_drives = yes
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	prerequisites = { "tech_psi_jump_drive_1" }
	component_set = "ftl_components"
	upgrades_to = "AVC_BIOSHIP_PSI_JUMP_DRIVE_2"
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_SWARM_SAPIENT"
	size = small
	icon = "GFX_ship_part_bioship_computer_swarm_sapient"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_swarm_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "swarm"
	upgrades_to = "AVC_BIOSHIP_COMPUTER_SWARM_4"
	upgrade_path = swarm
	prerequisites = { "tech_combat_computers_3" }
	ai_tags = { gunship gunship_stealth brawler brawler_stealth }
	ai_tag_weight = 0

	modifier = {
		ship_evasion_mult = 0.25
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.15
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0
			OR = {
				has_global_flag = ghost_signal_5_flag
				has_global_flag = ghost_signal_4_flag
				has_global_flag = ghost_signal_3_flag
				has_global_flag = ghost_signal_2_flag
				has_global_flag = ghost_signal_1_flag
				has_policy_flag = ai_outlawed
			}
		}
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_SWARM_AUTONOMOUS"
	size = small
	icon = "GFX_ship_part_bioship_computer_swarm_sapient"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_swarm_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "swarm"
	upgrades_to = "AVC_BIOSHIP_COMPUTER_SWARM_AUTONOMOUS_4"
	upgrade_path = swarm
	prerequisites = { "tech_combat_computers_autonomous" }
	ai_tags = { gunship gunship_stealth brawler brawler_stealth }
	ai_tag_weight = 0

	modifier = {
		ship_evasion_mult = 0.25
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.15
	}

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_SWARM_PRECOG"
	size = small
	icon = "GFX_ship_part_bioship_computer_swarm_precog"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_swarm_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "swarm"
	upgrade_path = swarm
	upgrades_to = "AVC_COMBAT_COMPUTER_SWARM_PRECOG_2"
	prerequisites = { "tech_precognition_interface" }
	ai_tags = { gunship gunship_stealth brawler brawler_stealth }
	ai_tag_weight = 0

	modifier = {
		ship_evasion_mult = 0.15
		ship_speed_mult = 0.20
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.15
	}

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_TORPEDO_SAPIENT"
	size = small
	icon = "GFX_ship_part_bioship_computer_swarm_sapient"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_torpedo_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "swarm"
	upgrades_to = "AVC_BIOSHIP_COMPUTER_TORPEDO_4"
	upgrade_path = torpedo
	prerequisites = {
		tech_combat_computers_3
	}
	ai_tags = { explosive explosive_stealth }
	ai_tag_weight = 0

	modifier = {
		ship_evasion_mult = 0.10
	}

	ship_modifier = {
		weapon_type_mandible_weapon_damage_mult = 0.15
		ship_damage_against_starbases_mult = 0.80
		ship_orbital_bombardment_mult = 0.80
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0
			OR = {
				has_global_flag = ghost_signal_5_flag
				has_global_flag = ghost_signal_4_flag
				has_global_flag = ghost_signal_3_flag
				has_global_flag = ghost_signal_2_flag
				has_global_flag = ghost_signal_1_flag
				has_policy_flag = ai_outlawed
			}
		}
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_TORPEDO_AUTONOMOUS"
	size = small
	icon = "GFX_ship_part_bioship_computer_swarm_sapient"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_torpedo_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "swarm"
	upgrades_to = "AVC_BIOSHIP_COMPUTER_TORPEDO_AUTONOMOUS_4"
	upgrade_path = torpedo
	prerequisites = {
		tech_combat_computers_autonomous
	}
	ai_tags = { explosive explosive_stealth }
	ai_tag_weight = 0

	modifier = {
		ship_evasion_mult = 0.10
	}

	ship_modifier = {
		weapon_type_mandible_weapon_damage_mult = 0.15
		ship_damage_against_starbases_mult = 0.80
		ship_orbital_bombardment_mult = 0.80
	}

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_TORPEDO_PRECOG"
	size = small
	icon = "GFX_ship_part_bioship_computer_swarm_precog"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_torpedo_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "swarm"
	upgrades_to = "AVC_BIOSHIP_COMPUTER_TORPEDO_PRECOG_2"
	upgrade_path = torpedo
	prerequisites = {
		tech_precognition_interface
		tech_torpedoes_1
	}
	ai_tags = { explosive explosive_stealth }
	ai_tag_weight = 0

	ship_modifier = {
		weapon_type_mandible_weapon_damage_mult = 0.15
		ship_tracking_add = 10
		ship_damage_against_starbases_mult = 0.80
		ship_orbital_bombardment_mult = 0.80
	}

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_PICKET_SAPIENT"
	size = small
	icon = "GFX_ship_part_bioship_computer_picket_sapient"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_picket_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "picket"
	upgrade_path = picket
	upgrades_to = "AVC_BIOSHIP_COMPUTER_PICKET_4"
	prerequisites = { "tech_combat_computers_3" }
	ai_tags = { screen screen_stealth }
	ai_tag_weight = 0

	modifier = {
		ship_evasion_mult = 0.10
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_tracking_add = 30
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0
			OR = {
				has_global_flag = ghost_signal_5_flag
				has_global_flag = ghost_signal_4_flag
				has_global_flag = ghost_signal_3_flag
				has_global_flag = ghost_signal_2_flag
				has_global_flag = ghost_signal_1_flag
				has_policy_flag = ai_outlawed
			}
		}
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_PICKET_AUTONOMOUS"
	size = small
	icon = "GFX_ship_part_bioship_computer_picket_sapient"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_picket_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "picket"
	upgrade_path = picket
	upgrades_to = "AVC_BIOSHIP_COMPUTER_PICKET_AUTONOMOUS_4"
	prerequisites = { "tech_combat_computers_autonomous" }
	ai_tags = { screen screen_stealth }
	ai_tag_weight = 0

	modifier = {
		ship_evasion_mult = 0.10
	}
	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_tracking_add = 30
	}

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_PICKET_PRECOG"
	size = small
	icon = "GFX_ship_part_bioship_computer_picket_precog"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_picket_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "picket"
	upgrade_path = picket
	upgrades_to = "AVC_BIOSHIP_COMPUTER_PICKET_PRECOG_2"
	prerequisites = { "tech_precognition_interface" }
	ai_tags = { screen screen_stealth }
	ai_tag_weight = 0

	ship_modifier = {
		ship_fire_rate_mult = 0.20
		ship_tracking_add = 40
	}

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_LINE_SAPIENT"
	size = small
	icon = "GFX_ship_part_bioship_computer_line_sapient"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_line_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "line"
	upgrade_path = line
	upgrades_to = "AVC_BIOSHIP_COMPUTER_LINE_4"
	prerequisites = { "tech_combat_computers_3" }
	ai_tags = { gunship gunship_stealth }
	ai_tag_weight = 0

	ship_modifier = {
		ship_fire_rate_mult = 0.20
		ship_accuracy_add = 20
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0
			OR = {
				has_global_flag = ghost_signal_5_flag
				has_global_flag = ghost_signal_4_flag
				has_global_flag = ghost_signal_3_flag
				has_global_flag = ghost_signal_2_flag
				has_global_flag = ghost_signal_1_flag
				has_policy_flag = ai_outlawed
			}
		}
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_LINE_AUTONOMOUS"
	size = small
	icon = "GFX_ship_part_bioship_computer_line_sapient"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_line_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "line"
	upgrade_path = line
	upgrades_to = "AVC_BIOSHIP_COMPUTER_LINE_AUTONOMOUS_4"
	prerequisites = { "tech_combat_computers_autonomous" }
	ai_tags = { gunship gunship_stealth }
	ai_tag_weight = 0

	ship_modifier = {
		ship_fire_rate_mult = 0.20
		ship_accuracy_add = 20
	}

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_LINE_PRECOG"
	size = small
	icon = "GFX_ship_part_bioship_computer_line_precog"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_line_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "line"
	upgrade_path = line
	upgrades_to = "AVC_BIOSHIP_COMPUTER_LINE_PRECOG_2"
	prerequisites = { "tech_precognition_interface" }
	ai_tags = { gunship gunship_stealth }
	ai_tag_weight = 0

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_accuracy_add = 15
		ship_tracking_add = 10
	}

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_ARTILLERY_SAPIENT"
	size = small
	icon = "GFX_ship_part_bioship_computer_artillery_sapient"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_artillery_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "artillery"
	upgrade_path = artillery
	upgrades_to = "AVC_BIOSHIP_COMPUTER_ARTILLERY_4"
	prerequisites = { "tech_combat_computers_3" }
	ai_tags = { artillery artillery_stealth energy_torpedoes energy_torpedoes_stealth }
	ai_tag_weight = 0

	ship_modifier = {
		ship_fire_rate_mult = 0.20
		ship_weapon_range_mult = 0.20
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0
			OR = {
				has_global_flag = ghost_signal_5_flag
				has_global_flag = ghost_signal_4_flag
				has_global_flag = ghost_signal_3_flag
				has_global_flag = ghost_signal_2_flag
				has_global_flag = ghost_signal_1_flag
				has_policy_flag = ai_outlawed
			}
		}
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_ARTILLERY_AUTONOMOUS"
	size = small
	icon = "GFX_ship_part_bioship_computer_artillery_sapient"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_artillery_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "artillery"
	upgrade_path = artillery
	upgrades_to = "AVC_BIOSHIP_COMPUTER_ARTILLERY_AUTONOMOUS_4"
	prerequisites = { "tech_combat_computers_autonomous" }
	ai_tags = { artillery artillery_stealth energy_torpedoes energy_torpedoes_stealth }
	ai_tag_weight = 0

	ship_modifier = {
		ship_fire_rate_mult = 0.20
		ship_weapon_range_mult = 0.20
	}

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_ARTILLERY_PRECOG"
	size = small
	icon = "GFX_ship_part_bioship_computer_artillery_precog"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_artillery_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "artillery"
	upgrade_path = artillery
	upgrades_to = "AVC_BIOSHIP_COMPUTER_ARTILLERY_PRECOG_2"
	prerequisites = { "tech_precognition_interface" }
	ai_tags = { artillery artillery_stealth energy_torpedoes energy_torpedoes_stealth }
	ai_tag_weight = 0

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_weapon_range_mult = 0.15
		ship_tracking_add = 10
	}

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_CARRIER_SAPIENT"
	size = small
	icon = "GFX_ship_part_bioship_computer_carrier_sapient"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_carrier_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "carrier"
	upgrade_path = carrier
	upgrades_to = "AVC_BIOSHIP_COMPUTER_CARRIER_4"
	prerequisites = { "tech_combat_computers_3" }
	ai_tags = { carrier }
	ai_tag_weight = 0

	ship_modifier = {
		ship_engagement_range_mult = 1.0
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 5
			is_preferred_weapons = weapon_type_strike_craft
		}
		modifier = {
			factor = 0
			OR = {
				has_global_flag = ghost_signal_5_flag
				has_global_flag = ghost_signal_4_flag
				has_global_flag = ghost_signal_3_flag
				has_global_flag = ghost_signal_2_flag
				has_global_flag = ghost_signal_1_flag
				has_policy_flag = ai_outlawed
			}
		}
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_CARRIER_AUTONOMOUS"
	size = small
	icon = "GFX_ship_part_bioship_computer_carrier_sapient"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_carrier_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "carrier"
	upgrade_path = carrier
	upgrades_to = "AVC_BIOSHIP_COMPUTER_CARRIER_AUTONOMOUS_4"
	prerequisites = { "tech_combat_computers_autonomous" }
	ai_tags = { carrier }
	ai_tag_weight = 0

	ship_modifier = {
		ship_engagement_range_mult = 1.0
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 5
			is_preferred_weapons = weapon_type_strike_craft
		}
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_CARRIER_PRECOG"
	size = small
	icon = "GFX_ship_part_bioship_computer_carrier_precog"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_carrier_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "carrier"
	upgrade_path = carrier
	upgrades_to = "AVC_BIOSHIP_COMPUTER_CARRIER_PRECOG_2"
	prerequisites = { "tech_precognition_interface" }
	ai_tags = { carrier }
	ai_tag_weight = 0

	ship_modifier = {
		ship_engagement_range_mult = 0.75
		ship_tracking_add = 10
	}

	ai_weight = {
		weight = 4
		modifier = {
			factor = 5
			is_preferred_weapons = weapon_type_strike_craft
		}
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_PLATFORM_SAPIENT"
	size = small
	icon = "GFX_ship_part_bioship_computer_swarm_sapient"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_platform_computers = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "platform"
	upgrades_to = "AVC_BIOSHIP_COMPUTER_PLATFORM_4"
	prerequisites = { "tech_combat_computers_3" }

	ship_modifier = {
		ship_fire_rate_mult = 0.35
		ship_tracking_add = 25
		ship_accuracy_add = 10
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0
			OR = {
				has_global_flag = ghost_signal_5_flag
				has_global_flag = ghost_signal_4_flag
				has_global_flag = ghost_signal_3_flag
				has_global_flag = ghost_signal_2_flag
				has_global_flag = ghost_signal_1_flag
				has_policy_flag = ai_outlawed
			}
		}
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_PLATFORM_AUTONOMOUS"
	size = small
	icon = "GFX_ship_part_bioship_computer_swarm_sapient"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_platform_computers = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "platform"
	upgrades_to = "AVC_BIOSHIP_COMPUTER_PLATFORM_AUTONOMOUS_4"
	prerequisites = { "tech_combat_computers_autonomous" }

	ship_modifier = {
		ship_fire_rate_mult = 0.35
		ship_tracking_add = 25
		ship_accuracy_add = 10
	}

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_PLATFORM_PRECOG"
	size = small
	icon = "GFX_ship_part_bioship_computer_swarm_precog"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_platform_computers = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "platform"
	upgrades_to = "AVC_BIOSHIP_COMPUTER_PLATFORM_PRECOG_2"
	prerequisites = { "tech_precognition_interface" }

	ship_modifier = {
		ship_fire_rate_mult = 0.35
		ship_tracking_add = 35
	}

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "STARBASE_BIO_COMBAT_COMPUTER_3"
	size = small
	icon = "GFX_ship_part_bioship_computer_default"
	icon_frame = 1
	power = 0
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_starbase_components = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "platform"
	upgrades_to = "AVC_BIOSHIP_STARBASE_COMPUTER_4"
	prerequisites = { "tech_combat_computers_2" }

	ship_modifier = {
		ship_fire_rate_mult = 0.15
		ship_tracking_add = 30
	}

	ai_weight = {
		weight = 3
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_BUFFER_SAPIENT"
	size = small
	icon = "GFX_ship_part_bioship_computer_buffer_sapient"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_buffer_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "swarm"
	upgrade_path = buffer
	upgrades_to = "AVC_BIOSHIP_COMPUTER_BUFFER_4"
	target_type = target_allies
	prerequisites = { "tech_combat_computers_3" }
	ai_tags = { buffer_role buffer_role_stealth }
	ai_tag_weight = 0
	modifier = {
		ship_evasion_mult = 0.20
	}
	ship_modifier = {
		buffer_role_weapon_fire_rate_mult = 0.20
	}

	ai_weight = {
		weight = 5
		modifier = {
			factor = 0
			OR = {
				has_global_flag = ghost_signal_5_flag
				has_global_flag = ghost_signal_4_flag
				has_global_flag = ghost_signal_3_flag
				has_global_flag = ghost_signal_2_flag
				has_global_flag = ghost_signal_1_flag
				has_policy_flag = ai_outlawed
			}
		}
	}
}

utility_component_template = {
	key = "BIO_COMBAT_COMPUTER_BUFFER_AUTONOMOUS"
	size = small
	icon = "GFX_ship_part_bioship_computer_buffer_sapient"
	icon_frame = 1
	power = @computer_power3
	resources = {
		category = ship_components
		cost = {
			food = @computer_cost3
			mult = @alloy_to_food_cost_ratio
		}
	}
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_buffer_role = yes
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	component_set = "combat_computers"
	ship_behavior = "swarm"
	upgrade_path = buffer
	upgrades_to = "AVC_BIOSHIP_COMPUTER_BUFFER_AUTONOMOUS_4"
	target_type = target_allies
	prerequisites = { "tech_combat_computers_autonomous" }
	ai_tags = { buffer_role buffer_role_stealth }
	ai_tag_weight = 0
	modifier = {
		ship_evasion_mult = 0.20
	}
	ship_modifier = {
		buffer_role_weapon_fire_rate_mult = 0.20
	}

	ai_weight = {
		weight = 5
	}
}

utility_component_template = {
	key = "SMALL_BIO_LM_ARMOR_5"
	size = small
	icon = "GFX_ship_part_bio_lm_armor_5"
	icon_frame = 1
	power = 0
	inline_script = {
		script = ship_components/bio_lm_ship_armor
		SIZE = s
		TIER = 5
	}

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}

	prerequisites = { "tech_ship_armor_5" }
	component_set = "BIO_LM_ARMOR_5"
	upgrades_to = "AVC_BIOSHIP_SMALL_LM_ARMOR_6"

	ai_weight = {
		weight = @T5_weight
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}
}

utility_component_template = {
	key = "MEDIUM_BIO_LM_ARMOR_5"
	size = medium
	icon = "GFX_ship_part_bio_lm_armor_5"
	icon_frame = 1
	power = 0
	inline_script = {
		script = ship_components/bio_lm_ship_armor
		SIZE = m
		TIER = 5
	}

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}

	prerequisites = { "tech_ship_armor_5" }
	component_set = "BIO_LM_ARMOR_5"
	upgrades_to = "AVC_BIOSHIP_MEDIUM_LM_ARMOR_6"

	ai_weight = {
		weight = @T5_weight
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}
}

utility_component_template = {
	key = "LARGE_BIO_LM_ARMOR_5"
	size = large
	icon = "GFX_ship_part_bio_lm_armor_5"
	icon_frame = 1
	power = 0
	inline_script = {
		script = ship_components/bio_lm_ship_armor
		SIZE = l
		TIER = 5
	}

	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
			is_galvanic_empire = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
		is_galvanic_empire = yes
	}

	prerequisites = { "tech_ship_armor_5" }
	component_set = "BIO_LM_ARMOR_5"
	upgrades_to = "AVC_BIOSHIP_LARGE_LM_ARMOR_6"

	ai_weight = {
		weight = @T5_weight
		inline_script = {
			script = ship_components/weights/roles_stealth
			MULT = 2
		}
	}
}
