@hit2 = 5
@hit3 = 10
@hit4 = 15
@cost1 = 2
@cost2 = 4
@cost3 = 6
@cost4 = 8
@cost_fauna_1 = 8
@cost_fauna_2 = 16
@cost_fauna_3 = 24
@cost_fauna_4 = 32
@power1 = -5
@power2 = -10
@power3 = -15
@power4 = -20
@sensor1 = 1
@sensor2 = 2
@sensor3 = 3
@sensor4 = 4
@hyperlane1 = 2
@hyperlane2 = 3
@hyperlane3 = 4
@hyperlane4 = 5

utility_component_template = {
	key = "AVC_SENSOR_5"
	size = medium

	icon = "GFX_avc_ship_part_sensor_5"
	icon_frame = 1

	prerequisites = { "tech_avc_sensors_5" }
	component_set = "sensor_components"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
			is_ship_size = paladin_ship
		}
	}

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

	ai_weight = {
		weight = 10000
	}

	power = -25
	ship_modifier = {
		ship_tracking_add = 20
	}
	sensor_range = 5
	hyperlane_range = 6
}

utility_component_template = {
	key = "AVC_SENSOR_6"
	size = medium

	icon = "GFX_avc_ship_part_sensor_6"
	icon_frame = 1

	prerequisites = { "tech_avc_sensors_6" }
	component_set = "sensor_components"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
			is_ship_size = paladin_ship
		}
	}

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

	ai_weight = {
		weight = 100000
	}

	power = -30
	ship_modifier = {
		ship_tracking_add = 25
	}
	sensor_range = 6
	hyperlane_range = 7
}

utility_component_template = {
	key = "AVC_SENSOR_7"
	size = medium

	icon = "GFX_avc_ship_part_sensor_7"
	icon_frame = 1

	prerequisites = { "tech_avc_sensors_7" }
	component_set = "sensor_components"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
			is_ship_size = paladin_ship
		}
	}

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

	ai_weight = {
		weight = 1000000
	}

	power = -35
	ship_modifier = {
		ship_tracking_add = 30
	}
	sensor_range = 7
	hyperlane_range = 8
}

utility_component_template = {
	key = "AVC_SENSOR_8"
	size = medium

	icon = "GFX_avc_ship_part_sensor_8"
	icon_frame = 1

	prerequisites = { "tech_avc_sensors_8" }
	component_set = "sensor_components"
	
	potential = {
		OR = {
			from = {
				country_uses_bio_ships = no
			}
			is_arkship_ship = yes
			is_ship_size = paladin_ship
		}
	}

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

	ai_weight = {
		weight = 10000000
	}

	power = -40
	ship_modifier = {
		ship_tracking_add = 35
	}
	sensor_range = 8
	hyperlane_range = 9
}

utility_component_template = {
	key = "AVC_BIOSHIP_SENSOR_5"
	size = medium

	icon = "GFX_avc_ship_part_bioship_sensor_5"
	icon_frame = 1

	prerequisites = { "tech_avc_sensors_5" }
	component_set = "sensor_components"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_SENSOR_6"
	resources = {
		category = ship_components
		cost = {
			food = 25
			mult = @alloy_to_food_cost_ratio
		}
	}

	ai_weight = {
		weight = 10000
	}

	power = -25
	ship_modifier = {
		ship_tracking_add = 20
	}
	sensor_range = 5
	hyperlane_range = 6
}

utility_component_template = {
	key = "AVC_BIOSHIP_SENSOR_6"
	size = medium

	icon = "GFX_avc_ship_part_bioship_sensor_6"
	icon_frame = 1

	prerequisites = { "tech_avc_sensors_6" }
	component_set = "sensor_components"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_SENSOR_7"
	resources = {
		category = ship_components
		cost = {
			food = 30
			mult = @alloy_to_food_cost_ratio
		}
	}

	ai_weight = {
		weight = 100000
	}

	power = -30
	ship_modifier = {
		ship_tracking_add = 25
	}
	sensor_range = 6
	hyperlane_range = 7
}

utility_component_template = {
	key = "AVC_BIOSHIP_SENSOR_7"
	size = medium

	icon = "GFX_avc_ship_part_bioship_sensor_7"
	icon_frame = 1

	prerequisites = { "tech_avc_sensors_7" }
	component_set = "sensor_components"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	upgrades_to = "AVC_BIOSHIP_SENSOR_8"
	resources = {
		category = ship_components
		cost = {
			food = 35
			mult = @alloy_to_food_cost_ratio
		}
	}

	ai_weight = {
		weight = 1000000
	}

	power = -35
	ship_modifier = {
		ship_tracking_add = 30
	}
	sensor_range = 7
	hyperlane_range = 8
}

utility_component_template = {
	key = "AVC_BIOSHIP_SENSOR_8"
	size = medium

	icon = "GFX_avc_ship_part_bioship_sensor_8"
	icon_frame = 1

	prerequisites = { "tech_avc_sensors_8" }
	component_set = "sensor_components"
	
	potential = {
		is_arkship_ship = no
		from = {
			country_uses_bio_ships = yes
		}
	}

	show_tech_unlock_if = {
		country_uses_bio_ships = yes
	}
	
	resources = {
		category = ship_components
		cost = {
			food = 40
			mult = @alloy_to_food_cost_ratio
		}
	}

	ai_weight = {
		weight = 10000000
	}

	power = -40
	ship_modifier = {
		ship_tracking_add = 35
	}
	sensor_range = 8
	hyperlane_range = 9
}
