# JAP_stock_up_on_trains_before_china = {
# 	allowed = {
# 		original_tag = JAP
# 	}

# 	enable = {
# 		has_war = no
# 	}
# 	abort_when_not_enabled = yes

# 	ai_strategy = {
# 		type = min_wanted_supply_trains
# 		value = 100
# 	}
# }

southern_expansion = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		#has_completed_focus = JAP_strike_south_doctrine
		has_completed_focus = JAP_strike_the_southern_road
		OR = {
			country_exists = HOL
			country_exists = ENG
			country_exists = BRM
			country_exists = RAJ
			country_exists = MAL
			country_exists = INS
		}
	}
	abort = {
		NOT = {
			country_exists = HOL
			country_exists = ENG
			country_exists = BRM
			country_exists = RAJ
			country_exists = MAL
			country_exists = INS 
		}
	}

	ai_strategy = {
		type = antagonize
		id = HOL
		value = 200
	}
	ai_strategy = {
		type = antagonize
		id = ENG
		value = 100
	}

	ai_strategy = {
		type = antagonize
		id = BRM
		value = 200
	}
	ai_strategy = {
		type = antagonize
		id = RAJ
		value = 100
	}
	ai_strategy = {
		type = antagonize
		id = MAL
		value = 200
	}
	ai_strategy = {
		type = antagonize
		id = INS
		value = 100
	}


}

northern_expansion = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		OR = {
			has_completed_focus = JAP_kantokuen
			has_completed_focus = JAP_prepare_for_war_with_the_soviet_union
		}
		country_exists = SOV
	}
	abort = {
		NOT = {
			country_exists = SOV
		}
	}

	ai_strategy = {
		type = antagonize
		id = SOV
		value = 200
	}
}

chinese_war = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		has_completed_focus = JAP_reinforce_the_beijing_garrison
		country_exists = CHI
	}
	abort = {
		NOT = {
			country_exists = CHI
		}
	}

	ai_strategy = {
		type = antagonize
		id = CHI
		value = 200
	}

	# ai_strategy = {
	#     type = front_unit_request
	#     tag = CHI
	#     value = 50
	# }

}

# chinese_war_dont_push_mas = {
# 	allowed = {
# 		original_tag = JAP
# 	}
# 	enable = {
# 		has_war_with = CHI
# 		OR = {
# 			has_war_with = XSM
# 			has_war_with = NXM
# 			has_war_with = GSM
# 		}
# 		country_exists = CHI
# 		CHI = {
# 			has_capitulated = no
# 		}
# 	}
# 	abort = {
# 		CHI = {
# 			OR = {
# 				is_ally_with = JAP
# 				exists = no
# 			}
# 		}
# 	}

# 	ai_strategy = {
# 	    type = front_unit_request
# 	    tag = XSM
# 	    value = -30
# 	}

# 	ai_strategy = {
# 	    type = front_unit_request
# 	    tag = NXM
# 	    value = -30
# 	}

# 	ai_strategy = {
# 	    type = front_unit_request
# 	    tag = GSM
# 	    value = -30
# 	}

# }

# Make sure Japan tries to take down SND aggressively 
# JAP_push_snd_hard_initially = {
# 	allowed = {
# 		original_tag = JAP
# 	}
# 	enable = {
# 		#is_historical_focus_on = yes
		
# 		has_war_with = SND
# 		date < 1939.1.1
# 	}

# 	abort_when_not_enabled = yes

# 	abort = {
# 		SND = {
# 			OR = {
# 				has_capitulated = yes
# 				exists = no
# 			}
# 		}
# 	}

# 	ai_strategy = {
# 		type = conquer
# 		id = SND
# 		value = 100
# 	}

# 	ai_strategy = {
# 		type = front_control

# 		tag = SND

# 		ratio = 0.2

# 		priority = 100
# 		ordertype = front
# 		execution_type = rush
# 		execute_order = yes
# 	}
# }

