focus_tree = {
	id = china_warlord_sea_focus
	
	country = {
		base = 0
		
		modifier = {
			add = 15
			OR = {
				tag = YUN
				tag = SIK
				tag = GXC
				tag = SHX
				tag = XSM
				tag = GDC
				tag = XIC
				tag = SND
				tag = KHM
				tag = NXM
				tag = GSM
				tag = SIC
				tag = KUM
				tag = HBC
			}
			has_dlc = "No Compromise, No Surrender"
		}
	}
	
	default = no

	continuous_focus_position = { x = 50 y = 1350 }

#	focus = {
#		id = CHI_sea_
#		icon = GFX_
#		prerequisite = { focus = }
#		mutually_exclusive = { focus =  }
#		x = -3
#		y = 0
#		relative_position_id = 
#
#		cost = 10
#
#		ai_will_do = {
#			factor = 1
#		}
#
#		available = {
#
#		}
#		
#		bypass = {
#
#		}
#
#		cancel_if_invalid = yes
#		continue_if_invalid = no
#		available_if_capitulated = no
#
#		complete_tooltip = {
#
#		}
#
#		completion_reward = {
#
#		}
#	}


	shared_focus = GXC_the_japanese_visit

	focus = {
		id = CHI_sea_secure_internal_politics
		icon = GFX_goal_generic_major_alliance
		x = 6
		y = 0

		cost = 5

		ai_will_do = {
			base = 20
		}

		available = {
			OR = {
				is_ai = no
				date > 1936.1.1
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			IF = {
				limit = {
					original_tag = SND
				}
				custom_effect_tooltip = SND_unlock_loyalty_decision_tt
			}
			add_political_power = 120
			warlord_rule_all_parties = yes
		}
	}

	#########################
	##### Nationalists ######
	#########################

	focus = {
		id = CHI_sea_cooperation_with_the_nationalists
		icon = GFX_focus_chi_cooperation_with_the_nationalists
		prerequisite = { focus = CHI_sea_secure_internal_politics }
		mutually_exclusive = { focus = CHI_sea_cooperation_with_the_communists focus = CHI_sea_opposition }
		x = -5
		y = 1
		relative_position_id = CHI_sea_secure_internal_politics

		cost = 10

		ai_will_do = {
			base = 1
			modifier = {
				factor = 10
				OR = {
					original_tag = YUN
					original_tag = XSM
					original_tag = GDC
					original_tag = XIC
					original_tag = SND
					original_tag = HBC
				}
			}
		}

		available = {
			OR = {
				is_subject = no
				is_subject_of = event_target:WTT_current_china_leader
			}
			NOT = { has_war_with = CHI }
			OR = {
				is_ai = no
				date > 1936.1.1
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_stability = 0.05
			custom_effect_tooltip = CHI_cooperation_with_the_nationalists_effect_tooltip
			CHI = { add_opinion_modifier = { modifier = CHI_cooperation_with_the_nationalists_positive target = ROOT } }
			PRC = { add_opinion_modifier = { modifier = CHI_cooperation_with_the_nationalists_negative target = ROOT } }
			add_relation_rule_override = {
				target = CHI
				can_send_volunteers = yes
			}
		}
	}

	focus = {
		id = CHI_sea_anti_opposition_campaigns
		icon = GFX_focus_generic_provoke_border_clashes
		prerequisite = { focus = CHI_sea_cooperation_with_the_nationalists focus = CHI_sea_cooperation_with_the_communists }
		x = 3
		y = 1
		relative_position_id = CHI_sea_cooperation_with_the_nationalists

		cost = 5

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		complete_tooltip = {
			custom_effect_tooltip = CHI_anti_opposition_campaigns_effect_tooltip
			if = {
				limit = {
					AND = {
						has_completed_focus = CHI_sea_cooperation_with_the_nationalists
						NOT = { any_other_country = { has_completed_focus = CHI_sea_cooperation_with_the_communists } }
					}
				}
				custom_effect_tooltip = CHI_anti_opposition_campaigns_effect_tooltip_no_communists
			}
			if = {
				limit = {			
					AND = {
						has_completed_focus = CHI_sea_cooperation_with_the_communists
						NOT = { any_other_country = { has_completed_focus = CHI_sea_cooperation_with_the_nationalists } }
					}
				}
				custom_effect_tooltip = CHI_anti_opposition_campaigns_effect_tooltip_no_nationalists
			}
		}

		completion_reward = {
			custom_effect_tooltip = CHI_anti_opposition_campaigns_effect_tooltip
			if = {
				limit = {
					AND = {
						has_completed_focus = CHI_sea_cooperation_with_the_nationalists
						NOT = { any_other_country = { has_completed_focus = CHI_sea_cooperation_with_the_communists } }
					}
				} 
				custom_effect_tooltip = CHI_anti_opposition_campaigns_effect_tooltip_no_communists
			}
			if = {
				limit = {			
					AND = {
						has_completed_focus = CHI_sea_cooperation_with_the_communists
						NOT = { any_other_country = { has_completed_focus = CHI_sea_cooperation_with_the_nationalists } }
					}
				}
				custom_effect_tooltip = CHI_anti_opposition_campaigns_effect_tooltip_no_nationalists
			}
			IF = {
				limit = {
					is_in_faction = yes
				}
				add_faction_influence_ratio	= 0.01
			}
		}
	}

	focus = {
		id = CHI_sea_technological_cooperation
		icon = GFX_goal_generic_scientific_exchange
		prerequisite = { focus = CHI_sea_cooperation_with_the_nationalists }		
		x = -1
		y = 1
		relative_position_id = CHI_sea_cooperation_with_the_nationalists

		cost = 10

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			if = {
				limit = {
					NOT = {
						CHI = { is_in_tech_sharing_group = CHI_technological_cooperation_tech_group } }
				}
				CHI = { add_to_tech_sharing_group = CHI_technological_cooperation_tech_group }
			}
			add_to_tech_sharing_group = CHI_technological_cooperation_tech_group
		}
	}

	focus = {
		id = CHI_sea_new_model_province
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = CHI_sea_cooperation_with_the_nationalists }		
		x = 1
		y = 1
		relative_position_id = CHI_sea_cooperation_with_the_nationalists

		cost = 5

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_STABILITY }
		completion_reward = {
			add_stability = 0.1
			IF = {
				limit = {
					is_in_faction = yes
				}
				add_faction_influence_ratio	= 0.01
			}
		}
	}

	focus = {
		id = CHI_sea_root_out_corruption
		icon = GFX_goal_demand_sudetenland
		prerequisite = { focus = CHI_sea_new_model_province }
		mutually_exclusive = { focus = CHI_sea_embrace_the_illicit_trade }
		x = -1
		y = 1
		relative_position_id = CHI_sea_new_model_province

		cost = 10

		ai_will_do = {
			base = 5
		}

		available = {
			has_idea = PRC_government_corruption
		}

		bypass = {
			NOT = {
				has_idea = PRC_government_corruption
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			remove_ideas = PRC_government_corruption
		}

	}

	focus = {
		id = CHI_sea_embrace_the_illicit_trade
		icon = GFX_goal_generic_trade
		prerequisite = { focus = CHI_sea_new_model_province }
		mutually_exclusive = { focus = CHI_sea_root_out_corruption }
		x = 1
		y = 1
		relative_position_id = CHI_sea_new_model_province

		cost = 10

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_ideas = CHI_embrace_the_opium_trade
		}
	}

	focus = {
		id = CHI_sea_land_reform
		icon = GFX_focus_generic_land_redistribution
		prerequisite = { focus = CHI_sea_root_out_corruption }
		x = -2
		y = 2
		relative_position_id = CHI_sea_new_model_province

		cost = 5

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			every_owned_state = {
				limit = {
					impassable = no
					is_controlled_by = ROOT
				}
				add_extra_state_shared_building_slots = 1 
			}
		}
	}

	focus = {
		id = CHI_sea_reform_the_administration
		icon = GFX_focus_generic_improve_the_administration
		prerequisite = { focus = CHI_sea_root_out_corruption focus = CHI_sea_embrace_the_illicit_trade }
		x = 0
		y = 2
		relative_position_id = CHI_sea_new_model_province

		cost = 5

		ai_will_do = {
			base = 1
		}

		available = {
			has_idea = CHI_ineffective_bureaucracy_warlord
		}

		bypass = {
			NOT = {
				has_idea = CHI_ineffective_bureaucracy_warlord
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes

		completion_reward = {

			remove_ideas = CHI_ineffective_bureaucracy_warlord

			IF = {
				limit = {
					is_in_faction = yes
				}
				add_faction_influence_ratio	= 0.02
			}
		}
	}

	focus = {
		id = CHI_sea_join_the_republican_government
		icon = GFX_goal_generic_national_unity
		prerequisite = { focus = CHI_sea_land_reform focus = CHI_sea_reform_the_administration }
		mutually_exclusive = { focus = CHI_sea_battle_for_china }
		x = -3
		y = 3
		relative_position_id = CHI_sea_new_model_province

		cost = 10

		ai_will_do = {
			base = 0
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = is_not_supporting_someone_in_political_struggle
				NOT = {
					any_country = {
						ROOT = { has_country_flag = warlord_supports_@PREV }
					}
				}
			}
			is_subject = no
			NOT = { has_war_with = CHI }
			is_in_faction_with = event_target:WTT_current_china_leader
			if = {
				limit = {
					event_target:WTT_current_china_leader = {
						original_tag = CHI
					}
				}
				event_target:WTT_current_china_leader = {
					has_completed_focus = CHI_dang_guo
				}
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			custom_effect_tooltip = enable_power_struggle
			set_variable = { ROOT.increase_party_support_decision_cost = 75 }
			set_country_flag = tsr_political_struggle
			IF = {
				limit = {
					is_in_faction = yes
				}
				add_faction_influence_ratio	= 0.05
			}
			hidden_effect = {
				add_dynamic_modifier = {
				 	modifier = CHI_cooperating_with_republicans_dynamic_modifier
				} 
			}
		}
	}

	focus = {
		id = CHI_sea_gain_warlord_support
		icon = GFX_goal_generic_military_deal
		prerequisite = { focus = CHI_sea_join_the_republican_government }
		x = -1
		y = 1
		relative_position_id = CHI_sea_join_the_republican_government

		cost = 5

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0
				is_historical_focus_on = yes 
			}
		}

		available = {
			is_subject = no
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			custom_effect_tooltip = CHI_allow_warlord_support_tt
			set_country_flag = tsr_warlord_support
		}
	}

	focus = {
		id = CHI_sea_propaganda_campaigns
		icon = GFX_goal_generic_propaganda
		prerequisite = { focus = CHI_sea_join_the_republican_government }
		x = 1
		y = 1
		relative_position_id = CHI_sea_join_the_republican_government

		cost = 5

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0
				is_historical_focus_on = yes 
			}
		}

		available = {
			is_subject = no
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			custom_effect_tooltip = CHI_propaganda_decisions_tt
			set_country_flag = tsr_warlord_propaganda
		}
	}

	focus = {
		id = CHI_sea_battle_for_china
		icon = GFX_focus_CHI_weaponise_the_faithful
		prerequisite = { focus = CHI_sea_land_reform focus = CHI_sea_reform_the_administration }
		mutually_exclusive = { focus = CHI_sea_join_the_republican_government }
		x = 4
		y = 0
		relative_position_id = CHI_sea_join_the_republican_government

		cost = 10

		ai_will_do = {
			base = 0
		}

		available = {
			is_subject = no
			NOT = {
				tag = event_target:WTT_current_china_leader
				is_in_faction_with = event_target:WTT_current_china_leader
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_war_support = 0.1
			custom_effect_tooltip = generic_skip_one_line_tt
			add_timed_idea = {
				idea = tsr_the_true_china
				days = 365
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			event_target:WTT_current_china_leader = {
				add_opinion_modifier = {
					target = ROOT
					modifier = tsr_fake_china_opm
				}
			}
		}
	}

	focus = {
		id = CHI_sea_rally_the_warlords
		icon = GFX_focus_CHI_decisive_battles
		prerequisite = { focus = CHI_sea_battle_for_china }
		x = 1
		y = 1
		relative_position_id = CHI_sea_battle_for_china

		cost = 5

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0
				is_historical_focus_on = yes 
			}
		}

		available = {
			is_subject = no
			NOT = {
				tag = event_target:WTT_current_china_leader
				is_in_faction_with = event_target:WTT_current_china_leader
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			every_country = {
				limit = {
					is_chinese_warlord = yes
					is_subject = no
					not = { 
						tag = event_target:WTT_current_china_leader
						tag = ROOT
					}
				}
				country_event = { id = SEA_warlords.23 }
			}
		}
	}

	focus = {
		id = CHI_sea_a_new_expedition
		icon = GFX_focus_CHI_protracted_warfare
		prerequisite = { focus = CHI_sea_battle_for_china }
		x = -1
		y = 1
		relative_position_id = CHI_sea_battle_for_china

		cost = 5

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0
				is_historical_focus_on = yes 
			}
		}

		available = {
			is_subject = no
			NOT = {
				controls_state = 1035
				controls_state = 608
				tag = event_target:WTT_current_china_leader
				is_in_faction_with = event_target:WTT_current_china_leader
			}
		}

		bypass = {
			controls_state = 1035
			controls_state = 608
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			every_other_country = {
				limit = {	
					OR = {
						controls_state = 1035
						controls_state = 608
						tag = event_target:WTT_current_china_leader 		
					}
				}
				ROOT = {
					create_wargoal = {
						type = annex_everything
						target = PREV
					}
				}
			}
		}
	}

	focus = {
		id = CHI_sea_power_struggle
		icon = GFX_goal_generic_demand_territory
		prerequisite = { focus = CHI_sea_gain_warlord_support focus = CHI_sea_propaganda_campaigns focus = CHI_sea_a_new_expedition focus = CHI_sea_rally_the_warlords }
		x = 2
		y = 2
		relative_position_id = CHI_sea_join_the_republican_government

		cost = 10

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0
				is_historical_focus_on = yes 
			}
		}

		available = {
			is_subject = no
			OR = {
				WTT_is_ROOT_current_leader_of_china = yes
				AND = {
					1035 = { 
						is_controlled_by_ROOT_or_subject = yes
					}
					608 = { 
						is_controlled_by_ROOT_or_subject = yes
					}
				}
			}
			IF = {
				limit = {
					original_tag = XIC
				}
				NOT = {
					has_completed_focus = XIC_reclaim_the_lost_birthright
				}
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			load_focus_tree = china_nationalist_warlord_focus
			set_cosmetic_tag = CHI_warlord_leader
			every_state = {
				limit = {
					is_core_of = CHI
				}
				add_core_of = ROOT
			}
			custom_effect_tooltip = CHL_skip_one_line_tt
			CHI_no_longer_a_warlord_idea_removal = yes
			custom_effect_tooltip = generic_skip_one_line_tt
			IF = {
				limit = {
					has_idea = SIK_battle_for_sinkiang
				}
				remove_ideas = {
					SIK_battle_for_sinkiang
				}
			}
			IF = {
				limit = {
					has_idea = SIC_a_loose_unity
				}
				remove_ideas = {
					SIC_a_loose_unity
				}
			}
		}
	}	

	#######################
	##### Communists ######
	#######################

	focus = {
		id = CHI_sea_cooperation_with_the_communists
		icon = GFX_focus_chi_cooperation_with_the_communists
		prerequisite = { focus = CHI_sea_secure_internal_politics }
		mutually_exclusive = { focus = CHI_sea_cooperation_with_the_nationalists focus = CHI_sea_opposition }
		x = 0
		y = 1
		relative_position_id = CHI_sea_secure_internal_politics

		cost = 10

		ai_will_do = {
			base = 1
			modifier = {
				factor = 10
				OR = {
					original_tag = SHX
					original_tag = SIK
				}
			}
		}

		available = {
			OR = {
				is_subject = no
				is_subject_of = event_target:WTT_communist_china
			}
			NOT = { has_war_with = PRC }
			NOT = { has_war_with = SOV }
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_political_power = 50
			custom_effect_tooltip = CHI_cooperation_with_the_communists_effect_tooltip
			SOV = {
				add_opinion_modifier = {
					target = ROOT
					modifier = CHI_cooperation_with_the_communists_positive
				}
				add_ai_strategy = {
					type = support
					id = ROOT
					value = 100
				}
			}
			PRC = {
				add_opinion_modifier = {
					target = ROOT
					modifier = CHI_cooperation_with_the_communists_positive
				}
			}
			CHI = {
				add_opinion_modifier = {
					target = ROOT
					modifier = CHI_cooperation_with_the_communists_negative
				}
			}
			add_relation_rule_override = {
				target = PRC
				can_send_volunteers = yes
			}
		}
	}

	focus = {
		id = CHI_sea_land_redistribution
		icon = GFX_goal_generic_soviet_construction
		prerequisite = { focus = CHI_sea_cooperation_with_the_communists }		
		x = 0
		y = 1
		relative_position_id = CHI_sea_cooperation_with_the_communists

		cost = 5

		ai_will_do = {
			base = 4
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			every_owned_state = {
				limit = {
					impassable = no
					is_controlled_by = ROOT
				}
				add_extra_state_shared_building_slots = 1 
			}
		}
	}

	focus = {
		id = CHI_sea_ideological_education
		icon = GFX_focus_generic_socialist_science
		prerequisite = { focus = CHI_sea_land_redistribution }
		x = -1
		y = 1
		relative_position_id = CHI_sea_land_redistribution

		cost = 5

		ai_will_do = {
			base = 1
		}

		available = {
			OR = {
				is_subject = no
				if = {
					limit = { is_subject = yes }
					OVERLORD = { has_government = communism }
				}
			}
		}

		bypass = {
			has_government = communism
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_timed_idea = { idea = CHI_ideological_education days = 1095 }
		}
	}

	focus = {
		id = CHI_sea_land_value_tax
		icon = GFX_focus_PRC_land_revolution_expedited
		prerequisite = { focus = CHI_sea_land_redistribution }
		x = 1
		y = 1
		relative_position_id = CHI_sea_land_redistribution

		cost = 10

		ai_will_do = {
			base = 4
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_ideas = CHI_land_value_tax
		}
	}

	focus = {
		id = CHI_sea_judiciary_reforms
		icon = GFX_goal_generic_forceful_treaty
		prerequisite = { focus = CHI_sea_ideological_education }
		x = -1
		y = 2
		relative_position_id = CHI_sea_land_redistribution

		cost = 10

		ai_will_do = {
			base = 1
		}

		available = {
			has_idea = PRC_government_corruption
		}

		bypass = {
			NOT = {
				has_idea = PRC_government_corruption
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			remove_ideas = PRC_government_corruption
		}
	}

	focus = {
		id = CHI_sea_communist_administrators
		icon = GFX_focus_generic_soviet_politics
		prerequisite = { focus = CHI_sea_land_value_tax }
		x = 1
		y = 2
		relative_position_id = CHI_sea_land_redistribution

		cost = 5

		ai_will_do = {
			base = 1
		}

		available = {
			has_idea = CHI_ineffective_bureaucracy_warlord
		}

		bypass = {
			NOT = {
				has_idea = CHI_ineffective_bureaucracy_warlord
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes

		completion_reward = {
			remove_ideas = CHI_ineffective_bureaucracy_warlord
		}
	}

	focus = {
		id = CHI_sea_join_the_chinese_soviet
		icon = GFX_focus_generic_befriend_the_chinese_soviet
		prerequisite = { focus = CHI_sea_judiciary_reforms focus = CHI_sea_communist_administrators }
		x = 0
		y = 3
		relative_position_id = CHI_sea_land_redistribution

		cost = 10

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0
				event_target:WTT_communist_china = {
					is_ai = no
				}
			}
			modifier = {
				factor = 0.1
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				if = {
					limit = { NOT = { tag = SIK } }
					any_neighbor_country = {
						tag = event_target:WTT_communist_china
					}
				}
			}
		}

		available = {
			communism > 0.4			
			NOT = { has_war_with = PRC }
			NOT = { has_war_with = SOV }
			SOV = { has_government = communism }			
			is_subject = no
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			set_politics = { ruling_party = communism elections_allowed = no }
			add_opinion_modifier = { target = SOV modifier = CHI_join_the_chinese_soviet }
			SOV = { add_opinion_modifier = { target = ROOT modifier = CHI_join_the_chinese_soviet } }

			if = {
				limit = {
					event_target:WTT_communist_china = {
						NOT = { is_in_faction_with = ROOT }
						is_in_faction = no
					}
				}
				event_target:WTT_communist_china = {
					set_rule = { can_create_factions = yes }
					create_faction_from_template = {
						template = faction_template_POR_popular_front_bloc
						name = CHI_the_peoples_front
					}
					add_to_faction = event_target:WTT_communist_china
					add_to_faction = ROOT
					country_event = wtt_warlord_vs_prc.35
				}
			}
		}
	}

	focus = {
		id = CHI_sea_unified_army_structure
		icon = GFX_focus_SOV_builder_of_the_red_army
		prerequisite = { focus = CHI_sea_join_the_chinese_soviet }
		x = 0
		y = 1
		relative_position_id = CHI_sea_join_the_chinese_soviet

		cost = 5

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.1
				is_historical_focus_on = yes
			}
		}

		available = {
			NOT = { has_war_with = PRC }			
			is_subject = no
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_political_power = 50
			army_experience = 50
			add_war_support = 0.05
		}
	}

	focus = {
		id = CHI_sea_the_yanan_incident
		icon = GFX_goal_support_communism
		prerequisite = { focus = CHI_sea_unified_army_structure }
		x = 0
		y = 5
		relative_position_id = CHI_sea_land_redistribution

		cost = 10

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.1
				is_historical_focus_on = yes
			}
		}

		available = {
			has_opinion = {
				target = SOU
				value > 50
			}
			is_subject = no
			NOT = { has_war_with = PRC }
			NOT = { has_war_with = SOU }
			SOU = { has_government = communism }
			IF = {
				limit = {
					original_tag = XIC
				}
				NOT = {
					has_completed_focus = XIC_reclaim_the_lost_birthright
				}
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			custom_effect_tooltip = CHI_the_yanan_incident_effect_tt
			save_event_target_as = warlord
			add_ideas = PRC_soviet_tribute_1
			SOU = { country_event = { id = wtt_warlord_vs_prc.1 } }
			custom_effect_tooltip = CHL_skip_one_line_tt
			CHI_no_longer_a_warlord_idea_removal = yes
			custom_effect_tooltip = generic_skip_one_line_tt
			IF = {
				limit = {
					has_idea = SIK_battle_for_sinkiang
				}
				remove_ideas = {
					SIK_battle_for_sinkiang
				}
			}
			IF = {
				limit = {
					has_idea = SIC_a_loose_unity
				}
				remove_ideas = {
					SIC_a_loose_unity
				}
			}
		}
	}

	#############################
	##### Opposition/Share ######
	#############################

	focus = {
		id = CHI_sea_opposition
		icon = GFX_goal_generic_demand_territory
		prerequisite = { focus = CHI_sea_secure_internal_politics }
		mutually_exclusive = { focus = CHI_sea_cooperation_with_the_communists focus = CHI_sea_cooperation_with_the_nationalists }
		x = 5
		y = 1
		relative_position_id = CHI_sea_secure_internal_politics

		cost = 10

		ai_will_do = {
			base = 1
			modifier = {
				factor = 10
				original_tag = GXC
			}
		}

		available = {
			OR = {
				is_subject = no 
				is_subject_of = CHI
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes

		completion_reward = {
			add_war_support = 0.05
			CHI = { add_opinion_modifier = { modifier = CHI_opposition target = ROOT } }
			if = {
				limit = {
					is_subject = yes
					OVERLORD = {
						is_literally_china = yes
					}
				}
				OVERLORD = {
					set_autonomy = { target = ROOT autonomy_state = autonomy_free }
					create_wargoal = {
						target = ROOT
						type = puppet_wargoal_focus
						expire = 0
					}
				}
			}
			if = {
				limit = { is_faction_leader = yes }
				every_country = {
					limit = { is_literally_china = yes }
					ROOT = { remove_from_faction = PREV }
				}
			}
			else_if = {
				limit = { any_country = { is_in_faction_with = ROOT is_literally_china = yes } }				
				random_country = {
					limit = {
						is_in_faction_with = ROOT
						is_faction_leader = yes
					}
					remove_from_faction = ROOT
				}
			}
					
		}
	}

	focus = {
		id = CHI_sea_institute_cross_border_raids
		icon = GFX_focus_generic_provoke_border_clashes
		prerequisite = { focus = CHI_sea_opposition }		
		x = 0
		y = 1
		relative_position_id = CHI_sea_opposition

		cost = 5

		ai_will_do = {
			base = 1
		}

		available = {
			is_subject = no
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes

		completion_reward = {
			custom_effect_tooltip = CHI_institute_cross_border_raids_effect_tooltip
			set_country_flag = CHI_institute_cross_border_raids
		}
	}


	focus = {
		id = CHI_sea_public_works
		icon = GFX_focus_generic_public_works
		prerequisite = { focus = CHI_sea_cooperation_with_the_communists focus = CHI_sea_opposition }
		x = -1
		y = 2
		relative_position_id = CHI_sea_opposition

		cost = 10

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_ideas = CHI_public_works
		}
	}

	focus = {
		id = CHI_sea_labor_reform
		icon = GFX_goal_generic_construction2
		prerequisite = { focus = CHI_sea_public_works }
		x = -1
		y = 1
		relative_position_id = CHI_sea_public_works

		cost = 5

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_ideas = CHI_labor_reform
		}
	}

	focus = {
		id = CHI_sea_rural_militias
		icon = GFX_goal_generic_military_sphere
		prerequisite = { focus = CHI_sea_public_works }
		x = 1
		y = 1
		relative_position_id = CHI_sea_public_works

		cost = 10

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_ideas = CHI_rural_militias
		}
	}

	focus = {
		id = CHI_sea_war_taxes
		icon = GFX_goal_generic_consumer_goods
		prerequisite = { focus = CHI_sea_opposition }
		x = 3
		y = 1
		relative_position_id = CHI_sea_opposition

		cost = 10

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_ideas = CHI_war_taxes
		}
	}

	focus = {
		id = CHI_sea_seek_japanese_support
		icon = GFX_focus_chi_collaboration_with_the_japanese
		prerequisite = { focus = CHI_sea_war_taxes }
		x = -2
		y = 1
		relative_position_id = CHI_sea_war_taxes

		cost = 5

		ai_will_do = {
			base = 1
		}

		available = {
			is_subject = no
			NOT = { has_war_with = JAP }
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			unlock_decision_category_tooltip = CHI_seek_japanese_support
		}
	}

	focus = {
		id = CHI_sea_personal_leadership
		icon = GFX_goal_generic_political_pressure
		prerequisite = { focus = CHI_sea_war_taxes }
		x = 0
		y = 1
		relative_position_id = CHI_sea_war_taxes

		cost = 5

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_command_power = 30
			custom_effect_tooltip = generic_skip_one_line_tt

			IF = {
				limit = {
					any_character = {
						is_country_leader = yes
						is_field_marshal = yes 
					}
				}
				random_character = {
					limit = {
						is_country_leader = yes
						is_field_marshal = yes 
					}
					add_attack = 1
					add_defense = 1
					custom_effect_tooltip = generic_skip_one_line_tt
					custom_effect_tooltip = CHI_personal_leadership_custom_tt
					hidden_effect = {
						add_random_trait = { old_guard brilliant_strategist cavalry_officer politically_connected career_officer infantry_officer war_hero }
					}	
				}
			}
			ELSE = {
				random_character = {
					limit = {
						is_country_leader = yes
					}
					add_field_marshal_role = {
						traits = {  }
						skill = 2
						attack_skill = 2
						defense_skill = 2
						planning_skill = 2
						logistics_skill = 1
					}
					custom_effect_tooltip = CHI_personal_leadership_custom_tt
					hidden_effect = {
						add_random_trait = { old_guard brilliant_strategist cavalry_officer politically_connected career_officer infantry_officer war_hero }
					}	
				}
			}
		}
	}

	focus = {
		id = CHI_sea_cult_of_personality
		icon = GFX_goal_generic_propaganda
		prerequisite = { focus = CHI_sea_war_taxes }
		x = 2
		y = 1
		relative_position_id = CHI_sea_war_taxes

		cost = 5

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_STABILITY }
		completion_reward = {
			add_stability = 0.1
			add_war_support = 0.05
		}
	}

	focus = {
		id = CHI_sea_provoke_border_clashes
		icon = GFX_focus_generic_provoke_border_clashes
		prerequisite = { focus = CHI_sea_personal_leadership }
		mutually_exclusive = { focus = CHI_sea_defensive_posture }
		x = -1
		y = 1
		relative_position_id = CHI_sea_personal_leadership

		cost = 10

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			custom_effect_tooltip = CHI_provoke_border_clashes_effect_tooltip
			set_country_flag = CHI_provoke_border_clashes
		}
	}

	focus = {
		id = CHI_sea_defensive_posture
		icon = GFX_goal_generic_defence
		prerequisite = { focus = CHI_sea_personal_leadership }
		mutually_exclusive = { focus = CHI_sea_provoke_border_clashes }
		x = 1
		y = 1
		relative_position_id = CHI_sea_personal_leadership

		cost = 10

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_ideas = CHI_defensive_posture
		}
	}

	focus = {
		id = CHI_sea_rapid_mobilization
		icon = GFX_focus_CHI_baojia_system
		prerequisite = { focus = CHI_sea_provoke_border_clashes focus = CHI_sea_defensive_posture }
		x = 0
		y = 2
		relative_position_id = CHI_sea_personal_leadership

		cost = 5

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		complete_tooltip = {
		}

		completion_reward = {
			add_ideas = CHI_rapid_mobilization	
		}
	}

	focus = {
		id = CHI_sea_proclaim_rival_government
		icon = GFX_focus_chi_proclaim_rival_government
		prerequisite = { focus = CHI_sea_rural_militias }
		prerequisite = { focus = CHI_sea_rapid_mobilization }
		x = 1
		y = 3
		relative_position_id = CHI_sea_rural_militias

		cost = 10

		ai_will_do = {
			base = 1
		}

		available = {
			is_subject = no
			IF = {
				limit = {
					original_tag = XIC
				}
				NOT = {
					has_completed_focus = XIC_reclaim_the_lost_birthright
				}
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			every_state = {
				limit = {
					is_core_of = CHI
				}
				add_core_of = ROOT
			}
			#Switch to dominant ideology or split into 2 focus
			if = {
				limit = {
					OR = {
						has_government = communism
						communism > 0.5
					}
					NOT = { neutrality > 0.5 }
				}
				load_focus_tree = china_communist_warlord_focus
			}
			else = {
				load_focus_tree = china_nationalist_warlord_focus
			}
			custom_effect_tooltip = CHL_skip_one_line_tt
			CHI_no_longer_a_warlord_idea_removal = yes
			custom_effect_tooltip = generic_skip_one_line_tt
			IF = {
				limit = {
					has_idea = SIK_battle_for_sinkiang
				}
				remove_ideas = {
					SIK_battle_for_sinkiang
				}
			}
			IF = {
				limit = {
					has_idea = SIC_a_loose_unity
				}
				remove_ideas = {
					SIC_a_loose_unity
				}
			}
		}
	}

	#####################
	##### Industry ######
	#####################

	focus = {
			id = CHI_sea_develop_capital
			icon = GFX_goal_generic_construct_civ_factory
			x = 14
			y = 0

			relative_position_id = CHI_sea_secure_internal_politics
	
			cost = 5
	
			ai_will_do = {
				base = 4
			}
			available = {
				OR = {
					is_ai = no
					date > 1936.1.1
				}
			}
	
			bypass = {
				capital_scope = {
					NOT = {
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
				}
			}
	
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
	
			dynamic = yes 
	
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
				capital_scope = {
					IF = {
						limit = {
							free_building_slots = {
								building = industrial_complex
								size > 0
								include_locked = yes
							}
						}
						add_extra_state_shared_building_slots = 3 # Allows for a bit more manual expansion of the capital region 
						add_building_construction = {
							type = industrial_complex
							level = 1
							instant_build = yes
						}
					}
				}
			}
		}

		focus = {
			id = CHI_sea_further_industrial_investment
			icon = GFX_goal_generic_construct_civilian
			x = -1
			y = 1

			relative_position_id = CHI_sea_develop_capital
	
			cost = 5

			prerequisite = { focus = CHI_sea_develop_capital }
	
			ai_will_do = {
				base = 4
			}
	
			available = {
	
			}
	
			bypass = {
	
			}
	
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
	
	
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
				random_owned_controlled_state = {
					limit = {
						impassable = no
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
			}
		}

		focus = {
			id = CHI_sea_develop_capital_arsenal
			icon = GFX_goal_generic_construct_mil_factory
			x = 1
			y = 1

			relative_position_id = CHI_sea_develop_capital
	
			cost = 5

			prerequisite = { focus = CHI_sea_develop_capital }
	
			ai_will_do = {
				base = 4
			}
	
			available = {
	
			}
	
			bypass = {
	
			}
	
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
	
			dynamic = yes 
	
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
				capital_scope = {
					IF = {
						limit = {
							free_building_slots = {
								building = arms_factory
								size > 0
								include_locked = yes
							}
						}
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
							type = arms_factory
							level = 1
							instant_build = yes
						}
					}
				}
			}
		}

		focus = {
			id = CHI_sea_small_arms_production
			icon = GFX_goal_generic_small_arms
			x = 1
			y = 1

			relative_position_id = CHI_sea_develop_capital_arsenal
	
			cost = 10

			prerequisite = { focus = CHI_sea_develop_capital_arsenal }
	
			ai_will_do = {
				base = 4
			}
	
			available = {
	
			}
	
			bypass = {
	
			}
	
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
	
	
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
				capital_scope = {
					IF = {
						limit = {
							free_building_slots = {
								building = arms_factory
								size > 0
								include_locked = yes
							}
						}
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
							type = arms_factory
							level = 1
							instant_build = yes
						}
					}
				}
				add_tech_bonus = {
					name = CHI_local_arms_development
					bonus = 1.0
					uses = 1
					category = infantry_weapons
				}
			}
		}

		focus = {
			id = CHI_sea_heavy_weapons_development
			icon = GFX_goal_generic_army_artillery
			x = 0
			y = 1

			relative_position_id = CHI_sea_small_arms_production
	
			cost = 5

			prerequisite = { focus = CHI_sea_small_arms_production }
	
			ai_will_do = {
				base = 4
			}
	
			available = {
	
			}
	
			bypass = {
	
			}
	
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
	
	
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
				add_breakthrough_progress = {
					specialization = specialization_land
					value = 0.5
				}
	
				add_tech_bonus = {
					name = CHI_heavy_weapons_development
					bonus = 1.0
					uses = 1
					category = artillery
				}
			}
		}

		focus = {
			id = CHI_sea_long_term_economic_planning
			icon = GFX_goal_generic_production2
			x = -1
			y = 1

			relative_position_id = CHI_sea_further_industrial_investment
		
			cost = 10

			prerequisite = { focus = CHI_sea_further_industrial_investment }
		
			ai_will_do = {
				base = 4
			}
		
			available = {
		
			}
		
			bypass = {
		
			}
		
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
		
		
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
				add_ideas = CHI_long_term_economic_planning
			}
		}

		focus = {
			id = CHI_sea_industrial_research_projects
			icon = GFX_focus_generic_industrialists
			x = 0
			y = 1

			relative_position_id = CHI_sea_long_term_economic_planning
		
			cost = 5

			prerequisite = { focus = CHI_sea_long_term_economic_planning }
		
			ai_will_do = {
				base = 1
			}
		
			available = {
		
			}
		
			bypass = {
		
			}
		
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
		
		
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
				add_tech_bonus = {
					name = CHI_sea_industrial_research_projects
					bonus = 1.0
					uses = 2
					category = industry
				}
			}
		}

		focus = {
			id = CHI_sea_expand_public_education
			icon = GFX_focus_research
			x = 1
			y = 1

			relative_position_id = CHI_sea_further_industrial_investment
		
			cost = 10

			prerequisite = { focus = CHI_sea_further_industrial_investment focus = CHI_sea_develop_capital_arsenal }
		
			ai_will_do = {
				base = 4
			}
		
			available = {
		
			}
		
			bypass = {
		
			}
		
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
		
		
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
				add_research_slot = 1
			}
		}

		focus = {
			id = CHI_sea_fund_research_projects
			icon = GFX_focus_research2
			x = 0
			y = 1

			relative_position_id = CHI_sea_expand_public_education
		
			cost = 5

			prerequisite = { focus = CHI_sea_expand_public_education }
		
			ai_will_do = {
				base = 4
			}
		
			available = {
		
			}
		
			bypass = {
		
			}
		
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
		
		
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
				add_ideas = CHI_tsr_funding_public_research
			}
		}

		focus = {
			id = CHI_sea_rely_on_our_infantry
			icon = GFX_focus_generic_little_entente
			x = -1
			y = 1

			relative_position_id = CHI_sea_fund_research_projects

			mutually_exclusive = {
				focus = CHI_sea_modern_warfare
			}
		
			cost = 10

			prerequisite = { focus = CHI_sea_fund_research_projects }
		
			ai_will_do = {
				base = 0
			}
		
			available = {
		
			}
		
			bypass = {
		
			}
		
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
		
		
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
				add_tech_bonus = {
					name = CHI_sea_rely_on_our_infantry
					bonus = 1.0
					uses = 1
					category = artillery
				}
				add_tech_bonus = {
					name = CHI_sea_rely_on_our_infantry
					bonus = 0.75
					uses = 2
					category = infantry_weapons
				}
				army_experience = 50
			}
		}

		focus = {
			id = CHI_sea_modern_warfare
			icon = GFX_goal_generic_army_tanks
			x = 1
			y = 1

			relative_position_id = CHI_sea_fund_research_projects

			mutually_exclusive = {
				focus = CHI_sea_rely_on_our_infantry
			}
		
			cost = 10

			prerequisite = { focus = CHI_sea_fund_research_projects }
		
			ai_will_do = {
				base = 0
			}
		
			available = {
		
			}
		
			bypass = {
		
			}
		
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
		
		
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
				add_tech_bonus = {
					name = CHI_sea_modern_warfare
					bonus = 0.75
					uses = 2
					category = armor
				}
				army_experience = 50
				air_experience = 25
				navy_experience = 25
			}
		}



	### WARLORD NATIONAL SPIRIT-RELATED FOCUSES ###

	focus = {
		id = CHI_sea_strenghten_warlord_authority
		icon = GFX_focus_generic_military_dictatorship
		x = 20
		y = 0

		cost = 10

		relative_position_id = CHI_sea_secure_internal_politics

		ai_will_do = {
			base = 1
		}
		available = {
			OR = {
				is_ai = no
				date > 1936.1.1
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			IF = {
				limit = {
					has_idea = CHI_warlord_state_idea
				}
				swap_ideas = {
					remove_idea = CHI_warlord_state_idea
					add_idea = CHI_warlord_state_idea_2
				}	
			}
		}
	}

	focus = {
		id = CHI_sea_uplift_the_cavalry_regiments
		icon = GFX_goal_generic_cavalry
		x = -1
		y = 1

		cost = 5

		prerequisite = { focus = CHI_sea_strenghten_warlord_authority }

		relative_position_id = CHI_sea_strenghten_warlord_authority

		mutually_exclusive = {
			focus = CHI_sea_uplift_the_mountain_brigades
		}

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }
		completion_reward = {
			swap_ideas = {
				remove_idea = CHI_warlord_state_idea_2
				add_idea = CHI_warlord_state_idea_cav
			}	
		}
	}

	focus = {
		id = CHI_sea_uplift_the_mountain_brigades
		icon = GFX_focus_secret_rearmament
		x = 1
		y = 1

		cost = 5

		prerequisite = { focus = CHI_sea_strenghten_warlord_authority }

		relative_position_id = CHI_sea_strenghten_warlord_authority

		mutually_exclusive = {
			focus = CHI_sea_uplift_the_cavalry_regiments
		}

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }
		completion_reward = {

			swap_ideas = {
				remove_idea = CHI_warlord_state_idea_2
				add_idea = CHI_warlord_state_idea_mnt
			}

			add_tech_bonus = {
				name = CHI_uplift_the_mountain_brigades
				bonus = 0.75
				uses = 1
				category = mountaineers_tech
			}	
		}
	}

	focus = {
		id = CHI_sea_consolidate_our_rule
		icon = GFX_focus_CHI_dang_guo
		x = -1
		y = 1

		cost = 10

		prerequisite = { focus = CHI_sea_uplift_the_mountain_brigades focus = CHI_sea_uplift_the_cavalry_regiments }

		relative_position_id = CHI_sea_uplift_the_mountain_brigades

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {

			add_stability = 0.05
			add_political_power = 50

			custom_effect_tooltip = generic_skip_one_line_tt 

			add_dynamic_modifier = {
			 	modifier = CHI_warlord_army_dynamic_modifier
			}
			add_to_variable = { 
				ROOT.CHI_warlord_army_political_power_gain = 0.1 
				tooltip = political_power_gain_tt
			} 

		}
	}

	focus = {
		id = CHI_sea_fortification_efforts
		icon = GFX_goal_fortify_the_westwall
		x = 0
		y = 1

		cost = 10

		prerequisite = { focus = CHI_sea_consolidate_our_rule }

		relative_position_id = CHI_sea_consolidate_our_rule

		ai_will_do = {
			base = 0
		}

		available = {
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }
		completion_reward = {
			every_owned_state = {
				limit = {
					is_fully_controlled_by = ROOT
					impassable = no
				}
				add_building_construction = {
					type = bunker
					level = 1
					instant_build = yes
					province = {
						all_provinces = yes
						limit_to_border = yes
					}
				}
			}
			custom_effect_tooltip = modify_warlord_army_tt
			add_to_variable = { 
			ROOT.CHI_warlord_army_production_speed_buildings_factor = 0.05
			tooltip = production_speed_buildings_factor_tt
			} 
		}
	}

	focus = {
		id = CHI_sea_infantry_efforts
		icon = GFX_focus_CHI_popular_army
		x = -2
		y = 1

		cost = 5

		prerequisite = { focus = CHI_sea_consolidate_our_rule }

		relative_position_id = CHI_sea_consolidate_our_rule

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }
		completion_reward = {
			custom_effect_tooltip = modify_warlord_army_tt
			add_to_variable = { 
			ROOT.CHI_warlord_army_army_infantry_attack_factor = 0.05
			tooltip = army_infantry_attack_factor_tt
			}
			add_to_variable = { 
			ROOT.CHI_warlord_army_army_infantry_defence_factor = 0.025
			tooltip = army_infantry_defence_factor_tt
			}
		}
	}

	focus = {
		id = CHI_sea_brigade_specialization
		icon = GFX_focus_CHI_tongzi_jun
		x = 2
		y = 1

		cost = 5

		prerequisite = { focus = CHI_sea_consolidate_our_rule }

		relative_position_id = CHI_sea_consolidate_our_rule

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }
		completion_reward = {
			custom_effect_tooltip = modify_warlord_army_tt
			add_to_variable = { 
			ROOT.CHI_warlord_army_special_forces_cap = 0.05
			tooltip = special_forces_cap_tt
			}
			add_to_variable = { 
			ROOT.CHI_warlord_army_special_forces_out_of_supply_factor = -0.05
			tooltip = special_forces_out_of_supply_factor_tt
			}
		}
	}

	focus = {
		id = CHI_sea_the_army
		icon = GFX_focus_CHI_military_affairs_commission
		x = 0
		y = 1

		dynamic = yes 

		cost = 10

		prerequisite = { focus = CHI_sea_brigade_specialization }
		prerequisite = { focus = CHI_sea_infantry_efforts }

		relative_position_id = CHI_sea_fortification_efforts

		ai_will_do = {
			base = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }
		completion_reward = {
			custom_effect_tooltip = modify_warlord_army_tt
			add_to_variable = { 
			ROOT.CHI_warlord_army_army_core_attack_factor = 0.05
			tooltip = army_core_attack_factor_tt
			}
			add_to_variable = { 
			ROOT.CHI_warlord_army_army_core_defence_factor = 0.025
			tooltip = army_core_defence_factor_tt
			}
			add_war_support = 0.1
		}
	}

	## Flavour
	focus = {
		id = SIK_time_waster
		icon = GFX_goal_generic_production2
		x = 59
		y = 20
		cost = 313
		ai_will_do = {	factor = 1000	}
		allow_branch = {	tag = SIK	}		
		available = { is_ai = yes	}
		completion_reward = {}
	}
	focus = {
		id = SIK_cooperate_with_the_ussr
		icon = GFX_focus_chi_mission_to_the_soviet_union
		x = 36
		y = 0

		cost = 10

		ai_will_do = {
			base = 15
		}

		allow_branch = {
			tag = SIK
		}

		available = {
			SOV = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			OR = {
				is_ai = no
				date > 1936.1.1
			}
		}
		bypass = {
			SOV = {
				OR = {
					exists = no
					has_war_with = ROOT
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }
		completion_reward = {

			add_stability = 0.1
			add_political_power = 50

			custom_effect_tooltip = generic_skip_one_line_tt

			SOV = {
				add_opinion_modifier = {
					target = ROOT
					modifier = SOV_cooperation_with_sinkiang
				}
				add_ai_strategy = {
					type = support
					id = ROOT
					value = 150
				}
			}
			
		}
	}

	focus = {
		id = SIK_office_of_sinkiang_border_commissioner
		icon = GFX_focus_generic_befriend_sinkiang
		x = 30
		y = 1

		cost = 5

		prerequisite = { focus = CHI_sea_strenghten_warlord_authority }

		ai_will_do = {
			base = 10
		}

		allow_branch = {
			tag = SIK
		}

		available = {
			is_subject = no
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_MANPOWER }

		completion_reward = {

			add_war_support = 0.1
			add_command_power = 25
			add_manpower = 5000
			
		}
	}

	focus = {
		id = SIK_six_great_policies
		icon = GFX_focus_PRC_three_rules_of_discipline
		x = 0
		y = 1

		cost = 10

		prerequisite = { focus = SIK_office_of_sinkiang_border_commissioner }

		relative_position_id = SIK_office_of_sinkiang_border_commissioner

		ai_will_do = {
			base = 10
		}

		available = {
			
		}

		bypass = {
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			
			add_political_power = 75

			custom_effect_tooltip = generic_skip_one_line_tt

			add_ideas = SIK_the_six_policies

		}
	}

	focus = {
		id = SIK_establish_the_xinjiangneft
		icon = GFX_focus_generic_resource_extraction
		x = 2
		y = 1

		cost = 5

		prerequisite = { focus = SIK_cooperate_with_the_ussr }

		relative_position_id = SIK_cooperate_with_the_ussr

		ai_will_do = {
			base = 10
		}

		available = {
			SOV = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			controls_state = 618
		}

		bypass = {
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }
		completion_reward = {
			add_resource = {
			    type = oil
			    amount = 8
			    state = 618
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = available_industrial_concern
			show_ideas_tooltip = sino_soviet_resource_surveyors

			hidden_effect = {
				set_country_flag = SIK_established_the_xinjiangneft_flag 
			}

		}
	}

	focus = {
		id = SIK_invest_in_the_dushanzi_oil_fields 
		icon = GFX_goal_generic_oil_refinery
		x = 0
		y = 1

		cost = 10

		prerequisite = { focus = SIK_establish_the_xinjiangneft }

		relative_position_id = SIK_establish_the_xinjiangneft

		ai_will_do = {
			base = 10
		}

		available = {
			SOV = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			controls_state = 618
		}

		bypass = {
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {

			IF = {
				limit = {
					SOV = {
						exists = yes
						NOT = {
							has_war_with = ROOT
						}
					}
				}
				give_resource_rights = {
				    receiver = SOV
				    state = 618
				    resources = { oil }
				}
			}
			
			add_resource = {
			    type = oil
			    amount = 35
			    state = 618
			}

			IF = {
				limit = {
					618 = {
						infrastructure < 5
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				618 = {
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}	
				}
			}

		}
	}

	focus = {
		id = SIK_military_cooperation
		icon = GFX_focus_SOV_builder_of_the_red_army
		x = -2
		y = 1

		cost = 10

		prerequisite = { focus = SIK_cooperate_with_the_ussr }

		relative_position_id = SIK_cooperate_with_the_ussr

		ai_will_do = {
			base = 15
		}

		available = {
			SOV = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		bypass = {
			SOV = {
				OR = {
					exists = no
					has_war_with = ROOT
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {

			add_equipment_to_stockpile = {
    			type = infantry_equipment
    			amount = 2000
    			producer = SOV
			}
			add_equipment_to_stockpile = {
    			type = artillery_equipment
    			amount = 150
    			producer = SOV
			}
			add_equipment_to_stockpile = {
    			type = motorized_equipment_0
    			amount = 50
    			producer = SOV
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_ideas = SIK_soviet_military_cooperation

			custom_effect_tooltip = generic_skip_one_line_tt

			hidden_effect = {
				delete_unit_template_and_units = {
					division_template = "Soviet Volunteers"
					disband = yes #if yes, will refund equipment/manpower.
				}

				division_template = {
					name = "Soviet Volunteers"
					division_names_group = SIK_INF_01
					role = garrison
					template_counter = 118
					is_locked = no
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 1 y = 0 }
						infantry = { x = 1 y = 1 }
					}
					support = {
					}
				}
			}

			random_owned_state = {
				limit = {
					state = 618
					is_controlled_by = ROOT
				}
				create_unit = {
				    division = "name = \"Altai Garrison Force\" division_template = \"Soviet Volunteers\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
				    owner = ROOT
				}
			}
		}
	}

	focus = {
		id = SIK_a_soviet_airforce
		icon = GFX_focus_PER_the_peoples_airforce
		x = 0
		y = 1

		cost = 10

		prerequisite = { focus = SIK_military_cooperation }

		relative_position_id = SIK_military_cooperation

		ai_will_do = {
			base = 15
		}

		available = {
			SOV = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {

			IF = {
				limit = {
					617 = {
						is_owned_and_controlled_by = ROOT
						air_base < 6
					}
				}
				617 = {
					add_building_construction = {
						type = air_base
						level = 4
						instant_build = yes
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}

			add_ideas = SIK_soviet_pilot_schools 

			custom_effect_tooltip = generic_skip_one_line_tt

			IF = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				
				add_equipment_to_stockpile = { 
					type = small_plane_airframe_0
					amount = 100
					producer = SOV
				}
				
			}
			ELSE = {
				add_equipment_to_stockpile = { 
					type = fighter_equipment_0
					amount = 100
					producer = SOV
				}
			}

		}
	}

	focus = {
		id = SIK_utilize_asperovs_contacts
		icon = GFX_goal_generic_soviet_construction
		x = 0
		y = 2

		cost = 10

		prerequisite = { focus = SIK_cooperate_with_the_ussr }

		relative_position_id = SIK_cooperate_with_the_ussr

		ai_will_do = {
			base = 15
		}

		available = {
			SOV = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {

			random_owned_controlled_state = {
				limit = {
					impassable = no
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}

			
		}
	}

	focus = {
		id = SIK_cooperate_with_the_nkvd
		icon = GFX_focus_JAP_learn_from_the_nkvd
		x = -1
		y = 1

		cost = 5

		prerequisite = { focus = SIK_utilize_asperovs_contacts }

		relative_position_id = SIK_utilize_asperovs_contacts

		ai_will_do = {
			base = 15
		}

		available = {
			SOV = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {

			IF = {
				limit = {
					has_dlc = "La Resistance"
				}
				IF = {
					limit = {
						has_intelligence_agency = no
					}
					create_intelligence_agency = yes
				}
				custom_effect_tooltip = generic_skip_one_line_tt

				add_ideas = SIK_the_nkvd_lar
			}
			ELSE = {
				add_ideas = SIK_the_nkvd_no_lar
			}
			
		}
	}

	focus = {
		id = SIK_three_year_plan_for_reconstruction
		icon = GFX_focus_generic_central_planning
		x = 1
		y = 1

		cost = 5

		prerequisite = { focus = SIK_utilize_asperovs_contacts }

		relative_position_id = SIK_utilize_asperovs_contacts

		ai_will_do = {
			base = 15
		}

		available = {
			SOV = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {

			add_timed_idea = {
				idea = SIK_three_year_plan
				days = 1095
			}	
			
		}
	}

	focus = {
		id = SIK_a_new_xinjiang
		icon = GFX_focus_PRC_revolutionary_war_of_the_masses
		x = -1
		y = 1

		cost = 10

		prerequisite = { focus = SIK_three_year_plan_for_reconstruction }
		prerequisite = { focus = SIK_cooperate_with_the_nkvd }

		relative_position_id = SIK_three_year_plan_for_reconstruction

		ai_will_do = {
			base = 15
		}

		available = {
			SOV = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				has_idea = SIK_three_year_plan
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {

			add_ideas = SIK_a_modern_province
			
		}
	}

	focus = {
		id = SIK_march_into_khotan
		icon = GFX_focus_generic_attack_kuomintang
		x = -2
		y = 2

		cost = 10

		prerequisite = { focus = SIK_military_cooperation focus = SIK_office_of_sinkiang_border_commissioner }

		relative_position_id = SIK_military_cooperation

		ai_will_do = {
			base = 15
		}

		available = {
			is_in_faction = no
			KHM = {
				exists = yes
			}
		}

		bypass = {
			KHM = {
				exists = no
			}
		}

		cancelable = no
		will_lead_to_war_with = KHM
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_ANNEXATION }

		completion_reward = {

			declare_war_on = {
				target = KHM
				type = annex_everything
			}

			# The Kumul Rebellion 
			country_event = {
    			id = SEA_warlords.4
			}

			custom_effect_tooltip = SIK_march_into_khotan_tt

			hidden_effect = {
				# Additional Soviet Supplies Arrive
				country_event = {
	    			id = SEA_warlords.63
	    			days = 42
				}
				# Activate the missions 
				activate_mission = SIK_war_halting
				KHM = { activate_mission = KHM_holding_out }
			}

		}
	}

	focus = {
		id = SIK_a_united_sinkiang_clique
		icon = GFX_focus_prc_agrarian_socialism
		x = -2
		y = 1

		cost = 10

		prerequisite = { focus = SIK_march_into_khotan }

		relative_position_id = SIK_march_into_khotan

		mutually_exclusive = {
			focus = SIK_pursue_further_soviet_integration
			focus = SIK_soviet_intervention
		}

		ai_will_do = {
			base = 15
		}

		available = {
			NOT = {
				has_war_with = KHM
				has_war_with = KUM
			}
			KHM = {
				exists = no
			}
			1042 = {
				is_controlled_by = ROOT
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }
		completion_reward = {

			SIK_sheng_shicai = {
				swap_country_leader_traits = {
				    remove = SIK_communist_in_name_only
				    add = JAP_socialist_revolutionary
				    ideology = stalinism
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			
			IF = {
				limit = {
					has_idea = SIK_battle_for_sinkiang
				}
				remove_ideas = {
					SIK_battle_for_sinkiang
				}

				custom_effect_tooltip = generic_skip_one_line_tt
			}

			add_political_power = 50
			add_stability = 0.05
		}
	}

	focus = {
		id = SIK_pursue_further_soviet_integration
		icon = GFX_focus_generic_soviet_politics
		x = 0
		y = 1

		cost = 5

		prerequisite = { focus = SIK_march_into_khotan }

		relative_position_id = SIK_march_into_khotan

		mutually_exclusive = {
			focus = SIK_a_united_sinkiang_clique
			focus = SIK_soviet_intervention
		}

		ai_will_do = {
			base = 0
		}

		available = {
			is_subject = no
			SOV = {
				exists = yes
				has_government = communism
			}
			NOT = {
				has_war_with = KHM
				has_war_with = KUM
			}
			1042 = {
				is_controlled_by = ROOT
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }
		completion_reward = {
			SOV = {
				puppet = ROOT 
			}
			set_cosmetic_tag = SIK_ssr
			custom_effect_tooltip = generic_skip_one_line_tt
			set_party_name = {
			    ideology = communism
			    long_name = SIK_CPSU_communism_party_long
			    name = SIK_CPSU_communism_party
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			IF = {
				limit = {
					has_idea = SIK_battle_for_sinkiang
				}
				remove_ideas = {
					SIK_battle_for_sinkiang
				}

				custom_effect_tooltip = generic_skip_one_line_tt
			}
			add_political_power = 75
			add_stability = 0.1
		}
	}

	focus = {
		id = SIK_soviet_intervention
		icon = GFX_focus_SOV_military_purge
		x = 2
		y = 1

		cost = 5

		prerequisite = { focus = SIK_march_into_khotan }

		relative_position_id = SIK_march_into_khotan

		mutually_exclusive = {
			focus = SIK_a_united_sinkiang_clique
			focus = SIK_pursue_further_soviet_integration
		}

		ai_will_do = {
			base = 0
		}

		available = {
			is_subject = no
			SOV = {
				exists = yes
				has_government = communism
			}
			NOT = {
				has_war_with = KHM
				has_war_with = KUM
			}
			1042 = {
				NOT = {
					is_controlled_by = ROOT
				}
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			
			SOV = {
				puppet = ROOT 
			}
			set_cosmetic_tag = SIK_ssr
			custom_effect_tooltip = generic_skip_one_line_tt
			set_party_name = {
			    ideology = communism
			    long_name = SIK_CPSU_communism_party_long
			    name = SIK_CPSU_communism_party
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			IF = {
				limit = {
					has_idea = SIK_battle_for_sinkiang
				}
				remove_ideas = {
					SIK_battle_for_sinkiang
				}

				custom_effect_tooltip = generic_skip_one_line_tt
			}

			add_country_leader_role = {
				character = SIK_ishaq_musonov
				promote_leader = yes
				country_leader = {
					ideology = stalinism
					expire = "1965.1.1.1"
					traits = { JAP_socialist_revolutionary } 
				}
			}	
			SIK_ishaq_musonov = {
				promote_leader = yes
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			retire_character = SIK_sheng_shicai

		}
	}

	focus = {
		id = SIK_ensure_a_clean_government
		icon = GFX_focus_SOV_the_last_purge
		x = -1
		y = 1

		cost = 5

		prerequisite = { focus = SIK_soviet_intervention focus = SIK_pursue_further_soviet_integration }

		relative_position_id = SIK_soviet_intervention

		ai_will_do = {
			base = 15
		}

		available = {
			SOV = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {

			add_manpower = -5000
			add_stability = 0.1
			add_political_power = 50

			custom_effect_tooltip = generic_skip_one_line_tt

			IF = {
				limit = {
					has_idea = PRC_government_corruption
				}
				remove_ideas = PRC_government_corruption
			}

			IF = {
				limit = {
					has_character = KHM_mahmut_muhiti
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				retire_character = KHM_mahmut_muhiti
			}
			
		}
	}

	focus = {
		id = SIK_protector_of_the_kyrgiz
		icon = GFX_focus_AFG_integrate_tajik_and_uzbek_republics
		x = 0
		y = 2

		cost = 5

		prerequisite = { focus = SIK_soviet_intervention }

		relative_position_id = SIK_soviet_intervention

		ai_will_do = {
			base = 15
		}

		available = {
			has_government = communism
			SOV = {
				exists = yes
				has_subject = ROOT
				controls_state = 732
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {

			SOV = {
				country_event = {
					id = SEA_warlords.65
					hours = 6
					random_hours = 12
				}	
			}
			
		}
	}

	focus = {
		id = SIK_transformation_of_nature
		icon = GFX_focus_CHI_students_to_the_countryside
		x = 2
		y = 1

		cost = 10

		prerequisite = { focus = SIK_soviet_intervention focus = SIK_pursue_further_soviet_integration }
		prerequisite = { focus = SIK_a_new_xinjiang  }

		relative_position_id = SIK_soviet_intervention

		ai_will_do = {
			base = 15
		}

		available = {
			SOV = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {

			add_ideas = SIK_transformation_of_nature_idea
			
		}
	}

	focus = {
		id = SIK_a_new_nationality_policy
		icon = GFX_focus_PER_university_of_isfahan
		x = 1
		y = 1

		cost = 5

		prerequisite = { focus = SIK_a_united_sinkiang_clique focus = SIK_pursue_further_soviet_integration }

		relative_position_id = SIK_a_united_sinkiang_clique

		#mutually_exclusive = {
		#	focus = SIK_pursue_further_soviet_integration
		#	focus = SIK_soviet_intervention
		#}

		ai_will_do = {
			base = 15
		}

		available = {
			
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {

			add_ideas = SIK_state_atheism_freedom_of_religion

		}
	}

	focus = {
		id = SIK_king_of_sinkiang
		icon = GFX_focus_GER_proletarian_dictatorship
		x = 0
		y = 2

		cost = 10

		prerequisite = { focus = SIK_a_united_sinkiang_clique }
		prerequisite = { focus = SIK_a_new_nationality_policy }

		relative_position_id = SIK_a_united_sinkiang_clique

		#mutually_exclusive = {
		#	focus = SIK_pursue_further_soviet_integration
		#	focus = SIK_soviet_intervention
		#}

		ai_will_do = {
			base = 15
		}

		available = {
			
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {

			IF = {
				limit = {
					SOV = {
						exists = yes
						has_government = communism
						NOT = {
							has_war_with = ROOT
						}
					}
				}
				SOV = {
					add_opinion_modifier = {
						target = ROOT
						modifier = SIK_detracting_from_party_line
					}	
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}

			SIK_sheng_shicai = {
				swap_country_leader_traits = {
				    remove = SIK_duban
				    add = SIK_the_king_of_sinkiang
				    ideology = stalinism
				}
			}
			
		}
	}

	focus = {
		id = SIK_rejoin_the_central_government
		icon = GFX_focus_CHI_lay_the_foundation_for_a_united_china
		x = -2
		y = 1

		cost = 10

		prerequisite = { focus = SIK_king_of_sinkiang }

		relative_position_id = SIK_king_of_sinkiang

		mutually_exclusive = {
			focus = SIK_reestablish_the_guominjun
			focus = SIK_reaffirm_soviet_connections
		}

		ai_will_do = {
			base = 0
			modifier = {
				add = 15
				SOV = {
					surrender_progress > 0.6
				}
			}
			modifier = {
				add = 10
				is_historical_focus_on = yes
				date > 1943.1.1 
			}
		}

		available = {
			is_subject = no
			CHI = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {

			set_politics = {
				ruling_party = neutrality
				elections_allowed = no
			}		
			add_popularity = {
				ideology = neutrality
				popularity = 0.7
			}	

			custom_effect_tooltip = generic_skip_one_line_tt

			hidden_effect = {
				IF = {
					limit = {
						SIK_sheng_shicai = {
							has_ideology = despotism
						}
					}
					# In case he has already been made leader by the warlrod focus 
					promote_character = {
					    character = SIK_sheng_shicai
					    ideology = despotism
					}
					SIK_sheng_shicai = {
						add_country_leader_trait = {
						    ideology = despotism
						    trait = SIK_the_king_of_sinkiang
						}
						add_country_leader_trait = {
						    ideology = despotism
						    trait = JAP_socialist_revolutionary
						}
					}
				}
			}

			SIK_sheng_shicai = {
				add_country_leader_role = {
					character = SIK_sheng_shicai
					country_leader = {
						expire = "1965.1.1"
						ideology = despotism
						traits = {
							SIK_the_king_of_sinkiang 
							JAP_socialist_revolutionary
						}
					}
					promote_leader = yes
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			set_cosmetic_tag = SIK_kmt

			IF = {
				limit = {
					is_in_faction = yes
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				add_faction_influence_ratio	= 0.05
			}

			IF = {
				limit = {
					SOV = {
						has_resources_rights = {
							state = 618 
							resources = { oil }
						}
					}
				}
				SOV = { remove_resource_rights = 618 }
			}
			
		}
	}

	focus = {
		id = SIK_reestablish_the_guominjun
		icon = GFX_focus_MAN_restore_the_beiyang_army
		x = 0
		y = 1

		cost = 10

		prerequisite = { focus = SIK_king_of_sinkiang }

		relative_position_id = SIK_king_of_sinkiang

		mutually_exclusive = {
			focus = SIK_rejoin_the_central_government
			focus = SIK_reaffirm_soviet_connections
		}

		ai_will_do = {
			base = 0
			modifier = {
				add = 10
				CHI = {
					OR = {
						exists = no
						is_subject = yes
						has_war_with = ROOT
					}
				}
			}
			modifier = {
				add = 10
				SOV = {
					OR = {
						exists = no
						is_subject = yes
						has_war_with = ROOT
					}
				}
			}
		}

		available = {
			is_subject = no
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_MANPOWER }

		completion_reward = {

			add_ideas = SIC_the_new_guominjun_idea

			IF = {
				limit = {
					CHI = {
						exists = yes
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				CHI = {
					country_event = {
						id = SEA_warlords.60
						hours = 6
					}	
				}
				effect_tooltip = {
					CHI = {
						CHI_feng_yuxiang = {
							set_nationality = ROOT
						}
						add_manpower = -5000
					}
					add_manpower = 5000
				}
			}
			ELSE = {
				custom_effect_tooltip = generic_skip_one_line_tt
				add_manpower = 5000
				CHI = {
					CHI_feng_yuxiang = {
						set_nationality = ROOT
					}
				}
			}

			IF = {
				limit = {
					SOV = {
						has_resources_rights = {
							state = 618 
							resources = { oil }
						}
					}
				}
				SOV = { remove_resource_rights = 618 }
			}

		}
	}

	focus = {
		id = SIK_reaffirm_soviet_connections
		icon = GFX_focus_PRC_embrace_stalinism
		x = 2
		y = 1

		cost = 5

		prerequisite = { focus = SIK_king_of_sinkiang }

		relative_position_id = SIK_king_of_sinkiang

		mutually_exclusive = {
			focus = SIK_rejoin_the_central_government
			focus = SIK_reestablish_the_guominjun
		}

		ai_will_do = {
			base = 0
			modifier = {
				add = 25
				has_war_with = JAP
				is_in_faction_with = CHI
				CHI = {
					surrender_progress > 0.85
				}
			}
			modifier = {
				factor = 0
				SOV = {
					surrender_progress > 0.6
				}
			}
			modifier = {
				factor = 0
				date < 1938.1.1 
			}
			modifier = {
				add = 5
				is_in_faction = no
				date > 1943.1.1 
			}
		}

		available = {
			is_subject = no
			has_government = SOV
			SOV = {
				exists = yes
				is_faction_leader = yes
			}
			NOT = {
				is_in_faction_with = SOV
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {

			IF = {
				limit = {
					SOV = {
						has_opinion_modifier = SIK_detracting_from_party_line
					}
				}
				SOV = {
					remove_opinion_modifier = {
						target = SIK
						modifier = SIK_detracting_from_party_line
					}	
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}

			SOV = {
				country_event = { id = generic.2 hours = 4 }
			} 

			hidden_effect = {
				SOV = {
					add_opinion_modifier = {
						target = ROOT
						modifier = large_increase
					}	
				}
			}
			
		}
	}

	focus = {
		id = KHM_call_for_aid
		icon = GFX_focus_CHI_weaponise_the_faithful
		x = 30
		y = 0

		cost = 5

		mutually_exclusive = {
			focus = KHM_strike_the_governor
		}

		ai_will_do = {
			base = 20
		}

		allow_branch = {
			tag = KHM
		}

		available = {
			has_war_with = SIK
		}

		bypass = {
			SIK = {
				exists = no
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }
		completion_reward = {
			add_war_support = 0.1
			IF = {
				limit = {
					CHI = {
						exists = yes
						is_subject = no
						NOT = {
							has_war_with = ROOT
						}
					}
				}
				CHI = {
					country_event = {
						id = SEA_warlords.6
						hours = 6
					}
				}
			}
		}
	}

	focus = {
		id = KHM_strike_the_governor
		icon = GFX_focus_generic_attack_sinkiang
		x = 2
		y = 0

		cost = 5

		relative_position_id = KHM_call_for_aid

		mutually_exclusive = {
			focus = KHM_call_for_aid
		}

		ai_will_do = {
			base = 20
		}

		allow_branch = {
			tag = KHM
		}

		available = {
			has_army_manpower = {
			    size > 20000
			}
			has_war_support > 0.5
		}

		bypass = {
			SIK = {
				exists = no
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }
		completion_reward = {
			hidden_effect = {
				set_country_flag = KHM_initiated_the_war_flag
			}
			declare_war_on = {
				target = SIK
				type = annex_everything
			}
			SIK = {
				every_core_state = {
					limit = {
						NOT = {
							is_claimed_by = ROOT
							is_core_of = ROOT
						}
					}
					add_claim_by = ROOT
				}
				country_event = {
	    			id = SEA_warlords.4
				}
			}
			
		}
	}

	focus = {
		id = KHM_push_them_back
		icon = GFX_focus_CHI_decisive_battles
		x = 1
		y = 1

		cost = 5

		prerequisite = { focus = KHM_call_for_aid focus = KHM_strike_the_governor }

		relative_position_id = KHM_call_for_aid

		ai_will_do = {
			base = 20
		}

		available = {
			has_war_with = SIK
		}

		bypass = {
			SIK = {
				exists = no
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			add_timed_idea = {
				idea = KHM_pushing_them_back_idea
				days = 180
			}	
		}
	}

	focus = {
		id = KHM_the_sinkiang_ma_clique
		icon = GFX_focus_generic_china1
		x = -1
		y = 1

		cost = 10

		prerequisite = { focus = KHM_push_them_back }

		relative_position_id = KHM_push_them_back

		mutually_exclusive = {
			focus = KHM_our_position_remains
		}

		ai_will_do = {
			base = 20
		}

		available = {
			SIK = {
				exists = no
			}
		}

		bypass = {
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }
		completion_reward = {

			KHM_ma_hushan = {
				add_trait = {
				    trait = KHM_governor_of_sinkiang
				    ideology = despotism
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			
			IF = {
				limit = {
					has_idea = SIK_battle_for_sinkiang
				}
				remove_ideas = {
					SIK_battle_for_sinkiang
				}

				custom_effect_tooltip = generic_skip_one_line_tt
			}

			add_political_power = 100
			add_stability = 0.05

			custom_effect_tooltip = generic_skip_one_line_tt

			set_cosmetic_tag = sinkiang_ma
			SIK = {
				every_core_state = {
					add_core_of = ROOT
				}
			}

			IF = {
				limit = {
					KUM = {
						exists = yes
						is_subject = no
						NOT = {
							has_war_with = ROOT
						}
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				create_wargoal = {
					type = annex_everything
					target = KUM
					generator = { 760 }
				}	
			}
			
		}
	}

	focus = {
		id = KHM_our_position_remains
		icon = GFX_focus_generic_support_the_left_right
		x = 1
		y = 1

		cost = 10

		prerequisite = { focus = KHM_push_them_back }

		relative_position_id = KHM_push_them_back

		mutually_exclusive = {
			focus = KHM_the_sinkiang_ma_clique
		}

		ai_will_do = {
			base = 20
		}

		available = {
			NOT = {
				has_war_with = SIK
			}
			SIK = {
				exists = yes
			}
		}

		bypass = {
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			add_political_power = 75
			add_stability = 0.05
			IF = {
				limit = {
					has_idea = SIK_battle_for_sinkiang
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				remove_ideas = {
					SIK_battle_for_sinkiang
				}
			}
		}

	}
	focus = {
		id = XSM_time_waster
		icon = GFX_goal_generic_production2
		x = 59
		y = 20
		cost = 313
		ai_will_do = {	factor = 1000	}
		available = { is_ai = yes	}
		completion_reward = {}
	}
	
	focus = {
		id = XSM_the_military_governor
		icon = GFX_focus_CHI_military_mission
		x = 31
		y = 0

		cost = 10

		ai_will_do = {
			base = 15
		}

		allow_branch = {
			tag = XSM
		}
		available = {
			OR = {
				is_ai = no
				date > 1936.1.1
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }
		completion_reward = {
			add_dynamic_modifier = {
				modifier = XSM_the_military_governor_dynamic_modifier
			}
			add_to_variable = { 
			ROOT.XSM_the_military_governor_stability_factor = -0.1 
			tooltip = stability_factor_tt
			} 
			add_to_variable = { 
			ROOT.XSM_the_military_governor_war_support_factor = 0.05
			tooltip = war_support_factor_tt
			} 

		}
	}

	focus = {
		id = XSM_a_hui_army
		icon = GFX_focus_PER_islamic_solidarity
		x = -1
		y = 1

		cost = 5

		prerequisite = { focus = XSM_the_military_governor }

		relative_position_id = XSM_the_military_governor

		ai_will_do = {
			base = 20
		}

		available = {
			
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			custom_effect_tooltip = modify_military_governor_tt
			add_to_variable = { 
			ROOT.XSM_the_military_governor_army_core_attack_factor = 0.025
			tooltip = army_core_attack_factor_tt
			} 
			add_to_variable = { 
			ROOT.XSM_the_military_governor_supply_combat_penalties_on_core_factor = -0.05
			tooltip = supply_combat_penalties_on_core_factor_tt
			} 	
		}
	}

	focus = {
		id = XSM_sway_the_people
		icon = GFX_focus_RAJ_seek_allies_with_the_muslim_league
		x = 1
		y = 1

		cost = 5

		prerequisite = { focus = XSM_the_military_governor }

		relative_position_id = XSM_the_military_governor

		ai_will_do = {
			base = 20
		}

		available = {
			
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			add_political_power = 50
			custom_effect_tooltip = modify_military_governor_tt
			add_to_variable = { 
			ROOT.XSM_the_military_governor_stability_factor = 0.05 
			tooltip = stability_factor_tt
			} 	
		}
	}

	focus = {
		id = XSM_sweep_out_communists
		icon = GFX_focus_GER_end_european_communism
		x = -1
		y = 1

		cost = 5

		prerequisite = { focus = XSM_sway_the_people focus = XSM_a_hui_army }

		relative_position_id = XSM_sway_the_people

		ai_will_do = {
			base = 20
		}

		available = {
			
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			add_political_power = 50
			add_timed_idea = {
				idea = tsr_anti_communist_campaign
				days = 365
			}
		}
	}

	focus = {
		id = XSM_send_ma_lin_on_hajj
		icon = GFX_focus_TUR_loosen_the_laws_on_secularism
		x = -1
		y = 1

		cost = 10

		prerequisite = { focus = XSM_sweep_out_communists }

		relative_position_id = XSM_sweep_out_communists

		mutually_exclusive = {
			focus = XSM_the_civilian_governor_remains
		}

		ai_will_do = {
			base = 20
		}

		available = {
			
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			add_political_power = 25
			custom_effect_tooltip = modify_military_governor_tt
			add_to_variable = { 
			ROOT.XSM_the_military_governor_stability_factor = 0.05 
			tooltip = stability_factor_tt
			}
			retire_character = QHM_ma_lin
			hidden_effect = {
				add_country_leader_role = {
					character = XSM_ma_bufang
					country_leader = {
						expire = "1965.1.1"
						ideology = anti_revisionism
						traits = {
							#
						}
					}
					promote_leader = yes				
				}
				add_country_leader_role = {
					character = XSM_ma_bufang
					country_leader = {
						expire = "1965.1.1"
						ideology = socialism
						traits = {
							#
						}
					}
					promote_leader = yes	
				}
				add_country_leader_role = {
					character = XSM_ma_bufang
					country_leader = {
						expire = "1965.1.1"
						ideology = rexism
						traits = {
							#
						}
					}
					promote_leader = yes				
				}	
			}	
		}
	}

	focus = {
		id = XSM_the_civilian_governor_remains
		icon = GFX_focus_CHI_lay_the_foundation_for_a_united_china
		x = 1
		y = 1

		cost = 10

		prerequisite = { focus = XSM_sweep_out_communists }

		relative_position_id = XSM_sweep_out_communists

		mutually_exclusive = {
			focus = XSM_send_ma_lin_on_hajj
		}

		ai_will_do = {
			base = 5
				modifier = {
					factor = 4
					is_historical_focus_on = yes 
				}
		}

		available = {
			
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			remove_dynamic_modifier = {
				modifier = XSM_the_military_governor_dynamic_modifier
			}
			add_ideas = XSM_tsr_diarchy
		}
	}

	focus = {
		id = XSM_solidifying_control
		icon = GFX_focus_generic_support_the_left_right
		x = 1
		y = 1

		cost = 10

		prerequisite = { focus = XSM_the_civilian_governor_remains focus = XSM_send_ma_lin_on_hajj }

		relative_position_id = XSM_send_ma_lin_on_hajj

		ai_will_do = {
			base = 20
		}

		available = {
			
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			IF = {
				limit = {
					has_country_leader = {
						character = QHM_ma_lin
					}
				}
				add_country_leader_trait = XSM_popular_governor
			}
			ELSE_IF = {
				limit = {
					has_country_leader = {
						character = XSM_ma_bufang
					}
				}
				add_country_leader_trait = XSM_loyal_warlord
			}	
		}
	}


	focus = {
		id = XSM_sideline_family_conflicts
		icon = GFX_focus_generic_subjugation
		x = 0
		y = 0

		offset = {
			x = 35
			y = 0
			trigger = {
				OR = {
					tag = XSM
					tag = KHM
				}
			}
		}

		offset = {
			x = 31
			y = 0
			trigger = {
				OR = {
					tag = GSM
					tag = NXM
				}
			}
		}

		cost = 5

		ai_will_do = {
			base = 0
		}

		allow_branch = {
			OR = {
				tag = XSM
				tag = KHM
				tag = GSM
				tag = NXM
			}
		}

		available = {
			is_subject = no
			OR = {
				is_ai = no
				date > 1936.1.1
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }
		completion_reward = {
			add_stability = 0.05
			add_political_power = 75
		}
	}

	focus = {
		id = XSM_strengthening_our_position
		icon = GFX_focus_generic_horse_studs	
		x = 0
		y = 1

		cost = 5

		prerequisite = { focus = XSM_sideline_family_conflicts }

		relative_position_id = XSM_sideline_family_conflicts

		ai_will_do = {
			base = 0
		}

		available = {
			is_subject = no
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			hidden_effect = {
				delete_unit_template_and_units = {
					division_template = "Muslim Cavalry"
					disband = yes #if yes, will refund equipment/manpower.
				}

				division_template = {
					name = "Muslim Cavalry"
					division_names_group = XSM_CAV_01
					role = garrison
					template_counter = 5
					is_locked = no
					regiments = {
						cavalry = { x = 0 y = 0 }
						cavalry = { x = 0 y = 1 }
						cavalry = { x = 0 y = 2 }
						cavalry = { x = 1 y = 0 }
						cavalry = { x = 1 y = 1 }
						cavalry = { x = 1 y = 2 }
					}
					support = {
					}
				}
			}

			random_owned_state = {
				limit = {
					impassable = no
					is_controlled_by = ROOT
				}
				create_unit = {
				    division = "name = \"First Hui Cavalry Division\" division_template = \"Muslim Cavalry\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
				    owner = ROOT
				}
				create_unit = {
				    division = "name = \"Second Hui Cavalry Division\" division_template = \"Muslim Cavalry\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
				    owner = ROOT
				}
			}	
		}
	}

	focus = {
		id = XSM_demand_submission
		icon = GFX_goal_demand_sudetenland
		x = -1
		y = 1

		cost = 10

		prerequisite = { focus = XSM_strengthening_our_position }

		relative_position_id = XSM_strengthening_our_position

		mutually_exclusive= {
			 focus = XSM_strike_at_the_detractors
		}

		ai_will_do = {
			base = 0
		}

		available = {
			is_subject = no
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
				every_other_country = {
					limit = {
						OR = {
							tag = XSM
							tag = NXM
							tag = GSM
							tag = KHM
						}
						exists = yes
						is_subject = no
					}
					country_event = { 
						id = SEA_warlords.26 
						hours = 6
					}
				}
		}
	}

	focus = {
		id = XSM_strike_at_the_detractors
		icon = GFX_focus_CHI_decisive_battles
		x = 1
		y = 1

		cost = 10

		prerequisite = { focus = XSM_strengthening_our_position }

		relative_position_id = XSM_strengthening_our_position

		mutually_exclusive= {
			 focus = XSM_demand_submission
		}

		ai_will_do = {
			base = 0
		}

		available = {
			is_subject = no
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			every_other_country = {
				limit = {
					OR = {
						tag = XSM
						tag = NXM
						tag = GSM
						tag = KHM
					}
				}
				ROOT = {
					create_wargoal = {
						type = annex_everything
						target = PREV 
					}
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_timed_idea = {
				idea = XSM_tsr_strike_the_traitors
				days = 140
			}	
		}
	}

	focus = {
		id = XSM_a_united_ma_state
		icon = GFX_goal_generic_national_unity
		x = -1
		y = 1

		cost = 10

		prerequisite = { focus = XSM_demand_submission focus = XSM_strike_at_the_detractors }

		relative_position_id = XSM_strike_at_the_detractors

		ai_will_do = {
			base = 0
		}

		available = {
			is_subject = no

			IF = {
				limit = {
					ROOT = {
						NOT = {
							tag = KHM
						}
					}
				}
				KHM = {
					OR = {
						is_subject_of = ROOT
						exists = no
					}
				}
				
			}
			IF = {
				limit = {
					ROOT = {
						NOT = {
							tag = XSM
						}
					}
				}
				XSM = {
					OR = {
						is_subject_of = ROOT
						exists = no
					}
				}	
			}
			IF = {
				limit = {
					ROOT = {
						NOT = {
							tag = GSM
						}
					}
				}
				GSM = {
					OR = {
						is_subject_of = ROOT
						exists = no
					}
				}
			}
			IF = {
				limit = {
					ROOT = {
						NOT = {
							tag = NXM
						}
					}
				}
				NXM = {
					OR = {
						is_subject_of = ROOT
						exists = no
					}
				}	
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			custom_effect_tooltip = XSM_a_united_ma_state_tt
			every_other_country = {
				limit = {
					OR = {
						tag = XSM
						tag = NXM
						tag = GSM
						tag = KHM
					}
					is_subject_of = ROOT
				}
				ROOT = {
					annex_country = {
						target = PREV
						transfer_troops = yes
					}
					PREV = {
						every_army_leader = {
							set_nationality = ROOT
						}
						every_core_state = {
							add_core_of = ROOT
						}
					}
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = tsr_united_ma_cliques	
		}
	}

	#### KUMUL 

	focus = {
		id = KUM_victory_in_tihwa
		icon = GFX_focus_generic_attack_sinkiang
		x = 0
		y = 0

		offset = {
			x = 30
			y = 0
			trigger = {
				tag = KUM
			}
		}
		cost = 5

		ai_will_do = {
			base = 0
		}

		allow_branch = {
			tag = KUM 
		}

		available = {
			is_subject = no
			controls_state = 617
		}

		bypass = {
		
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			
			KUM_yulbars_khan = {
				add_trait = {
				    trait = KHM_governor_of_sinkiang
				    ideology = despotism
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			
			IF = {
				limit = {
					has_idea = SIK_battle_for_sinkiang
				}
				remove_ideas = {
					SIK_battle_for_sinkiang
				}

				custom_effect_tooltip = generic_skip_one_line_tt
			}

			add_political_power = 50
			add_war_support = 0.1

			custom_effect_tooltip = generic_skip_one_line_tt

			SIK = {
				every_core_state = {
					add_core_of = ROOT
				}
			}

			IF = {
				limit = {
					KHM = {
						exists = yes
						is_subject = no
						NOT = {
							has_war_with = ROOT
						}
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				create_wargoal = {
					type = annex_everything
					target = KHM
					generator = { 1042 759 }
					expire = 0
				}	
			}

		}

	}

	focus = {
		id = KUM_restore_yettishar 
		icon = GFX_focus_generic_islamic_propaganda
		x = 0
		y = 1

		cost = 10

		prerequisite = { focus = KUM_victory_in_tihwa }

		relative_position_id = KUM_victory_in_tihwa

		ai_will_do = {
			base = 0
		}

		available = {
			is_subject = no
			controls_state = 1042 
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = { 
			
			swap_ruler_traits = { remove = KHM_governor_of_sinkiang add = KUM_champion_father_of_the_faithful }

			custom_effect_tooltip = generic_skip_one_line_tt

			add_ideas = IRQ_command_of_the_faithful

			custom_effect_tooltip = generic_skip_one_line_tt

			every_state = {
				limit = {
					OR = {
						state = 756
						state = 616
						state = 283
						state = 753
						state = 754
						state = 755
						state = 604
						state = 759
						state = 287
						state = 619 
						state = 1042 
						state = 1040
						state = 1044
						state = 1045
					}
					NOT = {
						is_core_of = ROOT
					}
				}
				add_core_of = ROOT
			}

			IF = {
				limit = {
					KHM = {
						has_character = KHM_mahmut_muhiti
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				KHM = {
					KHM_mahmut_muhiti = {
						set_nationality = ROOT
					}
				}
			}
			ELSE_IF = {
				limit = {
					SIK = {
						has_character = KHM_mahmut_muhiti
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				SIK = {
					KHM_mahmut_muhiti = {
						set_nationality = ROOT
					}
				}
			}
			
			set_cosmetic_tag = KUM_yetishar_tag 

		}
	}

	#### SICHUAN

	focus = {
		id = SIC_the_sichuan_clique
		icon = GFX_focus_CHI_military_mission
		x = 32
		y = 0

		cost = 5

		ai_will_do = {
			base = 15
		}

		allow_branch = {
			tag = SIC
		}

		available = {
		
		}

		bypass = {
		
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }
		completion_reward = {
			add_dynamic_modifier = {
				modifier = SIC_sichuan_clique_dynamic_modifier
			}
		}
	}

	focus = {
		id = SIC_the_domain_of_liu_wenhui
		icon = GFX_focus_PRC_reorganize_divisions
		x = -2
		y = 1

		cost = 10

		prerequisite = { focus = SIC_the_sichuan_clique }

		relative_position_id = SIC_the_sichuan_clique

		ai_will_do = {
			base = 1
		}

		available = {
			is_subject = no
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			custom_effect_tooltip = SIC_modify_sichuan_clique_modifier_tt
			add_to_variable = { SIC_sichuan_clique_war_support_factor = 0.05 tooltip = war_support_factor_tt }
			add_to_variable = { SIC_sichuan_clique_supply_combat_penalties_on_core_factor = -0.05 tooltip = supply_combat_penalties_on_core_factor_tt }
			add_to_variable = { SIC_sichuan_clique_army_core_attack_factor = 0.05 tooltip = army_core_attack_factor_tt }

		}
	}

	focus = {
		id = SIC_develop_xikang
		icon = GFX_focus_PRC_rural_region_development_two
		x = 0
		y = 1

		cost = 5

		prerequisite = { focus = SIC_the_domain_of_liu_wenhui }

		relative_position_id = SIC_the_domain_of_liu_wenhui

		ai_will_do = {
			base = 1
		}

		available = {
			is_subject = no
			752 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			custom_effect_tooltip = SIC_modify_sichuan_clique_modifier_tt
			add_to_variable = { SIC_sichuan_clique_research_speed_factor = 0.025 tooltip = research_speed_factor_tt }
			custom_effect_tooltip = generic_skip_one_line_tt
			752 = {
				IF = {
					limit = {
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
				add_extra_state_shared_building_slots = 1	
			}
		}
	}

	focus = {
		id = SIC_push_back_the_tibetans
		icon = GFX_focus_CHI_decisive_battles
		x = 0
		y = 1

		cost = 10

		prerequisite = { focus = SIC_develop_xikang }

		relative_position_id = SIC_develop_xikang

		ai_will_do = {
			base = 0
		}

		available = {
			is_subject = no
		}
		will_lead_to_war_with = TIB

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {

			unlock_decision_tooltip = {
				decision = SIC_push_into_xikang
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_timed_idea = {
				idea = SIC_push_into_xikang_idea
				days = 365
			}

			IF = {
				limit = {
					has_character = SIC_liu_wenhui
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				SIC_liu_wenhui = {
					clr_character_flag = yes
					remove_trait = {
						trait = SIC_dubious_loyalty
					}
				}
			}
		}

	}

	focus = {
		id = SIC_the_armies_of_yang_sen
		icon = GFX_focus_CHI_popular_army
		x = 2
		y = 1

		cost = 10

		prerequisite = { focus = SIC_the_sichuan_clique }

		relative_position_id = SIC_the_sichuan_clique

		ai_will_do = {
			base = 1
		}

		available = {
			is_subject = no
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
		
			custom_effect_tooltip = SIC_modify_sichuan_clique_modifier_tt
			add_to_variable = { SIC_sichuan_clique_recruitable_population_factor = 0.05 tooltip = recruitable_population_factor_tt }
			add_to_variable = { SIC_sichuan_clique_army_core_defence_factor = 0.05 tooltip = army_core_defence_factor_tt }

			custom_effect_tooltip = generic_skip_one_line_tt

			SIC_yang_sen = {
				add_attack = 1
				add_logistics = 1
			}

		}
	}

	focus = {
		id = SIC_anti_communism
		icon = GFX_focus_GER_end_european_communism
		x = 0
		y = 1

		cost = 5

		prerequisite = { focus = SIC_the_armies_of_yang_sen }

		relative_position_id = SIC_the_armies_of_yang_sen

		ai_will_do = {
			base = 1
		}

		available = {
			is_subject = no
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			add_political_power = 50
			add_timed_idea = {
				idea = tsr_anti_communist_campaign
				days = 365
			}
		}
	}

	focus = {
		id = SIC_drive_out_the_japanese
		icon = GFX_focus_CHI_prepare_war_zones
		x = 0
		y = 1

		cost = 10

		prerequisite = { focus = SIC_anti_communism }

		relative_position_id = SIC_anti_communism

		ai_will_do = {
			base = 1
		}

		available = {
			is_subject = no
			has_war_with = JAP
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			custom_effect_tooltip = SIC_modify_sichuan_clique_modifier_tt
			add_to_variable = { SIC_sichuan_clique_surrender_limit = 0.1 tooltip = surrender_limit_tt }
			add_to_variable = { SIC_sichuan_clique_war_support_factor = 0.1 tooltip = war_support_factor_tt }
			add_to_variable = { SIC_sichuan_clique_recruitable_population_factor = 0.1 tooltip = recruitable_population_factor_tt }
			custom_effect_tooltip = generic_skip_one_line_tt
			add_timed_idea = {
				idea = SIC_drive_out_the_japanese_idea
				days = 365
			}
		}
	}

	focus = {
		id = SIC_the_governor_of_sichuan
		icon = GFX_focus_CHI_lay_the_foundation_for_a_united_china
		x = 0
		y = 1

		cost = 10

		prerequisite = { focus = SIC_the_sichuan_clique }

		relative_position_id = SIC_the_sichuan_clique

		ai_will_do = {
			base = 1
		}

		available = {
			is_subject = no
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			add_stability = 0.05
			add_political_power = 120
			add_tech_bonus = {
				name = SIC_the_governor_of_sichuan
				bonus = 0.75
				uses = 1
				category = industry
			}
		}
	}

	focus = {
		id = SIC_develop_chongqing
		icon = GFX_focus_PRC_urbanization
		x = 0
		y = 1

		cost = 10

		prerequisite = { focus = SIC_the_governor_of_sichuan }

		relative_position_id = SIC_the_governor_of_sichuan

		ai_will_do = {
			base = 1
		}

		available = {
			is_subject = no
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			custom_effect_tooltip = SIC_modify_sichuan_clique_modifier_tt
			add_to_variable = { SIC_sichuan_clique_research_speed_factor = 0.05 tooltip = research_speed_factor_tt }
			add_to_variable = { SIC_sichuan_clique_production_speed_buildings_factor = 0.05 tooltip = production_speed_buildings_factor_tt }
			custom_effect_tooltip = generic_skip_one_line_tt
			1037 = {
				IF = {
					limit = {
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
					}
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
					add_extra_state_shared_building_slots = 2
				}	
			}
		}
	}

	focus = {
		id = SIC_armor_efforts
		icon = GFX_focus_CHI_200th_division
		x = 0
		y = 1

		cost = 5

		prerequisite = { focus = SIC_develop_chongqing }

		relative_position_id = SIC_develop_chongqing

		ai_will_do = {
			base = 1
		}

		available = {
			is_subject = no
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			add_tech_bonus = {
				name = SIC_armor_efforts
				bonus = 0.75
				uses = 1
				category = armor
			}
			add_tech_bonus = {
				name = SIC_armor_efforts
				bonus = 0.75
				uses = 1
				category = air_equipment
			}
			army_experience = 50
			air_experience = 25
		}
	}

	focus = {
		id = SIC_sichuan_still_stands
		icon = GFX_focus_generic_china1
		x = 0
		y = 1

		cost = 10

		prerequisite = { focus = SIC_armor_efforts }

		relative_position_id = SIC_armor_efforts

		ai_will_do = {
			base = 15
		}

		available = {
			is_subject = no
			NOT = {
				has_country_leader = {
					ruling_only = yes
					character = SIC_liu_xiang
				}
			}
			has_war = no
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			SIC_yang_sen = {
				add_trait = {
				    trait = SIC_governor_of_sichuan
				    ideology = despotism
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_political_power = 50
			add_war_support = 0.05
			custom_effect_tooltip = generic_skip_one_line_tt
			remove_ideas = {
				SIC_a_loose_unity
			}
		}
	}

	focus = {
		id = XIC_northwest_bandit_suppression_headquarters 
		icon = GFX_focus_CHI_popular_army
		x = 34
		y = 0

		cost = 5

		#mutually_exclusive = {
		#	focus = 
		#}

		ai_will_do = {
			base = 20
		}

		allow_branch = {
			tag = XIC
		}

		available = {
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_MANPOWER }

		completion_reward = {
			
			add_command_power = 50

			add_manpower = 25000

		}

	}

	focus = {
		id = XIC_discussions_in_luochuan
		icon = GFX_focus_generic_befriend_the_chinese_soviet
		x = -2
		y = 1

		cost = 5

		mutually_exclusive = {
			focus = XIC_sixth_encirclement_campaign
		}

		ai_will_do = {
			base = 20
		}

		prerequisite = { focus = XIC_northwest_bandit_suppression_headquarters }

		relative_position_id = XIC_northwest_bandit_suppression_headquarters

		available = {
			PRC = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					has_border_war_with = ROOT
				}
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {

			add_political_power = 50
			remove_opinion_modifier = {
				target = PRC
				modifier = tsr_bandit_suppresion_opm
			}	
			add_popularity = {
				ideology = communism
				popularity = 0.03
			}	

			custom_effect_tooltip = generic_skip_one_line_tt

			PRC = {
				country_event = {
					id = SEA_warlords.51
					hours = 4
				}
				effect_tooltip = {
					add_political_power = 25
					remove_opinion_modifier = {
						target = ROOT
						modifier = tsr_bandit_suppresion_opm
					}
				}	
				
			}

		}

	}

	focus = {
		id = XIC_send_a_representative_to_sheng_shicai
		icon = GFX_focus_generic_befriend_sinkiang
		x = -1
		y = 1

		cost = 5

		#mutually_exclusive = {
		#	focus = 
		#}

		ai_will_do = {
			base = 20
		}

		prerequisite = { focus = XIC_discussions_in_luochuan }

		relative_position_id = XIC_discussions_in_luochuan

		available = {
			SIK = {
				exists = yes
				has_country_leader = {
					ruling_only = yes
					character = SIK_sheng_shicai
				}	
				NOT = {
					has_war_with = ROOT
					has_border_war_with = ROOT
				}
			}
		}

		bypass = {
			SIK = {
				OR = {
					exists = no
					has_war_with = ROOT
					NOT = {
						has_country_leader = {
							ruling_only = yes
							character = SIK_sheng_shicai
						}	
					}
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {

			add_political_power = 50
			add_opinion_modifier = {
				target = SIK
				modifier = tsr_pro_soviet_stance_opm
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			
			SIK = {
				country_event = {
					id = SEA_warlords.50
					hours = 4
				}	
				effect_tooltip = {
					add_political_power = 50
					add_opinion_modifier = {
						target = ROOT
						modifier = tsr_pro_soviet_stance_opm
					}	
				}
			}

		}

	}

	focus = {
		id = XIC_non_agression_pact_with_the_cpc
		icon = GFX_goal_generic_dangerous_deal
		x = 1
		y = 1

		cost = 5

		#mutually_exclusive = {
		#	focus = 
		#}

		ai_will_do = {
			base = 20
		}

		prerequisite = { focus = XIC_discussions_in_luochuan }

		relative_position_id = XIC_discussions_in_luochuan

		available = {
			PRC = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					has_non_aggression_pact_with = ROOT
					has_border_war_with = ROOT
				}
			}
		}

		bypass = {
			PRC = {
				has_non_aggression_pact_with = ROOT
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			
			PRC = {
				country_event = {
					id = SEA_warlords.52
					hours = 4
				}
				custom_effect_tooltip = if_they_accept_tt
				effect_tooltip = {
					PRC = {
						add_political_power = 10
						diplomatic_relation = {
						    country = ROOT
						    relation = non_aggression_pact
						    active = yes
						}
					}
				}	
				
			}

		}

	}

	focus = {
		id = XIC_the_fushi_conference
		icon = GFX_focus_CHI_registry_of_property
		x = -1
		y = 1

		cost = 5

		#mutually_exclusive = {
		#	focus = 
		#}

		ai_will_do = {
			base = 20
		}

		prerequisite = { focus = XIC_non_agression_pact_with_the_cpc }
		prerequisite = { focus = XIC_send_a_representative_to_sheng_shicai }

		relative_position_id = XIC_non_agression_pact_with_the_cpc

		available = {
			PRC = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					has_border_war_with = ROOT
				}
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }

		completion_reward = {

			add_war_support = 0.05
			
			add_political_power = 50

		}

	}

	focus = {
		id = XIC_anti_japanese_national_salvation_agreement
		icon = GFX_focus_AST_war_japan
		x = 0
		y = 1

		cost = 5

		#mutually_exclusive = {
		#	focus = 
		#}

		ai_will_do = {
			base = 20
		}

		prerequisite = { focus = XIC_the_fushi_conference }

		relative_position_id = XIC_the_fushi_conference

		available = {
			PRC = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					has_border_war_with = ROOT
				}
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {
			
			PRC = {
				country_event = {
					id = SEA_warlords.53
					hours = 4
				}
				effect_tooltip = {
					PRC = {
						add_equipment_to_stockpile = { 
							type = infantry_equipment
							amount = 1000 
							producer = ROOT
						}	
						add_timed_idea = {
							idea = XIC_inlux_of_funds_for_the_communists_idea 
							days = 84
						}		
					}
				}	
				
			}

		}

	}

	focus = {
		id = XIC_withdraw_forces_from_yanan
		icon = GFX_focus_PRC_usurp_control_over_yanan
		x = -1
		y = 1

		cost = 5

		#mutually_exclusive = {
		#	focus = 
		#}

		ai_will_do = {
			base = 20
		}

		prerequisite = { focus = XIC_anti_japanese_national_salvation_agreement }

		relative_position_id = XIC_anti_japanese_national_salvation_agreement

		available = {
			PRC = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					has_border_war_with = ROOT
				}
			}
			1032 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		bypass = {
			1032 = {
				NOT = {
					is_owned_and_controlled_by = ROOT
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {

			add_political_power = 50
			CHI = {
				add_opinion_modifier = {
					target = ROOT
					modifier = tsr_rebellious_warlord_opm 
				}	
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			
			PRC = {
				country_event = {
					id = SEA_warlords.54 
					hours = 6
				}	
				effect_tooltip = {
					1032 = {
						transfer_state_to = PRC
					}
				}
			}

		}

	}

	focus = {
		id = XIC_form_the_anti_japanese_comrades_association
		icon = GFX_focus_chi_united_front
		x = 1
		y = 1

		cost = 5

		#mutually_exclusive = {
		#	focus = 
		#}

		ai_will_do = {
			base = 20
		}

		prerequisite = { focus = XIC_anti_japanese_national_salvation_agreement }

		relative_position_id = XIC_anti_japanese_national_salvation_agreement

		available = {
			is_subject = no
			PRC = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					has_border_war_with = ROOT
				}
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {

			add_popularity = {
				ideology = communism
				popularity = 0.2
			}	

			custom_effect_tooltip = generic_skip_one_line_tt
			
			diplomatic_relation = {
			    country = PRC
			    relation = military_access
			    active = yes
			}
			PRC = {
				diplomatic_relation = {
				    country = ROOT
				    relation = military_access
				    active = yes
				}
			}

		}

	}

	focus = {
		id = XIC_invite_chiang_for_troop_inspections
		icon = GFX_focus_prc_remove_chiang_kai_shek
		x = -1
		y = 1

		cost = 5

		#mutually_exclusive = {
		#	focus = 
		#}

		ai_will_do = {
			base = 20
		}

		prerequisite = { focus = XIC_form_the_anti_japanese_comrades_association }
		prerequisite = { focus = XIC_withdraw_forces_from_yanan }

		relative_position_id = XIC_form_the_anti_japanese_comrades_association

		available = {
			CHI = {
				exists = yes
				is_subject = no
				is_in_faction = no
				has_country_leader = {
					ruling_only = yes
					character = CHI_chiang_kaishek
				}
			}
			NOT = {
				has_global_flag = CHI_xian_fired
			}
			PRC = {
				exists = yes
				NOT = {
					has_war_with = CHI
				}
				is_subject = no
				is_in_faction = no
			}
			NOT = {
				has_war_with = CHI
			}
			NOT = {
				has_war_with = PRC
			}
			PRC = {
				NOT = {
					has_border_war_with = ROOT
				}
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			
			set_country_flag = CHI_xian_instigator_flag
			set_global_flag = CHI_xian_fired

			CHI = {
				country_event = { id = wtt_xian_incident.1 hours = 2 }
			}

		}

	}

	focus = {
		id = XIC_sixth_encirclement_campaign 
		icon = GFX_focus_generic_attack_chinese_soviets
		x = 2
		y = 1

		cost = 10

		mutually_exclusive = {
			focus = XIC_discussions_in_luochuan
		}

		ai_will_do = {
			base = 0
		}

		prerequisite = { focus = XIC_northwest_bandit_suppression_headquarters }

		relative_position_id = XIC_northwest_bandit_suppression_headquarters

		available = {
			is_subject = no
			PRC = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					is_ally_with = ROOT
				}
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_ANNEXATION }

		completion_reward = {
			
			declare_war_on = {
				target = PRC
				type = annex_everything
			}
			activate_mission = XIC_war_halting
			hidden_effect = {
				PRC = { activate_mission = PRC_holding_out }
			}

		}

	}

	focus = {
		id = XIC_request_relocation_to_northeastern_command
		icon = GFX_focus_generic_attack_kuomintang
		x = 0
		y = 1

		cost = 5

		#mutually_exclusive = {
		#	focus = 
		#}

		ai_will_do = {
			base = 20
		}

		prerequisite = { focus = XIC_sixth_encirclement_campaign }

		relative_position_id = XIC_sixth_encirclement_campaign

		available = {
			is_subject = no
			NOT = {
				has_war_with = PRC
				has_active_mission = XIC_war_halting
			}
			CHI = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					has_war_with = HBC
				}
			}
			608 = {
				OR = {
					is_owned_and_controlled_by = HBC
					is_owned_and_controlled_by = CHI
				}
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_ANNEXATION }

		completion_reward = {
			
			CHI = {
				country_event = {
					id = SEA_warlords.56 
					hours = 6
				}	
			}

		}

	}

	focus = {
		id = XIC_invite_zuolin_loyalsits
		icon = GFX_goal_generic_major_alliance
		x = -1
		y = 1

		cost = 5

		#mutually_exclusive = {
		#	focus = 
		#}

		ai_will_do = {
			base = 20
		}

		prerequisite = { focus = XIC_request_relocation_to_northeastern_command }

		relative_position_id = XIC_request_relocation_to_northeastern_command

		available = {
			is_subject = no
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_MILITARY_CHARACTER }

		completion_reward = {

			add_war_support = 0.1
			
			IF = {
				limit = {
					MAN = {
						exists = yes
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				MAN = {
					country_event = {
						id = SEA_warlords.60
						hours = 6
					}	
				}
				effect_tooltip = {
					MAN = {
						MAN_yu_zishan = {
							set_nationality = ROOT
						}
						MAN_zhang_haipeng = {
							set_nationality = ROOT
						}
						MAN_ma_zhanshan = {
							set_nationality = ROOT
						}
						add_manpower = -5000
					}
					add_manpower = 5000
				}
			}
			ELSE = {
				custom_effect_tooltip = generic_skip_one_line_tt
				add_manpower = 5000
				MAN = {
					MAN_yu_zishan = {
						set_nationality = ROOT
					}
					MAN_zhang_haipeng = {
						set_nationality = ROOT
					}
					MAN_ma_zhanshan = {
						set_nationality = ROOT
					}
				}
			}

		}

	}

	focus = {
		id = XIC_reestablish_the_zhili_army 
		icon = GFX_focus_MAN_the_new_fengtian_army
		x = 1
		y = 1

		cost = 5

		#mutually_exclusive = {
		#	focus = 
		#}

		ai_will_do = {
			base = 20
		}

		prerequisite = { focus = XIC_request_relocation_to_northeastern_command }

		relative_position_id = XIC_request_relocation_to_northeastern_command

		available = {
			
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_MANPOWER }

		completion_reward = {
			
			add_ideas = XIC_new_fengtian_zhili_army_idea 

		}

	}

	focus = {
		id = XIC_recruit_mancurian_bandits 
		icon = GFX_focus_prc_infiltration
		x = 1
		y = 1

		cost = 5

		#mutually_exclusive = {
		#	focus = 
		#}

		ai_will_do = {
			base = 20
		}

		prerequisite = { focus = XIC_reestablish_the_zhili_army }

		relative_position_id = XIC_reestablish_the_zhili_army

		available = {
			
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_MANPOWER }

		completion_reward = {

			custom_effect_tooltip = XIC_recruit_mancurian_bandits_tt
			
			hidden_effect = {
				division_template = {
					name = "Fengtian Counter-Japanese Division"
					priority = 2
					template_counter = 118
					division_names_group = MAN_INF_01
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 1 y = 0 }
						infantry = { x = 1 y = 1 }
					}
				}
				division_template = {
					name = "Fengtian Bandit Division"
					priority = 2
					template_counter = 118
					division_names_group = MAN_CAV_01
					regiments = {
						cavalry = { x = 0 y = 0 }
						cavalry = { x = 0 y = 1 }
						cavalry = { x = 0 y = 2 }
						cavalry = { x = 1 y = 0 }
						cavalry = { x = 1 y = 1 }
					}
				}
				random_owned_controlled_state = {
					limit = { ROOT = { has_full_control_of_state = PREV } }
					prioritize = { 328 }
					create_unit = {
						division = "name = \"1. Fengtian Counter-Japanese Division\" division_template = \"Fengtian Counter-Japanese Division\" start_experience_factor = 0.6" 
						owner = ROOT
					}
					create_unit = {
						division = "name = \"2. Fengtian Counter-Japanese Division\" division_template = \"Fengtian Counter-Japanese Division\" start_experience_factor = 0.6" 
						owner = ROOT
					}
					create_unit = {
						division = "name = \"3. Fengtian Counter-Japanese Division\" division_template = \"Fengtian Counter-Japanese Division\" start_experience_factor = 0.6" 
						owner = ROOT
					}
					create_unit = {
						division = "name = \"1. Fengtian Bandit Division\" division_template = \"Fengtian Bandit Division\" start_experience_factor = 0.6" 
						owner = ROOT
					}
					create_unit = {
						division = "name = \"2. Fengtian Bandit Division\" division_template = \"Fengtian Bandit Division\" start_experience_factor = 0.6" 
						owner = ROOT
					}
				}	
			}
		}

	}

	focus = {
		id = XIC_restore_the_glory_of_the_fengtian_army 
		icon = GFX_focus_MAN_restore_the_beiyang_army
		x = -1
		y = 1

		cost = 10

		#mutually_exclusive = {
		#	focus = 
		#}

		ai_will_do = {
			base = 20
		}

		prerequisite = { focus = XIC_reestablish_the_zhili_army }
		prerequisite = { focus = XIC_invite_zuolin_loyalsits }

		relative_position_id = XIC_reestablish_the_zhili_army

		available = {
			
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_MANPOWER }

		completion_reward = {
			
			swap_ideas = {
				remove_idea = XIC_new_fengtian_zhili_army_idea
				add_idea = XIC_new_fengtian_zhili_army_2_idea
			}	

		}

	}

	focus = {
		id = XIC_reclaim_the_lost_birthright 
		icon = GFX_focus_generic_attack_manchukuo
		x = 0
		y = 1

		cost = 10

		#mutually_exclusive = {
		#	focus = 
		#}

		ai_will_do = {
			base = 20
		}

		prerequisite = { focus = XIC_restore_the_glory_of_the_fengtian_army }

		relative_position_id = XIC_restore_the_glory_of_the_fengtian_army

		available = {
			is_subject = no
			MAN = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					is_ally_with = ROOT
				}
			}
		}

		bypass = {
			OR = {
				has_war_with = MAN
				609 = {
					owner = {
						has_war_with = ROOT
					}
				}
				AND = {
					609 = {
						is_controlled_by = ROOT
					}
					716 = {
						is_controlled_by = ROOT
					}
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_ANNEXATION }

		completion_reward = {

			IF = {
				limit = {
					716 = {
						NOT = {
							is_owned_by = ROOT
						}
					}
				}
				716 = {
					owner = {
						ROOT = {
							create_wargoal = {
								type = take_claimed_state
								target = PREV
								generator = { 716 } 
							}	
						}
					}
				}
			}

			IF = {
				limit = {
					609 = {
						NOT = {
							is_owned_by = ROOT
						}
					}
				}
				609 = {
					owner = {
						ROOT = {
							create_wargoal = {
								type = take_claimed_state
								target = PREV
								generator = { 609 } 
							}	
						}
					}
				}
			}

			610 = {
				add_core_of = ROOT
			}
			716 = {
				add_core_of = ROOT
			}

		}

		bypass_effect = {
			
			610 = {
				add_core_of = ROOT
			}
			716 = {
				add_core_of = ROOT
			}

		}

	}

	focus = {
		id = XIC_restore_the_homeland
		icon = GFX_focus_PRC_petition_for_freedom
		x = 0
		y = 1

		cost = 10

		#mutually_exclusive = {
		#	focus = 
		#}

		ai_will_do = {
			base = 20
		}

		prerequisite = { focus = XIC_reclaim_the_lost_birthright }

		relative_position_id = XIC_reclaim_the_lost_birthright

		available = {
			is_subject = no
			716 = {
				is_controlled_by = ROOT
			}
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_MANPOWER }

		completion_reward = {
			
			custom_effect_tooltip = XIC_restore_the_homeland_tt
			every_state = {
				limit = {
					NOT = {
						is_core_of = ROOT
					}
					OR = {
						state = 761
						state = 714
						state = 717
						state = 328
						state = 716
						state = 715
						state = 610
						state = 609
						state = 612
						state = 611
						state = 1043
						state = 621
						state = 1039
						state = 608
						state = 614
						state = 1038
						state = 597
						state = 743
					}
				}
				add_core_of = ROOT
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			set_capital = {
				state = 716
				remember_old_capital = yes
			}

		}

	}

	focus = {
		id = XIC_revive_the_beiyang_government
		icon = GFX_focus_CHI_restore_the_old_republic
		x = 0
		y = 1

		cost = 10

		#mutually_exclusive = {
		#	focus = 
		#}

		ai_will_do = {
			base = 20
		}

		prerequisite = { focus = XIC_restore_the_homeland }

		relative_position_id = XIC_restore_the_homeland

		available = {
			is_subject = no
		}

		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_ANNEXATION }

		completion_reward = {
			
			CHI = {
				every_core_state = {
					add_core_of = ROOT
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			
			set_cosmetic_tag = MAN_republic_of_china

			custom_effect_tooltip = generic_skip_one_line_tt

			load_focus_tree = china_nationalist_warlord_focus
			
			custom_effect_tooltip = generic_skip_one_line_tt

			CHI_no_longer_a_warlord_idea_removal = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			every_country = {
				limit = {
					is_literally_china = yes
				}
				ROOT = {
					create_wargoal = {
						type = annex_everything
						target = PREV
					}
				}
			}

			set_global_flag = achievement_XIC_i_have_avenged_you_father

		}

	}

}
