diff --git a/common/scripted_effects/RG_gray_leader_init_effects.txt b/common/scripted_effects/RG_gray_leader_init_effects.txt index c058c17..b983806 100644 --- a/common/scripted_effects/RG_gray_leader_init_effects.txt +++ b/common/scripted_effects/RG_gray_leader_init_effects.txt @@ -33,68 +33,73 @@ # } # } ################################ -# scripted_effects_override.txt 采样时间戳:2023/6/1 8:17 + rg_gray_govener_init = { - create_leader = { - class = governor - species = root - name = "NAME_Gray" - gender = female - immortal = yes - event_leader = yes - skip_background_generation = yes - custom_catch_phrase = gray_catch_phrase - custom_description = gray_backstory - background_ethic = ethic_gestalt_consciousness - hide_age = yes - skill = 10 - set_age = 18 - traits = { - } - effect = { - save_global_event_target_as = gray_governor - set_leader_flag = gray_governor - set_leader_flag = legendary_leader - set_leader_flag = immune_to_negative_traits - - set_leader_flag = rg_gray_leader - - if = { - limit = { has_global_flag = has_wsg_mod } - set_leader_flag = not_has_wg_affection_normal + event_target:rg_gray_country = { + create_leader = { + class = governor + species = root + name = "NAME_Gray" + gender = female + immortal = yes + event_leader = yes + skip_background_generation = yes + custom_catch_phrase = gray_catch_phrase + custom_description = gray_backstory + background_ethic = ethic_gestalt_consciousness + hide_age = yes + skill = 10 + set_age = 18 + traits = { } - - if = { - limit = { - owner = { - OR = { - has_global_flag = has_wsg_mod - has_global_flag = kdc_event_mod_active - } + effect = { + save_global_event_target_as = gray_governor + set_leader_flag = gray_governor + set_leader_flag = legendary_leader + set_leader_flag = immune_to_negative_traits + + set_leader_flag = rg_gray_leader + + if = { + limit = { has_global_flag = has_wsg_mod } + set_leader_flag = not_has_wg_affection_normal + } + + if = { + limit = { + owner = { + OR = { + has_global_flag = has_wsg_mod + has_global_flag = kdc_event_mod_active + } + } + } + set_leader_flag = "gray_leader" + add_trait_no_notify = leader_trait_governor_gray + add_trait_no_notify = RG_leader_trait_ruler_gray + add_trait_no_notify = subclass_governor_economist + add_trait_no_notify = leader_trait_urbanist_3 + add_trait_no_notify = leader_trait_scrapper_2 + if = { + limit = { owner = { + has_country_flag = origin_gray_weaken + has_country_flag = origin_gray_country + }} + remove_trait = leader_trait_governor_gray + add_trait_no_notify = leader_trait_governor_gray_weak } } - set_leader_flag = "gray_leader" - add_trait_no_notify = leader_trait_governor_gray - add_trait_no_notify = RG_leader_trait_ruler_gray - add_trait_no_notify = subclass_governor_economist - add_trait_no_notify = leader_trait_urbanist_3 - add_trait_no_notify = leader_trait_scrapper_2 - if = { - limit = { owner = { - has_country_flag = origin_gray_weaken - has_country_flag = origin_gray_country - }} - remove_trait = leader_trait_governor_gray - add_trait_no_notify = leader_trait_governor_gray_weak + else = { + add_trait_no_notify = RG_leader_trait_governor_gray + add_trait_no_notify = RG_leader_trait_ruler_gray + add_trait_no_notify = subclass_governor_economis + add_trait_no_notify = leader_trait_urbanist_3 + add_trait_no_notify = leader_trait_scrapper_2 } } - else = { - add_trait_no_notify = RG_leader_trait_governor_gray - add_trait_no_notify = RG_leader_trait_ruler_gray - add_trait_no_notify = subclass_governor_economis - add_trait_no_notify = leader_trait_urbanist_3 - add_trait_no_notify = leader_trait_scrapper_2 - } + } + last_created_leader = { + set_owner = event_target:gray_owner } } last_created_leader = { @@ -129,56 +134,61 @@ rg_gray_govener_init = { } rg_gray_admiral_init = { - create_leader = { - class = admiral - species = root - name = "NAME_Gray" - immortal = yes - event_leader = yes - skip_background_generation = yes - custom_catch_phrase = gray_catch_phrase - custom_description = gray_backstory - background_ethic = ethic_gestalt_consciousness - hide_age = yes - gender = female - skill = 10 - set_age = 18 - traits = { - trait = RG_leader_trait_admiral_gray - } - effect = { - save_global_event_target_as = gray_leader_admiral - set_leader_flag = gray_admiral - set_leader_flag = legendary_leader - set_leader_flag = immune_to_negative_traits - if = { - limit = { - owner = { - OR = { - has_global_flag = has_wsg_mod - has_global_flag = kdc_event_mod_active - } + event_target:rg_gray_country = { + create_leader = { + class = admiral + species = root + name = "NAME_Gray" + immortal = yes + event_leader = yes + skip_background_generation = yes + custom_catch_phrase = gray_catch_phrase + custom_description = gray_backstory + background_ethic = ethic_gestalt_consciousness + hide_age = yes + gender = female + skill = 10 + set_age = 18 + traits = { + trait = RG_leader_trait_admiral_gray + } + effect = { + save_global_event_target_as = gray_leader_admiral + set_leader_flag = gray_admiral + set_leader_flag = legendary_leader + set_leader_flag = immune_to_negative_traits + if = { + limit = { + owner = { + OR = { + has_global_flag = has_wsg_mod + has_global_flag = kdc_event_mod_active + } + } + } + set_leader_flag = "gray_leader" # "gray_leader"==rg_gray_leader + add_trait_no_notify = gray_admiral + if = { + limit = { owner = { + has_country_flag = origin_gray_weaken + has_country_flag = origin_gray_country + }} + remove_trait = gray_admiral + add_trait_no_notify = leader_trait_admiral_gray_weak + # 缺少特质leader_trait_admiral_gray_weak将导致KDC故事包远星之歌起源研究纳米星球特殊项目无法完成 } } - set_leader_flag = "gray_leader" # "gray_leader"==rg_gray_leader - add_trait_no_notify = gray_admiral - if = { - limit = { owner = { - has_country_flag = origin_gray_weaken - has_country_flag = origin_gray_country - }} - remove_trait = gray_admiral - add_trait_no_notify = leader_trait_admiral_gray_weak - # 缺少特质leader_trait_admiral_gray_weak将导致KDC故事包远星之歌起源研究纳米星球特殊项目无法完成 - } + set_leader_flag = rg_gray_leader + add_trait_no_notify = RG_leader_trait_admiral_gray + # 缺少特质RG_leader_trait_admiral_gray将导致小灰改造项目无法完成 + add_trait_no_notify = subclass_admiral_aggressor + add_trait_no_notify = leader_trait_carrier_specialization + add_trait_no_notify = leader_trait_artillerist_2 + add_trait_no_notify = leader_trait_juryrigger_2 } - set_leader_flag = rg_gray_leader - add_trait_no_notify = RG_leader_trait_admiral_gray - # 缺少特质RG_leader_trait_admiral_gray将导致小灰改造项目无法完成 - add_trait_no_notify = subclass_admiral_aggressor - add_trait_no_notify = leader_trait_carrier_specialization - add_trait_no_notify = leader_trait_artillerist_2 - add_trait_no_notify = leader_trait_juryrigger_2 + } + last_created_leader = { + set_owner = event_target:gray_owner } } last_created_leader = { @@ -214,44 +224,49 @@ rg_gray_admiral_init = { } rg_gray_general_init = { - create_leader = { - class = general - species = root - name = "NAME_Gray" - immortal = yes - event_leader = yes - skip_background_generation = yes - custom_catch_phrase = gray_catch_phrase - custom_description = gray_backstory - background_ethic = ethic_gestalt_consciousness - hide_age = yes - gender = female - skill = 10 - set_age = 18 - traits = { - trait = RG_leader_trait_general_gray - trait = RG_leader_trait_general_gray_skill - trait = subclass_general_marshall - trait = leader_trait_heavy_hitter_2 - trait = leader_trait_reinforcer_2 - } - effect = { - save_global_event_target_as = gray_leader_general - set_leader_flag = rg_gray_leader - set_leader_flag = gray_general - set_leader_flag = legendary_leader - set_leader_flag = immune_to_negative_traits - if = { - limit = { - owner = { - OR = { - has_global_flag = has_wsg_mod - has_global_flag = kdc_event_mod_active - } - } - } - set_leader_flag = "gray_leader" # "gray_leader"==rg_gray_leader + event_target:rg_gray_country = { + create_leader = { + class = general + species = root + name = "NAME_Gray" + immortal = yes + event_leader = yes + skip_background_generation = yes + custom_catch_phrase = gray_catch_phrase + custom_description = gray_backstory + background_ethic = ethic_gestalt_consciousness + hide_age = yes + gender = female + skill = 10 + set_age = 18 + traits = { + trait = RG_leader_trait_general_gray + trait = RG_leader_trait_general_gray_skill + trait = subclass_general_marshall + trait = leader_trait_heavy_hitter_2 + trait = leader_trait_reinforcer_2 } + effect = { + save_global_event_target_as = gray_leader_general + set_leader_flag = rg_gray_leader + set_leader_flag = gray_general + set_leader_flag = legendary_leader + set_leader_flag = immune_to_negative_traits + if = { + limit = { + owner = { + OR = { + has_global_flag = has_wsg_mod + has_global_flag = kdc_event_mod_active + } + } + } + set_leader_flag = "gray_leader" # "gray_leader"==rg_gray_leader + } + } + } + last_created_leader = { + set_owner = event_target:gray_owner } } last_created_leader = { @@ -295,43 +310,48 @@ rg_gray_general_init = { } rg_gray_scientist_init = { - create_leader = { - class = scientist - species = root - name = "NAME_Gray" - immortal = yes - event_leader = yes - skip_background_generation = yes - custom_catch_phrase = gray_catch_phrase - custom_description = gray_backstory - background_ethic = ethic_gestalt_consciousness - hide_age = yes - gender = female - skill = 10 - set_age = 18 - traits = { - trait = RG_leader_trait_scientist_gray - trait = subclass_scientist_explorer - trait = leader_trait_engineering_focus_2 - trait = leader_trait_salvager_3 - } - effect = { - save_global_event_target_as = gray_leader_scientist - set_leader_flag = rg_gray_leader - set_leader_flag = gray_scientist - set_leader_flag = legendary_leader - set_leader_flag = immune_to_negative_traits - if = { - limit = { - owner = { - OR = { - has_global_flag = has_wsg_mod - has_global_flag = kdc_event_mod_active - } - } - } - set_leader_flag = "gray_leader" # "gray_leader"==rg_gray_leader + event_target:rg_gray_country = { + create_leader = { + class = scientist + species = root + name = "NAME_Gray" + immortal = yes + event_leader = yes + skip_background_generation = yes + custom_catch_phrase = gray_catch_phrase + custom_description = gray_backstory + background_ethic = ethic_gestalt_consciousness + hide_age = yes + gender = female + skill = 10 + set_age = 18 + traits = { + trait = RG_leader_trait_scientist_gray + trait = subclass_scientist_explorer + trait = leader_trait_engineering_focus_2 + trait = leader_trait_salvager_3 } + effect = { + save_global_event_target_as = gray_leader_scientist + set_leader_flag = rg_gray_leader + set_leader_flag = gray_scientist + set_leader_flag = legendary_leader + set_leader_flag = immune_to_negative_traits + if = { + limit = { + owner = { + OR = { + has_global_flag = has_wsg_mod + has_global_flag = kdc_event_mod_active + } + } + } + set_leader_flag = "gray_leader" # "gray_leader"==rg_gray_leader + } + } + } + last_created_leader = { + set_owner = event_target:gray_owner } } last_created_leader = { @@ -386,8 +406,8 @@ rg_gray_country_leader_init = { trait = RG_leader_trait_ruler_gray } effect = { - save_global_event_target_as = gray_governor - set_leader_flag = gray_governor + save_global_event_target_as = rg_gray_country_leader + set_leader_flag = rg_gray_country_governor set_leader_flag = legendary_leader set_leader_flag = immune_to_negative_traits diff --git a/events/!_RG_gray_goo_events.txt b/events/!_RG_gray_goo_events.txt index 0bf99c0..a94806f 100644 --- a/events/!_RG_gray_goo_events.txt +++ b/events/!_RG_gray_goo_events.txt @@ -306,9 +306,6 @@ country_event = { rg_gray_country_init = yes #创建国家 } rg_gray_country_after_init = yes - event_target:gray_governor = { - set_owner = event_target:gray_owner - } } } diff --git a/kac_anticheat/kac_ads_compact_log.txt b/kac_anticheat/kac_ads_compact_log.txt new file mode 100644 index 0000000..2e954df --- /dev/null +++ b/kac_anticheat/kac_ads_compact_log.txt @@ -0,0 +1,197 @@ +# © kac ads 主动防御系统。 +# 主动兼容性筛查只能在我所订阅的mod范围内进行。有漏网之鱼很正常。 +# 主动兼容性筛查只标记我认为不应该被覆盖的文件。 +# 唔姆。 + +kac_ads.1 = { + name="碧蓝航线" + supported_version="3.*.*" + remote_file_id="2020164764" + remote_file_link="https://steamcommunity.com/sharedfiles/filedetails/?id=2020164764" + + compact_file = { + !!azur_R_ships_designs.txt + azur_R_graygoo_sizes.txt + adt_ship_designs_distars.txt + gray_goo.txt + } + overwritten_id = { + ship_design = "NAME_Gray_Warship" + } + active_flag = { + exist = have_azur_R_fallen + } + desc = { + # 描述:小灰战舰设计会被魔怔人强覆盖。 + # 处理方法:弹窗提醒 + # 判断结果:小灰舰船设计被该mod覆盖,但大体上不影响游玩 + } +} + +kac_ads.2 = { + name="Warship Girls R And MIST Species" + supported_version="3.8.*" + remote_file_id="1747099270" + remote_file_link="https://steamcommunity.com/sharedfiles/filedetails/?id=1747099270" + + compact_file = { + 00_wg_event_ship_designs_distant_stars.txt + scripted_effects_override.txt + 00_wg_gray_goo_events.txt + } + overwritten_id = { + } + active_flag = { + exist = has_wsg_mod + } + desc = { + # 描述:小灰事件和设计重复。 + # 处理方法:已经主动兼容 + # 判断结果:会被本mod覆盖,不影响游玩。 + } +} + +kac_ads.3 = { + name="A Deadly Tempest [3.8.☠]" + supported_version="3.8.*" + remote_file_id="2028826064" + remote_file_link="https://steamcommunity.com/sharedfiles/filedetails/?id=2028826064" + + compact_file = { + adt_ship_designs_distars.txt + gray_goo_effects_override.txt + 3_gray_goo_events.txt + 01_lcluster_+_event_override.txt + 01_gray_goo_events_override.txt + # ~gray_goo_country_type.txt + z_graygoo_ships.txt + * + } + overwritten_id = { + } + active_flag = { + exist = a_deadly_tempest_mod_active + } + desc = { + # 描述:小灰事件和设计重复。大量事件重复。 + # 处理方法:弹窗提醒 + # 判断结果:太多了查不过来,可能会出问题。 + } +} + +kac_ads.4 = { + name="( Twinks Dessanu )" + supported_version="3.0.*" + remote_file_id="2285039543" + remote_file_link="https://steamcommunity.com/sharedfiles/filedetails/?id=2285039543" + + compact_file = { + 000_nanite_ship_designs.txt + gray_goo_nanite_effects.txt + } + overwritten_id = { + } + desc = { + # 描述:小灰战舰设计,小灰生成函数重复,并且原作者噶了。 + # 处理方法:不做处理 + # 判断结果:会被本mod覆盖,不影响游玩。 + } +} + +kac_ads.5 = { + name="KDC Story Pack" + supported_version="3.7.*" + remote_file_id="2737603165" + remote_file_link="https://steamcommunity.com/sharedfiles/filedetails/?id=2737603165" + + compact_file = { + 00_wg_event_ship_designs_distant_stars.txt + z_kdc_scripted_effects_override.txt + } + overwritten_id = { + } + desc = { + # 描述:小灰战舰设计,小灰生成函数重复。 + # 处理方法:已经主动兼容 + # 判断结果:会被本mod覆盖,不影响游玩。 + } +} + +kac_ads.6 = { + name="Gray with animated portrait" + supported_version="3.8.3" + remote_file_id="2976454692" + remote_file_link="https://steamcommunity.com/sharedfiles/filedetails/?id=2976454692" + + compact_file = { + gray_goo_effects.txt + gray_goo_events.txt + } + overwritten_id = { + } + desc = { + # 描述:小灰事件,小灰生成函数重复。该mod的Gray.dds瞎猫碰上死耗子一样替换了本mod的默认立绘。 + # 处理方法:不做处理 + # 判断结果:会被本mod覆盖,不影响游玩。 + } +} + +kac_ads.7 = { + name="BRC United Fleet" + supported_version="3.6.*" + remote_file_id="2923867738" + remote_file_link="https://steamcommunity.com/sharedfiles/filedetails/?id=2923867738" + + compact_file = { + 00_wg_gray_goo_events.txt + } + overwritten_id = { + } + desc = { + # 描述:小灰事件重复。 + # 处理方法:不做处理 + # 判断结果:会被本mod覆盖,不影响游玩。 + } +} + +kac_ads.9 = { + name="L-Cluster Plus" + supported_version="3.7.*" + remote_file_id="2293169684" + remote_file_link="https://steamcommunity.com/sharedfiles/filedetails/?id=2293169684" + + compact_file = { + 01_l_cluster_plus_distar_overwrite_events.txt + 01_l_cluster_plus_graygoo_overwrite_events.txt + 000_nanite_ship_designs.txt + } + overwritten_id = { + } + desc = { + # 描述:L星团事件重复。 + # 处理方法:不做处理 + # 判断结果:会被本mod覆盖,不影响游玩。 + } +} + +kac_ads.8 = { + name="!CM伞の天灾之主(旧)!" + supported_version="2.8.*" + remote_file_id="2411774658" + remote_file_link="https://steamcommunity.com/sharedfiles/filedetails/?id=2411774658" + + compact_file = { + z_cm_ships_overwrite.txt + * + } + overwritten_id = { + } + active_flag = { + exist = z_cm_installed + } + desc = { + # 描述:灰蛊事件冲突,舰船设计覆盖,并且小伞已经不管这个mod了 + # 处理方法:弹窗提醒 + # 判断结果:可能会出问题,不过可能没人会开一个2.8的mod。 + } +} \ No newline at end of file