# Make sure Japan tries to take down HBC aggressively 
# JAP_push_hbc_hard_initially = {
# 	allowed = {
# 		original_tag = JAP
# 	}
# 	enable = {
# 		OR = {
# 			AND = {
# 				is_historical_focus_on = yes
# 				date > 1937.1.1
# 			}
# 			has_war_with = HBC
# 		}
# 		date < 1939.1.1
# 	}

# 	abort_when_not_enabled = yes

# 	abort = {
# 		1039 = {
# 			state_is_fully_controlled_by_ROOT_or_subject = yes
# 		}
# 		608 = {
# 			state_is_fully_controlled_by_ROOT_or_subject = yes
# 		}
# 	}

# 	ai_strategy = {
# 		type = conquer
# 		id = HBC
# 		value = 500
# 	}

# 	ai_strategy = {
# 		type = front_control
# 		state = 1039
# 		ratio = 0.3
# 		priority = 1000
# 		ordertype = front
# 		execution_type = rush
# 		execute_order = yes
# 	}
# 	ai_strategy = {
# 		type = front_control
# 		state = 608
# 		ratio = 0.3
# 		priority = 1000
# 		ordertype = front
# 		execution_type = rush
# 		execute_order = yes
# 	}
# }

# JAP_needs_some_supply_hubs = {
# 	allowed = {
# 		original_tag = JAP
# 	}
# 	enable = {
# 		has_war_with = CHI
# 		1039 = {
# 			state_is_fully_controlled_by_ROOT_or_subject = yes
# 		}
# 		608 = {
# 			state_is_fully_controlled_by_ROOT_or_subject = yes
# 		}
# 		614 = {
# 			state_is_fully_controlled_by_ROOT_or_subject = no
# 		}
# 		615 = {
# 			state_is_fully_controlled_by_ROOT_or_subject = no
# 		}
# 		date < 1939.1.1 #If we didn't manage this by now, it ain't happening
# 	}

# 	abort_when_not_enabled = yes

# 	ai_strategy = {
# 		type = front_unit_request
# 		state = 614
# 		value = 100
# 	}
# 	ai_strategy = {
# 		type = front_unit_request
# 		state = 615
# 		value = 100
# 	}
# }

# Make sure Japan tries to naval invade Shanghai 
# JAP_get_shanghaid_in_shanghai = {
# 	allowed = {
# 		original_tag = JAP
# 	}
# 	enable = {
# 		#is_historical_focus_on = yes
		
# 		has_war_with = CHI
# 		date < 1939.1.1
# 		date > 1937.10.1

# 		OR = {
# 			597 = {
# 				state_is_fully_controlled_by_ROOT_or_subject = no
# 			}
# 			1038 = {
# 				state_is_fully_controlled_by_ROOT_or_subject = no
# 			}
# 		}

# 		613 = {
# 			state_is_fully_controlled_by_ROOT_or_subject = no
# 		}
# 	}

# 	abort_when_not_enabled = yes

# 	ai_strategy = {
# 		type = invasion_unit_request
# 		state = 613
# 		value = 100
# 	}
# }

strike_usa = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		has_completed_focus = JAP_strike_the_southern_road
		country_exists = USA
	}
	abort = {
		NOT = {
			country_exists = USA
		}
	}

	ai_strategy = {
		type = antagonize
		id = USA
		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"
jap_hush_yamamoto_its_gonna_be_ok = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		has_completed_focus = JAP_strike_the_southern_road
		has_war_with = USA
	}

	abort = {
		OR = {
			has_war_with = USA
			NOT = {
				country_exists = USA
			}
		}
	}

	ai_strategy = {
		type = consider_weak
		id = USA
		value = 75
	}
}

# JAP_philippines_and_garrison = {
# 	allowed = {
# 		original_tag = JAP
# 	}
# 	enable = {
# 		has_war_with = USA
# 		is_historical_focus_on = yes
# 		date > 1941.1.1
# 	}
# 	abort_when_not_enabled = yes

# 	ai_strategy = { #Take & Hold and supply DEI invasions
# 		type = put_unit_buffers

# 		# ratio of total armeis in country to be buffered
# 		ratio = 0.1

# 		# you can specify an order id. ratio of same orders ids will be share same ratio
# 		#order_id = 2

