@cost1 = 3
@cost2 = 6
@cost3 = 9
@cost4 = 12
@cost5 = 15
@power_1 = -10
@power_2 = -15
@power_3 = -20
@power_4 = -25
@power_5 = -30
@destroyer_power_1 = -20
@destroyer_power_2 = -30
@destroyer_power_3 = -40
@destroyer_power_4 = -50
@destroyer_power_5 = -60
@cruiser_power_1 = -40
@cruiser_power_2 = -60
@cruiser_power_3 = -80
@cruiser_power_4 = -100
@cruiser_power_5 = -120
@battleship_power_1 = -80
@battleship_power_2 = -120
@battleship_power_3 = -160
@battleship_power_4 = -200
@battleship_power_5 = -240
@titan_power_1 = -160
@titan_power_2 = -240
@titan_power_3 = -320
@titan_power_4 = -400
@titan_power_5 = -480
@colossus_power_1 = -200
@colossus_power_2 = -300
@colossus_power_3 = -400
@colossus_power_4 = -500
@colossus_power_5 = -600
@destroyer_cost1 = 6
@destroyer_cost2 = 12
@destroyer_cost3 = 18
@destroyer_cost4 = 24
@destroyer_cost5 = 30
@cruiser_cost1 = 12
@cruiser_cost2 = 24
@cruiser_cost3 = 36
@cruiser_cost4 = 48
@cruiser_cost5 = 60
@battleship_cost1 = 24
@battleship_cost2 = 48
@battleship_cost3 = 72
@battleship_cost4 = 96
@battleship_cost5 = 120
@titan_cost1 = 48
@titan_cost2 = 96
@titan_cost3 = 144
@titan_cost4 = 192
@titan_cost5 = 240
@colossus_cost1 = 60
@colossus_cost2 = 120
@colossus_cost3 = 180
@colossus_cost4 = 240
@colossus_cost5 = 300

utility_component_template = {
	key = "SHIP_THRUSTER_4"
	size = small
	icon = "GFX_ship_part_thruster_4"
	icon_frame = 1
	power = @power_4
	resources = {
		category = ship_components
		cost = {
			alloys = @cost4
		}
	}
	modifier = {
		ship_base_speed_mult = 0.75
		ship_evasion_add = 15
	}

	prerequisites = { "tech_thrusters_4" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = no
		}
		ship_uses_corvette_components = yes
	}
	upgrades_to = "AVC_CORVETTE_SHIP_THRUSTER_5"

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "DESTROYER_SHIP_THRUSTER_4"
	size = small
	icon = "GFX_ship_part_thruster_4"
	icon_frame = 1
	power = @destroyer_power_4
	resources = {
		category = ship_components
		cost = {
			alloys = @destroyer_cost4
		}
	}
	modifier = {
		ship_base_speed_mult = 0.75
		ship_evasion_add = 12
	}

	prerequisites = { "tech_thrusters_4" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = no
		}
		ship_uses_destroyer_components = yes
	}
	upgrades_to = "AVC_DESTROYER_SHIP_THRUSTER_5"

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "CRUISER_SHIP_THRUSTER_4"
	size = small
	icon = "GFX_ship_part_thruster_4"
	icon_frame = 1
	power = @cruiser_power_4
	resources = {
		category = ship_components
		cost = {
			alloys = @cruiser_cost4
		}
	}
	modifier = {
		ship_base_speed_mult = 0.75
		ship_evasion_add = 9
	}

	prerequisites = { "tech_thrusters_4" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = no
		}
		ship_uses_cruiser_components = yes
	}
	upgrades_to = "AVC_CRUISER_SHIP_THRUSTER_5"

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "BATTLESHIP_SHIP_THRUSTER_4"
	size = small
	icon = "GFX_ship_part_thruster_4"
	icon_frame = 1
	power = @battleship_power_4
	resources = {
		category = ship_components
		cost = {
			alloys = @battleship_cost4
		}
	}
	modifier = {
		ship_base_speed_mult = 0.75
		ship_evasion_add = 6
	}

	prerequisites = { "tech_thrusters_4" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = no
		}
		ship_uses_battleship_thrusters = yes
	}
	upgrades_to = "AVC_BATTLESHIP_SHIP_THRUSTER_5"

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "TITAN_SHIP_THRUSTER_4"
	size = small
	icon = "GFX_ship_part_thruster_4"
	icon_frame = 1
	power = @titan_power_4
	resources = {
		category = ship_components
		cost = {
			alloys = @titan_cost4
		}
	}
	modifier = {
		ship_base_speed_mult = 0.75
		ship_evasion_add = 3
	}

	prerequisites = { "tech_thrusters_4" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = no
		}
		ship_uses_titan_thrusters = yes
	}
	upgrades_to = "AVC_TITAN_SHIP_THRUSTER_5"

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "COLOSSUS_SHIP_THRUSTER_4"
	size = small
	icon = "GFX_ship_part_thruster_4"
	icon_frame = 1
	power = @colossus_power_4
	resources = {
		category = ship_components
		cost = {
			alloys = @colossus_cost4
		}
	}
	modifier = {
		ship_base_speed_mult = 0.75
	}

	prerequisites = { "tech_thrusters_4" }
	component_set = "thruster_components"
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
		ship_uses_colossus_thrusters = yes
	}
	upgrades_to = "AVC_COLOSSUS_SHIP_THRUSTER_5"

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "SHIP_THRUSTER_5"
	size = small
	icon = "GFX_ship_part_thruster_5"
	icon_frame = 1
	power = @power_5
	resources = {
		category = ship_components
		cost = {
			alloys = @cost4
			sr_dark_matter = 1
		}
	}
	modifier = {
		ship_base_speed_mult = 1.25
		ship_evasion_add = 20
	}

	prerequisites = { "tech_dark_matter_propulsion" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = no
		}
		ship_uses_corvette_components = yes
	}
	
	upgrades_to = "AVC_CORVETTE_SHIP_THRUSTER_DARK_MATTER_2"

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

