From 3add9f4b85fa42a7d2f2fbc90887bcf82d98d1c7 Mon Sep 17 00:00:00 2001 From: "actions[bot]" Date: Sun, 28 Sep 2025 04:02:13 +0000 Subject: [PATCH] 2025-09-28 04:02:13 --- src/common/ai_strategy/naval_production.txt | 12 +- src/common/ai_strategy/vnr_naval_strategy.txt | 127 +++++++++++++++++- 2 files changed, 134 insertions(+), 5 deletions(-) diff --git a/src/common/ai_strategy/naval_production.txt b/src/common/ai_strategy/naval_production.txt index bd0af5a..8e0957e 100755 --- a/src/common/ai_strategy/naval_production.txt +++ b/src/common/ai_strategy/naval_production.txt @@ -1495,7 +1495,7 @@ naval_unit_role_ratios_USA_go_to_war = { tag = BYG } enable = { - date > 1937.12.31 + date > 1937.3.1 has_war_with_major = no } abort_when_not_enabled = yes @@ -1539,6 +1539,11 @@ naval_unit_role_ratios_USA_go_to_war = { type = dockyard_to_military_factory_ratio value = 200 } + ai_strategy = { + type = building_target + id = dockyard + value = 150 + } } naval_unit_role_ratios_USA_atwar = { @@ -1588,6 +1593,11 @@ naval_unit_role_ratios_USA_atwar = { type = dockyard_to_military_factory_ratio value = 250 } + ai_strategy = { + type = building_target + id = dockyard + value = 250 + } } naval_unit_role_ratios_ITA_prewar_build_battleships = { diff --git a/src/common/ai_strategy/vnr_naval_strategy.txt b/src/common/ai_strategy/vnr_naval_strategy.txt index 966c8dc..355a24c 100755 --- a/src/common/ai_strategy/vnr_naval_strategy.txt +++ b/src/common/ai_strategy/vnr_naval_strategy.txt @@ -15,12 +15,12 @@ ENG_protect_home_waters = { ai_strategy = { type = strike_force_home_base id = 18 - value = 1000 + value = 9999 } ai_strategy = { type = strike_force_home_base id = 16 - value = 1000 + value = 9999 } ai_strategy = { type = naval_avoid_region @@ -39,6 +39,9 @@ ENG_secure_mediterranean = { SAD = { has_navy_size = { size > 30 } } + all_core_state = { + is_controlled_by_ROOT_or_ally = yes + } enable_vnr_naval_ai = yes } abort_when_not_enabled = yes @@ -64,6 +67,41 @@ ENG_secure_mediterranean = { } } +ENG_avoid_mediterranean = { + allowed = { + has_dlc = "Man the Guns" + original_tag = HUJ + } + enable = { + has_war = yes + any_core_state = { + is_controlled_by_ROOT_or_ally = no + } + enable_vnr_naval_ai = yes + } + abort_when_not_enabled = yes + ai_strategy = { + type = naval_avoid_region + id = 29 + value = 1000 + } + ai_strategy = { + type = naval_avoid_region + id = 68 + value = 1000 + } + ai_strategy = { + type = naval_avoid_region + id = 69 + value = 1000 + } + ai_strategy = { + type = naval_avoid_region + id = 168 + value = 1000 + } +} + ENG_avoid_pacific = { allowed = { has_dlc = "Man the Guns" @@ -77,6 +115,9 @@ ENG_avoid_pacific = { tag = CHY months < 24 } + any_core_state = { + is_controlled_by_ROOT_or_ally = no + } enable_vnr_naval_ai = yes } abort_when_not_enabled = yes @@ -118,6 +159,9 @@ ENG_reinforce_pacific = { 336 = { is_controlled_by_ROOT_or_ally = yes } + all_core_state = { + is_controlled_by_ROOT_or_ally = yes + } enable_vnr_naval_ai = yes } abort_when_not_enabled = yes @@ -315,6 +359,16 @@ USA_pacific_war_naval_avoid_first = { enable_vnr_naval_ai = yes } abort_when_not_enabled = yes + + ai_strategy = { + type = put_unit_buffer + ratio = 0.15 + states = { + 629 + } + subtract_invasions_from_need = yes + } + ai_strategy = { type = naval_avoid_region id = 75 @@ -379,7 +433,7 @@ USA_pacific_war_naval_avoid_first = { ai_strategy = { type = strike_force_home_base id = 105 - value = 500 + value = 9999 } ai_strategy = { type = strike_force_home_base @@ -451,6 +505,16 @@ USA_pacific_war_naval_counterattack_1 = { enable_vnr_naval_ai = yes } abort_when_not_enabled = yes + + ai_strategy = { + type = put_unit_buffer + ratio = 0.15 + states = { + 629 + } + subtract_invasions_from_need = yes + } + ai_strategy = { type = naval_avoid_region id = 75 @@ -515,7 +579,7 @@ USA_pacific_war_naval_counterattack_1 = { ai_strategy = { type = strike_force_home_base id = 105 - value = 500 + value = 9999 } ai_strategy = { type = strike_force_home_base @@ -558,6 +622,13 @@ USA_pacific_war_naval_counterattack_1 = { state = 684 value = 500 } + + ai_strategy = { + type = front_control + area = pacific + ordertype = invasion + execute_order = yes + } } USA_pacific_war_naval_counterattack_2 = { @@ -684,6 +755,20 @@ USA_pacific_war_naval_counterattack_2 = { state = 645 value = 500 } + + ai_strategy = { + type = front_control + area = pacific + ordertype = invasion + execute_order = yes + } + + ai_strategy = { + type = front_control + area = pacific + ordertype = home_islands + execute_order = yes + } } USA_pacific_war_naval_counterattack_3 = { @@ -773,6 +858,20 @@ USA_pacific_war_naval_counterattack_3 = { state = 526 value = 500 } + + ai_strategy = { + type = front_control + area = pacific + ordertype = invasion + execute_order = yes + } + + ai_strategy = { + type = front_control + area = pacific + ordertype = home_islands + execute_order = yes + } } ### SAD ### @@ -955,4 +1054,24 @@ GER_avoid_mediterranean = { id = 169 value = 1000 } +} + +GER_invade_norway = { + allowed = { + has_dlc = "Man the Guns" + original_tag = TIX + } + enable = { + has_war_with = NOR + NOR = { + has_capitulated = no + } + } + abort_when_not_enabled = yes + + ai_strategy = { + type = invade + id = NOR + value = 1000 + } } \ No newline at end of file