From a2a825ac26b65e6f03645250f72933d41a112370 Mon Sep 17 00:00:00 2001 From: "ProjectKoi-Kalo\\Kalo" Date: Mon, 16 Sep 2024 21:47:30 +0800 Subject: [PATCH] zc --- common/governments/civics/!_RG_origins.txt | 6 + common/governments/civics/RG_cvics.txt | 37 +++++ common/scripted_effects/RG_event_effects.txt | 147 ++++++++++++++++++ .../scripted_effects/RG_scripted_effects.txt | 5 +- .../!_RG_projects_distant_stars.txt | 19 +-- events/RG_events.txt | 55 +------ .../simp_chinese/RG_l_simp_chinese.yml | 5 + realgray-stellaris-mod.code-workspace | 3 + 8 files changed, 208 insertions(+), 69 deletions(-) create mode 100644 common/governments/civics/RG_cvics.txt create mode 100644 common/scripted_effects/RG_event_effects.txt diff --git a/common/governments/civics/!_RG_origins.txt b/common/governments/civics/!_RG_origins.txt index 078a462..9de1352 100644 --- a/common/governments/civics/!_RG_origins.txt +++ b/common/governments/civics/!_RG_origins.txt @@ -15,6 +15,12 @@ origin_rg_gray = { playable = { host_has_dlc = "Distant Stars Story Pack" } + potential = { + OR = { + has_civic = civic_rg_gray_cluster + has_civic = civic_rg_gray_non_cluster + } + } } rg_origin_scion = { diff --git a/common/governments/civics/RG_cvics.txt b/common/governments/civics/RG_cvics.txt new file mode 100644 index 0000000..ad00873 --- /dev/null +++ b/common/governments/civics/RG_cvics.txt @@ -0,0 +1,37 @@ +civic_rg_gray_cluster = { + icon = gfx/interface/icons/governments/civics/civic_efficient_bureaucracy.dds + potential = { + origin = { value = origin_rg_gray } + } + possible = { + ethics = { NOT = { value = civic_rg_gray_non_cluster } } + origin = { value = origin_rg_gray } + } + random_weight = { + base = 0 + } + modification = no + description = "civic_tooltip_rg_gray_cluster" + modifier = { + country_government_civic_points_add = 1 + } +} + +civic_rg_gray_non_cluster = { + icon = gfx/interface/icons/governments/civics/civic_nationalistic_zeal.dds + potential = { + origin = { value = origin_rg_gray } + } + possible = { + ethics = { NOT = { value = civic_rg_gray_cluster } } + origin = { value = origin_rg_gray } + } + random_weight = { + base = 0 + } + modification = no + description = "civic_tooltip_rg_gray_non_cluster" + modifier = { + country_government_civic_points_add = 1 + } +} \ No newline at end of file diff --git a/common/scripted_effects/RG_event_effects.txt b/common/scripted_effects/RG_event_effects.txt new file mode 100644 index 0000000..75631a6 --- /dev/null +++ b/common/scripted_effects/RG_event_effects.txt @@ -0,0 +1,147 @@ +rg_event_effect_event1_dragon = { + set_country_flag = origin_gray_dragon_country + set_global_flag = has_origin_gray_dragon + rg_create_fake_dragon = yes + random_owned_leader = { + limit = { + has_leader_flag = rg_fake_dragon + } + remove_trait = RG_leader_trait_admiral_timed_life + add_trait = RG_leader_trait_admiral_born_tobe_dragon + set_leader_flag = rg_fake_dragon_reborn + set_age = 0 + } + set_country_flag = rg_fake_dragon_reborn_country + set_variable = { + which = rg_fake_dragon_timedlife_counter + value = 0 + } + start_lcluster_chain = yes + add_event_chain_counter = { + event_chain = l_cluster_chain + counter = clues + amount = 7 + } + # increment variable + change_variable = { + which = num_lcluster_clues + value = 7 + } +} + + + +rg_event_effect_event1_cluster = { + if = { + limit = { + NOT = { + has_global_flag = origin_rg_gray_1st_global + } + } + rg_event_effect_event1_gray_cluster = yes + } + else = { + rg_event_effect_event1_dragon = yes + } +} + +rg_event_effect_event1_cluster_galaxy = { + if = { + limit = { + NOT = { + has_global_flag = origin_rg_gray_1st_global + } + } + rg_event_effect_event1_gray_galaxy = yes + } + else = { + rg_event_effect_event1_dragon = yes + } +} + + +rg_event_effect_event1_gray_cluster = { + set_global_flag = origin_rg_gray_1st_global + set_country_flag = origin_rg_gray_cluster + set_country_flag = origin_rg_gray_1st + set_country_flag = rg_gray_level_1 + country_event = { + id = rg_event.2 + days = 30 + } + add_modifier = { + modifier = rg_distant_stars_modifier + } + save_global_event_target_as = origin_rg_gray_country + rg_lcluster_spawn_effect = yes + country_event = { + id = rg_event.18 + days = 3600 + random = 12800 + } +} + +rg_event_effect_event1_gray_galaxy = { + set_global_flag = origin_rg_gray_1st_global + set_country_flag = origin_rg_gray_galaxy + set_country_flag = origin_rg_gray_1st + set_country_flag = rg_gray_level_1 + country_event = { + id = rg_event.2 + days = 30 + } + save_global_event_target_as = origin_rg_gray_country + rg_lcluster_spawn_effect = yes +} +rg_event_effect_lcluster_spawn_selecter = { + if = { + limit = { + event_target:origin_rg_gray_country = { + OR = { + has_civic = civic_rg_gray_cluster + } + + } + } + country_event = { + id = rg_cluster.9 + days = -1 + } + } + else_if = { + limit = { + event_target:origin_rg_gray_country = { + has_civic = civic_rg_gray_cluster + } + } + rg_event_effect_lcluster_open = yes + } + else = { + country_event = { + id = rg_cluster.9 + days = -1 + } + } +} + +rg_event_effect_lcluster_open = { + if = { + limit = { + OR = { + has_global_flag = l_cluster_origin # l-cluster plus + has_global_flag = rg_origin_l_cluster # 遥远约定 + has_global_flag = gray_origin_activate # 远星之歌 + has_global_flag = rg_origin_scion_l_cluster # 未来追迹 + } + } + country_event = { + id = rg_cluster.2 + } + } + else = { + country_event = { + id = distar.10950 + } + } +} + diff --git a/common/scripted_effects/RG_scripted_effects.txt b/common/scripted_effects/RG_scripted_effects.txt index 9105ab4..433221d 100644 --- a/common/scripted_effects/RG_scripted_effects.txt +++ b/common/scripted_effects/RG_scripted_effects.txt @@ -2553,10 +2553,7 @@ rg_lcluster_spawn_effect = { } } set_spawn_system_batch = end - country_event = { - id = rg_cluster.9 - days = -1 - } + rg_event_effect_lcluster_spawn_selecter = yes } RG_gray_mod1_effect = { custom_tooltip = rg_levelup_2.tooltip diff --git a/common/special_projects/!_RG_projects_distant_stars.txt b/common/special_projects/!_RG_projects_distant_stars.txt index 627bf16..6450a80 100644 --- a/common/special_projects/!_RG_projects_distant_stars.txt +++ b/common/special_projects/!_RG_projects_distant_stars.txt @@ -16,24 +16,7 @@ special_project = { } on_success = { owner = { - if = { - limit = { - OR = { - has_global_flag = l_cluster_origin # l-cluster plus - has_global_flag = rg_origin_l_cluster # 遥远约定 - has_global_flag = gray_origin_activate # 远星之歌 - has_global_flag = rg_origin_scion_l_cluster # 未来追迹 - } - } - country_event = { - id = rg_cluster.2 - } - } - else = { - country_event = { - id = distar.10950 - } - } + rg_event_effect_lcluster_open = yes } } on_fail = { diff --git a/events/RG_events.txt b/events/RG_events.txt index 1b97a1f..0897154 100644 --- a/events/RG_events.txt +++ b/events/RG_events.txt @@ -14,57 +14,18 @@ country_event = { immediate = { if = { limit = { - NOT = { - has_global_flag = origin_rg_gray_1st_global - } + has_civic = civic_rg_gray_cluster } - set_global_flag = origin_rg_gray_1st_global - set_country_flag = origin_rg_gray_1st - set_country_flag = rg_gray_level_1 - country_event = { - id = rg_event.2 - days = 30 - } - add_modifier = { - modifier = rg_distant_stars_modifier - } - save_global_event_target_as = origin_rg_gray_country - rg_lcluster_spawn_effect = yes - country_event = { - id = rg_event.18 - days = 3600 - random = 12800 + rg_event_effect_event1_cluster = yes + } + else_if = { + limit = { + has_civic = civic_rg_gray_non_cluster } + rg_event_effect_event1_cluster_galaxy = yes } else = { - set_country_flag = origin_gray_dragon_country - set_global_flag = has_origin_gray_dragon - rg_create_fake_dragon = yes - random_owned_leader = { - limit = { - has_leader_flag = rg_fake_dragon - } - remove_trait = RG_leader_trait_admiral_timed_life - add_trait = RG_leader_trait_admiral_born_tobe_dragon - set_leader_flag = rg_fake_dragon_reborn - set_age = 0 - } - set_country_flag = rg_fake_dragon_reborn_country - set_variable = { - which = rg_fake_dragon_timedlife_counter - value = 0 - } - start_lcluster_chain = yes - add_event_chain_counter = { - event_chain = l_cluster_chain - counter = clues - amount = 7 - } - # increment variable - change_variable = { - which = num_lcluster_clues - value = 7 - } + rg_event_effect_event1_cluster = yes } } } diff --git a/localisation/simp_chinese/RG_l_simp_chinese.yml b/localisation/simp_chinese/RG_l_simp_chinese.yml index d1f92ad..c2f63ac 100644 --- a/localisation/simp_chinese/RG_l_simp_chinese.yml +++ b/localisation/simp_chinese/RG_l_simp_chinese.yml @@ -31,6 +31,11 @@ preset_rg_scion: "§Y誓约计划国§!" preset_rg_scion_desc: "出于某种不可告人的目的,远古堕落帝国将其视若己出。他们的远古宗主不会允许其誓约国受到任何外部干扰。" + civic_rg_gray_cluster: "§Y遥远约定-星团开局§!" + civic_rg_gray_non_cluster: "§Y遥远约定-银河开局§!" + civic_tooltip_rg_gray_cluster: "选择在§YL-星团§!中开启你的冒险。本mod标准的开局选项。" + civic_tooltip_rg_gray_non_cluster: "选择在§Y银河系§!中开启你的冒险。适合不希望在L-星团中开局的玩家。" + rg_tempest_invocator: "灰蛊核心" graytempest_storm: "灰蛊风暴" diff --git a/realgray-stellaris-mod.code-workspace b/realgray-stellaris-mod.code-workspace index d50a3f3..c5d02eb 100644 --- a/realgray-stellaris-mod.code-workspace +++ b/realgray-stellaris-mod.code-workspace @@ -14,6 +14,9 @@ }, { "path": "D:/SteamLibrary/steamapps/common/Stellaris/localisation" + }, + { + "path": "D:/SteamLibrary/steamapps/workshop/content/281990/3330088804" } ] } \ No newline at end of file