From a4442042858f5a3adf8acb7d1179dcd603f305d9 Mon Sep 17 00:00:00 2001 From: "ProjectKoi-Kalo\\Kalo" Date: Wed, 25 Sep 2024 13:44:52 +0800 Subject: [PATCH] =?UTF-8?q?Changes=20=E7=A7=8D=E6=97=8Fmerge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/scripted_effects/RG_event_effects.txt | 22 +++++++-- .../RG_fallen_empire_effects.txt | 2 +- common/traits/RG_machine_species_trait.txt | 46 +++++++++++++++++-- localisation/english/RG_traits_l_english.yml | 2 + .../simp_chinese/RG_traits_l_simp_chinese.yml | 2 + 5 files changed, 66 insertions(+), 8 deletions(-) diff --git a/common/scripted_effects/RG_event_effects.txt b/common/scripted_effects/RG_event_effects.txt index 1a45a6f..6690ba7 100644 --- a/common/scripted_effects/RG_event_effects.txt +++ b/common/scripted_effects/RG_event_effects.txt @@ -101,6 +101,20 @@ rg_event_effect_event1_gray_galaxy = { } else = { rg_lcluster_spawn_effect = yes + capital_scope = { + solar_system = { + random_neighbor_system = { + solar_system = { + set_star_flag = lgate + spawn_megastructure = { + type = lgate_base + orbit_angle = 225 + orbit_distance = 30 + } + } + } + } + } } } @@ -173,12 +187,12 @@ rg_event_effect_planet2027_spawn_maid_species = { plural = this class = RG_MACHINE portrait = "rg_machine_maid" - can_be_modified = no + can_be_modified = yes homeworld = this namelist = this gender = this traits = { - trait = trait_machine_unit + trait = trait_rg_machine_unit trait = rg_machine_maid_trait trait = trait_auto_mod_robotic trait = trait_robot_streamlined_protocols @@ -202,12 +216,12 @@ rg_event_effect_planet2027_spawn_maid_species_non_gray = { plural = this class = RG_MACHINE portrait = "rg_machine_maid" - can_be_modified = no + can_be_modified = yes homeworld = this namelist = this gender = this traits = { - trait = trait_machine_unit + trait = trait_rg_machine_unit trait = rg_machine_maid_trait trait = trait_auto_mod_robotic trait = trait_robot_streamlined_protocols diff --git a/common/scripted_effects/RG_fallen_empire_effects.txt b/common/scripted_effects/RG_fallen_empire_effects.txt index 9825081..0b3e91a 100644 --- a/common/scripted_effects/RG_fallen_empire_effects.txt +++ b/common/scripted_effects/RG_fallen_empire_effects.txt @@ -4,7 +4,7 @@ rg_create_fallen_empire_species_effect = { class = RG_MACHINE portrait = "rg_machine_maid" traits = { - trait = trait_machine_unit + trait = trait_rg_machine_unit trait = trait_robot_domestic_protocols trait = rg_machine_maid_trait trait = trait_auto_mod_robotic diff --git a/common/traits/RG_machine_species_trait.txt b/common/traits/RG_machine_species_trait.txt index f9d3290..826f0cd 100644 --- a/common/traits/RG_machine_species_trait.txt +++ b/common/traits/RG_machine_species_trait.txt @@ -21,7 +21,7 @@ rg_machine_maid_trait = { } } randomized = no - allowed_archetypes = { ROBOT MACHINE BIOLOGICAL LITHOID } + allowed_archetypes = { ROBOT MACHINE BIOLOGICAL LITHOID RG_MACHINE } sorting_priority = 20 potential_crossbreeding_chance = 1.0 @@ -66,11 +66,51 @@ rg_machine_maid_trait = { } } } - - } slave_cost = { energy = 1000 } +} + +trait_rg_machine_unit = { + cost = 0 + sorting_priority = 20 + initial = no + randomized = no + species_potential_add = { + always = no + } + species_possible_remove = { + always = no + } + + icon = "gfx/interface/icons/traits/trait_machine_unit.dds" + allowed_archetypes = { RG_MACHINE } + + immortal_leaders = no + + modifier = { + pc_machine_habitability = 1 + leader_lifespan_add = 10 + habitability_floor_add = 0.5 + } + + triggered_planet_growth_habitability_modifier = { + potential = { + exists = owner + owner = { + OR = { + has_active_tradition = tr_nanotech_adopt + has_active_tradition = tr_rg_nanotech_adopt + } + } + } + pc_nanotech_habitability = 1 + } + + leader_age_min = 5 + leader_age_max = 10 + + custom_tooltip_with_modifiers = TRAIT_MACHINE_UNIT_EFFECT } \ No newline at end of file diff --git a/localisation/english/RG_traits_l_english.yml b/localisation/english/RG_traits_l_english.yml index fb946cf..3d8e870 100644 --- a/localisation/english/RG_traits_l_english.yml +++ b/localisation/english/RG_traits_l_english.yml @@ -29,3 +29,5 @@ RG_leader_trait_admiral_timed_life_desc:0 "\n§GSim Dragon's stats increase with age.\n$t$§YEach year of growth is offered§!:\n$tt$§G Additional Ship Weapon Damage +1%§!\n§G Additional Ship Armor Health +1%§!\n§G Additional Ship Hull Health +1%§!$t$\nCurrent Age:§!§R[owner.rg_fake_dragon_timedlife_counter]§!§G year§!\nShe is a simulated life born from an experiment. With every month that passed, she grew a year old. If the way to eternal life cannot be found, the fragile soul will return to its roots." RG_leader_trait_admiral_born_tobe_dragon:0 "§YBorn Tobe Dragon§!" RG_leader_trait_admiral_born_tobe_dragon_desc:0 "\n§GSim Dragon's stats increase with age.\n$t$§YEach year of growth is offered§!:\n$tt$§G Additional Ship Weapon Damage +1%§!\n§G Additional Ship Armor Health +1%§!\n§G Additional Ship Hull Health +1%§!$t$\nCurrent Age:§!§R[owner.rg_fake_dragon_timedlife_counter]§!§G year§!\nThe dragon has finally become what it was dreamed of. Legend has it that she opened her shell with one punch and transformed into a dragon." + trait_rg_machine_unit: "$RG_MACHINE$" + trait_rg_machine_unit_desc: "This species is composed of highly advanced biomimetic nanomachines, which are perfectly simulated and indistinguishable from organisms." diff --git a/localisation/simp_chinese/RG_traits_l_simp_chinese.yml b/localisation/simp_chinese/RG_traits_l_simp_chinese.yml index 09d5e7b..f614edc 100644 --- a/localisation/simp_chinese/RG_traits_l_simp_chinese.yml +++ b/localisation/simp_chinese/RG_traits_l_simp_chinese.yml @@ -30,3 +30,5 @@ RG_leader_trait_admiral_timed_life_desc:0 "\n§G模拟龙的属性会随着年龄增长。\n$t$§Y每增长一岁提供§!:\n$tt$§G 额外舰船武器伤害 +1%§!\n§G 额外装甲生命值 +1%§!\n§G 额外船体生命值 +1%§!$t$\n当前§!§R[owner.rg_fake_dragon_timedlife_counter]§!§G岁§!\n她是从一次实验中诞生的模拟生命。时间每流逝一个月,她就老去一岁。倘若无法找到永生的方法,脆弱的灵魂就将落叶归根。" RG_leader_trait_admiral_born_tobe_dragon:0 "§Y羽化成龙§!" RG_leader_trait_admiral_born_tobe_dragon_desc:0 "\n§G模拟龙的属性会随着年龄增长。\n$t$§Y每增长一岁提供§!:\n$tt$§G 额外舰船武器伤害 +1%§!\n§G 额外装甲生命值 +1%§!\n§G 额外船体生命值 +1%§!$t$\n当前§!§R[owner.rg_fake_dragon_timedlife_counter]§!§G岁§!\n梦想中的龙终于变成了梦想中的样子。传说她一拳打开了壳化身为龙。" + trait_rg_machine_unit: "$RG_MACHINE$" + trait_rg_machine_unit_desc: "这个物种由高度先进的仿生纳米机械组成,纳米机器的完美模拟仿真使得他们和有机体并无区别。"