WTT_add_infiltration_save_equipment = {
	enable = {
		OR = {
			has_completed_focus = PRC_infiltration
			has_completed_focus = PRC_anti_japanese_expedition
		}

	}
	abort = {
		OR = {
			has_war_with = event_target:WTT_current_china_leader
			NOT = { country_exists = event_target:WTT_current_china_leader }
			AND = {
				has_war = yes
				any_enemy_country = {
					is_major = yes
				}
			}
		}
	}
	
	ai_strategy = {
		type = save_equipment
		id = infantry_equipment
		value = 501
	}
}

#Best always keep some in reserve to remove infiltration when needed
WTT_remove_infiltration_save_equipment = {
	enable = {
		tag = event_target:WTT_current_china_leader
		any_other_country = {
			has_completed_focus = PRC_infiltration
		}
	}
	abort = {
		OR = {
			any_country = {
				has_completed_focus = PRC_infiltration
				has_war_with = ROOT
			}
			AND = {
				has_war = yes
				any_enemy_country = {
					is_major = yes
				}
			}
		}
	}
	ai_strategy = {
		type = save_equipment
		id = infantry_equipment
		value = 1001
	}
}

# make warlords support china better
WTT_all_warlords_support_china_in_war = {
	reversed = yes

	enable = {
		CHI = { is_faction_leader = yes }
		is_in_faction_with = CHI
		has_war = yes
	}
	abort = {
		OR = {
			CHI = { is_faction_leader = no }
			NOT = { is_in_faction_with = CHI }
			has_war = no
		}		
	}
	
	ai_strategy = {
		type = send_volunteers_desire
		id = CHI
		value = 50
	}
}

# make warlords support china better part 2
WTT_all_warlords_support_china_in_war = {
	enable = {
		CHI = { is_faction_leader = yes }
		is_in_faction_with = CHI
		has_war = yes
	}
	abort = {
		OR = {
			CHI = { is_faction_leader = no }
			NOT = { is_in_faction_with = CHI }
			has_war = no
		}		
	}
	
	ai_strategy = {
		type = spare_unit_factor
		value = 50
	}
}

# we skip some of the minor minors that dont see much frontline
SOV_dont_waste_volunteers_to_chinese_minors = {
	enable = {
		tag = SOV
		SIK = { is_in_faction_with = CHI }
	}
	abort = {
		NOT = { SIK = { is_in_faction_with = CHI } }
	}
	
	ai_strategy = {
		type = send_volunteers_desire
		id = "SIK"
		value = -100
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = "YUN"
		value = -100
	
	}
}
SOV_only_bother_with_volunteers_if_chi_losing = {
	allowed = {
		original_tag = SOV
	}

	enable = {		
		JAP = { is_ai = yes }
		date < 1941.1.1
		CHI = { surrender_progress < 0.75 }	#Basically never, because they just win
	}
	abort = {
		OR ={
			date > 1941.1.1
			JAP = { is_ai = no }
			CHI = { surrender_progress > 0.65 }
		}
	}
	
	ai_strategy = {
		type = send_volunteers_desire
		id = "YUN"
		value = -900
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = "XSM"
		value = -900
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = "SHX"
		value = -900
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = "HCH"
		value = -900
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = "SND"
		value = -900
	}
}


SOV_dont_support_if_exiles_and_friendly_with_japan = {
	allowed = {
		tag = SOV
	}

	enable = {		
		OR = {
			SOV = { has_government = neutrality }	
			SOV = { has_government = fascism }	
		}
	}
	abort = {
		OR ={
			SOV = { has_war_with = JAP }
			SOV = { has_completed_focus = SOV_memories_of_1905 }
		}
	}
	
	ai_strategy = {
		type = send_volunteers_desire
		id = "YUN"
		value = -500
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = "XSM"
		value = -500
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = "SHX"
		value = -500
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = "HCH"
		value = -500
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = "SND"
		value = -500
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = "CHI"
		value = -500
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = "PRC"
		value = -500
	}
	
	ai_strategy = {
		type = send_lend_lease_desire
		id = "YUN"
		value = -500
	}
	ai_strategy = {
		type = send_lend_lease_desire
		id = "XSM"
		value = -500
	}
	ai_strategy = {
		type = send_lend_lease_desire
		id = "SHX"
		value = -500
	}
	ai_strategy = {
		type = send_lend_lease_desire
		id = "HCH"
		value = -500
	}
	ai_strategy = {
		type = send_lend_lease_desire
		id = "SND"
		value = -500
	}
	ai_strategy = {
		type = send_lend_lease_desire
		id = "CHI"
		value = -500
	}
	ai_strategy = {
		type = send_lend_lease_desire
		id = "PRC"
		value = -500
	}
}