utility_component_template = {
	key = "DESTROYER_SHIP_THRUSTER_5"
	size = small
	icon = "GFX_ship_part_thruster_5"
	icon_frame = 1
	power = @destroyer_power_5
	resources = {
		category = ship_components
		cost = {
			alloys = @destroyer_cost4
			sr_dark_matter = 2
		}
	}
	modifier = {
		ship_base_speed_mult = 1.25
		ship_evasion_add = 16
	}

	prerequisites = { "tech_dark_matter_propulsion" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = no
		}
		ship_uses_destroyer_components = yes
	}
	
	upgrades_to = "AVC_DESTROYER_SHIP_THRUSTER_DARK_MATTER_2"

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

utility_component_template = {
	key = "CRUISER_SHIP_THRUSTER_5"
	size = small
	icon = "GFX_ship_part_thruster_5"
	icon_frame = 1
	power = @cruiser_power_5
	resources = {
		category = ship_components
		cost = {
			alloys = @cruiser_cost4
			sr_dark_matter = 4
		}
	}
	modifier = {
		ship_base_speed_mult = 1.25
		ship_evasion_add = 12
	}

	prerequisites = { "tech_dark_matter_propulsion" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = no
		}
		ship_uses_cruiser_components = yes
	}
	
	upgrades_to = "AVC_CRUISER_SHIP_THRUSTER_DARK_MATTER_2"

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

utility_component_template = {
	key = "BATTLESHIP_SHIP_THRUSTER_5"
	size = small
	icon = "GFX_ship_part_thruster_5"
	icon_frame = 1
	power = @battleship_power_5
	resources = {
		category = ship_components
		cost = {
			alloys = @battleship_cost4
			sr_dark_matter = 8
		}
	}
	modifier = {
		ship_base_speed_mult = 1.25
		ship_evasion_add = 8
	}

	prerequisites = { "tech_dark_matter_propulsion" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = no
		}
		ship_uses_battleship_thrusters = yes
	}
	
	upgrades_to = "AVC_BATTLESHIP_SHIP_THRUSTER_DARK_MATTER_2"

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

utility_component_template = {
	key = "TITAN_SHIP_THRUSTER_5"
	size = small
	icon = "GFX_ship_part_thruster_5"
	icon_frame = 1
	power = @titan_power_5
	resources = {
		category = ship_components
		cost = {
			alloys = @titan_cost4
			sr_dark_matter = 16
		}
	}
	modifier = {
		ship_base_speed_mult = 1.25
		ship_evasion_add = 4
	}

	prerequisites = { "tech_dark_matter_propulsion" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = no
		}
		ship_uses_titan_thrusters = yes
	}
	
	upgrades_to = "AVC_TITAN_SHIP_THRUSTER_DARK_MATTER_2"

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