# 		# states to put garrison orders (if no state is friendly, strat is invalid)
# 		states = {
# 			623
# 			327
# 			624
# 			625
# 			628
# 			627
# 			1027
# 			1026
# 			1025
# 		}

# 		# ai areas that the orders will use these buffers in
# 		area = east_indies

# 		# by default if you have orders in target areas, the buffer will request less units.
# 		# you can override this to disable the feature
# 		subtract_invasions_from_need = yes
# 		subtract_fronts_from_need = yes
# 	}

# }

# JAP_philippines_and_garrison_prio = {
# 	allowed = {
# 		original_tag = JAP
# 	}
# 	enable = {
# 		has_war_with = USA
# 		date > 1941.1.1
# 		date < 1944.1.1
# 		is_historical_focus_on = yes
# 	}
# 	abort_when_not_enabled = yes

# 	ai_strategy = {
# 		type = area_priority
# 		id = just_philippines
# 		value = 100
# 	}
# }

# JAP_leave_raj_a_bit = {
# 	allowed = {
# 		OR = {
# 			original_tag = JAP
# 			original_tag = SIA
# 		}
# 	}
# 	enable = {
# 		is_historical_focus_on = yes
# 		has_war_with = CHI
# 		CHI = { has_capitulated = no }
# 		NOT = { has_country_flag = agreed_to_help_bose }
# 	}
# 	abort_when_not_enabled = yes

# 	ai_strategy = {
# 		type = invade
# 		id = RAJ
# 		value = -250
# 	}
# }

# # Stage 1: Borneo oil + eastern airfields (Manado, Moluccas). Runs in parallel with the Philippines, no PHI gate.
# JAP_dei_stage_1_borneo = {
# 	allowed = {
# 		original_tag = JAP
# 	}
# 	enable = {
# 		is_historical_focus_on = yes
# 		has_war_with = INS
# 		date > 1941.1.1
# 	}
# 	abort_when_not_enabled = yes

# 	ai_strategy = {
# 		type = area_priority
# 		id = east_indies
# 		value = 220
# 	}

# 	ai_strategy = {
# 		type = invade
# 		id = INS
# 		value = 300
# 	}

# 	ai_strategy = {
# 		type = naval_invasion_focus
# 		value = 400
# 	}

# 	# Borneo oil region + eastern airfields first
# 	ai_strategy = {
# 		type = invasion_unit_request
# 		state = 1055 # Eastern Kalimantan (Balikpapan oil)
# 		value = 150
# 	}
# 	ai_strategy = {
# 		type = invasion_unit_request
# 		state = 1056 # Manado
# 		value = 100
# 	}

# 	# Skip less desirable
# 	ai_strategy = {
# 		type = invasion_unit_request
# 		state = 738 # Aru Islands
# 		value = -100
# 	}
	
# 	ai_strategy = {
# 		type = invasion_unit_request
# 		state = 668 # The Moluccas
# 		value = -100
# 	}
# }

# # Stage 2: once the Borneo region is in hand, close on the heartland (Java, Sumatra) and mop up the rest.
# JAP_dei_stage_2_core = {
# 	allowed = {
# 		original_tag = JAP
# 	}
# 	enable = {
# 		is_historical_focus_on = yes
# 		has_war_with = INS
# 		date > 1941.1.1
# 		# Wait for the Borneo region
# 		1055 = { state_is_fully_controlled_by_ROOT_or_subject = yes }
# 	}
# 	abort_when_not_enabled = yes

# 	# Java heartland
# 	ai_strategy = {
# 		type = invasion_unit_request
# 		state = 1058 # Batavia
# 		value = 200
# 	}
# 	ai_strategy = {
# 		type = invasion_unit_request
# 		state = 335 # West Java
# 		value = 150
# 	}
# 	ai_strategy = {
# 		type = invasion_unit_request
# 		state = 1051 # East Java (Surabaya)
# 		value = 120
# 	}
# 	# Sumatra
# 	ai_strategy = {
# 		type = invasion_unit_request
# 		state = 672 # South Sumatra (Palembang oil)
# 		value = 150
# 	}
# 	ai_strategy = {
# 		type = invasion_unit_request
# 		state = 1049 # Medan and Riouw
# 		value = 80
# 	}
# 	# Remaining islands
# 	ai_strategy = {
# 		type = invasion_unit_request
# 		state = 673 # Sulawesi
# 		value = 80
# 	}
# 	ai_strategy = {
# 		type = invasion_unit_request
# 		state = 1054 # Dutch Timor
# 		value = 60
# 	}

