@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 = "SENSOR_1" size = medium icon = "GFX_ship_part_sensor_1" icon_frame = 1 power = @power1 resources = { category = ship_components cost = { alloys = @cost1 } } sensor_range = @sensor1 hyperlane_range = @hyperlane1 component_set = "sensor_components" upgrades_to = "SENSOR_2" potential = { from = { country_uses_bio_ships = no } } show_tech_unlock_if = { country_uses_bio_ships = no } ai_weight = { weight = 1 } } utility_component_template = { key = "SENSOR_2" size = medium icon = "GFX_ship_part_sensor_2" icon_frame = 1 power = @power2 resources = { category = ship_components cost = { alloys = @cost2 } } sensor_range = @sensor2 hyperlane_range = @hyperlane2 prerequisites = { "tech_sensors_2" } component_set = "sensor_components" upgrades_to = "SENSOR_3" ship_modifier = { ship_tracking_add = @hit2 } potential = { from = { country_uses_bio_ships = no } } show_tech_unlock_if = { country_uses_bio_ships = no } ai_weight = { weight = 10 } } utility_component_template = { key = "SENSOR_3" size = medium icon = "GFX_ship_part_sensor_3" icon_frame = 1 power = @power3 resources = { category = ship_components cost = { alloys = @cost3 } } sensor_range = @sensor3 hyperlane_range = @hyperlane3 prerequisites = { "tech_sensors_3" } component_set = "sensor_components" upgrades_to = "SENSOR_4" ship_modifier = { ship_tracking_add = @hit3 } potential = { from = { country_uses_bio_ships = no } } show_tech_unlock_if = { country_uses_bio_ships = no } ai_weight = { weight = 100 } } utility_component_template = { key = "SENSOR_4" size = medium icon = "GFX_ship_part_sensor_4" icon_frame = 1 power = @power4 resources = { category = ship_components cost = { alloys = @cost4 } } sensor_range = @sensor4 hyperlane_range = @hyperlane4 ship_modifier = { ship_tracking_add = @hit4 } potential = { from = { country_uses_bio_ships = no } } show_tech_unlock_if = { country_uses_bio_ships = no } prerequisites = { "tech_sensors_4" } component_set = "sensor_components" ai_weight = { weight = 1000 } } ########################## # Space Fauna Components # ########################## utility_component_template = { key = "BIO_SENSORS" size = small icon = "GFX_ship_part_bio_sensor_1" icon_frame = 1 power = 0 resources = { category = ship_components inline_script = { script = "grand_archive/mutations/component_dynamic_cost" COST = @cost_fauna_1 } } sensor_range = @sensor1 hyperlane_range = @hyperlane1 component_set = "sensor_components_bio" upgrades_to = "BIO_SENSORS_2" ai_weight = { weight = 1 } } utility_component_template = { key = "BIO_SENSORS_2" size = small icon = "GFX_ship_part_bio_sensor_2" icon_frame = 1 power = 0 resources = { category = ship_components inline_script = { script = "grand_archive/mutations/component_dynamic_cost" COST = @cost_fauna_2 } } sensor_range = @sensor2 hyperlane_range = @hyperlane2 ship_modifier = { ship_tracking_add = @hit2 } prerequisites = { "tech_sensors_2" "tech_sensors_bio_integration" } component_set = "sensor_components_bio" upgrades_to = "BIO_SENSORS_3" ai_weight = { weight = 10 } } utility_component_template = { key = "BIO_SENSORS_3" size = small icon = "GFX_ship_part_bio_sensor_3" icon_frame = 1 power = 0 resources = { category = ship_components inline_script = { script = "grand_archive/mutations/component_dynamic_cost" COST = @cost_fauna_3 } } sensor_range = @sensor3 hyperlane_range = @hyperlane3 ship_modifier = { ship_tracking_add = @hit3 } prerequisites = { "tech_sensors_3" "tech_sensors_bio_integration" } component_set = "sensor_components_bio" upgrades_to = "BIO_SENSORS_4" ai_weight = { weight = 100 } } utility_component_template = { key = "BIO_SENSORS_4" size = small icon = "GFX_ship_part_bio_sensor_4" icon_frame = 1 power = 0 resources = { category = ship_components inline_script = { script = "grand_archive/mutations/component_dynamic_cost" COST = @cost_fauna_4 } } sensor_range = @sensor4 hyperlane_range = @hyperlane4 ship_modifier = { ship_tracking_add = @hit4 } prerequisites = { "tech_sensors_4" "tech_sensors_bio_integration" } component_set = "sensor_components_bio" ai_weight = { weight = 1000 } } ############################## # Biological Ship Components # ############################## utility_component_template = { key = "BIOSHIP_SENSOR_1" size = medium icon = "GFX_ship_part_bioship_sensor_1" icon_frame = 1 power = @power1 resources = { category = ship_components cost = { food = @cost1 mult = @alloy_to_food_cost_ratio } } sensor_range = @sensor1 hyperlane_range = @hyperlane1 component_set = "sensor_components" upgrades_to = "BIOSHIP_SENSOR_2" potential = { from = { country_uses_bio_ships = yes } } show_tech_unlock_if = { country_uses_bio_ships = yes } ai_weight = { weight = 1 } } utility_component_template = { key = "BIOSHIP_SENSOR_2" size = medium icon = "GFX_ship_part_bioship_sensor_2" icon_frame = 1 power = @power2 resources = { category = ship_components cost = { food = @cost2 mult = @alloy_to_food_cost_ratio } } sensor_range = @sensor2 hyperlane_range = @hyperlane2 prerequisites = { "tech_sensors_2" } component_set = "sensor_components" upgrades_to = "BIOSHIP_SENSOR_3" ship_modifier = { ship_tracking_add = @hit2 } potential = { from = { country_uses_bio_ships = yes } } show_tech_unlock_if = { country_uses_bio_ships = yes } ai_weight = { weight = 10 } } utility_component_template = { key = "BIOSHIP_SENSOR_3" size = medium icon = "GFX_ship_part_bioship_sensor_3" icon_frame = 1 power = @power3 resources = { category = ship_components cost = { food = @cost3 mult = @alloy_to_food_cost_ratio } } sensor_range = @sensor3 hyperlane_range = @hyperlane3 prerequisites = { "tech_sensors_3" } component_set = "sensor_components" upgrades_to = "BIOSHIP_SENSOR_4" ship_modifier = { ship_tracking_add = @hit3 } potential = { from = { country_uses_bio_ships = yes } } show_tech_unlock_if = { country_uses_bio_ships = yes } ai_weight = { weight = 100 } } utility_component_template = { key = "BIOSHIP_SENSOR_4" size = medium icon = "GFX_ship_part_bioship_sensor_4" icon_frame = 1 power = @power4 resources = { category = ship_components cost = { food = @cost4 mult = @alloy_to_food_cost_ratio } } sensor_range = @sensor4 hyperlane_range = @hyperlane4 ship_modifier = { ship_tracking_add = @hit4 } potential = { from = { country_uses_bio_ships = yes } } show_tech_unlock_if = { country_uses_bio_ships = yes } prerequisites = { "tech_sensors_4" } component_set = "sensor_components" ai_weight = { weight = 1000 } }