utility_component_template = {
	key = "COLOSSUS_SHIP_THRUSTER_5"
	size = small
	icon = "GFX_ship_part_thruster_5"
	icon_frame = 1
	power = @colossus_power_5
	resources = {
		category = ship_components
		cost = {
			alloys = @colossus_cost5
			sr_dark_matter = 32
		}
	}
	modifier = {
		ship_base_speed_mult = 1.25
	}

	prerequisites = { "tech_dark_matter_propulsion" }
	component_set = "thruster_components"
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
		}
		ship_uses_colossus_thrusters = yes
	}
	
	upgrades_to = "AVC_COLOSSUS_SHIP_THRUSTER_DARK_MATTER_2"

	ai_weight = {
		weight = 5

		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
		modifier = {
			factor = 0.0
			is_ai = yes
		}
	}
}

utility_component_template = {
	key = "BIO_SHIP_THRUSTER_4"
	size = small
	icon = "GFX_ship_part_bioship_thruster_4"
	icon_frame = 1
	power = @power_4
	resources = {
		category = ship_components
		cost = {
			food = @cost4
			mult = @alloy_to_food_cost_ratio
		}
	}
	modifier = {
		ship_base_speed_mult = 0.75
		ship_evasion_add = 15
	}

	prerequisites = { "tech_thrusters_4" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_corvette_components = yes
	}
	upgrades_to = "AVC_BIOSHIP_CORVETTE_THRUSTER_5"

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "DESTROYER_BIO_SHIP_THRUSTER_4"
	size = small
	icon = "GFX_ship_part_bioship_thruster_4"
	icon_frame = 1
	power = @destroyer_power_4
	resources = {
		category = ship_components
		cost = {
			food = @destroyer_cost4
			mult = @alloy_to_food_cost_ratio
		}
	}
	modifier = {
		ship_base_speed_mult = 0.75
		ship_evasion_add = 12
	}

	prerequisites = { "tech_thrusters_4" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_destroyer_components = yes
	}
	upgrades_to = "AVC_BIOSHIP_DESTROYER_THRUSTER_5"

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "CRUISER_BIO_SHIP_THRUSTER_4"
	size = small
	icon = "GFX_ship_part_bioship_thruster_4"
	icon_frame = 1
	power = @cruiser_power_4
	resources = {
		category = ship_components
		cost = {
			food = @cruiser_cost4
			mult = @alloy_to_food_cost_ratio
		}
	}
	modifier = {
		ship_base_speed_mult = 0.75
		ship_evasion_add = 9
	}

	prerequisites = { "tech_thrusters_4" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_cruiser_components = yes
	}
	upgrades_to = "AVC_BIOSHIP_CRUISER_THRUSTER_5"

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "BATTLESHIP_BIO_SHIP_THRUSTER_4"
	size = small
	icon = "GFX_ship_part_bioship_thruster_4"
	icon_frame = 1
	power = @battleship_power_4
	resources = {
		category = ship_components
		cost = {
			food = @battleship_cost4
			mult = @alloy_to_food_cost_ratio
		}
	}
	modifier = {
		ship_base_speed_mult = 0.75
		ship_evasion_add = 6
	}

	prerequisites = { "tech_thrusters_4" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_battleship_thrusters = yes
	}
	upgrades_to = "AVC_BIOSHIP_BATTLESHIP_THRUSTER_5"

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "TITAN_BIO_SHIP_THRUSTER_4"
	size = small
	icon = "GFX_ship_part_bioship_thruster_4"
	icon_frame = 1
	power = @titan_power_4
	resources = {
		category = ship_components
		cost = {
			food = @titan_cost4
			mult = @alloy_to_food_cost_ratio
		}
	}
	modifier = {
		ship_base_speed_mult = 0.75
		ship_evasion_add = 3
	}

	prerequisites = { "tech_thrusters_4" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_titan_thrusters = yes
	}
	upgrades_to = "AVC_BIOSHIP_TITAN_THRUSTER_5"

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "COLOSSUS_BIO_SHIP_THRUSTER_4"
	size = small
	icon = "GFX_ship_part_bioship_thruster_4"
	icon_frame = 1
	power = @colossus_power_4
	resources = {
		category = ship_components
		cost = {
			food = @colossus_cost4
			mult = @alloy_to_food_cost_ratio
		}
	}
	modifier = {
		ship_base_speed_mult = 0.75
	}

	prerequisites = { "tech_thrusters_4" }
	component_set = "thruster_components"
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_colossus_thrusters = yes
	}
	upgrades_to = "AVC_BIOSHIP_COLOSSUS_THRUSTER_5"

	ai_weight = {
		weight = 4
	}
}