# 	# Aru Islands now fair game
# 	ai_strategy = {
# 		type = invasion_unit_request
# 		state = 738 # Aru Islands
# 		value = 100
# 	}
# 	# The Moluccas can are good to take down now
# 	ai_strategy = {
# 		type = invasion_unit_request
# 		state = 668 # The Moluccas
# 		value = 150
# 	}
# }

# jap_conserve_fuel_for_usa_fight = {
# 	allowed = {
# 		original_tag = JAP
# 	}
# 	enable = {
# 		date < 1941.1.1
# 		NOT = { has_war_with = USA }
# 	}

# 	abort = {
# 		OR = {
# 			date > 1941.1.1
# 			has_war_with = USA
# 		}
# 	}

# 	ai_strategy = {
# 		type = naval_mission_threshold
# 		id = "MISSION_CONVOY_ESCORT"
# 		value = 150 #puts our threshold at 250
# 	}
# }

germany_ally = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		OR = {
			has_government = fascism
			has_government = neutrality
		}
		has_completed_focus = JAP_technological_exchange
		country_exists = GER
	}
	abort = {
		NOT = { country_exists = GER }
	}

	ai_strategy = {
		type = befriend
		id = GER
		value = 200
	}
	ai_strategy = {
		type = alliance
		id = GER
		value = 200
	}
}

germany_ally_historical = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		OR = {
			has_government = fascism
			has_government = neutrality
		}
		has_completed_focus = JAP_sea_mil_tech_coop_with_germany
		country_exists = GER
	}
	abort = {
		NOT = { country_exists = GER }
	}

	ai_strategy = {
		type = befriend
		id = GER
		value = 100
	}

}

# JAP_template_design = {
# 	allowed = {
# 		original_tag = JAP
# 	}
# 	enable = {
# 		date > 1940.1.1
# 	}
# 	abort_when_not_enabled = yes

# 	ai_strategy = {
# 		type = template_prio
# 		id = infantry
# 		value = -10
# 	}

# 	ai_strategy = {
# 		type = template_prio
# 		id = motorized
# 		value = 10
# 	}

# 	ai_strategy = {
# 		type = template_prio
# 		id = cavalry
# 		value = -100
# 	}

# 	ai_strategy = {
# 		type = template_prio
# 		id = light_armor
# 		value = -10
# 	}

# 	ai_strategy = {
# 		type = template_prio
# 		id = medium_armor
# 		value = 40
# 	}

# 	ai_strategy = {
# 		type = template_prio
# 		id = modern_armor
# 		value = 50
# 	}

# 	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 = 10
# 	}
# }

# hey dynamic targets would be swole as f*
all_china_must_prosper_in_my_prosperity_sphere_SIK = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		is_historical_focus_on = no #EAI
		OR = {
			NOT = { country_exists = CHI }
			CHI = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
		country_exists = SIK
		NOT = {
			SIK = {
				OR = {
					is_in_faction_with = JAP
					is_subject_of = JAP
				}
			}
			AND = {
				OR = {
					AND = {
						has_global_flag = SOV_soviet_japanese_reconciliation_flag
						NOT = { has_war_with = SOU }
					}
					has_non_aggression_pact_with = SOU
					is_in_faction_with = SOU
				}
				SIK = {
					OR = {
						is_in_faction_with = SOU
						is_subject_of = SOU
					}
				}
			}
		}
	}

	abort = {
		OR = {
			NOT = { country_exists = SIK }
			SIK = {
				OR = {
					is_in_faction_with = JAP
					is_subject_of = JAP
				}
			}
			AND = {
				OR = {
					AND = {
						has_global_flag = SOV_soviet_japanese_reconciliation_flag
						NOT = { has_war_with = SOU }
					}
					has_non_aggression_pact_with = SOU
					is_in_faction_with = SOU
				}
				SIK = {
					OR = {
						is_in_faction_with = SOU
						is_subject_of = SOU
					}
				}
			}
		}
	}

	ai_strategy = {
		type = antagonize
		id = SIK
		value = 5000
	}
}

