1223 lines
18 KiB
Plaintext
Executable File
1223 lines
18 KiB
Plaintext
Executable File
# befriend
|
|
# conquer
|
|
# antagonize
|
|
# build_ship
|
|
# build_army
|
|
# unit_ratio
|
|
# build_building
|
|
# research_tech
|
|
# garrison
|
|
# protect
|
|
# influence
|
|
|
|
CHY_unit_production_volunteers = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
always = yes
|
|
}
|
|
abort = {
|
|
always = no
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = send_volunteers_desire #志愿军
|
|
id = "CSA"
|
|
value = 200
|
|
}
|
|
|
|
}
|
|
|
|
CHY_unit_production_air_at_week = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
num_of_military_factories < 150
|
|
}
|
|
abort = {
|
|
OR = {
|
|
num_of_military_factories > 150
|
|
date > 1940.1.1
|
|
NOT = { country_exists = DOH }
|
|
}
|
|
}
|
|
|
|
#Air unit factors
|
|
ai_strategy = {
|
|
type = unit_ratio
|
|
id = fighter
|
|
value = -10000
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = unit_ratio
|
|
id = cas
|
|
value = 0
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = unit_ratio
|
|
id = tactical_bomber
|
|
value = -10000
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = unit_ratio
|
|
id = strategic_bomber
|
|
value = -10000
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = unit_ratio
|
|
id = naval_bomber
|
|
value = -10000
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = equipment_production_factor
|
|
id = fighter
|
|
value = -10000
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = equipment_production_factor
|
|
id = cas
|
|
value = -10000
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = equipment_production_factor
|
|
id = tactical_bomber
|
|
value = -10000
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = equipment_production_factor
|
|
id = naval_bomber
|
|
value = -10000
|
|
}
|
|
|
|
}
|
|
|
|
CHY_unit_production_air_at_strong = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
OR = {
|
|
num_of_military_factories > 150
|
|
date > 1940.1.1
|
|
NOT = { country_exists = DOH }
|
|
}
|
|
}
|
|
abort_when_not_enabled = yes
|
|
|
|
#Air unit factors
|
|
ai_strategy = {
|
|
type = unit_ratio
|
|
id = fighter
|
|
value = 150
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = unit_ratio
|
|
id = cas
|
|
value = 5
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = unit_ratio
|
|
id = tactical_bomber
|
|
value = 0
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = unit_ratio
|
|
id = strategic_bomber
|
|
value = 1
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = unit_ratio
|
|
id = naval_bomber
|
|
value = 1
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = equipment_production_factor
|
|
id = fighter
|
|
value = 30
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = equipment_production_factor
|
|
id = cv_naval_bomber
|
|
value = 1
|
|
}
|
|
|
|
}
|
|
|
|
CHY_unit_production_army_before_1940 = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
num_of_military_factories < 150
|
|
NOT = {
|
|
has_idea = TY_dingzhenai
|
|
}
|
|
}
|
|
abort = {
|
|
OR = {
|
|
num_of_military_factories > 150
|
|
date > 1940.1.1
|
|
NOT = { country_exists = DOH }
|
|
has_idea = TY_dingzhenai
|
|
}
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = role_ratio
|
|
id = garrison
|
|
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 = cavalry
|
|
value = -100
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = role_ratio
|
|
id = armor
|
|
value = 0
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = role_ratio
|
|
id = motorized
|
|
value = 0
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = role_ratio
|
|
id = infantry
|
|
value = 1000
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = equipment_production_factor
|
|
id = motorized
|
|
value = 0
|
|
}
|
|
|
|
|
|
ai_strategy = {
|
|
type = send_volunteers_desire #志愿军
|
|
id = "CSA"
|
|
value = 200
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = ignore_army_incompetence
|
|
value = 10000
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = force_build_armies
|
|
value = 100
|
|
}
|
|
}
|
|
|
|
CHY_unit_production_army_after_1940 = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
OR = {
|
|
num_of_military_factories > 150
|
|
date > 1940.1.1
|
|
NOT = { country_exists = DOH }
|
|
NOT = {
|
|
has_idea = TY_dingzhenai
|
|
}
|
|
}
|
|
}
|
|
abort_when_not_enabled = yes
|
|
|
|
ai_strategy = {
|
|
type = role_ratio
|
|
id = garrison
|
|
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 = cavalry
|
|
value = -100
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = role_ratio #模板倾向
|
|
id = infantry
|
|
value = 200
|
|
}
|
|
ai_strategy = {
|
|
type = template_prio #修改模板倾向
|
|
id = infantry
|
|
value = 50
|
|
}
|
|
ai_strategy = {
|
|
type = role_ratio #模板倾向
|
|
id = armor
|
|
value = 2000
|
|
}
|
|
ai_strategy = {
|
|
type = template_prio #修改模板倾向
|
|
id = armor
|
|
value = 1000
|
|
}
|
|
ai_strategy = {
|
|
type = equipment_production_min_factories
|
|
id = train
|
|
value = 1
|
|
}
|
|
ai_strategy = {
|
|
type = ignore_army_incompetence
|
|
value = 10000
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = force_build_armies
|
|
value = 100
|
|
}
|
|
}
|
|
|
|
CHY_naval_role_ratios_historical = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
has_dlc = "Man the Guns"
|
|
}
|
|
|
|
abort_when_not_enabled = yes
|
|
|
|
ai_strategy = {
|
|
type = role_ratio
|
|
id = naval_capital_bb
|
|
value = 5
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = role_ratio
|
|
id = naval_capital_shbb
|
|
value = 5
|
|
}
|
|
|
|
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 = role_ratio
|
|
id = naval_cruiser_heavy
|
|
value = -15
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = unit_ratio
|
|
id = cv_naval_bomber
|
|
value = 1
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = unit_ratio
|
|
id = cv_fighter
|
|
value = 1
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = equipment_production_factor
|
|
id = cv_fighter
|
|
value = 1
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = unit_ratio
|
|
id = convoy
|
|
value = 1
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = equipment_production_min_factories
|
|
id = convoy
|
|
value = 1
|
|
}
|
|
}
|
|
|
|
CHY_template_design = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
always = yes
|
|
}
|
|
abort = {
|
|
always = no
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = template_prio
|
|
id = infantry
|
|
value = 10
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = template_prio
|
|
id = artillery
|
|
value = 10
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = template_prio
|
|
id = motorized
|
|
value = -100
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = template_prio
|
|
id = cavalry
|
|
value = 1
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = template_prio
|
|
id = light_armor
|
|
value = -10
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = template_prio
|
|
id = medium_armor
|
|
value = 110
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = template_prio
|
|
id = modern_armor
|
|
value = 0
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = template_prio
|
|
id = heavy_armor
|
|
value = -100
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = template_prio
|
|
id = paratroopers
|
|
value = -10
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = template_prio
|
|
id = mechanized
|
|
value = 0
|
|
}
|
|
}
|
|
|
|
southern_expansion = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
has_completed_focus = CHY_xijinanyangziyuanqu
|
|
OR = {
|
|
country_exists = HOL
|
|
country_exists = HUJ
|
|
}
|
|
}
|
|
abort = {
|
|
NOT = {
|
|
country_exists = HOL
|
|
country_exists = HUJ
|
|
}
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = antagonize
|
|
id = "HOL"
|
|
value = 200
|
|
}
|
|
ai_strategy = {
|
|
type = antagonize
|
|
id = "HUJ"
|
|
value = 100
|
|
}
|
|
}
|
|
|
|
northern_expansion = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
tag = CHY
|
|
has_completed_focus = CHY_chuaixiongpigu
|
|
country_exists = BFL
|
|
}
|
|
abort = {
|
|
NOT = {
|
|
country_exists = BFL
|
|
}
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = antagonize
|
|
id = "BFL"
|
|
value = 200
|
|
}
|
|
}
|
|
|
|
CHY_taipinyangzhanzhen = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
OR = {
|
|
has_war_with = BYG
|
|
has_war_with = YUW
|
|
has_war_with = HUJ
|
|
}
|
|
}
|
|
abort_when_not_enabled = yes
|
|
|
|
ai_strategy = {
|
|
type = invade
|
|
id = "INS"
|
|
value = 200
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = invade
|
|
id = "AST"
|
|
value = 200
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = invade
|
|
id = "NZL"
|
|
value = 200
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = invade
|
|
id = "HOL"
|
|
value = 200
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = invade
|
|
id = "HUJ"
|
|
value = 200
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = invade
|
|
id = "BYG"
|
|
value = 200
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = invade
|
|
id = "YUW"
|
|
value = 200
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = invade
|
|
id = "PHI"
|
|
value = 200
|
|
}
|
|
ai_strategy = {
|
|
type = invade
|
|
id = "RAJ"
|
|
value = 200
|
|
}
|
|
ai_strategy = {
|
|
type = front_unit_request
|
|
tag = RAJ
|
|
value = 100
|
|
}
|
|
ai_strategy = {
|
|
type = front_unit_request
|
|
tag = INS
|
|
value = 100
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = front_unit_request
|
|
tag = AST
|
|
value = 100
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = front_unit_request
|
|
tag = NZL
|
|
value = 100
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = front_unit_request
|
|
tag = HOL
|
|
value = 100
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = front_unit_request
|
|
tag = HUJ
|
|
value = 100
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = front_unit_request
|
|
tag = BYG
|
|
value = 100
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = front_unit_request
|
|
tag = YUW
|
|
value = 100
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = front_unit_request
|
|
tag = PHI
|
|
value = 100
|
|
}
|
|
}
|
|
|
|
CHY_ignore_north = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
country_exists = BFL
|
|
date < 1942.1.1
|
|
NOT = { has_war_with = BFL }
|
|
}
|
|
abort_when_not_enabled = yes
|
|
|
|
ai_strategy = {
|
|
type = ignore
|
|
id = "BFL"
|
|
value = 200
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = front_unit_request
|
|
tag = BFL
|
|
value = -200
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = ignore
|
|
id = "MON"
|
|
value = 200
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = front_unit_request
|
|
tag = MON
|
|
value = -200
|
|
}
|
|
}
|
|
|
|
CHY_duikangbeilian = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
has_war_with = BFL
|
|
}
|
|
abort_when_not_enabled = yes
|
|
|
|
ai_strategy = {
|
|
type = invade
|
|
id = "BFL"
|
|
value = 200
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = front_unit_request
|
|
tag = BFL
|
|
value = 100
|
|
}
|
|
}
|
|
chinese_war = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
tag = CHY
|
|
country_exists = DOH
|
|
OR = {
|
|
has_completed_focus = CHY_zhunbeijingong
|
|
has_completed_focus = CHY_houqinzhunbei
|
|
}
|
|
|
|
}
|
|
abort = {
|
|
OR = {
|
|
NOT = {
|
|
country_exists = DOH
|
|
}
|
|
has_completed_focus = CHY_donghuangyouhao
|
|
}
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = antagonize
|
|
id = "DOH"
|
|
value = 200
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = invade #入侵
|
|
id = "DOH"
|
|
value = 200
|
|
}
|
|
ai_strategy = {
|
|
type = conquer #征服
|
|
id = "DOH"
|
|
value = 200
|
|
}
|
|
ai_strategy = {
|
|
type = front_unit_request #前线部队
|
|
tag = DOH
|
|
value = 200 # lets put more units, should be safe
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = prepare_for_war
|
|
id = "DOH"
|
|
value = 200
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = ignore
|
|
id = PHI
|
|
value = 200
|
|
}
|
|
|
|
}
|
|
|
|
strike_DOH = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
has_war_with = DOH
|
|
date < 1938.2.1
|
|
}
|
|
abort = {
|
|
date > 1938.2.1
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = front_control
|
|
|
|
tag = DOH
|
|
|
|
ratio = 0.25
|
|
|
|
priority = 100
|
|
ordertype = front
|
|
execution_type = rush
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = front_control
|
|
|
|
tag = DH1
|
|
|
|
ratio = 0.1
|
|
|
|
priority = 100
|
|
ordertype = front
|
|
execution_type = rush
|
|
}
|
|
}
|
|
|
|
strike_usa = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
country_exists = BYG
|
|
has_completed_focus = CHY_xiangtaipingyangjingjun
|
|
}
|
|
abort = {
|
|
NOT = {
|
|
country_exists = BYG
|
|
}
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = antagonize
|
|
id = "BYG"
|
|
value = 200
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = antagonize
|
|
id = "PHI"
|
|
value = 200
|
|
}
|
|
}
|
|
|
|
# "I can run wild for six months… after that, I have no expectation of success"
|
|
CHY_hush_yamamoto_its_gonna_be_ok = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
has_completed_focus = CHY_nanjinlun
|
|
country_exists = BYG
|
|
NOT = { has_war_with = BYG }
|
|
}
|
|
|
|
abort = {
|
|
OR = {
|
|
has_war_with = BYG
|
|
NOT = {
|
|
country_exists = BYG
|
|
}
|
|
}
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = consider_weak
|
|
id = "BYG"
|
|
value = 75
|
|
}
|
|
}
|
|
|
|
CHY_conserve_fuel_for_usa_fight = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
date < 1941.1.1
|
|
NOT = { has_war_with = BYG }
|
|
}
|
|
|
|
abort = {
|
|
OR = {
|
|
date > 1941.1.1
|
|
has_war_with = BYG
|
|
}
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = naval_mission_threshold
|
|
id = "MISSION_CONVOY_ESCORT"
|
|
value = 150 #puts our threshold at 250
|
|
}
|
|
}
|
|
|
|
CHY_TIX_ally = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
country_exists = TIX
|
|
}
|
|
abort = {
|
|
TIX = {
|
|
NOT = {
|
|
has_government = fascism
|
|
}
|
|
}
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = alliance
|
|
id = "TIX"
|
|
value = 50
|
|
}
|
|
}
|
|
|
|
SAD_ally = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
country_exists = SAD
|
|
}
|
|
abort = {
|
|
SAD = {
|
|
NOT = {
|
|
has_government = fascism
|
|
}
|
|
}
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = befriend
|
|
id = "SAD"
|
|
value = 10
|
|
}
|
|
}
|
|
|
|
CHY_doesnt_care_about_relation = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
OR = {
|
|
has_war = yes
|
|
date < 1940.1.1
|
|
}
|
|
}
|
|
abort = {
|
|
has_war = no
|
|
date > 1940.1.1
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = pp_spend_priority
|
|
id = relation
|
|
value = -99
|
|
}
|
|
}
|
|
|
|
CHY_USA_we_love_islands = {
|
|
allowed = {
|
|
OR = {
|
|
original_tag = BYG
|
|
original_tag = CHY
|
|
}
|
|
}
|
|
enable = {
|
|
OR = {
|
|
CHY = { has_war_with = BYG }
|
|
DOH = { is_subject_of = CHY }
|
|
}
|
|
}
|
|
|
|
abort_when_not_enabled = yes
|
|
|
|
ai_strategy = {
|
|
type = area_priority
|
|
id = pacific
|
|
value = 80
|
|
}
|
|
}
|
|
|
|
CHY_prio_military_even_at_peace = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
date < 1939.1.1
|
|
}
|
|
abort = {
|
|
OR = {
|
|
date > 1939.1.1
|
|
NOT = { country_exists = DOH }
|
|
DOH = { is_subject = yes }
|
|
is_in_faction_with = DOH
|
|
has_game_rule = {
|
|
rule = CHY_ai_behavior
|
|
option = CHY_changmen_line_focus
|
|
}
|
|
is_historical_focus_on = no
|
|
}
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = building_target
|
|
id = arms_factory
|
|
value = 10000
|
|
}
|
|
|
|
}
|
|
|
|
CHY_prio_military_no_doh = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
date < 1940.1.1
|
|
OR = {
|
|
has_game_rule = {
|
|
rule = CHY_ai_behavior
|
|
option = CHY_changmen_line_focus
|
|
}
|
|
NOT = { country_exists = DOH }
|
|
DOH = { is_subject = yes }
|
|
is_in_faction_with = DOH
|
|
}
|
|
|
|
}
|
|
abort_when_not_enabled = yes
|
|
|
|
|
|
ai_strategy = {
|
|
type = building_target
|
|
id = industrial_complex
|
|
value = 10000
|
|
}
|
|
|
|
}
|
|
|
|
CHY_place_for_build_factory = {
|
|
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
always = yes
|
|
}
|
|
abort = {
|
|
always = no
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = factory_build_score_factor
|
|
target = 282
|
|
value = 500
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = factory_build_score_factor
|
|
target = 532
|
|
value = 500
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = factory_build_score_factor
|
|
target = 531
|
|
value = 500
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = factory_build_score_factor
|
|
target = 529
|
|
value = 500
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = factory_build_score_factor
|
|
target = 528
|
|
value = 500
|
|
}
|
|
ai_strategy = {
|
|
type = factory_build_score_factor
|
|
target = 530
|
|
value = 400
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = factory_build_score_factor
|
|
target = 535
|
|
value = 400
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = factory_build_score_factor
|
|
target = 534
|
|
value = 400
|
|
}
|
|
ai_strategy = {
|
|
type = factory_build_score_factor
|
|
target = 533
|
|
value = 400
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = factory_build_score_factor
|
|
target = 536
|
|
value = 400
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = factory_build_score_factor
|
|
target = 537
|
|
value = 400
|
|
}
|
|
ai_strategy = {
|
|
type = factory_build_score_factor
|
|
target = 645
|
|
value = 400
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = factory_build_score_factor
|
|
target = 526
|
|
value = 400
|
|
}
|
|
|
|
}
|
|
|
|
CHY_protect_asia_ore = {
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
enable = {
|
|
has_war_with = BYG
|
|
282 = { is_fully_controlled_by = ROOT }
|
|
}
|
|
abort_when_not_enabled = yes
|
|
|
|
ai_strategy = {
|
|
type = put_unit_buffers
|
|
|
|
# ratio of total armeis in country to be buffered
|
|
ratio = 0.15
|
|
|
|
# you can specify an order id. ratio of same orders ids will be share same ratio
|
|
order_id = 1
|
|
|
|
# states to put garrison orders (if no state is friendly, strat is invalid)
|
|
states = {
|
|
282
|
|
528
|
|
529
|
|
530
|
|
531
|
|
532
|
|
533
|
|
534
|
|
536
|
|
645
|
|
526
|
|
524
|
|
648
|
|
646
|
|
}
|
|
|
|
# ai areas that the orders will use these buffers in
|
|
area = asia
|
|
}
|
|
|
|
}
|
|
|
|
CHY_hold_up_in_china = { #We got this far but there are bigger targets to worry about for a while
|
|
allowed = {
|
|
original_tag = CHY
|
|
}
|
|
|
|
enable = {
|
|
date > 1937.10.1
|
|
date < 1944.1.1
|
|
is_historical_focus_on = yes
|
|
DOH = { has_capitulated = no }
|
|
DOH = { is_ai = yes }
|
|
613 = { # Nanjing
|
|
is_controlled_by = CHY
|
|
}
|
|
|
|
}
|
|
abort_when_not_enabled = yes
|
|
|
|
ai_strategy = {
|
|
type = front_control
|
|
|
|
tag = DOH
|
|
|
|
ratio = 0.1
|
|
|
|
priority = 100
|
|
ordertype = front
|
|
execution_type = careful
|
|
}
|
|
|
|
ai_strategy = {
|
|
type = front_control
|
|
|
|
tag = DH1
|
|
|
|
ratio = 0.1
|
|
|
|
priority = 100
|
|
ordertype = front
|
|
execution_type = careful
|
|
}
|
|
|
|
}
|