utility_component_template = {
	key = "BIO_SHIP_THRUSTER_5"
	size = small
	icon = "GFX_ship_part_bioship_thruster_5"
	icon_frame = 1
	power = @power_5
	resources = {
		category = ship_components
		cost = {
			food = @cost4
			mult = @alloy_to_food_cost_ratio
		}
		cost = {
			sr_dark_matter = 1
		}
	}
	modifier = {
		ship_base_speed_mult = 1.25
		ship_evasion_add = 20
	}

	prerequisites = { "tech_dark_matter_propulsion" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_corvette_components = yes
	}
	upgrades_to = "AVC_BIOSHIP_CORVETTE_THRUSTER_DARK_MATTER_2"

	ai_weight = {
		weight = 5
		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_SHIP_THRUSTER_5"
	size = small
	icon = "GFX_ship_part_bioship_thruster_5"
	icon_frame = 1
	power = @destroyer_power_5
	resources = {
		category = ship_components
		cost = {
			food = @destroyer_cost4
			mult = @alloy_to_food_cost_ratio
		}
		cost = {
			sr_dark_matter = 2
		}
	}
	modifier = {
		ship_base_speed_mult = 1.25
		ship_evasion_add = 16
	}

	prerequisites = { "tech_dark_matter_propulsion" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_destroyer_components = yes
	}
	upgrades_to = "AVC_BIOSHIP_DESTROYER_THRUSTER_DARK_MATTER_2"

	ai_weight = {
		weight = 5
		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_SHIP_THRUSTER_5"
	size = small
	icon = "GFX_ship_part_bioship_thruster_5"
	icon_frame = 1
	power = @cruiser_power_5
	resources = {
		category = ship_components
		cost = {
			food = @cruiser_cost4
			mult = @alloy_to_food_cost_ratio
		}
		cost = {
			sr_dark_matter = 4
		}
	}
	modifier = {
		ship_base_speed_mult = 1.25
		ship_evasion_add = 12
	}

	prerequisites = { "tech_dark_matter_propulsion" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_cruiser_components = yes
	}
	upgrades_to = "AVC_BIOSHIP_CRUISER_THRUSTER_DARK_MATTER_2"

	ai_weight = {
		weight = 5
		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_SHIP_THRUSTER_5"
	size = small
	icon = "GFX_ship_part_bioship_thruster_5"
	icon_frame = 1
	power = @battleship_power_5
	resources = {
		category = ship_components
		cost = {
			food = @battleship_cost4
			mult = @alloy_to_food_cost_ratio
		}
		cost = {
			sr_dark_matter = 8
		}
	}
	modifier = {
		ship_base_speed_mult = 1.25
		ship_evasion_add = 8
	}

	prerequisites = { "tech_dark_matter_propulsion" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_battleship_thrusters = yes
	}
	upgrades_to = "AVC_BIOSHIP_BATTLESHIP_THRUSTER_DARK_MATTER_2"

	ai_weight = {
		weight = 5
		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_SHIP_THRUSTER_5"
	size = small
	icon = "GFX_ship_part_bioship_thruster_5"
	icon_frame = 1
	power = @titan_power_5
	resources = {
		category = ship_components
		cost = {
			food = @titan_cost4
			mult = @alloy_to_food_cost_ratio
		}
		cost = {
			sr_dark_matter = 16
		}
	}
	modifier = {
		ship_base_speed_mult = 1.25
		ship_evasion_add = 4
	}

	prerequisites = { "tech_dark_matter_propulsion" }
	component_set = "thruster_components"
	potential = {
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_titan_thrusters = yes
	}
	upgrades_to = "AVC_BIOSHIP_TITAN_THRUSTER_DARK_MATTER_2"

	ai_weight = {
		weight = 5
		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_SHIP_THRUSTER_5"
	size = small
	icon = "GFX_ship_part_bioship_thruster_5"
	icon_frame = 1
	power = @colossus_power_5
	resources = {
		category = ship_components
		cost = {
			food = @colossus_cost5
			mult = @alloy_to_food_cost_ratio
		}
		cost = {
			sr_dark_matter = 32
		}
	}
	modifier = {
		ship_base_speed_mult = 1.25
	}

	prerequisites = { "tech_dark_matter_propulsion" }
	component_set = "thruster_components"
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
		ship_uses_colossus_thrusters = yes
	}
	upgrades_to = "AVC_BIOSHIP_COLOSSUS_THRUSTER_DARK_MATTER_2"

	ai_weight = {
		weight = 5

		modifier = {
			factor = 0.0
			no_resource_for_component = { RESOURCE = sr_dark_matter }
		}
		modifier = {
			factor = 0.0
			is_ai = yes
		}
	}
}