all_china_must_prosper_in_my_prosperity_sphere_XSM = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		OR = {
			NOT = { country_exists = CHI }
			CHI = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
		country_exists = XSM
		NOT = {
			XSM = {
				OR = {
					is_in_faction_with = JAP
					is_subject_of = JAP
				}
			}
		}
	}

	abort = {
		NOT = { country_exists = XSM }
		XSM = {
			OR = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
	}

	ai_strategy = {
		type = antagonize
		id = XSM
		value = 5000
	}
}

all_china_must_prosper_in_my_prosperity_sphere_GXC = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		OR = {
			NOT = { country_exists = CHI }
			CHI = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
		country_exists = GXC
		NOT = {
			GXC = {
				OR = {
					is_in_faction_with = JAP
					is_subject_of = JAP
				}
			}
		}
	}

	abort = {
		NOT = { country_exists = GXC }
		GXC = {
			OR = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
	}

	ai_strategy = {
		type = antagonize
		id = GXC
		value = 5000
	}
}

all_china_must_prosper_in_my_prosperity_sphere_SHX = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		OR = {
			NOT = { country_exists = CHI }
			CHI = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
		country_exists = SHX
		NOT = {
			SHX = {
				OR = {
					is_in_faction_with = JAP
					is_subject_of = JAP
				}
			}
		}
	}

	abort = {
		NOT = { country_exists = SHX }
		SHX = {
			OR = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
	}

	ai_strategy = {
		type = antagonize
		id = SHX
		value = 5000
	}
}

all_china_must_prosper_in_my_prosperity_sphere_YUN = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		OR = {
			NOT = { country_exists = CHI }
			CHI = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
		country_exists = YUN
		NOT = {
			YUN = {
				OR = {
					is_in_faction_with = JAP
					is_subject_of = JAP
				}
			}
		}
	}

	abort = {
		NOT = { country_exists = YUN }
		YUN = {
			OR = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
	}

	ai_strategy = {
		type = antagonize
		id = YUN
		value = 5000
	}

}

all_china_must_prosper_in_my_prosperity_sphere_SND = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		OR = {
			NOT = { country_exists = CHI }
			CHI = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
		country_exists = SND
		NOT = {
			SND = {
				OR = {
					is_in_faction_with = JAP
					is_subject_of = JAP
				}
			}
		}
	}

	abort = {
		NOT = { country_exists = SND }
		SND = {
			OR = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
	}

	ai_strategy = {
		type = antagonize
		id = SND
		value = 5000
	}

}

all_china_must_prosper_in_my_prosperity_sphere_GDC = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		OR = {
			NOT = { country_exists = CHI }
			CHI = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
		country_exists = GDC
		NOT = {
			GDC = {
				OR = {
					is_in_faction_with = JAP
					is_subject_of = JAP
				}
			}
		}
	}

	abort = {
		NOT = { country_exists = GDC }
		GDC = {
			OR = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
	}

	ai_strategy = {
		type = antagonize
		id = GDC
		value = 5000
	}

}

all_china_must_prosper_in_my_prosperity_sphere_SIC = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		OR = {
			NOT = { country_exists = CHI }
			CHI = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
		country_exists = SIC
		NOT = {
			SIC = {
				OR = {
					is_in_faction_with = JAP
					is_subject_of = JAP
				}
			}
		}
	}

	abort = {
		NOT = { country_exists = SIC }
		SIC = {
			OR = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
	}

	ai_strategy = {
		type = antagonize
		id = SIC
		value = 5000
	}

}

