2024-07-21 20:01:10
All checks were successful
sync / build (push) Successful in 53s

This commit is contained in:
actions[bot]
2024-07-21 20:01:10 +08:00
parent ec22c04e70
commit 21cb4038a2
18 changed files with 870 additions and 29 deletions

432
src/common/ai_strategy/DH1.txt Executable file
View File

@@ -0,0 +1,432 @@
DH1_zhongnanbandao = {
allowed = {
original_tag = DH1
}
enable = {
has_completed_focus = DH1_zhongnanbandao
}
abort = {
DH1 = {
controls_state = VIN.core_states
controls_state = BRM.core_states
controls_state = LAO.core_states
controls_state = SIA.core_states
controls_state = MAL.core_states
}
}
ai_strategy = {
type = front_unit_request
tag = "VIN"
value = 200
}
ai_strategy = {
type = front_unit_request
tag = "HUJ"
value = 200
}
ai_strategy = {
type = front_unit_request
tag = "YUW"
value = 200
}
ai_strategy = {
type = front_unit_request
tag = "BRM"
value = 200
}
ai_strategy = {
type = front_unit_request
tag = "LAO"
value = 200
}
ai_strategy = {
type = front_unit_request
tag = "SIA"
value = 200
}
ai_strategy = {
type = front_unit_request
tag = "MAL"
value = 200
}
ai_strategy = {
type = front_unit_request
tag = "POR"
value = 200
}
ai_strategy = {
type = ignore
id = "DOH"
value = 1000
}
}
DH1_nanyacidalu = {
allowed = {
original_tag = DH1
}
enable = {
has_completed_focus = DH1_nanyacidalu
}
abort = {
DH1 = {
controls_state = RAJ.core_states
controls_state = BAN.core_states
controls_state = PAK.core_states
}
}
ai_strategy = {
type = front_unit_request
tag = "RAJ"
value = 200
}
ai_strategy = {
type = front_unit_request
tag = "POR"
value = 200
}
ai_strategy = {
type = front_unit_request
tag = "HUJ"
value = 200
}
ai_strategy = {
type = front_unit_request
tag = "BAN"
value = 200
}
ai_strategy = {
type = front_unit_request
tag = "PAK"
value = 200
}
ai_strategy = {
type = ignore
id = "DOH"
value = 1000
}
}
DH1_xinanshibian = {
allowed = {
original_tag = DH1
}
enable = {
has_completed_focus = DH1_xinanshibian
}
abort = {
has_country_flag = DH1_xinanshibian_success
}
ai_strategy = {
type = front_unit_request
tag = "DOH"
value = 200
}
}
DH1_you_should_be_prepared_for_war = {
allowed = {
original_tag = DH1
}
enable = {
always = yes
}
abort = {
always = no
}
ai_strategy = {
type = force_build_armies
value = 1000
}
}
DH1_unit_production_at_week = {
allowed = {
original_tag = DH1
}
enable = {
num_of_military_factories < 39
NOT = {
has_idea = TY_dingzhenai
}
}
abort = {
num_of_military_factories > 39
has_idea = TY_dingzhenai
}
ai_strategy = {
type = role_ratio
id = garrison
value = -100
}
ai_strategy = {
type = role_ratio
id = cavalry
value = -100
}
ai_strategy = {
type = role_ratio
id = paratroopers
value = 0
}
ai_strategy = {
type = role_ratio
id = mountaineers
value = 0
}
ai_strategy = {
type = role_ratio
id = marines
value = 0
}
ai_strategy = {
type = role_ratio
id = armor
value = 0
}
ai_strategy = {
type = role_ratio
id = infantry
value = 1000
}
ai_strategy = {
type = equipment_production_factor
id = infantry
value = 60
}
ai_strategy = {
type = equipment_production_factor
id = artillery
value = 10
}
ai_strategy = {
type = equipment_production_factor
id = armor
value = 0
}
ai_strategy = {
type = ignore_army_incompetence
value = 10000
}
ai_strategy = {
type = force_build_armies
value = 100
}
}
DH1_unit_production_at_strong = {
allowed = {
original_tag = DH1
}
enable = {
num_of_military_factories > 40
NOT = {
has_idea = TY_dingzhenai
}
}
abort = {
num_of_military_factories < 40
has_idea = TY_dingzhenai
}
ai_strategy = {
type = role_ratio
id = garrison
value = -100
}
ai_strategy = {
type = role_ratio
id = cavalry
value = -100
}
ai_strategy = {
type = role_ratio
id = paratroopers
value = 0
}
ai_strategy = {
type = role_ratio
id = mountaineers
value = 0
}
ai_strategy = {
type = role_ratio
id = marines
value = 0
}
ai_strategy = {
type = equipment_production_factor
id = infantry
value = 20
}
ai_strategy = {
type = role_ratio #模板倾向
id = infantry
value = 100
}
ai_strategy = {
type = template_prio #修改模板倾向
id = infantry
value = 100
}
ai_strategy = {
type = role_ratio #模板倾向
id = armor
value = 900
}
ai_strategy = {
type = template_prio #修改模板倾向
id = armor
value = 900
}
ai_strategy = {
type = equipment_production_min_factories
id = train
value = 1
}
}
DH1_naval_role_ratios_historical_strong = {
allowed = {
original_tag = DH1
}
enable = {
has_dlc = "Man the Guns"
num_of_naval_factories > 4
}
abort_when_not_enabled = yes
ai_strategy = {
type = role_ratio
id = naval_capital_bb
value = 10
}
ai_strategy = {
type = role_ratio
id = naval_capital_bc
value = -100
}
ai_strategy = {
type = role_ratio
id = naval_carrier
value = -10
}
ai_strategy = {
type = role_ratio
id = naval_submarine
value = -10
}
ai_strategy = {
type = role_ratio
id = naval_screen
value = 60
}
ai_strategy = {
type = role_ratio
id = naval_cruiser_light
value = 30
}
ai_strategy = {
type = role_ratio
id = naval_cruiser_heavy
value = -15
}
ai_strategy = {
type = unit_ratio
id = convoy
value = 1
}
ai_strategy = {
type = equipment_production_min_factories
id = convoy
value = 1
}
}
DH1_naval_role_ratios_historical_week = {
allowed = {
original_tag = DH1
}
enable = {
has_dlc = "Man the Guns"
num_of_naval_factories < 5
}
abort_when_not_enabled = yes
ai_strategy = {
type = role_ratio
id = naval_capital_bb
value = -100
}
ai_strategy = {
type = role_ratio
id = naval_capital_bc
value = -100
}
ai_strategy = {
type = role_ratio
id = naval_carrier
value = -10
}
ai_strategy = {
type = role_ratio
id = naval_submarine
value = -10
}
ai_strategy = {
type = role_ratio
id = naval_screen
value = 150
}
ai_strategy = {
type = role_ratio
id = naval_cruiser_light
value = 30
}
ai_strategy = {
type = role_ratio
id = naval_cruiser_heavy
value = -15
}
ai_strategy = {
type = unit_ratio
id = convoy
value = 1
}
ai_strategy = {
type = equipment_production_min_factories
id = convoy
value = 1
}
}

