From 17d7a7751d6aefe5d100040b4a3cd1c415c30e24 Mon Sep 17 00:00:00 2001 From: "FA507RM-KALOSPA\\Kalo" Date: Tue, 6 Jun 2023 12:24:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=BF=83=E5=A4=96=E9=83=A8=E5=A8=81?= =?UTF-8?q?=E8=83=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RG_gray_leader_init_effects.txt | 89 +++++++++++++++++++ .../simp_chinese/RG_l_simp_chinese.yml | 5 +- 2 files changed, 93 insertions(+), 1 deletion(-) diff --git a/common/scripted_effects/RG_gray_leader_init_effects.txt b/common/scripted_effects/RG_gray_leader_init_effects.txt index 52f13f1..e7aaa54 100644 --- a/common/scripted_effects/RG_gray_leader_init_effects.txt +++ b/common/scripted_effects/RG_gray_leader_init_effects.txt @@ -404,6 +404,7 @@ rg_gray_scientist_init = { else = { rg_set_gray_portrait = yes } + rg_gray_anti_kogasa_checker = yes } set_global_flag = rg_kac_leader } @@ -466,4 +467,92 @@ rg_gray_country_leader_init = { last_created_leader = { rg_set_gray_portrait = yes } +} + +rg_gray_anti_kogasa_checker = { + #scope = leader + if = { #检查小伞病毒 + limit = { + AND = { + OR = { + has_leader_flag = rg_gray_leader + has_leader_flag = gray_leader + } + has_leader_flag = FW_flg_ldr_HOK_kogasa + } + } + rg_gray_anti_kogasa_extermination_sequence = yes + } +} +#发现脏东西,彻底净化,杀杀杀 +rg_gray_anti_kogasa_extermination_sequence = { + event_target:gray_owner = { + every_owned_leader = { + limit = { + has_leader_flag = { + OR = { + has_leader_flag = rg_gray_leader + has_leader_flag = gray_leader + } + has_leader_flag = FW_flg_ldr_HOK_kogasa + } + remove_trait = FW_trait_ldr_HOK_kogasa + remove_trait = FW_trait_ldr_HOK_pupil + remove_leader_flag = FW_flg_ldr_HOK_kogasa + kill_leader = this + } + } + create_message = { + type = MESSAGE_RECRUITED_LEADER + localization = "rg_kogasa_exterminated_desc" + days = @toast_message_days + target = event_target:rg_gray_country_leader + variable = { + type = name + localization = LEADER + scope = event_target:rg_gray_country_leader + } + } + } + event_target:rg_gray_country = { + every_owned_leader = { + if = { + limit = { + OR = { + has_leader_flag = rg_gray_leader + has_leader_flag = gray_leader + } + has_leader_flag = FW_flg_ldr_HOK_kogasa + } + remove_trait = FW_trait_ldr_HOK_kogasa + remove_trait = FW_trait_ldr_HOK_pupil + remove_leader_flag = FW_flg_ldr_HOK_kogasa + kill_leader = this + } + } + every_owned_leader = { + if = { + limit = { + OR = { + has_leader_flag = rg_gray_leader + has_leader_flag = gray_leader + } + has_leader_flag = FW_flg_ldr_HOK_kogasa + } + remove_trait = FW_trait_ldr_HOK_kogasa + remove_trait = FW_trait_ldr_HOK_pupil + remove_leader_flag = FW_flg_ldr_HOK_kogasa + kill_leader = this + } + } + every_owned_leader = { + if = { + limit = { + has_leader_flag = gray_scientist + has_leader_flag = rg_gray_leader_temp + } + kill_leader = this + } + } + } } \ No newline at end of file diff --git a/localisation/simp_chinese/RG_l_simp_chinese.yml b/localisation/simp_chinese/RG_l_simp_chinese.yml index e849b42..657c8ac 100644 --- a/localisation/simp_chinese/RG_l_simp_chinese.yml +++ b/localisation/simp_chinese/RG_l_simp_chinese.yml @@ -318,4 +318,7 @@ rg_timed_life_millennium:0 "§R千年魂环§!:模拟龙已经一千岁了~恭喜你。然而什么都没有发生!" rg_timed_life_millennium_reborn:0 "§Y发光的§!§R千年魂环§!:模拟龙已经一千岁了~§R你是怎么做到的?难道一千年真的如此短暂吗?§!\n你获得了§R废物认证§!~" RG_sim_dragon_species:0 "伪装的龙" - RG_SIMULATION_DRAGON_SPECIES:0 "伪装的龙" \ No newline at end of file + RG_SIMULATION_DRAGON_SPECIES:0 "伪装的龙" + + MESSAGE_KOGASA_VIRUS_EXTERMINATED:0 "§R检测到伞病毒威胁§!" + rg_kogasa_exterminated_desc:0 "守护进程检测到小灰人格完整性遭到篡改,污染目标已被净化,处理方案:无害化处理。" \ No newline at end of file