all_china_must_prosper_in_my_prosperity_sphere_XIC = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		OR = {
			NOT = { country_exists = CHI }
			CHI = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
		country_exists = XIC
		NOT = {
			XIC = {
				OR = {
					is_in_faction_with = JAP
					is_subject_of = JAP
				}
			}
		}
	}

	abort = {
		NOT = { country_exists = XIC }
		XIC = {
			OR = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
	}

	ai_strategy = {
		type = antagonize
		id = XIC
		value = 5000
	}

}

all_china_must_prosper_in_my_prosperity_sphere_NXM = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		OR = {
			NOT = { country_exists = CHI }
			CHI = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
		country_exists = NXM
		NOT = {
			NXM = {
				OR = {
					is_in_faction_with = JAP
					is_subject_of = JAP
				}
			}
		}
	}

	abort = {
		NOT = { country_exists = NXM }
		NXM = {
			OR = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
	}

	ai_strategy = {
		type = antagonize
		id = NXM
		value = 5000
	}

}

all_china_must_prosper_in_my_prosperity_sphere_GSM = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		OR = {
			NOT = { country_exists = CHI }
			CHI = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
		country_exists = GSM
		NOT = {
			GSM = {
				OR = {
					is_in_faction_with = JAP
					is_subject_of = JAP
				}
			}
		}
	}

	abort = {
		NOT = { country_exists = GSM }
		GSM = {
			OR = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
	}

	ai_strategy = {
		type = antagonize
		id = GSM
		value = 5000
	}

}

all_china_must_prosper_in_my_prosperity_sphere_HBC = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		OR = {
			NOT = { country_exists = CHI }
			CHI = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
		country_exists = HBC
		NOT = {
			HBC = {
				OR = {
					is_in_faction_with = JAP
					is_subject_of = JAP
				}
			}
		}
	}

	abort = {
		NOT = { country_exists = HBC }
		HBC = {
			OR = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
	}

	ai_strategy = {
		type = antagonize
		id = HBC
		value = 5000
	}

}

all_china_must_prosper_in_my_prosperity_sphere_PRC = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		OR = {
			NOT = { country_exists = CHI }
			CHI = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
		country_exists = PRC
		NOT = {
			PRC = {
				OR = {
					is_in_faction_with = JAP
					is_subject_of = JAP
				}
			}
		}
	}

	abort = {
		NOT = { country_exists = PRC }
		PRC = {
			OR = {
				is_in_faction_with = JAP
				is_subject_of = JAP
			}
		}
	}

	ai_strategy = {
		type = antagonize
		id = PRC
		value = 5000
	}
}

jap_china_is_weak = {
	allowed = {
		original_tag = JAP
	}

	enable = {
		date < 1939.10.1
		NOT = { has_war_with = CHI } # only underestimate the japanese before the war
	}

	abort = {
		OR = {
			date > 1939.10.1
			has_war_with = CHI # only underestimate the japanese before the war
		}
	}

	ai_strategy = {
		type = consider_weak
		id = CHI
		value = 50
	}
}

# if china has fallen and we are going for USA we will end up at war with allies suddenly while maybe bordering them,
# but thats hard to guess for AI considering all the steps. So we warn it so it can prep vs the allies
jap_early_part_beware_allies = {
	allowed = {
		original_tag = JAP
	}
	enable = {
		USA = { is_in_faction = no }
		focus_progress = {
			focus = JAP_strike_the_southern_road
			progress > 0
		}
		PHI = {	
			is_ally_with = USA 
		}
		NOT = { has_war_together_with = ENG }
	}

	abort = {
		OR = {
			USA = { is_in_faction = yes } # they know where to stand so we can go back to regular logic
			has_war_together_with = ENG
		}
	}

	ai_strategy = {
		type = prepare_for_war
		id = ENG
		value = 100
	}
	ai_strategy = {
		type = prepare_for_war
		id = FRA
		value = 100
	}
	ai_strategy = {
		type = prepare_for_war
		id = PHI
		value = 100
	}
	ai_strategy = {
		type = prepare_for_war
		id = USA
		value = 100
	}
	ai_strategy = {
		type = prepare_for_war
		id = RAJ
		value = 100
	}
}
