From 08c6ff9a6abaf31fc14212b0c8eab2d2f5daa21b Mon Sep 17 00:00:00 2001 From: "ProjectKoi-Kalo\\Kalo" Date: Sun, 29 Oct 2023 00:33:16 +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_interdictor_parts.txt | 34 ++++++++ common/component_templates/RG_ship_parts.txt | 17 +++- .../RG_special_ship_designs.txt | 85 +++++++++++++++++++ .../scripted_effects/RG_special_effects.txt | 28 ++++++ .../RG_special_ship_section.txt | 75 ++++++++++++++++ common/ship_sizes/RG_ship_sizes.txt | 62 ++++++++++++++ interface/rg_icons.gfx | 5 ++ .../simp_chinese/RG_l_simp_chinese.yml | 3 + .../simp_chinese/RG_ships_l_simp_chinese.yml | 2 + 9 files changed, 310 insertions(+), 1 deletion(-) diff --git a/common/component_templates/RG_interdictor_parts.txt b/common/component_templates/RG_interdictor_parts.txt index f0f1bca..4bf26d6 100644 --- a/common/component_templates/RG_interdictor_parts.txt +++ b/common/component_templates/RG_interdictor_parts.txt @@ -19,6 +19,8 @@ utility_component_template = { } component_set = "power_core" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_mothership @@ -53,6 +55,8 @@ utility_component_template = { } component_set = "power_core" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_mothership @@ -87,6 +91,8 @@ utility_component_template = { } component_set = "power_core" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_mothership @@ -121,6 +127,8 @@ utility_component_template = { } component_set = "power_core" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_mothership @@ -155,6 +163,8 @@ utility_component_template = { } component_set = "power_core" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_icebreaker_interdictor @@ -218,6 +228,8 @@ utility_component_template = { } component_set = "power_core" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_icebreaker_interdictor @@ -314,6 +326,8 @@ utility_component_template = { } component_set = "thruster_components" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_Arsenal @@ -349,6 +363,8 @@ utility_component_template = { } component_set = "thruster_components" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_Arsenal @@ -384,6 +400,8 @@ utility_component_template = { } component_set = "thruster_components" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_Arsenal @@ -419,6 +437,8 @@ utility_component_template = { } component_set = "thruster_components" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_Arsenal @@ -455,6 +475,8 @@ utility_component_template = { } component_set = "thruster_components" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_Arsenal @@ -648,6 +670,8 @@ utility_component_template = { } component_set = "power_core" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_mothership @@ -683,6 +707,8 @@ utility_component_template = { } component_set = "thruster_components" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_Arsenal @@ -724,6 +750,8 @@ utility_component_template = { } component_set = "power_core" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_mothership @@ -758,6 +786,8 @@ utility_component_template = { } component_set = "thruster_components" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_Arsenal @@ -799,6 +829,8 @@ utility_component_template = { } component_set = "power_core" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_Arsenal @@ -834,6 +866,8 @@ utility_component_template = { } component_set = "thruster_components" size_restriction = { + RG_armed_science_ship + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_Arsenal diff --git a/common/component_templates/RG_ship_parts.txt b/common/component_templates/RG_ship_parts.txt index 7b89852..631b72a 100644 --- a/common/component_templates/RG_ship_parts.txt +++ b/common/component_templates/RG_ship_parts.txt @@ -16,6 +16,7 @@ utility_component_template = { ship_shield_regen_add_perc = 0.1 } size_restriction = { + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_Arsenal @@ -569,7 +570,7 @@ weapon_component_template = { type = point_defence key = "RG_FLAK_PHOENIX" size = point_defence - icon = GFX_ship_part_deluge + icon = "GFX_ship_part_graymine_old" icon_frame = 1 damage = { min = 10200 @@ -904,6 +905,7 @@ strike_craft_component_template = { } } size_restriction = { + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_mothership RG_gray_juggernaut @@ -970,6 +972,7 @@ strike_craft_component_template = { } } size_restriction = { + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_mothership RG_gray_juggernaut @@ -1039,6 +1042,7 @@ strike_craft_component_template = { } } size_restriction = { + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_mothership RG_gray_juggernaut @@ -1109,6 +1113,7 @@ strike_craft_component_template = { } } size_restriction = { + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_mothership RG_gray_juggernaut @@ -1170,6 +1175,7 @@ utility_component_template = { } ship_behavior = "RG_colossus" size_restriction = { + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_Arsenal @@ -1210,6 +1216,7 @@ utility_component_template = { } ship_behavior = "rg_carrier_behavior" size_restriction = { + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Arsenal RG_graygoo_mothership @@ -1248,6 +1255,7 @@ utility_component_template = { } ship_behavior = "RG_line" size_restriction = { + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Arsenal RG_graygoo_mothership @@ -1286,6 +1294,7 @@ utility_component_template = { } ship_behavior = "RG_artillery" size_restriction = { + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Arsenal RG_graygoo_mothership @@ -1360,6 +1369,7 @@ utility_component_template = { } ship_behavior = "rg_aura_behavior" size_restriction = { + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Buff RG_graygoo_Arsenal @@ -1399,6 +1409,7 @@ utility_component_template = { } ship_behavior = "RG_battle" size_restriction = { + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Arsenal RG_graygoo_mothership @@ -1437,6 +1448,7 @@ utility_component_template = { } ship_behavior = "RG_torpedo" size_restriction = { + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Arsenal RG_graygoo_mothership @@ -1475,6 +1487,7 @@ utility_component_template = { } ship_behavior = "RG_AA" size_restriction = { + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Arsenal RG_graygoo_mothership @@ -1513,6 +1526,7 @@ utility_component_template = { } ship_behavior = "RG_icebreak" size_restriction = { + RG_graygoo_destroyer RG_graygoo_interdictor RG_graygoo_Arsenal RG_graygoo_mothership @@ -2316,6 +2330,7 @@ utility_component_template = { } component_set = "power_core" size_restriction = { + RG_graygoo_destroyer RG_armed_constructor_ship RG_armed_science_ship RG_armed_transport_ship diff --git a/common/global_ship_designs/RG_special_ship_designs.txt b/common/global_ship_designs/RG_special_ship_designs.txt index 1002d44..e69e340 100644 --- a/common/global_ship_designs/RG_special_ship_designs.txt +++ b/common/global_ship_designs/RG_special_ship_designs.txt @@ -524,3 +524,88 @@ ship_design = { required_component = "GUARDIAN_PROPULSION" required_component = "GUARDIAN_SENSORS" } + +#运航舰 +ship_design = { + name = "NAME_RG_carrier_destroyer" + ship_size = RG_armed_transport_ship + is_event_design = yes + section = { + template = "RG_carrier_destroyer_key" + slot = "mid" + component = { + slot = "STRIKE_CRAFT_01" + template = "RG_FIGHTER_HANGAR_BEAM" + } + component = { + slot = "STRIKE_CRAFT_02" + template = "RG_FIGHTER_HANGAR_BEAM" + } + component = { + slot = "PD_01" + template = "RG_FLAK_BATTERY" + } + component = { + slot = "LARGE_UTILITY_1" + template = "LARGE_GRAY_MIX_ARMOR" + } + component = { + slot = "LARGE_UTILITY_2" + template = "LARGE_GRAY_MIX_ARMOR" + } + component = { + slot = "AUX_UTILITY_1" + template = "RG_AUTO_REPAIR" + } + } + required_component = "RG_FUSION_NANO_REACTOR_S" + required_component = "RG_gatebuilder_jump" + required_component = "RG_gatebuilder_sensor" + required_component = "RG_gatebuilder_thruster" + required_component = "RG_COMBAT_COMPUTER_torpedo" +} + +#驱逐舰 +ship_design = { + name = "NAME_RG_base_destroyer" + ship_size = RG_graygoo_destroyer + is_event_design = yes + section = { + template = "RG_base_destroyer_key" + slot = "mid" + component = { + slot = "MEDIUM_GUN_01" + template = "MEDIUM_GRAY_WEAPON_LANCE" + } + component = { + slot = "MEDIUM_GUN_02" + template = "MEDIUM_GRAY_WEAPON_LANCE" + } + component = { + slot = "MEDIUM_GUN_03" + template = "MEDIUM_GRAY_WEAPON_LANCE" + } + component = { + slot = "TORPEDO_01" + template = "RG_ENERGY_MISSILE" + } + component = { + slot = "LARGE_UTILITY_1" + template = "LARGE_GRAY_MIX_ARMOR" + } + component = { + slot = "LARGE_UTILITY_2" + template = "LARGE_GRAY_MIX_ARMOR" + } + component = { + slot = "AUX_UTILITY_1" + template = "RG_AUTO_REPAIR" + } + } + required_component = "RG_FUSION_NANO_REACTOR_S" + required_component = "RG_gatebuilder_jump" + required_component = "RG_gatebuilder_sensor" + required_component = "RG_gatebuilder_thruster" + required_component = "RG_COMBAT_COMPUTER_torpedo" +} + diff --git a/common/scripted_effects/RG_special_effects.txt b/common/scripted_effects/RG_special_effects.txt index 9718598..dddc472 100644 --- a/common/scripted_effects/RG_special_effects.txt +++ b/common/scripted_effects/RG_special_effects.txt @@ -289,3 +289,31 @@ rg_create_gray_colony_1 = { } remove_ship_design = last_created_design } + +rg_create_gray_destroyer_1 = { + create_fleet = { + name = "NAME_RG_base_destroyer" + settings = { + can_disband = yes + can_upgrade = no + can_change_composition = no + can_change_leader = no + uses_naval_capacity = no + spawn_debris = no + } + effect = { + set_owner = root + create_ship = { + name = "NAME_RG_base_destroyer" + design = "RG_base_destroyer_key" + prefix = no + upgradable = no + } + set_location = { + target = root.capital_scope + distance = 0 + angle = random + } + } + } +} \ No newline at end of file diff --git a/common/section_templates/RG_special_ship_section.txt b/common/section_templates/RG_special_ship_section.txt index 1270e80..01ce46b 100644 --- a/common/section_templates/RG_special_ship_section.txt +++ b/common/section_templates/RG_special_ship_section.txt @@ -701,3 +701,78 @@ ship_section_template = { } } } + +ship_section_template = { + key = "RG_carrier_destroyer_key" + ship_size = RG_graygoo_destroyer + fits_on_slot = mid + entity = "grey_tempesttw_colony_ship_entity" + icon = "GFX_ship_part_core_mid" + + component_slot = { + name = "STRIKE_CRAFT_01" + template = "large_strike_craft" + rotation = 90 + locatorname = "xl_gun_01" + } + component_slot = { + name = "STRIKE_CRAFT_02" + template = "large_strike_craft" + rotation = 90 + locatorname = "xl_gun_01" + } + + component_slot = { + name = "PD_01" + template = "point_defence_turret" + locatorname = "xl_gun_01" + } + + large_utility_slots = 2 + aux_utility_slots = 1 + resources = { + category = ship_sections + cost = { + alloys = 30 + } + } +} + +ship_section_template = { + key = "RG_base_destroyer_key" + ship_size = RG_graygoo_destroyer + fits_on_slot = mid + entity = "grey_tempesttw_colony_ship_entity" + icon = "GFX_ship_part_core_mid" + + component_slot = { + name = "MEDIUM_GUN_01" + template = "medium_turret" + locatorname = "xl_gun_01" + } + component_slot = { + name = "MEDIUM_GUN_02" + template = "medium_turret" + locatorname = "xl_gun_01" + } + component_slot = { + name = "MEDIUM_GUN_03" + template = "medium_turret" + locatorname = "xl_gun_01" + } + + component_slot = { + name = "TORPEDO_01" + template = "invisible_missile_turret" + locatorname = "wing_1_3" + } + + large_utility_slots = 2 + aux_utility_slots = 1 + resources = { + category = ship_sections + cost = { + alloys = 30 + } + } +} diff --git a/common/ship_sizes/RG_ship_sizes.txt b/common/ship_sizes/RG_ship_sizes.txt index 2016c4d..0f250b7 100644 --- a/common/ship_sizes/RG_ship_sizes.txt +++ b/common/ship_sizes/RG_ship_sizes.txt @@ -293,6 +293,68 @@ RG_graygoo_interdictor = { } } +# Gray Goo destroyer +RG_graygoo_destroyer = { + graphical_culture = no + entity = "grey_tempesttw_colonizer_entity" + max_speed = 220 + acceleration = 0.25 + rotation_speed = 0.175 + collision_radius = 4 + modifier = { + ship_evasion_add = 40 + ships_upkeep_mult = -1 + ship_piracy_suppression_add = 4 + ship_armor_add = 1100 + ship_shield_add = 1100 + } + max_hitpoints = 2000 + size_multiplier = 2 + fleet_slot_size = 2 + section_slots = { + "mid" = { + locator = "part1" + } + } + num_target_locators = 2 + is_space_station = no + icon = ship_size_military_2 + base_buildtime = @battleship_build_time + can_have_federation_design = yes + enable_default_design = yes #if yes, countries will have an auto-generated design at start + enable_3dview_in_ship_browser = yes #if yes, ship design will have a 3d view in the ship browser + is_designable = yes + default_behavior = line + prerequisites = { + "tech_gray_interdictor_4" + } + ship_roles = { screen gunship artillery brawler } + triggered_ship_roles = { + { + name = artillery_stealth + trigger = { has_technology = tech_cloaking_2 } + } + } + combat_disengage_chance = 1.25 + class = shipclass_military + construction_type = starbase_shipyard + required_component_set = "power_core" + required_component_set = "ftl_components" + required_component_set = "combat_computers" + required_component_set = "thruster_components" + required_component_set = "sensor_components" + resources = { + category = ships + upkeep = { + energy = @destroyer_upkeep_energy + alloys = @destroyer_upkeep_alloys + } + } + min_upgrade_cost = { + alloys = 8 + } +} + # Gray Goo Icebreaker RG_graygoo_icebreaker_interdictor = { graphical_culture = no diff --git a/interface/rg_icons.gfx b/interface/rg_icons.gfx index 2e1d26e..f81fba4 100644 --- a/interface/rg_icons.gfx +++ b/interface/rg_icons.gfx @@ -34,6 +34,11 @@ spriteTypes = { textureFile = "gfx/interface/icons/ship_parts/rg_big_bomb_2.dds" noOfFrames = 1 } + spriteType = { + name = "GFX_ship_part_graymine_old" + textureFile = "gfx/interface/icons/ship_parts/GFX_ship_part_graymine.dds" + noOfFrames = 1 + } spriteType = { name = "GFX_ship_part_rg_armor_hardener" textureFile = "gfx/interface/icons/ship_parts/ship_part_rg_armor_hardener.dds" diff --git a/localisation/simp_chinese/RG_l_simp_chinese.yml b/localisation/simp_chinese/RG_l_simp_chinese.yml index 67dc825..67e16e6 100644 --- a/localisation/simp_chinese/RG_l_simp_chinese.yml +++ b/localisation/simp_chinese/RG_l_simp_chinese.yml @@ -203,6 +203,9 @@ RG_graygoo_juggernaut_key: "§Y主宰核心§!" RG_icebreaker_interdictor_key: "§Y破冰核心§!" + RG_carrier_destroyer_key: "§Y运航核心§!" + RG_base_destroyer_key: "§Y驱逐核心§!" + LARGE_GRAY_WEAPON_KIN:0 "§Y「糖豆发射器」§!" LARGE_GRAY_WEAPON_KIN_DESC:0 "§Y多就是美。§!\n这些密集的轴基无管动能炮使用了前所未有的重型弹头,被设计成只能发射一次的终极火炮。这种武器通常成编制部署,占据了整艘战舰一半以上的质量。" HUGE_GRAY_WEAPON_KIN:0 "§Y「棒糖发射器」§!" diff --git a/localisation/simp_chinese/RG_ships_l_simp_chinese.yml b/localisation/simp_chinese/RG_ships_l_simp_chinese.yml index 43c7014..b734a8e 100644 --- a/localisation/simp_chinese/RG_ships_l_simp_chinese.yml +++ b/localisation/simp_chinese/RG_ships_l_simp_chinese.yml @@ -63,3 +63,5 @@ NAME_RG_FAKE_Dragon:0 "龙之幼体" NAME_rg_gray_habitat:0 "纳米机器核心站点" NAME_rg_gray_habitat_base:0 "纳-迪-沙空间站点" + NAME_RG_carrier_destroyer:0 "纳米机器航运单元" + NAME_RG_base_destroyer:0 "纳米机器阵列单元"