focus_tree = {
	id = china_nationalist_focus
	
	country = {
		factor = 0
		modifier = {
			add = 10
			tag = CHI
			has_dlc = "Waking the Tiger"
		}
	}

	default = no

	continuous_focus_position = { x = 20 y = 1500 }
	shared_focus = CHI_invite_foreign_investors

	focus = {
		id = CHI_time_waster
		icon = GFX_goal_generic_production2
		x = 59
		y = 20
		cost = 313
		available = { is_ai = yes	}
		completion_reward = {}
	}

	focus = {
		id = CHI_industrial_modernization
		continue_if_invalid = yes
		icon = GFX_goal_generic_construction
		x = -5
		y = 0
		relative_position_id = CHI_military_modernization
		cost = 5
		ai_will_do = {	factor = 100	}	
		completion_reward = {	}
	}

	focus = {
		id = CHI_sichuan_mine
		icon = GFX_focus_generic_steel
		prerequisite = { focus = CHI_industrial_modernization }
		available = { has_completed_focus = CHI_special_mining_initiative }
		x = -4
		y = 1
		relative_position_id = CHI_industrial_modernization
		cost = 10
		ai_will_do = {	factor = 160	}
		available = {	605 = { is_controlled_by = CHI } }
		completion_reward = { 605 = { if = { limit = { is_controlled_by = ROOT } add_resource = { type = steel amount = 15 state = 605 } } } }
	}

	focus = {
		id = CHI_anhui_mine
		icon = GFX_focus_generic_steel
		prerequisite = { focus = CHI_sichuan_mine }
		x = 0
		y = 2
		relative_position_id = CHI_sichuan_mine
		cost = 10
		ai_will_do = {	factor = 160 }
		available = { 606 = { is_controlled_by = CHI } }
		completion_reward = {
			606 = {
				if = {
					limit = { is_controlled_by = ROOT }
					add_resource = { type = steel amount = 20 state = 606 }
				}
			}
		}
	}

	focus = {
		id = CHI_guizhou_mine
		icon = GFX_focus_generic_aluminum
		prerequisite = { focus = CHI_industrial_modernization }
		available = { has_completed_focus = CHI_special_mining_initiative }
		x = 4
		y = 1
		relative_position_id = CHI_industrial_modernization
		cost = 10
		ai_will_do = {	factor = 160 }
		available = {603 = { is_controlled_by = CHI }}
		completion_reward = {
			603 = {
				if = {
					limit = { is_controlled_by = ROOT }
					add_resource = {
    						type = chromium
							amount = 20
    						state = 603
					}
					add_resource = {
    						type = aluminium
							amount = 24
    						state = 603
					}	
					add_resource = {
    						type = steel
							amount = 12
    						state = 603
					}					
				}
			}
		}
	}
	focus = {   
		id = CHI_zunyi_mine
		icon = GFX_focus_generic_aluminum
		prerequisite = { focus = CHI_guizhou_mine }
		x = 0
		y = 2
		relative_position_id = CHI_guizhou_mine
		cost = 10
		ai_will_do = { factor = 160	}
		available = {	748 = { is_controlled_by = CHI }}
		completion_reward = {
			748 = {
				if = {
					limit = { is_controlled_by = ROOT }
					add_resource = {
    						type = tungsten
							amount = 16
    						state = 748
					}
					add_resource = {
    						type = aluminium
							amount = 28
    						state = 748
					}
					add_resource = {
    						type = steel
							amount = 24
    						state = 748
					}						
				}
			}
		}
	}

	focus = {
		id = CHI_30_tech_slot
		icon = GFX_focus_research
		text = extra_tech_slot
		prerequisite = { focus = CHI_industrial_modernization }		
		relative_position_id = CHI_industrial_modernization
		x = 0
		y = 1
		cost = 14.3
		ai_will_do = {	factor = 4000	}
		available_if_capitulated = yes
		completion_reward = {
			add_research_slot = 1
		}
	}

	focus = { 
		id = CHI_Farmers_Bank
		icon = GFX_focus_chi_farmers_bank
		available = {
			OR = { 
				date > 1931.8.30
				is_ai = no
			}
		}
		prerequisite = { focus = CHI_30_tech_slot }
		x = 0
		y = 1
		relative_position_id = CHI_30_tech_slot
		cost = 10
		ai_will_do = {	factor = 5	}
		available_if_capitulated = yes
		completion_reward = { decrease_populace_oppression = yes }
	}

	focus = {
		id = CHI_machineToolPlant
		icon = GFX_goal_generic_construction
		prerequisite = { focus = CHI_Farmers_Bank }
		x = 0
		y = 1
		relative_position_id = CHI_Farmers_Bank
		cost = 10
		available_if_capitulated = yes
		ai_will_do = {	factor = 2	}
		bypass = {
			custom_trigger_tooltip = {
				tooltip = construction_effort_tt
				all_owned_state = {
					free_building_slots = {
						building = industrial_complex
						size < 1
						include_locked = yes
					}					
				}
			}
		}
		complete_tooltip = {
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}			
		}
		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 123 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 1
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
		}
	}	

	focus = { 
		id = CHI_roads
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = CHI_industrial_modernization }
		x = -2
		y = 1
		relative_position_id = CHI_industrial_modernization
		cost = 10
		ai_will_do = {	factor = 5	}
		available_if_capitulated = yes
		available = {
			has_full_control_of_state = 595
			has_full_control_of_state = 600
			has_full_control_of_state = 605			
			has_full_control_of_state = 749
			has_full_control_of_state = 750			
		}
		completion_reward = {
			add_political_power = 50
			#Nanchang supply hub to port of Fuzhou
			build_railway = { path = { 7199 12030 10084 1193 1166 4196 } }
			#Wuhan to Nanjing
			build_railway = { path = { 4619 9959 4203 10017 7222 1146 }	}
			#Xian supply hub to Chongqing
			build_railway = { path = { 7418 10144 11865 1893 6999 }	}
			#Supply Hub in Guiyang
			603 = {	add_building_construction = { type = supply_node level = 1 province = 4504	instant_build = yes	} }
			#Supply Hub in Anhui
			606 = {	add_building_construction = { type = supply_node level = 1 province = 11916 instant_build = yes } }
		}
	}

	focus = {
		id = CHI_advisor
		icon = GFX_goal_generic_intelligence_exchange
		available = {
			OR = {
				date > 1932.12.31 
				is_ai = no
			}
		}
		prerequisite = { focus = CHI_roads }
		x = 0
		y = 1
		relative_position_id = CHI_roads 
		cost = 5
		ai_will_do = {	factor = 5	} 
		available_if_capitulated = yes
		completion_reward = {
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = CHI_h_h_kung	
		}
	}

	focus = {
		id = CHI_special_mining_initiative
		icon = GFX_goal_generic_construction2
		prerequisite = { focus = CHI_advisor }
		x = -1
		y = 2
		relative_position_id = CHI_advisor
		cost = 10
		ai_will_do = {	factor = 5	}
		available_if_capitulated = yes
		completion_reward = {			
			add_stability = 0.02
			add_tech_bonus = {
				name = CHI_stuff
				bonus = 1.0
				uses = 2
				technology = excavation0
				technology = excavation1
				technology = excavation2
				technology = excavation3
				technology = excavation4
				technology = excavation5
			}
			add_resource = {
				type = steel
				amount = 8
				state = 603
			}
		}
	}

	focus = {
		id = CHI_pre_construction_effort
		icon = GFX_goal_generic_production
		prerequisite = { focus = CHI_advisor }
		x = 0
		y = 1
		relative_position_id = CHI_advisor
		cost = 10
		available_if_capitulated = yes
		ai_will_do = {	factor = 2	}
		bypass = {
			custom_trigger_tooltip = {
				tooltip = construction_effort_tt
				all_owned_state = {
					free_building_slots = {
						building = industrial_complex
						size < 1
						include_locked = yes
					}					
				}
			}
		}
		complete_tooltip = {
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}			
		}
		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 126 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 1
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = CHI_financial_reconstruction
		icon = GFX_focus_generic_industry_2 
		prerequisite = { focus = CHI_machineToolPlant }
		prerequisite = { 
			focus = CHI_pre_construction_effort 
			focus = CHI_reform_the_national_bank
		}
		available = {
			OR = {
				date > 1934.12.31
				is_ai = no
			}
		} 
		x = 0
		y = 1
		relative_position_id = CHI_machineToolPlant
		cost =  8
		ai_will_do = {	factor = 80	}		
		completion_reward = {
			add_tech_bonus = {
				bonus = 0.75
				uses = 1
				category = industry
			}
			decrease_populace_oppression = yes
		}
	}	

	focus = {
		id = CHI_autarky
		icon = GFX_focus_chi
		available = {
			OR = {
				is_ai = no
				date > 1935.12.31
			}
		}
		prerequisite = { focus = CHI_financial_reconstruction }
		x = 0
		y = 1
		relative_position_id = CHI_financial_reconstruction
		cost = 10
		ai_will_do = {	factor = 100	}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus CHI_autarky"
			add_tech_bonus = {
				name = CHI_autarky
				bonus = 0.5
				uses = 2
				technology = excavation0				
				technology = excavation2
				technology = excavation3
				technology = excavation4
				technology = excavation5
			}
			add_ideas = GER_autarky_idea
			decrease_populace_oppression = yes
		}
	}
	focus = {
		id = CHI_rationalized_production
		icon = GFX_goal_generic_production2
		dynamic = yes
		prerequisite = { focus = CHI_autarky }
		mutually_exclusive = { focus = CHI_state_controlled_industry }
		available = {
			NOT = { 
				has_government = communism 
				has_government = fascism
			}
		}
		x = 1
		y = 1
		relative_position_id = CHI_autarky
		cost = 10
		ai_will_do = {	factor = 200	}
		available_if_capitulated = no
		complete_tooltip = {
			every_state = {
				limit = { has_state_flag = CHI_industrial_effort_2IC }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}			
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus CHI_rationalized_production"
			decrease_populace_oppression = yes
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					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_effort_2IC
			}
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					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_effort_2IC
			}
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					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_effort_2IC
			}
		}
	}
	focus = {
		id = CHI_subsidize_auto_industry
		icon = GFX_goal_generic_consumer_goods
		dynamic = yes
		prerequisite = { focus = CHI_rationalized_production }
		x = 0
		y = 1
		relative_position_id = CHI_rationalized_production
		cost = 10
		ai_will_do = {
			factor = 100
		}
		available_if_capitulated = no
		complete_tooltip = {
			every_state = {
				limit = { has_state_flag = CHI_industrial_effort_2_2IC }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus CHI_rationalized_production"
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					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_effort_2IC
			}
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					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_effort_2IC
			}
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					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_effort_2IC
			}
		}
	}

	focus = {
		id = CHI_state_controlled_industry
		icon = GFX_goal_generic_construct_civ_factory
		dynamic = yes
		prerequisite = { focus = CHI_autarky }
		mutually_exclusive = { focus = CHI_rationalized_production }
		available = {	NOT = { has_government = democratic	}	}
		x = 3
		y = 1
		relative_position_id = CHI_autarky
		cost = 10
		ai_will_do = {	factor = 200 }
		available_if_capitulated = no
		complete_tooltip = {
			every_state = {
				limit = { has_state_flag = CHI_industrial_effort_2IC }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}			
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus CHI_state_controlled_industry"
			decrease_populace_oppression = yes
			swap_ideas = {
				remove_idea = GER_autarky_idea
				add_idea = GER_autarky_idea2
			}
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					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_effort_2IC
			}
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					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_effort_2IC
			}
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					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_effort_2IC
			}
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					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_effort_2IC
			}
			custom_effect_tooltip = GER_stifled_initiative_tt
		}
	}

	focus = {
		id = CHI_order_industrial_cartels
		icon = GFX_goal_generic_construct_civ_factory
		dynamic = yes
		prerequisite = { focus = CHI_state_controlled_industry }
		x = 0
		y = 1
		relative_position_id = CHI_state_controlled_industry
		cost = 10
		ai_will_do = {
			factor = 100
		}
		available_if_capitulated = no
		complete_tooltip = {
			every_state = {
				limit = { has_state_flag = CHI_industrial_effort_2_2IC }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus CHI_order_industrial_cartels"
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					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_effort_2IC
			}
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					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_effort_2IC
			}
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					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_effort_2IC
			}
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					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_effort_2IC
			}
		}
	}
	
	focus = {
		id = CHI_coal_liquidization
		icon = GFX_goal_generic_oil_refinery
		prerequisite = { focus = CHI_autarky }
		x = -1
		y = 1
		relative_position_id = CHI_autarky
		cost = 10
		ai_will_do = {
			factor = 40
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus CHI_coal_liquidization"
			add_tech_bonus = {
				name = CHI_coal_liquidization
				bonus = 0.75
				uses = 1
				category = synth_resources
			}
			random_owned_controlled_state = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
			}
		}
	}
	
	focus = {
		id = CHI_synthetic_rubber
		icon = GFX_focus_generic_rubber
		prerequisite = { focus = CHI_coal_liquidization }
		x = 0
		y = 1
		relative_position_id = CHI_coal_liquidization
		cost = 10
		ai_will_do = {	factor = 4	}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus CHI_synthetic_rubber"
			modify_building_resources = {
			   building = synthetic_refinery
			   resource = rubber
			   amount = 2
			}
		}
	}
	focus = {
		id = CHI_extra_tech_slot7
		icon = GFX_focus_research
		text = extra_tech_slot
		prerequisite = { focus = CHI_order_industrial_cartels focus = CHI_synthetic_rubber focus = CHI_subsidize_auto_industry focus = CHI_rural_reconstruction_movement }
		x = -1
		y = 1
		relative_position_id = CHI_subsidize_auto_industry
		cost = 10
		ai_will_do = {	factor = 10	}
		available_if_capitulated = yes
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus CHI_extra_tech_slot"
			add_research_slot = 1
		}
	}

	focus = {  
		id = CHI_encourge_industrial_growth
		icon = GFX_goal_generic_construction
		prerequisite = { focus = CHI_extra_tech_slot7 }
		x = 1
		y = 1
		relative_position_id = CHI_extra_tech_slot7
		cost = 10
		ai_will_do = {	factor = 10	}
		available_if_capitulated = yes
		completion_reward = {
			random_owned_controlled_state = {	#limit = {	is_on_continent = europe	}
				add_extra_state_shared_building_slots = 1	}
			random_owned_controlled_state = {	add_extra_state_shared_building_slots = 1	}
			random_owned_controlled_state = {	add_extra_state_shared_building_slots = 1	}
			random_owned_controlled_state = {	add_extra_state_shared_building_slots = 1	}
			random_owned_controlled_state = {	add_extra_state_shared_building_slots = 1	}
			random_owned_controlled_state = {	add_extra_state_shared_building_slots = 1	}
			random_owned_controlled_state = {	add_extra_state_shared_building_slots = 1	}
		}
	}	
	
	focus = {  
		id = CHI_extra_research_slot_max
		icon = GFX_focus_research2
		text = extra_tech_slot
		prerequisite = { focus = CHI_extra_tech_slot7 }
		x = 0
		y = 2
		relative_position_id = CHI_extra_tech_slot7
		available = { num_of_factories > 200 }
		cost = 10
		ai_will_do = {	factor = 10	}
		available_if_capitulated = yes
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus CHI_extra_research_slot_max"
			add_research_slot = 1
		} 
	}

	focus = {
		id = CHI_three_principles_of_the_people
		icon = GFX_goal_generic_national_unity
		x = 5
		y = 0
		available = {
			OR = {
				is_ai = no
				date > 1936.1.1
			}
		}
		cost = 10
		ai_will_do = {
			factor = 4
		}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_STABILITY }
		completion_reward = {	
			add_stability = 0.05	
			add_political_power = 100
		}
	}
	focus = {
		id = CHI_border_alliances
		available = { 	} 
		icon = GFX_focus_generic_diplomatic_treaty
		prerequisite = { focus = CHI_three_principles_of_the_people }
		x = -2
		y = 1
		relative_position_id = CHI_three_principles_of_the_people
		cost = 10
		ai_will_do = {	factor = 4000	}
		available_if_capitulated = yes
		completion_reward = {
			GXC = {	add_opinion_modifier = { target = CHI	modifier = small_increase	}	}
			YUN = {	add_opinion_modifier = { target = CHI	modifier = small_increase	}	}			
			XSM = {	add_opinion_modifier = { target = CHI	modifier = small_increase	}	}			
			SHX = {	add_opinion_modifier = { target = CHI	modifier = small_increase	}	}				
			add_stability = 0.10
		}
	}
	focus = {
		id = CHI_welfare
		icon = GFX_goal_generic_consumer_goods
		prerequisite = { focus = CHI_three_principles_of_the_people }
		x = -4
		y = 1
		relative_position_id = CHI_three_principles_of_the_people
		cost = 10
		ai_will_do = {	factor = 4	}
		available = { NOT = {	has_idea = CHI_hyper_inflation_5 } }
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_war_support = 0.1
			CHI_hyper_inflation_level_up = yes
		}
	}

	focus = {
		id = CHI_refugee_relief_agency
		icon = GFX_focus_generic_self_management
		prerequisite = { focus = CHI_welfare }
		x = -1
		y = 1
		relative_position_id = CHI_welfare
		cost = 10
		ai_will_do = {	factor = 4	}
		available = { NOT = {	has_idea = CHI_hyper_inflation_5 } }
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_war_support = 0.1
			CHI_hyper_inflation_level_up = yes
		}
	}

	focus = {
		id = CHI_land_tax_reform
		icon = GFX_goal_generic_intelligence_exchange
		prerequisite = { focus = CHI_welfare }
		x = 1
		y = 1
		relative_position_id = CHI_welfare
		cost = 10
		ai_will_do = {	factor = 4	}
		available = {	has_hyper_inflation = yes	}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_CHI_INFLATION }
		completion_reward = {	CHI_hyper_inflation_level_down = yes }
	}

	focus = {
		id = CHI_new_life_movement
		icon = GFX_goal_generic_propaganda
		prerequisite = { focus = CHI_refugee_relief_agency }
		x = -1
		y = 3
		relative_position_id = CHI_welfare
		cost = 10
		ai_will_do = {	factor = 4	}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_STABILITY }
		completion_reward = {	add_stability = 0.1	}
	}

	focus = {
		id = CHI_unemployment_assistance
		icon = GFX_goal_generic_production
		prerequisite = { focus = CHI_land_tax_reform }
		x = 1
		y = 3
		relative_position_id = CHI_welfare
		cost = 10
		ai_will_do = {	factor = 1	}
		available = {NOT = {	has_idea = CHI_hyper_inflation_5}}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {			
			add_war_support = 0.1
			CHI_hyper_inflation_level_up = yes
		}
	}

	focus = {
		id = CHI_free_hospitals
		icon = GFX_goal_generic_improve_relations
		prerequisite = { focus = CHI_new_life_movement }
		prerequisite = { focus = CHI_unemployment_assistance }
		x = 0
		y = 4
		relative_position_id = CHI_welfare
		cost = 10
		ai_will_do = {	factor = 1	}
		available = {	NOT = {	has_idea = CHI_hyper_inflation_5}}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_war_support = 0.1
			CHI_hyper_inflation_level_up = yes
		}
	}

	focus = {
		id = CHI_rural_schooling
		icon = GFX_goal_generic_scientific_exchange
		prerequisite = { focus = CHI_free_hospitals }
		x = 0
		y = 5
		relative_position_id = CHI_welfare
		cost = 10
		ai_will_do = {
			factor = 1
		}
		available = {
			amount_research_slots < 5
			NOT = {	has_idea = CHI_hyper_inflation_5}
		}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_research_slot = 1
			CHI_hyper_inflation_level_up = yes
		}
	}

	focus = {
		id = CHI_democracy
		icon = GFX_goal_support_democracy
		prerequisite = { focus = CHI_three_principles_of_the_people }
		x = 0
		y = 1
		relative_position_id = CHI_three_principles_of_the_people
		cost = 10
		ai_will_do = {
			factor = 1
		}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_political_power = 120
		}
	}

	focus = {
		id = CHI_constitutional_reform
		icon = GFX_goal_generic_forceful_treaty
		prerequisite = { focus = CHI_democracy }
		x = -1
		y = 1
		relative_position_id = CHI_democracy
		cost = 10
		ai_will_do = {	factor = 1	}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {	add_war_support = 0.1	}
	}

	focus = {
		id = CHI_republicanism
		icon = GFX_goal_generic_propaganda
		prerequisite = { focus = CHI_constitutional_reform }
		x = -1
		y = 1
		relative_position_id = CHI_constitutional_reform
		cost = 5
		ai_will_do = {	factor = 1	}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		completion_reward = {
			every_country = {
				limit = {	is_major = yes	has_government = democratic	}
				add_opinion_modifier = {target = ROOT	modifier = CHI_republicanism	}
			}
		}
	}

	focus = {
		id = CHI_inter_party_coordination_council
		icon = GFX_goal_generic_major_alliance
		prerequisite = { focus = CHI_constitutional_reform }
		prerequisite = { focus = CHI_executive_yuan }
		x = 1
		y = 1
		relative_position_id = CHI_constitutional_reform
		cost = 10
		ai_will_do = {	factor = 1	}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_ideas = CHI_inter_party_coordination_council
		}
	}

	focus = {
		id = CHI_judicial_yuan
		icon = GFX_goal_generic_defence
		prerequisite = { focus = CHI_republicanism }
		prerequisite = { focus = CHI_inter_party_coordination_council }
		x = 1
		y = 1
		relative_position_id = CHI_republicanism

		cost = 10

		ai_will_do = {
			factor = 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
		}
	}

	focus = {
		id = CHI_control_yuan
		icon = GFX_goal_generic_attack_allies
		prerequisite = { focus = CHI_judicial_yuan }
		prerequisite = { focus = CHI_legislative_yuan }
		x = 1
		y = 1
		relative_position_id = CHI_judicial_yuan

		cost = 10

		ai_will_do = {
			factor = 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
		}
	}

	focus = {
		id = CHI_examination_yuan
		icon = GFX_focus_chi_examination_yuan
		prerequisite = { focus = CHI_control_yuan }
		x = 0
		y = 1
		relative_position_id = CHI_control_yuan

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			remove_ideas = CHI_ineffective_bureaucracy
		}
	}

	focus = {
		id = CHI_executive_yuan
		icon = GFX_goal_generic_demand_territory
		prerequisite = { focus = CHI_democracy }
		x = 1
		y = 1
		relative_position_id = CHI_democracy

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_ideas = CHI_executive_yuan
		}
	}

	focus = {
		id = CHI_legislative_yuan
		icon = GFX_focus_chi_legislative_yuan
		prerequisite = { focus = CHI_executive_yuan }
		prerequisite = { focus = CHI_inter_party_coordination_council }
		x = 0
		y = 2
		relative_position_id = CHI_executive_yuan

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			swap_ideas = {
				remove_idea = CHI_executive_yuan
				add_idea = CHI_legislative_yuan
			}
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = CHI_kwong_jiang_political_advisor
		}
	}

	focus = {
		id = CHI_nationalism
		icon = GFX_goal_generic_propaganda
		prerequisite = { focus = CHI_three_principles_of_the_people }
		x = 4
		y = 1
		relative_position_id = CHI_three_principles_of_the_people

		cost = 10

		ai_will_do = {
			factor = 4
		}

		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
		}
	}

	focus = {
		id = CHI_foreign_threats
		icon = GFX_goal_generic_territory_or_war
		prerequisite = { focus = CHI_nationalism }
		mutually_exclusive = { focus = CHI_prioritize_the_interior }
		x = -1
		y = 1
		relative_position_id = CHI_nationalism

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_war_support = 0.1
		}
	}

	focus = {
		id = CHI_prioritize_the_interior
		icon = GFX_goal_generic_position_armies
		prerequisite = { focus = CHI_nationalism }
		mutually_exclusive = { focus = CHI_foreign_threats }
		x = 1
		y = 1
		relative_position_id = CHI_nationalism

		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				AND = {
					MAN = {	exists = no }
					PRC = { exists = no }
				}
				factor = 0
			}
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		complete_tooltip = {

		}

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

	focus = {
		id = CHI_united_front
		icon = GFX_focus_chi_united_front
		prerequisite = { focus = CHI_foreign_threats }
		x = 0
		y = 1
		relative_position_id = CHI_foreign_threats

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			is_subject = no
			is_in_faction = no
		}

		bypass = {
			is_in_faction_with = PRC
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		complete_tooltip = {

		}

		completion_reward = {
			CHI = {
				set_rule = { can_create_factions = yes }
				create_faction = chinese_united_front
			}
			PRC = {
				country_event = generic.5
			}
		}
	}

	focus = {
		id = CHI_pick_a_fight_with_japan
		icon = GFX_focus_AST_war_japan
		prerequisite = { focus = CHI_united_front focus = CHI_anti_communism }
		x = 1
		y = 1
		relative_position_id = CHI_united_front

		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				JAP = {
					has_government = democratic
				}
				factor = 0
			}
		}

		available = {
			NOT = { is_in_faction_with = JAP }
		}

		bypass = {
			OR = {
				has_war_with = JAP
				has_war_with = MAN
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		complete_tooltip = {

		}

		completion_reward = {
			if = {
				limit = {
					MAN = {
						OR = {
							is_in_faction_with = JAP
							is_puppet_of = JAP
						}
					}
				}
				create_wargoal = {
					type = annex_everything
					target = MAN
					expire = 0
				}
				else = {
					create_wargoal = {
						type = annex_everything
						target = JAP
						expire = 0
					}	
				}
			}
			hidden_effect = {
				news_event = { id = wtt_news.35 days = 1}
			}
		}
	}

	focus = {
		id = CHI_anti_communism
		icon = GFX_goal_generic_war_with_comintern
		prerequisite = { focus = CHI_prioritize_the_interior }
		x = 0
		y = 1
		relative_position_id = CHI_prioritize_the_interior

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			NOT = { has_government = communism }
			any_country = {
				OR = {
					tag = YUN
					tag = SIK
					tag = GXC
					tag = SHX
					tag = XSM
					tag = TIB
					tag = PRC
				}
				has_government = communism
			}
		}

		bypass = {
			OR = {
				is_in_faction_with = PRC
				NOT = { 
					any_country = {
						OR = {
							tag = YUN
							tag = SIK
							tag = GXC
							tag = SHX
							tag = XSM
							tag = TIB
							tag = PRC
						}
						has_government = communism
					}
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		complete_tooltip = {

		}

		completion_reward = {
			if = {		
				limit = {
					SIK = {
						has_government = communism
					}
				}
				create_wargoal = {
					type = annex_everything
					target = SIK
					expire = 0
				}
			}
			if = {		
				limit = {
					TIB = {
						has_government = communism
					}
				}
				create_wargoal = {
					type = annex_everything
					target = TIB
					expire = 0
				}
			}
			if = {
				limit = {
					PRC = {
						has_government = communism
					}
				}
				ROOT = {
					create_wargoal = {
						type = annex_everything
						target = PRC
						expire = 0
					}
				}
			}
			if = {
				limit = {
					YUN = {
						has_government = communism
					}
				}
				ROOT = {
					create_wargoal = {
						type = annex_everything
						target = YUN
						expire = 0
					}
				}
			}
			if = {
				limit = {
					SHX = {
						has_government = communism
					}
				}
				ROOT = {
					create_wargoal = {
						type = annex_everything
						target = SHX
						expire = 0
					}
				}
			}
			if = {
				limit = {
					GXC = {
						has_government = communism
					}
				}
				ROOT = {
					create_wargoal = {
						type = annex_everything
						target = GXC
						expire = 0
					}
				}
			}
			if = {
				limit = {
					XSM = {
						has_government = communism
					}
				}
				ROOT = {
					create_wargoal = {
						type = annex_everything
						target = XSM
						expire = 0
					}
				}
			}
		}
	}

	focus = {
		id = CHI_subjugate_the_warlords
		icon = GFX_goal_generic_political_pressure
		prerequisite = { focus = CHI_prioritize_the_interior }
		x = 1
		y = 2
		relative_position_id = CHI_prioritize_the_interior

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {

		}

		bypass = {
			GXC = {
				OR = {
					exists = no
					is_subject_of = ROOT
					has_war_with = ROOT
				}
			}
			YUN = {
				OR = {
					exists = no
					is_subject_of = ROOT
					has_war_with = ROOT
				}
			}
			SHX = {
				OR = {
					exists = no
					is_subject_of = ROOT
					has_war_with = ROOT
				}
			}
			XSM = {
				OR = {
					exists = no
					is_subject_of = ROOT
					has_war_with = ROOT
				}
			}
			SIK = {
				OR = {
					exists = no
					is_subject_of = ROOT
					has_war_with = ROOT
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		complete_tooltip = {

		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			every_other_country = {
				limit = {
					OR = {
						tag = GXC
						tag = YUN
						tag = SHX
						tag = XSM
						tag = SIK
					}
				}
				country_event = { id = wtt_china.1 }
			}
			unlock_decision_category_tooltip = CHI_integrate_the_warlords
		}
	}

	focus = {
		id = CHI_war_of_resistance
		icon = GFX_goal_generic_military_sphere
		prerequisite = { focus = CHI_pick_a_fight_with_japan }
		x = 0
		y = 1
		relative_position_id = CHI_pick_a_fight_with_japan

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {
			NOT = {
				has_idea = CHI_army_corruption_1
			}		
		}

		bypass = {
			has_offensive_war_with = JAP
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_ideas = CHI_war_of_resistance
		}
	}

	focus = {
		id = CHI_industrial_evacuations
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = CHI_war_of_resistance }
		x = -2
		y = 1
		relative_position_id = CHI_war_of_resistance

		cost = 5

		ai_will_do = {
			factor = 1
		}

		available = {
			has_war = yes
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			unlock_decision_category_tooltip = CHI_industrial_evacuations			
			set_variable = { var = CHI_industrial_evacuations_amount_factor value = 0.75 } #Ratio for how many building are moved. Change CHI_industrial_evacuations_add_AF and CHI_industrial_evacuations_add_IC if you change the value
		}
	}

	focus = {
		id = CHI_war_of_national_liberation
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = CHI_war_of_resistance }
		x = 0
		y = 1
		relative_position_id = CHI_war_of_resistance

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			NOT = {
				has_idea = CHI_army_corruption_2
			}
			has_defensive_war = yes
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			if = {
				limit = {
					has_idea = CHI_war_of_resistance
				}
				swap_ideas = {
					remove_idea = CHI_war_of_resistance
					add_idea = CHI_war_of_resistance_2
				}
				else = {
					add_ideas = CHI_war_of_national_liberation
				}
			}
		}
	}

	focus = {
		id = CHI_scorched_earth_tactics
		icon = GFX_focus_generic_strike_at_democracy1
		prerequisite = { focus = CHI_war_of_resistance }
		x = 2
		y = 1
		relative_position_id = CHI_war_of_resistance

		cost = 5

		ai_will_do = {
			factor = 4
		}

		available = {
			has_war = yes
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			unlock_decision_tooltip = CHI_scorched_earth_tactics
		}
	}

	focus = {
		id = CHI_war_of_anti_imperialism
		icon = GFX_goal_generic_territory_or_war
		prerequisite = { focus = CHI_war_of_national_liberation }
		x = 0
		y = 1
		relative_position_id = CHI_war_of_national_liberation

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			OR = {
				has_war_with = JAP
				has_war_with = MAN
			}
			has_country_flag = CHI_lessons_of_war_completed
		}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_ideas = CHI_war_of_anti_imperialism
		}
	}

	focus = {
		id = CHI_forced_conscription
		icon = GFX_focus_generic_support_the_left_right
		prerequisite = { focus = CHI_scorched_earth_tactics }
		x = 0
		y = 1
		relative_position_id = CHI_scorched_earth_tactics
		cost = 10
		ai_will_do = {
			factor = 4
			modifier = {
				has_manpower > 1000000
				factor = 0
			}
		}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_ideas = CHI_forced_conscription
		}
	}

	focus = {
		id = CHI_dare_to_die_corps
		icon = GFX_goal_generic_special_forces
		prerequisite = { focus = CHI_forced_conscription }
		x = 0
		y = 2
		relative_position_id = CHI_scorched_earth_tactics
		cost = 10
		ai_will_do = {
			factor = 1
		}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		completion_reward = {
			custom_effect_tooltip = CHI_50_cheaper_force_attack
		}
	}

	focus = {
		id = CHI_military_affairs_commission
		icon = GFX_focus_secret_rearmament
		x = 10
		y = 0
		relative_position_id = CHI_three_principles_of_the_people
		cost = 10
		ai_will_do = {
			factor = 4
		}
		available = {
			OR = {
				is_ai = no
				date > 1936.1.1
			}
		}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		completion_reward = {
			add_ideas = CHI_military_affairs_commission
		}
	}

	focus = {
		id = CHI_fortify_shanghai
		icon = GFX_goal_generic_fortify_city
		prerequisite = { focus = CHI_military_affairs_commission }
		x = -2
		y = 1
		relative_position_id = CHI_military_affairs_commission

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			 613 = {
			 	is_fully_controlled_by = ROOT
			 }
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		complete_tooltip = {

		}

		completion_reward = {
			if = {
				limit = { has_full_control_of_state = 613 }
				613 = { # Shanghai
					set_building_level = {
						type = bunker
						province = {
							id = 11913 #Nanjing
							id = 11982 #Nothing
							id = 10076 #Airbase
							id = 12052
							id = 7014 #Shanghai
						}
						level = 2
						instant_build = yes
					}

					if = {
						limit = {
							any_province_building_level = {
								province = {
									id = 7014 #Shanghai
								}
								level < 3
								building = bunker
							}
						}
						set_building_level = {
							type = bunker
							province = {
								id = 7014 #Shanghai
							}
							level = 3
							instant_build = yes
						}
					}

					if = {
						limit = {
							any_province_building_level = {
								province = {
									id = 7014 #Shanghai
								}
								level < 2
								building = coastal_bunker
							}
						}
						set_building_level = {
							type = coastal_bunker
							province = {
								id = 7014 #Shanghai
							}
							level = 2
							instant_build = yes
						}
					}					
				}

				#If not full control, only add forts in provinces bordering the enemy
				#Only time to throw up some emergency stuff
				else = {
					613 = {
						add_building_construction = {
							type = bunker
							province = {
								all_provinces = yes
								limit_to_border = yes
							}
							level = 1
							instant_build = yes
						}
					}

				}
			}
		}
	}

	focus = {
		id = CHI_the_chinese_hindenburg_line
		icon = GFX_goal_generic_construct_military
		prerequisite = { focus = CHI_fortify_shanghai }
		x = -2
		y = 2
		relative_position_id = CHI_military_affairs_commission

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			NOT = {
				any_enemy_country = {
					has_full_control_of_state = 613
				}
			}
			NOT = {
				any_enemy_country = {
					has_full_control_of_state = 606
				}
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		complete_tooltip = {

		}

		completion_reward = {
			if = {
				limit = { has_full_control_of_state = 613 }
				613 = { # Shanghai
					set_building_level = {
						type = bunker
						province = {
							id = 11913 #Nanjing
							id = 11982 #Nothing
							id = 10076 #Airbase
							id = 12052
							id = 7014 #Shanghai
						}
						level = 3
						instant_build = yes
					}

					if = {
						limit = {
							any_province_building_level = {
								province = {
									id = 7014 #Shanghai
								}
								level < 4
								building = bunker
							}
						}
						set_building_level = {
							type = bunker
							province = {
								id = 7014 #Shanghai
							}
							level = 4
							instant_build = yes
						}
					}

					if = {
						limit = {
							any_province_building_level = {
								province = {
									id = 7014 #Shanghai
								}
								level < 3
								building = coastal_bunker
							}
						}
						set_building_level = {
							type = coastal_bunker
							province = {
								id = 7014 #Shanghai
							}
							level = 3
							instant_build = yes
						}
					}					
				}

				#If not full control, only add forts in provinces bordering the enemy
				#Only time to throw up some emergency stuff
				else = {
					613 = {
						add_building_construction = {
							type = bunker
							province = {
								all_provinces = yes
								limit_to_border = yes
							}
							level = 1
							instant_build = yes
						}
					}
				}
			}

			if = {
				limit = { has_full_control_of_state = 606 }
				606 = { # Anhui
					set_building_level = {
						type = bunker
						province = {
							id = 1099
							id = 1171
							id = 11937
							id = 10044
						}
						level = 2
						instant_build = yes
					}								
				}

				#If not full control, only add forts in provinces bordering the enemy
				#Only time to throw up some emergency stuff
				else = {
					606 = {
						add_building_construction = {
							type = bunker
							province = {
								all_provinces = yes
								limit_to_border = yes
							}
							level = 1
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = { has_full_control_of_state = 600 }
				600 = { # Jiangxi
					set_building_level = {
						type = bunker
						province = {
							id = 1153
						}
						level = 2
						instant_build = yes
					}								
				}
			}
		}
	}

	focus = {
		id = CHI_army_reform
		icon = GFX_focus_chi_army_reform
		prerequisite = { focus = CHI_military_affairs_commission }
		x = 0
		y = 1
		relative_position_id = CHI_military_affairs_commission
		cost = 10
		ai_will_do = {
			factor = 4
		}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		completion_reward = {unlock_decision_category_tooltip = CHI_army_reform	}
	}

	focus = {
		id = CHI_bureau_of_investigation_and_statistics
		icon = GFX_goal_generic_intelligence_exchange
		prerequisite = { focus = CHI_military_affairs_commission }
		x = 2
		y = 1
		relative_position_id = CHI_military_affairs_commission
		cost = 10
		ai_will_do = {
			factor = 4
		}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_STABILITY }
		completion_reward = {
			add_stability = 0.1
			custom_effect_tooltip = available_political_advisor
			if = {
				limit = {	has_dlc = "La Resistance"	}
				show_ideas_tooltip = CHI_dai_li_political_advisor
			}
			else = {show_ideas_tooltip = CHI_dai_li_wtt_political_advisor}
		}
	}

	focus = {
		id = CHI_60_divisions_plan
		icon = GFX_goal_generic_axis_build_infantry
		prerequisite = { focus = CHI_army_reform }
		x = 0
		y = 2
		relative_position_id = CHI_military_affairs_commission
		cost = 10
		ai_will_do = {
			factor = 1
		}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			unlock_decision_tooltip = CHI_60_divisions_plan
		}
	}

	focus = {
		id = CHI_whampoa_military_academy
		icon = GFX_focus_chi_whampoa_military_academy
		prerequisite = { focus = CHI_bureau_of_investigation_and_statistics }
		x = 2
		y = 2
		relative_position_id = CHI_military_affairs_commission
		cost = 10
		ai_will_do = {
			factor = 1
		}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			every_army_leader = {
				add_planning = 1
			}
			add_ideas = CHI_whampoa_military_academy
		}
	}

	focus = {
		id = CHI_unified_industrial_planning
		icon = GFX_goal_generic_construction
		prerequisite = { focus = CHI_autarky }		
		x = -3
		y = 1
		relative_position_id =  CHI_autarky
		cost = 10
		ai_will_do = {	factor = 4	}
		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_INDUSTRY }
		completion_reward = {
			add_tech_bonus = {
				name = CHI_unified_industrial_planning
				bonus = 1.0
				uses = 2
				category = industry
			}
		}
	}

	focus = {
		id = CHI_expand_the_academica_sinica
		icon = GFX_focus_chi_academia_sinica
		prerequisite = { focus = CHI_unified_industrial_planning }
		x = -2
		y = 1
		relative_position_id = CHI_unified_industrial_planning
		cost = 10
		ai_will_do = {	factor = 4	}
		available = {
			OR = {			
				has_war = no
				has_stability > 0.7
			}
		}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {	add_research_slot = 1	}
	}

	focus = {
		id = CHI_chemical_research_institute
		icon = GFX_focus_research
		prerequisite = { focus = CHI_expand_the_academica_sinica }
		x = 0
		y = 1
		relative_position_id = CHI_expand_the_academica_sinica

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			num_of_factories > 74
			amount_research_slots < 5
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {			
			add_research_slot = 1
		}
	}

	focus = {
		id = CHI_rural_reconstruction_movement
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = CHI_unified_industrial_planning }
		x = 0
		y = 1
		relative_position_id = CHI_unified_industrial_planning

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {
			has_full_control_of_state = 607
			has_full_control_of_state = 602
			has_full_control_of_state = 605
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			607 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			602 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			605 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}

		}
	}

	focus = {
		id = CHI_mining_commission
		icon = GFX_goal_generic_construction2
		prerequisite = { focus = CHI_rural_reconstruction_movement }
		x = 0
		y = 1
		relative_position_id = CHI_rural_reconstruction_movement

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {
			NOT = {
				has_idea = CHI_hyper_inflation_5
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			CHI_hyper_inflation_level_up = yes
			custom_effect_tooltip = available_industrial_concern
			show_ideas_tooltip = CHI_mining_commission			
		}
	}

	focus = {
		id = CHI_taiyuan_arsenal
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = CHI_mining_commission }
		x = -2
		y = 1
		relative_position_id = CHI_mining_commission

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			controls_state = 615
			NOT = {
				has_idea = CHI_hyper_inflation_5
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			CHI_hyper_inflation_level_up = yes
			615 = {
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = arms_factory
					level = 3
					instant_build = yes
				}			
			}
		}
	}

	focus = {
		id = CHI_develop_the_hanyan_arsenal
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = CHI_mining_commission }
		x = 0
		y = 1
		relative_position_id = CHI_mining_commission

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			NOT = {
				has_idea = CHI_hyper_inflation_5
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		complete_tooltip = {
			CHI_hyper_inflation_level_up = yes
			random_state = {
				limit = {
					has_state_flag = CHI_develop_the_hanyan_arsenal_AF
				}
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = arms_factory
					level = 3
					instant_build = yes
				}
			}
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			CHI_hyper_inflation_level_up = yes
			random_owned_controlled_state = {
				prioritize = { 620 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = arms_factory
					level = 3
					instant_build = yes
				}
				set_state_flag = CHI_develop_the_hanyan_arsenal_AF
			}
		}
	}

	focus = {
		id = CHI_financial_policy
		icon = GFX_goal_generic_positive_trade_relations
		prerequisite = { focus = CHI_industrial_modernization }
		x = 2
		y = 1
		relative_position_id = CHI_industrial_modernization
		cost = 10
		ai_will_do = {	factor = 4 }
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = CHI_t_v_soong_political_advisor
		}
	}

	focus = {
		id = CHI_price_controls
		icon = GFX_goal_generic_neutrality_focus
		prerequisite = { focus = CHI_financial_policy }
		x = 0
		y = 1
		relative_position_id = CHI_financial_policy
		cost = 10
		ai_will_do = {	factor = 4	}
		available = {	has_hyper_inflation = yes	}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_CHI_INFLATION }
		completion_reward = {
			CHI_hyper_inflation_level_down = yes
		}
	}

	focus = {
		id = CHI_grain_tax
		icon = GFX_goal_generic_trade
		prerequisite = { focus = CHI_price_controls }
		x = 1
		y = 2
		relative_position_id = CHI_price_controls
		cost = 10
		ai_will_do = {
			factor = 1
		}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {add_ideas = CHI_grain_tax	}
	}

	focus = {
		id = CHI_reform_the_national_bank
		icon = GFX_goal_generic_improve_relations
		prerequisite = { focus = CHI_price_controls }
		x = 0
		y = 1
		relative_position_id = CHI_price_controls
		cost = 10
		ai_will_do = {	factor = 1	}
		available = {	has_hyper_inflation = yes	}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_CHI_INFLATION }
		completion_reward = {
			CHI_hyper_inflation_level_down = yes
		}
	}

	focus = {
		id = CHI_forced_loans
		icon = GFX_goal_generic_forceful_treaty
		prerequisite = { focus = CHI_reform_the_national_bank }
		x = 0
		y = 2
		relative_position_id = CHI_reform_the_national_bank
		cost = 10
		ai_will_do = {	factor = 1	}
		available = {	has_hyper_inflation = yes	}
		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_CHI_INFLATION }
		completion_reward = {	unlock_decision_tooltip = CHI_forced_loans	}
	}

}
