From eacc328f58fc27b18bf15e57fca1009e2cd5b283 Mon Sep 17 00:00:00 2001 From: "actions[bot]" Date: Thu, 15 Aug 2024 12:15:10 +0000 Subject: [PATCH] 2024-08-15 12:15:10 --- src/common/ideas/az_vnr_patch_extra_ideas.txt | 4 + .../on_actions/az_vnr_patch_on_actions.txt | 81 +---- src/events/az_vnr_patch.txt | 286 +++++++++++++++++- .../simp_chinese/az_vnr_l_simp_chinese.yml | 3 +- 4 files changed, 285 insertions(+), 89 deletions(-) diff --git a/src/common/ideas/az_vnr_patch_extra_ideas.txt b/src/common/ideas/az_vnr_patch_extra_ideas.txt index 5268435..d986ebe 100755 --- a/src/common/ideas/az_vnr_patch_extra_ideas.txt +++ b/src/common/ideas/az_vnr_patch_extra_ideas.txt @@ -1,6 +1,10 @@ ideas = { country = { az_vnr_extra = { + picture = fengkuangai + allowed_civil_war = { + always = yes + } modifier = { navy_visibility = -0.5 naval_speed_factor = 0.5 diff --git a/src/common/on_actions/az_vnr_patch_on_actions.txt b/src/common/on_actions/az_vnr_patch_on_actions.txt index 735fe48..a60f63c 100755 --- a/src/common/on_actions/az_vnr_patch_on_actions.txt +++ b/src/common/on_actions/az_vnr_patch_on_actions.txt @@ -8,83 +8,10 @@ on_actions = { days = 3 } } - } - } - on_monthly = { - effect = { - if = { - limit = { - has_global_flag = modoption_fengkuangai_on - } - update_ai_combat_bonus = yes - update_ai_production_bonus = yes - if = { - limit = { - OR = { - AND = { - is_subject = no - is_ai = yes - } - AND = { - is_ai = yes - is_subject = yes - OVERLORD = { - is_ai = yes - } - } - } - date > 1938.1.1 - date < 1940.1.1 - } - add_offsite_building = { - type = dockyard - level = 2 - } - } - if = { - limit = { - OR = { - AND = { - is_subject = no - is_ai = yes - } - AND = { - is_ai = yes - is_subject = yes - OVERLORD = { - is_ai = yes - } - } - } - date > 1940.1.1 - date < 1942.1.1 - } - add_offsite_building = { - type = dockyard - level = 4 - } - } - if = { - limit = { - OR = { - AND = { - is_subject = no - is_ai = yes - } - AND = { - is_ai = yes - is_subject = yes - OVERLORD = { - is_ai = yes - } - } - } - date > 1942.1.1 - } - add_offsite_building = { - type = dockyard - level = 8 - } + every_country = { + country_event = { + id = az_vnr_patch.2 + days = 61 } } } diff --git a/src/events/az_vnr_patch.txt b/src/events/az_vnr_patch.txt index 201628f..0e8eacd 100755 --- a/src/events/az_vnr_patch.txt +++ b/src/events/az_vnr_patch.txt @@ -2,16 +2,18 @@ add_namespace = az_vnr_patch country_event = { id = az_vnr_patch.1 hidden = yes - is_triggered_only = yes - immediate = { if = { - limit = { - has_global_flag = modoption_fengkuangai_on + limit = { + has_global_flag = modoption_fengkuangai_on + } + set_variable = { + vnr_ai_difficulty = 3 + } + set_variable = { + vnr_ai_production = 3 } - set_variable = { vnr_ai_difficulty = 3 } - set_variable = { vnr_ai_production = 3 } update_ai_combat_bonus = yes update_ai_production_bonus = yes every_country = { @@ -23,18 +25,280 @@ country_event = { } else_if = { limit = { - has_global_flag = modoption_dingzhenai_on + has_global_flag = modoption_dingzhenai_on + } + set_variable = { + vnr_ai_difficulty = 0 + } + set_variable = { + vnr_ai_production = 0 } - set_variable = { vnr_ai_difficulty = 0 } - set_variable = { vnr_ai_production = 0 } update_ai_combat_bonus = yes update_ai_production_bonus = yes } else = { - set_variable = { vnr_ai_difficulty = 1 } - set_variable = { vnr_ai_production = 1 } + set_variable = { + vnr_ai_difficulty = 1 + } + set_variable = { + vnr_ai_production = 1 + } update_ai_combat_bonus = yes update_ai_production_bonus = yes } } +} + +country_event = { + id = az_vnr_patch.2 + hidden = yes + is_triggered_only = yes + immediate = { + ROOT = { + country_event = az_vnr_patch.201 + country_event = { + id = az_vnr_patch.201 + days = 365 + } + country_event = { + id = az_vnr_patch.201 + days = 730 + } + country_event = { + id = az_vnr_patch.201 + days = 1095 + } + country_event = { + id = az_vnr_patch.201 + days = 1460 + } + country_event = { + id = az_vnr_patch.201 + days = 1825 + } + country_event = { + id = az_vnr_patch.202 + days = 2190 + } + country_event = { + id = az_vnr_patch.202 + days = 2555 + } + country_event = { + id = az_vnr_patch.202 + days = 2920 + } + country_event = { + id = az_vnr_patch.202 + days = 3285 + } + country_event = { + id = az_vnr_patch.202 + days = 3650 + } + country_event = { + id = az_vnr_patch.202 + days = 4015 + } + country_event = { + id = az_vnr_patch.202 + days = 4380 + } + country_event = { + id = az_vnr_patch.202 + days = 4745 + } + country_event = { + id = az_vnr_patch.201 + days = 5110 + } + country_event = { + id = az_vnr_patch.201 + days = 5475 + } + country_event = { + id = az_vnr_patch.201 + days = 5840 + } + country_event = { + id = az_vnr_patch.201 + days = 6205 + } + country_event = { + id = az_vnr_patch.201 + days = 6570 + } + country_event = { + id = az_vnr_patch.201 + days = 6935 + } + country_event = { + id = az_vnr_patch.201 + days = 7300 + } + country_event = { + id = az_vnr_patch.201 + days = 7665 + } + country_event = { + id = az_vnr_patch.201 + days = 8030 + } + country_event = { + id = az_vnr_patch.201 + days = 8395 + } + country_event = { + id = az_vnr_patch.201 + days = 8760 + } + country_event = { + id = az_vnr_patch.201 + days = 9125 + } + country_event = { + id = az_vnr_patch.201 + days = 9490 + } + country_event = { + id = az_vnr_patch.201 + days = 9855 + } + country_event = { + id = az_vnr_patch.201 + days = 10220 + } + country_event = { + id = az_vnr_patch.201 + days = 10585 + } + country_event = { + id = az_vnr_patch.201 + days = 10950 + } + country_event = { + id = az_vnr_patch.201 + days = 11315 + } + country_event = { + id = az_vnr_patch.201 + days = 11680 + } + country_event = { + id = az_vnr_patch.201 + days = 12045 + } + country_event = { + id = az_vnr_patch.201 + days = 12410 + } + } + } +} + +country_event = { + id = az_vnr_patch.201 + hidden = yes + is_triggered_only = yes + immediate = { + update_ai_combat_bonus = yes + update_ai_production_bonus = yes + if = { + limit = { + has_global_flag = modoption_fengkuangai_on + AND = { + is_ai = yes + is_major = yes + } + } + add_offsite_building = { + type = dockyard + level = 10 + } + } + else_if = { + limit = { + has_global_flag = modoption_fengkuangai_on + AND = { + is_ai = yes + is_major = no + is_subject = no + } + } + add_offsite_building = { + type = dockyard + level = 2 + } + } + else_if = { + limit = { + has_global_flag = modoption_fengkuangai_on + AND = { + is_ai = yes + is_major = no + is_subject = yes + OVERLORD = { + is_ai = yes + } + } + } + add_offsite_building = { + type = dockyard + level = 2 + } + } + } +} +country_event = { + id = az_vnr_patch.202 + hidden = yes + is_triggered_only = yes + immediate = { + update_ai_combat_bonus = yes + update_ai_production_bonus = yes + if = { + limit = { + has_global_flag = modoption_fengkuangai_on + AND = { + is_ai = yes + is_major = yes + } + } + add_offsite_building = { + type = dockyard + level = 25 + } + } + else_if = { + limit = { + has_global_flag = modoption_fengkuangai_on + AND = { + is_ai = yes + is_major = no + is_subject = no + } + } + add_offsite_building = { + type = dockyard + level = 10 + } + } + else_if = { + limit = { + has_global_flag = modoption_fengkuangai_on + AND = { + is_ai = yes + is_major = no + is_subject = yes + OVERLORD = { + is_ai = yes + } + } + } + add_offsite_building = { + type = dockyard + level = 10 + } + } + } } \ No newline at end of file diff --git a/src/localisation/simp_chinese/az_vnr_l_simp_chinese.yml b/src/localisation/simp_chinese/az_vnr_l_simp_chinese.yml index 97a9d3e..3391da9 100755 --- a/src/localisation/simp_chinese/az_vnr_l_simp_chinese.yml +++ b/src/localisation/simp_chinese/az_vnr_l_simp_chinese.yml @@ -1,5 +1,6 @@ l_simp_chinese: - az_vnr_extra: "疯狂AI数值平衡" + az_vnr_extra: "疯狂AI-VNR数值平衡" + az_vnr_extra_desc: "请注意:AI会获得额外船厂。" NAME_THEME_RIVERS_2: "Az河流" NAME_THEME_FISH_2: "Az鱼类" NAME_THEME_ANIMALS_2: "Az动物"