View File

@@ -627,7 +627,7 @@ characters={
portraits = {
army = {
large="gfx/leaders/DOH/JS9.png"
small="gfx/interface/ideas/idea_JS9.png"
small="gfx/interface/ideas/idea_js9.png"
}
}
corps_commander = {
@@ -670,7 +670,7 @@ characters={
portraits = {
army = {
large="gfx/leaders/DOH/NZ75.png"
small="gfx/interface/ideas/idea_NZ75.png"
small="gfx/interface/ideas/idea_nz75.png"
}
}
corps_commander = {
@@ -713,7 +713,7 @@ characters={
portraits = {
army = {
large="gfx/leaders/DOH/QBU88.png"
small="gfx/interface/ideas/idea_QBU88.png"
small="gfx/interface/ideas/idea_qbu88.png"
}
}
corps_commander = {

View File

@@ -128,6 +128,12 @@ DH1_yuanzheng_decision_category = {
}
add = 100
}
modifier = {
DH1 = {
has_idea = DH1_AI_zhongshijingong
}
add = 100
}
}
cost = 15
@@ -136,7 +142,7 @@ DH1_yuanzheng_decision_category = {
fire_only_once = no
days_remove = @border_incident_escalation_countdown
days_re_enable = 60
days_re_enable = 30
war_with_target_on_remove = yes

View File

@@ -1177,6 +1177,30 @@ ideas = {
navy_visibility = -0.1
}
}
DOH_hailufuhe_idea_4 = {
picture = generic_coastal_navy
allowed_civil_war = {
always = yes
}
modifier = {
air_escort_efficiency = 0.1
convoy_escort_efficiency = 0.1
convoy_retreat_speed = 0.2
navy_max_range_factor = 0.25
transport_capacity = -0.5
navy_org_factor = 0.20
navy_fuel_consumption_factor = -0.1
navy_visibility = -0.1
}
equipment_bonus = {
convoy = {
naval_speed = 0.20
surface_visibility = -0.25
lg_attack = 1
anti_air_attack = 1
}
}
}
# DOH_yyhj = {
# picture = eng_steady_as_she_goes
# allowed_civil_war = {

View File

@@ -57,32 +57,30 @@ az_DOH_railway_organization = {
trait = {
token = DOH_wuzhuangyunshuchuan_trait
name = DOH_wuzhuangyunshuchuan_trait
position = { x = 0 y = 0 }
position = { x = 0 y = 1 }
parent = {
traits = { DOH_yunshujiandui_trait }
}
icon = GFX_generic_mio_trait_icon_lg_attack
limit_to_equipment_type = {
convoy
}
equipment_bonus = {
naval_speed = 0.20
surface_visibility = -0.25
lg_attack = 1
anti_air_attack = 1
}
available = {
DOH = {
has_completed_focus = DOH_yunshujiandui
has_completed_focus = DOH_ninghaixiaxiyang
}
}
on_complete = {
DOH = {
swap_ideas = {
remove_idea = DOH_hailufuhe_idea_3
add_idea = DOH_hailufuhe_idea_4
}
}
}
}
trait = {
token = DOH_yunshujiandui_trait
name = DOH_yunshujiandui_trait
parent = {
traits = { DOH_wuzhuangyunshuchuan_trait }
}
icon = GFX_generic_mio_trait_icon_build_cost_ic
relative_position_id = DOH_wuzhuangyunshuchuan_trait
position = { x = 0 y = 1}
position = { x = 0 y = 0}
limit_to_equipment_type = {
convoy
}

View File

@@ -3827,6 +3827,9 @@ focus_tree = {
set_state_category = large_city
}
DOH_neibufenqi_jianqin_effect = yes
every_military_industrial_organization = {
add_mio_size = 3
}
hidden_effect = {
set_victory_points = {
province = 12055 # 徐州

View File

@@ -173,7 +173,7 @@ DOH_mofifier_effect = {
limit = {
has_country_flag = DOH_auto_conv_com_arm
check_variable = {
var:num_equipment@doh_civ_equipment_1 > 0
var:num_equipment@doh_civ_equipment_1 > 179
}
}
set_temp_variable = {
@@ -211,7 +211,7 @@ DOH_mofifier_effect = {
limit = {
has_country_flag = DOH_auto_conv_arm
check_variable = {
var:num_equipment@doh_civ_equipment_1 > 0
var:num_equipment@doh_civ_equipment_1 > 71
}
}
set_temp_variable = {
@@ -235,10 +235,6 @@ DOH_mofifier_effect = {
type = arms_factory
level = temp_var:az_doh_factroies_add
}
add_offsite_building = {
type = industrial_complex
level = temp_var:az_doh_factroies_add
}
add_timed_idea = {
idea = DOH_czdswgy
days = 10