focus_tree = {
	id = china_warlord_focus
	
	country = {
		factor = 0
		
		modifier = {
			add = 10
			OR = {
				tag = YUN
				tag = SIK 
				tag = GXC
				tag = SHX
				tag = XSM 
			}
			has_dlc = "Waking the Tiger"
		}
	}
	
	default = no

	continuous_focus_position = { x = 50 y = 1350 }
	
	default = no
	focus = {
		id = CHI_secure_internal_politics
		icon = GFX_goal_generic_major_alliance
		cost = 5
		x = 7
		y = 0
			ai_will_do = {
					factor = 10
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					add_political_power = 150
					hidden_effect = {
							if = {
									limit = {
											tag = SHX
										}
									create_country_leader = {
											name = "Yan Xishan"
											desc = "POLITICS_YAN XISHAN_DESC"
											picture = "GFX_portrait_shanxi_portrait_yan_xishan"
											expire = "1965.1.1"
											ideology = anti_revisionism
											traits = {

}
										}
									create_country_leader = {
											name = "Yan Xishan"
											desc = "POLITICS_YAN XISHAN_DESC"
											picture = "GFX_portrait_shanxi_portrait_yan_xishan"
											expire = "1965.1.1"
											ideology = socialism
											traits = {

}
										}
									create_country_leader = {
											name = "Yan Xishan"
											desc = "POLITICS_YAN XISHAN_DESC"
											picture = "GFX_portrait_shanxi_portrait_yan_xishan"
											expire = "1965.1.1"
											ideology = rexism
											traits = {

}
										}
								}
							if = {
									limit = {
											tag = GXC
										}
									create_country_leader = {
											name = "Li Zongren"
											desc = "POLITICS_LI_ZONGREN_DESC"
											picture = "gfx/leaders/GXC/Portrait_Guanxi_Clique_Li_Zongren.dds"
											expire = "1965.1.1"
											ideology = anti_revisionism
											traits = {

}
										}
									create_country_leader = {
											name = "Li Zongren"
											desc = "POLITICS_LI_ZONGREN_DESC"
											picture = "gfx/leaders/GXC/Portrait_Guanxi_Clique_Li_Zongren.dds"
											expire = "1965.1.1"
											ideology = socialism
											traits = {

}
										}
									create_country_leader = {
											name = "Li Zongren"
											desc = "POLITICS_LI_ZONGREN_DESC"
											picture = "gfx/leaders/GXC/Portrait_Guanxi_Clique_Li_Zongren.dds"
											expire = "1965.1.1"
											ideology = rexism
											traits = {

}
										}
								}
							if = {
									limit = {
											tag = YUN
										}
									create_country_leader = {
											name = "Long Yun"
											desc = "POLITICS_LONG_YUN_DESC"
											picture = "GFX_portrait_yun_long_yun"
											expire = "1965.1.1"
											ideology = anti_revisionism
											traits = {

}
										}
									create_country_leader = {
											name = "Long Yun"
											desc = "POLITICS_LONG_YUN_DESC"
											picture = "GFX_portrait_yun_long_yun"
											expire = "1965.1.1"
											ideology = socialism
											traits = {

}
										}
									create_country_leader = {
											name = "Long Yun"
											desc = "POLITICS_LONG_YUN_DESC"
											picture = "GFX_portrait_yun_long_yun"
											expire = "1965.1.1"
											ideology = rexism
											traits = {

}
										}
								}
							if = {
									limit = {
											tag = XSM
										}
									create_country_leader = {
											name = "Ma Bufang"
											desc = ""
											picture = "GFX_portrait_xsm_ma_bufang"
											expire = "1965.1.1"
											ideology = anti_revisionism
											traits = {

}
										}
									create_country_leader = {
											name = "Ma Bufang"
											desc = ""
											picture = "GFX_portrait_xsm_ma_bufang"
											expire = "1965.1.1"
											ideology = socialism
											traits = {

}
										}
									create_country_leader = {
											name = "Ma Bufang"
											desc = ""
											picture = "GFX_portrait_xsm_ma_bufang"
											expire = "1965.1.1"
											ideology = rexism
											traits = {

}
										}
								}
							if = {
									limit = {
											tag = SIK
										}
									create_country_leader = {
											name = "Sheng Shicai"
											desc = "POLITICS_SHENG_SHICAI_DESC"
											picture = "gfx/leaders/SIK/Portrait_Sinkiang_Sheng_Shicai.dds"
											expire = "1965.1.1"
											ideology = despotism
											traits = {

}
										}
									create_country_leader = {
											name = "Sheng Shicai"
											desc = "POLITICS_SHENG_SHICAI_DESC"
											picture = "gfx/leaders/SIK/Portrait_Sinkiang_Sheng_Shicai.dds"
											expire = "1965.1.1"
											ideology = socialism
											traits = {

}
										}
									create_country_leader = {
											name = "Sheng Shicai"
											desc = "POLITICS_SHENG_SHICAI_DESC"
											picture = "gfx/leaders/SIK/Portrait_Sinkiang_Sheng_Shicai.dds"
											expire = "1965.1.1"
											ideology = rexism
											traits = {

}
										}
								}
						}
				}

	}
	focus = {
		id = CHI_long_term_economic_planning
		icon = GFX_goal_generic_production2
		cost = 10
		x = 20
		y = 0
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

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

	}
	focus = {
		id = CHI_cooperation_with_the_nationalists
		icon = GFX_focus_chi_cooperation_with_the_nationalists
		cost = 5
		prerequisite = {
			focus = CHI_secure_internal_politics
		}
		mutually_exclusive = {
			focus = CHI_cooperation_with_the_communists
			focus = CHI_opposition
		}
		x = 2
		y = 1
			ai_will_do = {
					factor = 1
					modifier = {
							factor = 10
							OR = {
									original_tag = GXC
									original_tag = YUN
									original_tag = XSM
								}
						}
				}
			available = {
					OR = {
							is_subject = no
							is_subject_of = event_target:WTT_current_china_leader
						}
					NOT = {
							has_war_with = CHI
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					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
								}
						}
				}

	}
	focus = {
		id = CHI_new_model_province
		icon = GFX_goal_generic_construct_infrastructure
		cost = 10
		prerequisite = {
			focus = CHI_cooperation_with_the_nationalists
		}
		x = 2
		y = 2
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					add_stability = 0.1
				}

	}
	focus = {
		id = CHI_land_reform
		icon = GFX_goal_generic_position_armies
		cost = 10
		prerequisite = {
			focus = CHI_new_model_province
		}
		x = 2
		y = 3
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					every_owned_state = {
							limit = {
									is_controlled_by = ROOT
								}
							add_extra_state_shared_building_slots = 1
						}
				}

	}
	focus = {
		id = CHI_root_out_corruption
		icon = GFX_goal_demand_sudetenland
		cost = 10
		prerequisite = {
			focus = CHI_land_reform
		}
		mutually_exclusive = {
			focus = CHI_embrace_the_opium_trade
		}
		x = 1
		y = 4
			ai_will_do = {
					factor = 5
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			complete_tooltip = {

}
			completion_reward = {
					remove_ideas = PRC_government_corruption
				}

	}
	focus = {
		id = CHI_embrace_the_opium_trade
		icon = GFX_goal_generic_trade
		cost = 10
		prerequisite = {
			focus = CHI_land_reform
		}
		mutually_exclusive = {
			focus = CHI_root_out_corruption
		}
		x = 3
		y = 4
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

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

	}
	focus = {
		id = CHI_reform_the_administration
		icon = GFX_goal_generic_propaganda
		cost = 10
		prerequisite = {
			focus = CHI_root_out_corruption
			focus = CHI_embrace_the_opium_trade
		}
		x = 2
		y = 5
			ai_will_do = {
					factor = 1
				}
			available = {
					has_stability > 0.35
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			complete_tooltip = {

}
			completion_reward = {
					remove_ideas = CHI_ineffective_bureaucracy_warlord
				}

	}
	focus = {
		id = CHI_technological_cooperation
		icon = GFX_goal_generic_scientific_exchange
		cost = 10
		prerequisite = {
			focus = CHI_reform_the_administration
		}
		x = 3
		y = 6
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			complete_tooltip = {

}
			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_cooperation_with_the_communists
		icon = GFX_focus_chi_cooperation_with_the_communists
		cost = 5
		prerequisite = {
			focus = CHI_secure_internal_politics
		}
		mutually_exclusive = {
			focus = CHI_cooperation_with_the_nationalists
			focus = CHI_opposition
		}
		x = 7
		y = 1
			ai_will_do = {
					factor = 1
					modifier = {
							factor = 15
							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
			complete_tooltip = {

}
			completion_reward = {
					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 = 15
								}
						}
					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
								}
						}
				}

	}
	focus = {
		id = CHI_ideological_education
		icon = GFX_focus_generic_socialist_science
		cost = 10
		prerequisite = {
			focus = CHI_cooperation_with_the_communists
		}
		x = 7
		y = 2
			ai_will_do = {
					factor = 1
				}
			available = {
					is_subject = no
					if = {
							limit = {
									is_subject = yes
								}
							OVERLORD = {
									has_government = communism
								}
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

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

	}
	focus = {
		id = CHI_anti_opposition_campaigns
		icon = GFX_focus_generic_provoke_border_clashes
		cost = 10
		prerequisite = {
			focus = CHI_new_model_province
			focus = CHI_ideological_education
		}
		x = 4
		y = 3
			ai_will_do = {
					factor = 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_cooperation_with_the_nationalists
											NOT = {
													any_other_country = {
															has_completed_focus = CHI_cooperation_with_the_communists
														}
												}
										}
								}
							custom_effect_tooltip = CHI_anti_opposition_campaigns_effect_tooltip_no_communists
						}
					if = {
							limit = {
									AND = {
											has_completed_focus = CHI_cooperation_with_the_communists
											NOT = {
													any_other_country = {
															has_completed_focus = CHI_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_cooperation_with_the_nationalists
											NOT = {
													any_other_country = {
															has_completed_focus = CHI_cooperation_with_the_communists
														}
												}
										}
								}
							custom_effect_tooltip = CHI_anti_opposition_campaigns_effect_tooltip_no_communists
						}
					if = {
							limit = {
									AND = {
											has_completed_focus = CHI_cooperation_with_the_communists
											NOT = {
													any_other_country = {
															has_completed_focus = CHI_cooperation_with_the_nationalists
														}
												}
										}
								}
							custom_effect_tooltip = CHI_anti_opposition_campaigns_effect_tooltip_no_nationalists
						}
				}

	}
	focus = {
		id = CHI_land_redistribution
		icon = GFX_goal_generic_soviet_construction
		cost = 10
		prerequisite = {
			focus = CHI_ideological_education
		}
		x = 7
		y = 3
			ai_will_do = {
					factor = 4
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					every_owned_state = {
							limit = {
									is_controlled_by = ROOT
								}
							add_extra_state_shared_building_slots = 1
						}
				}

	}
	focus = {
		id = CHI_judiciary_reforms
		icon = GFX_goal_generic_forceful_treaty
		cost = 10
		prerequisite = {
			focus = CHI_land_redistribution
		}
		x = 7
		y = 4
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			complete_tooltip = {

}
			completion_reward = {
					remove_ideas = PRC_government_corruption
				}

	}
	focus = {
		id = CHI_land_value_tax
		icon = GFX_goal_generic_position_armies
		cost = 10
		prerequisite = {
			focus = CHI_judiciary_reforms
		}
		x = 6
		y = 5
			ai_will_do = {
					factor = 4
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

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

	}
	focus = {
		id = CHI_communist_administrators
		icon = GFX_focus_generic_soviet_politics
		cost = 10
		prerequisite = {
			focus = CHI_judiciary_reforms
		}
		x = 8
		y = 5
			ai_will_do = {
					factor = 1
				}
			available = {
					communism > 0.25
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			complete_tooltip = {

}
			completion_reward = {
					remove_ideas = CHI_ineffective_bureaucracy_warlord
				}

	}
	focus = {
		id = CHI_join_the_chinese_soviet
		icon = GFX_goal_generic_war_with_comintern
		cost = 10
		prerequisite = {
			focus = CHI_land_value_tax
		}
		prerequisite = {
			focus = CHI_communist_administrators
		}
		x = 7
		y = 6
			ai_will_do = {
					factor = 1
					modifier = {
							factor = 0
							event_target:WTT_communist_china = {
									is_ai = no
								}
						}
					modifier = {
							factor = 0.1
							is_historical_focus_on = yes
						}
				}
			available = {
					has_army_manpower = {
							size > 49999
						}
					num_of_factories > 9
					communism > 0.6
					if = {
							limit = {
									NOT = {
											tag = SIK
										}
								}
							any_neighbor_country = {
									tag = event_target:WTT_communist_china
								}
						}
					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
			complete_tooltip = {

}
			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 = 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_opposition
		icon = GFX_goal_generic_demand_territory
		cost = 5
		prerequisite = {
			focus = CHI_secure_internal_politics
		}
		mutually_exclusive = {
			focus = CHI_cooperation_with_the_communists
			focus = CHI_cooperation_with_the_nationalists
		}
		x = 13
		y = 1
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			complete_tooltip = {

}
			completion_reward = {
					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
										}
								}
						}
					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_war_taxes
		icon = GFX_goal_generic_consumer_goods
		cost = 10
		prerequisite = {
			focus = CHI_opposition
		}
		x = 13
		y = 2
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

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

	}
	focus = {
		id = CHI_personal_leadership
		icon = GFX_goal_generic_political_pressure
		cost = 10
		prerequisite = {
			focus = CHI_war_taxes
		}
		x = 13
		y = 3
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					if = {
							limit = {
									ROOT = {
											tag = GXC
										}
								}
							create_field_marshal = {
									name = "Li Zongren"
									gfx = GFX_portrait_li_zongren
									traits = { infantry_officer }
									skill = 3
									attack_skill = 2
									defense_skill = 4
									planning_skill = 2
									logistics_skill = 2
								}
						}
					else_if = {
							limit = {
									ROOT = {
											tag = YUN
										}
								}
							create_field_marshal = {
									name = "Long Yun"
									gfx = GFX_portrait_yun_long_yun
									traits = { war_hero }
									skill = 3
									attack_skill = 3
									defense_skill = 3
									planning_skill = 2
									logistics_skill = 2
								}
						}
					else_if = {
							limit = {
									ROOT = {
											tag = SHX
										}
								}
							create_field_marshal = {
									name = "Yan Xishan"
									gfx = GFX_portrait_yan_xishan
									traits = { career_officer  infantry_officer }
									skill = 3
									attack_skill = 3
									defense_skill = 3
									planning_skill = 2
									logistics_skill = 2
								}
						}
					else_if = {
							limit = {
									ROOT = {
											tag = XSM
										}
								}
							create_field_marshal = {
									name = "Ma Bufang"
									gfx = GFX_portrait_xsm_ma_bufang
									traits = { cavalry_officer }
									skill = 3
									attack_skill = 3
									defense_skill = 3
									planning_skill = 2
									logistics_skill = 2
								}
						}
					else_if = {
							limit = {
									ROOT = {
											tag = SIK
										}
								}
							create_field_marshal = {
									name = "Sheng Shicai"
									gfx = GFX_portrait_sheng_shicai
									traits = { politically_connected }
									skill = 3
									attack_skill = 3
									defense_skill = 3
									planning_skill = 2
									logistics_skill = 2
								}
						}
				}

	}
	focus = {
		id = CHI_rapid_mobilization
		icon = GFX_goal_generic_more_territorial_claims
		cost = 10
		prerequisite = {
			focus = CHI_personal_leadership
		}
		x = 13
		y = 4
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					add_manpower = 50000
					add_timed_idea = {
							idea = CHI_rapid_mobilization
							days = 1095
						}
				}

	}
	focus = {
		id = CHI_rural_militias
		icon = GFX_goal_generic_military_sphere
		cost = 10
		prerequisite = {
			focus = CHI_judiciary_reforms
			focus = CHI_rapid_mobilization
		}
		x = 10
		y = 5
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					add_ideas = CHI_rural_militias
				}

	}
	focus = {
		id = CHI_provoke_border_clashes
		icon = GFX_focus_generic_provoke_border_clashes
		cost = 10
		prerequisite = {
			focus = CHI_rapid_mobilization
		}
		mutually_exclusive = {
			focus = CHI_defensive_posture
		}
		x = 12
		y = 5
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					custom_effect_tooltip = CHI_provoke_border_clashes_effect_tooltip
					set_country_flag = CHI_provoke_border_clashes
				}

	}
	focus = {
		id = CHI_defensive_posture
		icon = GFX_goal_generic_defence
		cost = 10
		prerequisite = {
			focus = CHI_rapid_mobilization
		}
		mutually_exclusive = {
			focus = CHI_provoke_border_clashes
		}
		x = 14
		y = 5
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

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

	}
	focus = {
		id = CHI_cult_of_personality
		icon = GFX_goal_generic_propaganda
		cost = 10
		prerequisite = {
			focus = CHI_provoke_border_clashes
			focus = CHI_defensive_posture
		}
		x = 13
		y = 6
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					add_stability = 0.1
				}

	}
	focus = {
		id = CHI_institute_cross_border_raids
		icon = GFX_focus_generic_provoke_border_clashes
		cost = 10
		prerequisite = {
			focus = CHI_personal_leadership
		}
		x = 15
		y = 4
			ai_will_do = {
					factor = 1
				}
			available = {
					is_subject = no
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			complete_tooltip = {

}
			completion_reward = {
					custom_effect_tooltip = CHI_institute_cross_border_raids_effect_tooltip
					set_country_flag = CHI_institute_cross_border_raids
				}

	}
	focus = {
		id = CHI_industrial_investment
		icon = GFX_goal_generic_construct_civ_factory
		cost = 10
		prerequisite = {
			focus = CHI_long_term_economic_planning
		}
		x = 18
		y = 1
			ai_will_do = {
					factor = 150
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {
					random_state = {
							limit = {
									has_state_flag = CHI_industrial_investment_IC
								}
							add_extra_state_shared_building_slots = 2
							add_building_construction = {
									type = industrial_complex
									level = 2
									instant_build = yes
								}
						}
				}
			completion_reward = {
					random_owned_controlled_state = {
							limit = {
									is_fully_controlled_by = ROOT
									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
								}
							set_state_flag = CHI_industrial_investment_IC
						}
					random_owned_controlled_state = {
							limit = {
									is_fully_controlled_by = ROOT
									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
								}
							set_state_flag = CHI_industrial_investment_IC
						}
				}

	}
	focus = {
		id = CHI_public_works
		icon = GFX_goal_generic_construct_infrastructure
		cost = 10
		prerequisite = {
			focus = CHI_industrial_investment
		}
		x = 18
		y = 2
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

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

	}
	focus = {
		id = CHI_labor_reform
		icon = GFX_goal_generic_construction2
		cost = 10
		prerequisite = {
			focus = CHI_public_works
		}
		x = 18
		y = 3
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					add_ideas = CHI_labor_reform
				}

	}
	focus = {
		id = CHI_join_the_republican_government
		icon = GFX_goal_generic_national_unity
		cost = 10
		prerequisite = {
			focus = CHI_reform_the_administration
		}
		x = 1
		y = 6
			ai_will_do = {
					factor = 1
				}
			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
						}
					if = {
							limit = {
									WTT_not_taking_over_national_leadership = no
								}
							WTT_not_taking_over_national_leadership = yes
						}
					if = {
							limit = {
									WTT_not_china_leader_refused_to_give_up_national_leadership = no
								}
							WTT_not_china_leader_refused_to_give_up_national_leadership = yes
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					custom_effect_tooltip = enable_power_struggle
					WTT_setup_political_struggle = yes
					WTT_add_ROOT_to_political_struggle = yes
				}

	}
	focus = {
		id = CHI_power_struggle
		icon = GFX_goal_generic_demand_territory
		cost = 10
		prerequisite = {
			focus = CHI_join_the_republican_government
		}
		x = 1
		y = 7
			ai_will_do = {
					factor = 1
				}
			available = {
					has_army_manpower = {
							size > 49999
						}
			OR = {
					num_of_factories > 12
					608 = {
						is_fully_controlled_by = ROOT
					}
					613 = {
						is_fully_controlled_by = ROOT
					}
					605 = {
						is_fully_controlled_by = ROOT
					}
					592 = {
						is_fully_controlled_by = ROOT
					}
			}
					OR = {
							WTT_has_politcal_support_points_30 = yes
							WTT_is_ROOT_current_leader_of_china = yes
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					load_focus_tree = china_nationalist_focus
					set_cosmetic_tag = CHI_warlord_leader
					every_state = {
							limit = {
									is_core_of = CHI
								}
							add_core_of = ROOT
						}
				}

	}
	focus = {
		id = CHI_the_yanan_incident
		icon = GFX_goal_support_communism
		cost = 10
		prerequisite = {
			focus = CHI_join_the_chinese_soviet
		}
		x = 7
		y = 7
			ai_will_do = {
					factor = 1
					modifier = {
							factor = 0.1
							is_historical_focus_on = yes
						}
				}
			available = {
					has_army_manpower = {
							size > 49999
						}
					has_opinion = {
							target = SOV
							value > 50
						}
					is_subject = no
					NOT = {
							has_war_with = PRC
						}
					NOT = {
							has_war_with = SOV
						}
					SOV = {
							has_government = communism
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					custom_effect_tooltip = CHI_the_yanan_incident_effect_tt
					save_event_target_as = warlord
					add_ideas = PRC_soviet_tribute_1
					SOV = {
							country_event = {
									id = wtt_warlord_vs_prc.1
								}
						}
				}

	}
	focus = {
		id = CHI_seek_japanese_support
		icon = GFX_focus_chi_collaboration_with_the_japanese
		cost = 10
		prerequisite = {
			focus = CHI_cult_of_personality
		}
		x = 14
		y = 7
			ai_will_do = {
					factor = 1
				}
			available = {
					is_subject = no
					NOT = {
							has_war_with = JAP
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					unlock_decision_category_tooltip = CHI_seek_japanese_support
				}

	}
	focus = {
		id = CHI_proclaim_rival_government
		icon = GFX_focus_chi_proclaim_rival_government
		cost = 10
		prerequisite = {
			focus = CHI_cult_of_personality
		}
		x = 12
		y = 7
			ai_will_do = {
					factor = 1
				}
			available = {
					num_of_factories > 9
					has_army_manpower = {
							size > 49999
						}
					is_subject = no
					OR = {
							neutrality > 0.5
							communism > 0.5
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					every_state = {
							limit = {
									is_core_of = CHI
								}
							add_core_of = ROOT
						}
					if = {
							limit = {
									OR = {
											has_government = communism
											communism > 0.5
										}
									NOT = {
											neutrality > 0.5
										}
								}
							load_focus_tree = china_communist_focus
						}
					else = {
							load_focus_tree = china_nationalist_focus
						}
				}

	}
	focus = {
		id = CHI_public_education_reform
		icon = GFX_focus_research
		cost = 10
		prerequisite = {
			focus = CHI_labor_reform
			focus = CHI_heavy_weapons_development
		}
		x = 20
		y = 4
			ai_will_do = {
					factor = 35
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					add_research_slot = 1
				}

	}
	focus = {
		id = CHI_local_arms_production
		icon = GFX_goal_generic_production
		cost = 10
		prerequisite = {
			focus = CHI_long_term_economic_planning
		}
		x = 22
		y = 1
			ai_will_do = {
					factor = 90
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {
					random_state = {
							limit = {
									has_state_flag = CHI_local_arms_production_AF
								}
							add_extra_state_shared_building_slots = 2
							add_building_construction = {
									type = arms_factory
									level = 2
									instant_build = yes
								}
						}
				}
			completion_reward = {
					random_owned_controlled_state = {
							limit = {
									is_fully_controlled_by = ROOT
									free_building_slots = {
											building = arms_factory
											size > 0
											include_locked = yes
										}
								}
							add_extra_state_shared_building_slots = 2
							add_building_construction = {
									type = arms_factory
									level = 2
									instant_build = yes
								}
							set_state_flag = CHI_local_arms_production_AF
						}
				}

	}
	focus = {
		id = CHI_local_arms_development
		icon = GFX_goal_generic_small_arms
		cost = 10
		prerequisite = {
			focus = CHI_local_arms_production
		}
		x = 22
		y = 2
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					add_tech_bonus = {
							name = CHI_local_arms_development
							bonus = 1.0
							uses = 1
							category = infantry_weapons
						}
				}

	}
	focus = {
		id = CHI_heavy_weapons_development
		icon = GFX_goal_generic_army_artillery
		cost = 10
		prerequisite = {
			focus = CHI_local_arms_development
		}
		x = 22
		y = 3
			ai_will_do = {
					factor = 1
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			complete_tooltip = {

}
			completion_reward = {
					add_tech_bonus = {
							name = CHI_heavy_weapons_development
							bonus = 1.0
							uses = 1
							category = artillery
						}
				}

	}
}
