CHI_dont_mess_with_the_soviets = {

	allowed = { original_tag = CHI }
	enable = {	
		NOT = { has_war_with = SOV }
	}
	
	abort = {
		has_war_with = SOV
	}

	ai_strategy = {
		type = contain
		id = "SOV"			
		value = -200
	}
}

CHI_dont_join_ENG_if_not_democratic = {
	allowed = {
		WTT_is_chinese_country = yes 
	}

	enable = {
		WTT_is_chinese_country = yes 
		NOT = { has_government = democratic }
		ENG = { has_government = democratic }
	}

	abort_when_not_enabled = yes 

	ai_strategy = {
		type = alliance
		id = ENG
		value = -250
	}

}

CHI_dont_join_USA_if_not_democratic = {
	allowed = {
		WTT_is_chinese_country = yes 
	}

	enable = {
		WTT_is_chinese_country = yes 
		NOT = { has_government = democratic }
		USA = { has_government = democratic }
	}

	abort_when_not_enabled = yes 

	ai_strategy = {
		type =  alliance
		id = USA
		value = -250
	}

}

# Make sure Sinkiang tries to push aggressively 
SIK_push_khotan = {
	allowed = {
		original_tag = SIK
	}
	enable = {
		#is_historical_focus_on = yes
		OR = {
			focus_progress = {
				focus = SIK_march_into_khotan
				progress > 0.01
			}
			has_war_with = KHM
		}
	}
	abort = {
		KHM = {
			OR = {
				has_capitulated = yes
				exists = no
			}
		}
	}

	ai_strategy = {
		type = front_unit_request
		tag = KHM
		value = 75
	}

	ai_strategy = {
		type = conquer
		id = KHM
		value = 200
	}

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

	ai_strategy = {
		type = front_control

		tag = KHM

		ratio = 0.7

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

}

HBC_do_everything_possible_to_allow_japan_to_invade = {
	allowed = {
		original_tag = HBC
	}
	enable = {	
		has_war = no
		date < 1938.1.1
		CHI = {
			NOT = { has_completed_focus = CHI_strengthening_our_resolve }
		}
	}
	abort_when_not_enabled = yes
	
	#We don't need to keep a watch over Japan, right?
	ai_strategy = {
		type = front_control
		id = JAP
		value = -50
	}
	#Who even cares about Mengchukuo?
	ai_strategy = {
		type = front_control
		id = MEN
		value = -50
	}
	#China sounds very sus, let's watch THEM
	ai_strategy = {
		type = front_control
		id = CHI
		value = 50
	}
	#We're watching you Shanxi!
	ai_strategy = {
		type = front_control
		id = SHX
		value = 50
	}
	#Who's dis then? Better keep a close eye on.... *looks in notes* Shandong
	ai_strategy = {
		type = front_control
		id = SND
		value = 50
	}
	#Don't Garrison our Victory Points - they're too close to Japan!
	ai_strategy = {
		type = garrison
		value = -25
	}
	#Put our troops literally anywhere but close to Japan
	ai_strategy = {
		type = put_unit_buffers
		states = {
			614 #Hebei
		}
		ratio = 2
		area = asia
		subtract_invasions_from_need = no
		subtract_fronts_from_need = no
	}
}