From ce7f0add2bbad062a58d70bf7b9e1e0e0b3df0a1 Mon Sep 17 00:00:00 2001 From: "ProjectKoi-Kalo\\Kalo" Date: Sun, 12 May 2024 12:55:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RG_combat_computers.txt | 1414 +++++++++++++++++ .../RG_interdictor_parts.txt | 189 ++- common/component_templates/RG_ship_parts.txt | 5 +- .../simp_chinese/RG_l_simp_chinese.yml | 9 + 4 files changed, 1583 insertions(+), 34 deletions(-) create mode 100644 common/component_templates/RG_combat_computers.txt diff --git a/common/component_templates/RG_combat_computers.txt b/common/component_templates/RG_combat_computers.txt new file mode 100644 index 0000000..80bbf25 --- /dev/null +++ b/common/component_templates/RG_combat_computers.txt @@ -0,0 +1,1414 @@ +######################## +# BASIC SHIP COMPUTERS # +######################## + +utility_component_template = { + key = " q" + size = small + icon = "GFX_ship_part_computer_default" + icon_frame = 1 + power = @power0 + resources = { + category = ship_components + cost = { + alloys = @cost0 + } + } + ship_behavior = "swarm" + + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + upgrades_to = "RG_COMBAT_COMPUTER_SWARM_BASIC" + ai_tags = { gunship } + ai_tag_weight = 0 + + ai_weight = { + weight = 1 + } +} + +utility_component_template = { + key = "RG_COMBAT_COMPUTER_PICKET_DEFAULT" + size = small + icon = "GFX_ship_part_computer_default" + icon_frame = 1 + power = @power0 + resources = { + category = ship_components + cost = { + alloys = @cost0 + } + } + ship_behavior = "picket" + + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ai_tags = { screen } + ai_tag_weight = 0 + upgrades_to = "RG_COMBAT_COMPUTER_PICKET_BASIC" + ai_tags = { screen } + ai_tag_weight = 0 + + ai_weight = { + weight = 1 + } +} + +utility_component_template = { + key = "RG_COMBAT_COMPUTER_LINE_DEFAULT" + size = small + icon = "GFX_ship_part_computer_default" + icon_frame = 1 + power = @power0 + resources = { + category = ship_components + cost = { + alloys = @cost0 + } + } + ship_behavior = "line" + + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + upgrades_to = "RG_COMBAT_COMPUTER_LINE_BASIC" + ai_tags = { gunship } + ai_tag_weight = 0 + + ai_weight = { + weight = 1 + } +} + +utility_component_template = { + key = "RG_COMBAT_COMPUTER_ARTILLERY_DEFAULT" + size = small + icon = "GFX_ship_part_computer_default" + icon_frame = 1 + power = @power0 + resources = { + category = ship_components + cost = { + alloys = @cost0 + } + } + ship_behavior = "artillery" + + class_restriction = { shipclass_military shipclass_starbase shipclass_military_special } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + upgrades_to = "RG_COMBAT_COMPUTER_ARTILLERY_BASIC" + ai_tags = { artillery artillery_stealth energy_torpedoes energy_torpedoes_stealth } + ai_tag_weight = 0 + + ai_weight = { + weight = 1 + } +} + +utility_component_template = { + key = "RG_COMBAT_COMPUTER_TORPEDO_DEFAULT" + size = small + icon = "GFX_ship_part_computer_default" + icon_frame = 1 + power = @power0 + resources = { + category = ship_components + cost = { + alloys = @cost0 + } + } + ship_behavior = "torpedo" + + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + upgrades_to = "RG_COMBAT_COMPUTER_TORPEDO_BASIC" + ai_tags = { explosive explosive_stealth } + ai_tag_weight = 0 + + ai_weight = { + weight = 1 + } +} + +##################### +# 'SWARM' COMPUTERS # +##################### + +utility_component_template = { + key = "RG_COMBAT_COMPUTER_SWARM_BASIC" + size = small + icon = "GFX_ship_part_computer_swarm_basic" + icon_frame = 1 + power = @power1 + resources = { + category = ship_components + cost = { + alloys = @cost1 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "swarm" + prerequisites = { "tech_combat_computers_1" "tech_gray_interdictor_4" } + upgrades_to = "RG_COMBAT_COMPUTER_SWARM_ADVANCED" + ai_tags = { gunship brawler brawler_stealth } + ai_tag_weight = 0 + + modifier = { + ship_evasion_mult = 0.05 + } + ship_modifier = { + ship_fire_rate_mult = 0.05 + } + + ai_weight = { + weight = 2 + } +} + +utility_component_template = { + key = "RG_COMBAT_COMPUTER_SWARM_ADVANCED" + size = small + icon = "GFX_ship_part_computer_swarm_advanced" + icon_frame = 1 + power = @power2 + resources = { + category = ship_components + cost = { + alloys = @cost2 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "swarm" + prerequisites = { "tech_combat_computers_2" "tech_gray_interdictor_4" } + upgrades_to = "RG_COMBAT_COMPUTER_SWARM_SAPIENT" + ai_tags = { gunship brawler brawler_stealth } + ai_tag_weight = 0 + + modifier = { + ship_evasion_mult = 0.10 + } + ship_modifier = { + ship_fire_rate_mult = 0.10 + } + + ai_weight = { + weight = 3 + } +} + +utility_component_template = { + key = "RG_COMBAT_COMPUTER_SWARM_SAPIENT" + size = small + icon = "GFX_ship_part_computer_swarm_sapient" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "swarm" + prerequisites = { "tech_combat_computers_3" "tech_gray_interdictor_4" } + ai_tags = { gunship 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 = "COMBAT_COMPUTER_SWARM_AUTONOMOUS" + size = small + icon = "GFX_ship_part_computer_swarm_sapient" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "swarm" + prerequisites = { "tech_combat_computers_autonomous" "tech_gray_interdictor_4" } + ai_tags = { gunship 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 = "COMBAT_COMPUTER_SWARM_PRECOG" + size = small + icon = "GFX_ship_part_computer_swarm_precog" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "swarm" + prerequisites = { "tech_precognition_interface" "tech_gray_interdictor_4" } + ai_tags = { gunship 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 + } +} + +##################### +# 'TORPEDO' COMPUTERS # +##################### + +utility_component_template = { + key = "RG_COMBAT_COMPUTER_TORPEDO_BASIC" + size = small + icon = "GFX_ship_part_computer_swarm_basic" + icon_frame = 1 + power = @power1 + resources = { + category = ship_components + cost = { + alloys = @cost1 + } + } + + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "torpedo" + prerequisites = { "tech_combat_computers_1" "tech_torpedoes_1" "tech_gray_interdictor_4" } + upgrades_to = "RG_COMBAT_COMPUTER_SWARM_ADVANCED" + ai_tags = { explosive explosive_stealth } + ai_tag_weight = 0 + + modifier = { + weapon_type_explosive_weapon_damage_mult = 0.05 + } + + ai_weight = { + weight = 2 + } +} + +utility_component_template = { + key = "RG_COMBAT_COMPUTER_TORPEDO_ADVANCED" + size = small + icon = "GFX_ship_part_computer_swarm_advanced" + icon_frame = 1 + power = @power2 + resources = { + category = ship_components + cost = { + alloys = @cost2 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "torpedo" + prerequisites = { "tech_combat_computers_2" "tech_torpedoes_1" "tech_gray_interdictor_4" } + upgrades_to = "RG_COMBAT_COMPUTER_TORPEDO_SAPIENT" + ai_tags = { explosive explosive_stealth } + ai_tag_weight = 0 + + modifier = { + weapon_type_explosive_weapon_damage_mult = 0.10 + } + + ai_weight = { + weight = 3 + } +} + +utility_component_template = { + key = "RG_COMBAT_COMPUTER_TORPEDO_SAPIENT" + size = small + icon = "GFX_ship_part_computer_swarm_sapient" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "torpedo" + prerequisites = { "tech_combat_computers_3" "tech_torpedoes_1" "tech_gray_interdictor_4" } + ai_tags = { explosive explosive_stealth } + ai_tag_weight = 0 + + modifier = { + ship_evasion_mult = 0.10 + weapon_type_explosive_weapon_damage_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 = "COMBAT_COMPUTER_TORPEDO_AUTONOMOUS" + size = small + icon = "GFX_ship_part_computer_swarm_sapient" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "torpedo" + prerequisites = { "tech_combat_computers_autonomous" "tech_torpedoes_1" "tech_gray_interdictor_4" } + ai_tags = { explosive explosive_stealth } + ai_tag_weight = 0 + + modifier = { + ship_evasion_mult = 0.10 + weapon_type_explosive_weapon_damage_mult = 0.15 + } + + ai_weight = { + weight = 5 + } +} + +utility_component_template = { + key = "COMBAT_COMPUTER_TORPEDO_PRECOG" + size = small + icon = "GFX_ship_part_computer_swarm_precog" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "torpedo" + prerequisites = { "tech_precognition_interface" "tech_torpedoes_1" "tech_gray_interdictor_4" } + ai_tags = { explosive explosive_stealth } + ai_tag_weight = 0 + + modifier = { + weapon_type_explosive_weapon_damage_mult = 0.15 + ship_tracking_add = 10 + } + + ai_weight = { + weight = 4 + } +} + +###################### +# 'PICKET' COMPUTERS # +###################### +utility_component_template = { + key = "RG_COMBAT_COMPUTER_PICKET_BASIC" + size = small + icon = "GFX_ship_part_computer_picket_basic" + icon_frame = 1 + power = @power1 + resources = { + category = ship_components + cost = { + alloys = @cost1 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "picket" + prerequisites = { "tech_combat_computers_1" "tech_gray_interdictor_4" } + upgrades_to = "RG_COMBAT_COMPUTER_PICKET_ADVANCED" + ai_tags = { screen } + ai_tag_weight = 0 + + ship_modifier = { + ship_fire_rate_mult = 0.05 + ship_tracking_add = 10 + } + + ai_weight = { + weight = 2 + } +} + +utility_component_template = { + key = "RG_COMBAT_COMPUTER_PICKET_ADVANCED" + size = small + icon = "GFX_ship_part_computer_picket_advanced" + icon_frame = 1 + power = @power2 + resources = { + category = ship_components + cost = { + alloys = @cost2 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "picket" + prerequisites = { "tech_combat_computers_2" "tech_gray_interdictor_4" } + upgrades_to = "RG_COMBAT_COMPUTER_PICKET_SAPIENT" + ai_tags = { screen } + ai_tag_weight = 0 + + ship_modifier = { + ship_fire_rate_mult = 0.10 + ship_tracking_add = 20 + } + + ai_weight = { + weight = 3 + } +} + +utility_component_template = { + key = "COMBAT_COMPUTER_PICKET_SAPIENT" + size = small + icon = "GFX_ship_part_computer_picket_sapient" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "picket" + prerequisites = { "tech_combat_computers_3" "tech_gray_interdictor_4" } + ai_tags = { screen } + 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 = "COMBAT_COMPUTER_PICKET_AUTONOMOUS" + size = small + icon = "GFX_ship_part_computer_picket_sapient" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "picket" + prerequisites = { "tech_combat_computers_autonomous" "tech_gray_interdictor_4" } + ai_tags = { screen } + 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 = "COMBAT_COMPUTER_PICKET_PRECOG" + size = small + icon = "GFX_ship_part_computer_picket_precog" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "picket" + prerequisites = { "tech_precognition_interface" "tech_gray_interdictor_4" } + ai_tags = { screen } + ai_tag_weight = 0 + + ship_modifier = { + ship_fire_rate_mult = 0.20 + ship_tracking_add = 40 + } + + ai_weight = { + weight = 4 + } +} + +#################### +# 'LINE' COMPUTERS # +#################### +utility_component_template = { + key = "RG_COMBAT_COMPUTER_LINE_BASIC" + size = small + icon = "GFX_ship_part_computer_line_basic" + icon_frame = 1 + power = @power1 + resources = { + category = ship_components + cost = { + alloys = @cost1 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "line" + prerequisites = { "tech_combat_computers_1" "tech_gray_interdictor_4" } + upgrades_to = "RG_COMBAT_COMPUTER_LINE_ADVANCED" + ai_tags = { gunship } + ai_tag_weight = 0 + + ship_modifier = { + ship_fire_rate_mult = 0.05 + ship_accuracy_add = 5 + } + + ai_weight = { + weight = 2 + } +} + +utility_component_template = { + key = "RG_COMBAT_COMPUTER_LINE_ADVANCED" + size = small + icon = "GFX_ship_part_computer_line_advanced" + icon_frame = 1 + power = @power2 + resources = { + category = ship_components + cost = { + alloys = @cost2 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "line" + prerequisites = { "tech_combat_computers_2" "tech_gray_interdictor_4" } + upgrades_to = "RG_COMBAT_COMPUTER_LINE_SAPIENT" + ai_tags = { gunship } + ai_tag_weight = 0 + + ship_modifier = { + ship_fire_rate_mult = 0.10 + ship_accuracy_add = 10 + } + + ai_weight = { + weight = 3 + } +} + +utility_component_template = { + key = "RG_COMBAT_COMPUTER_LINE_SAPIENT" + size = small + icon = "GFX_ship_part_computer_line_sapient" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military shipclass_military_special } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "line" + prerequisites = { "tech_combat_computers_3" "tech_gray_interdictor_4" } + ai_tags = { gunship } + 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 = "COMBAT_COMPUTER_LINE_AUTONOMOUS" + size = small + icon = "GFX_ship_part_computer_line_sapient" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "line" + prerequisites = { "tech_combat_computers_autonomous" "tech_gray_interdictor_4" } + ai_tags = { gunship } + ai_tag_weight = 0 + + ship_modifier = { + ship_fire_rate_mult = 0.20 + ship_accuracy_add = 20 + } + + ai_weight = { + weight = 5 + } +} + +utility_component_template = { + key = "COMBAT_COMPUTER_LINE_PRECOG" + size = small + icon = "GFX_ship_part_computer_line_precog" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "line" + prerequisites = { "tech_precognition_interface" "tech_gray_interdictor_4" } + ai_tags = { gunship } + ai_tag_weight = 0 + + ship_modifier = { + ship_fire_rate_mult = 0.15 + ship_accuracy_add = 15 + ship_tracking_add = 10 + } + + ai_weight = { + weight = 4 + } +} + +###################### +# 'ARTILLERY' COMPUTERS # +###################### +utility_component_template = { + key = "RG_COMBAT_COMPUTER_ARTILLERY_BASIC" + size = small + icon = "GFX_ship_part_computer_artillery_basic" + icon_frame = 1 + power = @power1 + resources = { + category = ship_components + cost = { + alloys = @cost1 + } + } + class_restriction = { shipclass_military shipclass_starbase shipclass_military_special } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "artillery" + prerequisites = { "tech_combat_computers_1" "tech_gray_interdictor_4" } + upgrades_to = "RG_COMBAT_COMPUTER_ARTILLERY_ADVANCED" + ai_tags = { artillery artillery_stealth energy_torpedoes energy_torpedoes_stealth } + ai_tag_weight = 0 + + ship_modifier = { + ship_fire_rate_mult = 0.05 + ship_weapon_range_mult = 0.05 + } + + ai_weight = { + weight = 2 + } +} + +utility_component_template = { + key = "RG_COMBAT_COMPUTER_ARTILLERY_ADVANCED" + size = small + icon = "GFX_ship_part_computer_artillery_advanced" + icon_frame = 1 + power = @power2 + resources = { + category = ship_components + cost = { + alloys = @cost2 + } + } + class_restriction = { shipclass_military shipclass_starbase shipclass_military_special } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "artillery" + prerequisites = { "tech_combat_computers_2" "tech_gray_interdictor_4" } + upgrades_to = "RG_COMBAT_COMPUTER_ARTILLERY_SAPIENT" + ai_tags = { artillery artillery_stealth energy_torpedoes energy_torpedoes_stealth } + ai_tag_weight = 0 + + ship_modifier = { + ship_fire_rate_mult = 0.10 + ship_weapon_range_mult = 0.10 + } + + ai_weight = { + weight = 3 + } +} + +utility_component_template = { + key = "RG_COMBAT_COMPUTER_ARTILLERY_SAPIENT" + size = small + icon = "GFX_ship_part_computer_artillery_sapient" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military shipclass_starbase shipclass_military_special } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "artillery" + prerequisites = { "tech_combat_computers_3" "tech_gray_interdictor_4" } + 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 = "COMBAT_COMPUTER_ARTILLERY_AUTONOMOUS" + size = small + icon = "GFX_ship_part_computer_artillery_sapient" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military shipclass_starbase shipclass_military_special } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "artillery" + prerequisites = { "tech_combat_computers_autonomous" "tech_gray_interdictor_4" } + 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 = "COMBAT_COMPUTER_ARTILLERY_PRECOG" + size = small + icon = "GFX_ship_part_computer_artillery_precog" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military shipclass_starbase } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "artillery" + prerequisites = { "tech_precognition_interface" "tech_gray_interdictor_4" } + 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 + } +} + +###################### +# 'CARRIER' COMPUTERS # +###################### +utility_component_template = { + key = "RG_COMBAT_COMPUTER_CARRIER_BASIC" + size = small + icon = "GFX_ship_part_computer_carrier_basic" + icon_frame = 1 + power = @power1 + resources = { + category = ship_components + cost = { + alloys = @cost1 + } + } + class_restriction = { shipclass_military shipclass_starbase shipclass_military_special } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "carrier" + prerequisites = { "tech_combat_computers_1" "tech_gray_interdictor_4" } + upgrades_to = "RG_COMBAT_COMPUTER_CARRIER_ADVANCED" + ai_tags = { carrier } + ai_tag_weight = 0 + + ship_modifier = { + ship_engagement_range_mult = 0.25 + } + + ai_weight = { + weight = 2 + modifier = { + factor = 5 + is_preferred_weapons = weapon_type_strike_craft + } + } +} + +utility_component_template = { + key = "RG_COMBAT_COMPUTER_CARRIER_ADVANCED" + size = small + icon = "GFX_ship_part_computer_carrier_advanced" + icon_frame = 1 + power = @power2 + resources = { + category = ship_components + cost = { + alloys = @cost2 + } + } + class_restriction = { shipclass_military shipclass_starbase shipclass_military_special } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "carrier" + prerequisites = { "tech_combat_computers_2" "tech_gray_interdictor_4" } + upgrades_to = "RG_COMBAT_COMPUTER_CARRIER_SAPIENT" + ai_tags = { carrier } + ai_tag_weight = 0 + + ship_modifier = { + ship_engagement_range_mult = 0.50 + } + + ai_weight = { + weight = 3 + modifier = { + factor = 5 + is_preferred_weapons = weapon_type_strike_craft + } + } +} + +utility_component_template = { + key = "COMBAT_COMPUTER_CARRIER_SAPIENT" + size = small + icon = "GFX_ship_part_computer_carrier_sapient" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military shipclass_starbase shipclass_military_special } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "carrier" + prerequisites = { "tech_combat_computers_3" "tech_gray_interdictor_4" } + 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 = "COMBAT_COMPUTER_CARRIER_AUTONOMOUS" + size = small + icon = "GFX_ship_part_computer_carrier_sapient" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military shipclass_starbase shipclass_military_special } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "carrier" + prerequisites = { "tech_combat_computers_autonomous" "tech_gray_interdictor_4" } + 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 = "COMBAT_COMPUTER_CARRIER_PRECOG" + size = small + icon = "GFX_ship_part_computer_carrier_precog" + icon_frame = 1 + power = @power3 + resources = { + category = ship_components + cost = { + alloys = @cost3 + } + } + class_restriction = { shipclass_military shipclass_starbase shipclass_military_special } + size_restriction = { + RG_graygoo_destroyer + RG_graygoo_interdictor + RG_graygoo_Arsenal + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + component_set = "combat_computers" + ship_behavior = "carrier" + prerequisites = { "tech_precognition_interface" "tech_gray_interdictor_4" } + 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 + } + } +} \ No newline at end of file diff --git a/common/component_templates/RG_interdictor_parts.txt b/common/component_templates/RG_interdictor_parts.txt index c5a23ce..53aa60c 100644 --- a/common/component_templates/RG_interdictor_parts.txt +++ b/common/component_templates/RG_interdictor_parts.txt @@ -175,37 +175,6 @@ utility_component_template = { } } -utility_component_template = { - key = "RG_Mothership_ZERO_POINT_REACTOR" - size = small - icon = "GFX_ship_part_reactor_5" - icon_frame = 1 - power = 50000 - resources = { - category = ship_components - cost = { - alloys = 224 - } - upkeep = { - energy = 2.29 - alloys = 0.229 - } - } - prerequisites = { - "tech_zero_point_power" - } - component_set = "power_core" - size_restriction = { - RG_graygoo_mothership - RG_gray_juggernaut - RG_graygoo_capitalship - } - upgrades_to = "RG_Mothership_DARK_MATTER_REACTOR" - ai_weight = { - weight = 5 - } -} - utility_component_template = { key = "RG_Interdictor_DARK_MATTER_REACTOR" size = small @@ -245,12 +214,168 @@ utility_component_template = { } } +utility_component_template = { + key = "RG_Mothership_FISSION_REACTOR" + size = small + icon = "GFX_ship_part_reactor_1" + icon_frame = 1 + power = 7700 + resources = { + category = ship_components + cost = { + alloys = 44.8 + } + upkeep = { + energy = 0.458 + alloys = 0.045 + } + } + + prerequisites = { "tech_fission_power" } + component_set = "power_core" + size_restriction = { + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + upgrades_to = "RG_Mothership_FUSION_REACTOR" + + ai_weight = { + weight = 1 + } +} + +utility_component_template = { + key = "RG_Mothership_FUSION_REACTOR" + size = small + icon = "GFX_ship_part_reactor_2" + icon_frame = 1 + power = 15400 + resources = { + category = ship_components + cost = { + alloys = 89.6 + } + upkeep = { + energy = 0.92 + alloys = 0.09 + } + } + + prerequisites = { "tech_fusion_power" } + component_set = "power_core" + size_restriction = { + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + upgrades_to = "RG_Mothership_COLD_FUSION_REACTOR" + + ai_weight = { + weight = 2 + } +} + +utility_component_template = { + key = "RG_Mothership_COLD_FUSION_REACTOR" + size = small + icon = "GFX_ship_part_reactor_3" + icon_frame = 1 + power = 23100 + resources = { + category = ship_components + cost = { + alloys = 134 + } + upkeep = { + energy = 1.37 + alloys = 0.137 + } + } + + prerequisites = { "tech_cold_fusion_power" } + component_set = "power_core" + size_restriction = { + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + upgrades_to = "RG_Mothership_ANTIMATTER_REACTOR" + + ai_weight = { + weight = 3 + } +} + +utility_component_template = { + key = "RG_Mothership_ANTIMATTER_REACTOR" + size = small + icon = "GFX_ship_part_reactor_4" + icon_frame = 1 + power = 30800 + resources = { + category = ship_components + cost = { + alloys = 179 + } + upkeep = { + energy = 1.83 + alloys = 0.183 + } + } + + prerequisites = { "tech_antimatter_power" } + component_set = "power_core" + size_restriction = { + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + upgrades_to = "RG_Mothership_ZERO_POINT_REACTOR" + + ai_weight = { + weight = 4 + } +} + + +utility_component_template = { + key = "RG_Mothership_ZERO_POINT_REACTOR" + size = small + icon = "GFX_ship_part_reactor_5" + icon_frame = 1 + power = 38500 + resources = { + category = ship_components + cost = { + alloys = 224 + } + upkeep = { + energy = 2.29 + alloys = 0.229 + } + } + prerequisites = { + "tech_zero_point_power" + } + component_set = "power_core" + size_restriction = { + RG_graygoo_mothership + RG_gray_juggernaut + RG_graygoo_capitalship + } + upgrades_to = "RG_Mothership_DARK_MATTER_REACTOR" + ai_weight = { + weight = 5 + } +} + utility_component_template = { key = "RG_Mothership_DARK_MATTER_REACTOR" size = small icon = "GFX_ship_part_dark_matter_power_core" icon_frame = 1 - power = 60000 + power = resources = { category = ship_components cost = { diff --git a/common/component_templates/RG_ship_parts.txt b/common/component_templates/RG_ship_parts.txt index e1213a3..ef0a36e 100644 --- a/common/component_templates/RG_ship_parts.txt +++ b/common/component_templates/RG_ship_parts.txt @@ -2354,8 +2354,8 @@ utility_component_template = { component_set = "power_core" size_restriction = { RG_graygoo_interdictor + RG_graygoo_destroyer RG_graygoo_Buff - RG_graygoo_mothership RG_graygoo_icebreaker_interdictor } ai_weight = { @@ -2368,7 +2368,7 @@ utility_component_template = { size = small icon = "GFX_ship_part_gray_reactor" icon_frame = 1 - power = 280000 + power = 92400 resources = { category = ship_components cost = { @@ -2389,6 +2389,7 @@ utility_component_template = { size_restriction = { RG_gray_juggernaut RG_graygoo_capitalship + RG_graygoo_mothership } ai_weight = { weight = 0 diff --git a/localisation/simp_chinese/RG_l_simp_chinese.yml b/localisation/simp_chinese/RG_l_simp_chinese.yml index a81995d..7d56425 100644 --- a/localisation/simp_chinese/RG_l_simp_chinese.yml +++ b/localisation/simp_chinese/RG_l_simp_chinese.yml @@ -124,6 +124,15 @@ RG_Interdictor_ANTIMATTER_REACTOR_DESC:0 "$ANTIMATTER_REACTOR_DESC$" RG_Interdictor_ZERO_POINT_REACTOR:0 "$ZERO_POINT_REACTOR$" RG_Interdictor_ZERO_POINT_REACTOR_DESC:0 "$ZERO_POINT_REACTOR_DESC$" + + RG_Mothership_FISSION_REACTOR:0 "$FISSION_REACTOR$" + RG_Mothership_FISSION_REACTOR_DESC:0 "$FISSION_REACTOR_DESC$" + RG_Mothership_FUSION_REACTOR:0 "$FUSION_REACTOR$" + RG_Mothership_FUSION_REACTOR_DESC:0 "$FUSION_REACTOR_DESC$" + RG_Mothership_COLD_FUSION_REACTOR:0 "$COLD_FUSION_REACTOR$" + RG_Mothership_COLD_FUSION_DESC:0 "$COLD_FUSION_DESC$" + RG_Mothership_ANTIMATTER_REACTOR:0 "$ANTIMATTER_REACTOR$" + RG_Mothership_ANTIMATTER_REACTOR_DESC:0 "$ANTIMATTER_REACTOR_DESC$" RG_Mothership_ZERO_POINT_REACTOR:0 "$ZERO_POINT_REACTOR$" RG_Mothership_ZERO_POINT_REACTOR_DESC:0 "$ZERO_POINT_REACTOR_DESC$"