﻿### search_filters = {FOCUS_FILTER_POLITICAL}
### search_filters = {FOCUS_FILTER_RESEARCH}
### search_filters = {FOCUS_FILTER_INDUSTRY}
### search_filters = {FOCUS_FILTER_STABILITY}
### search_filters = {FOCUS_FILTER_WAR_SUPPORT}
### search_filters = {FOCUS_FILTER_MANPOWER}
### search_filters = {FOCUS_FILTER_ANNEXATION}

focus_tree = {
	id = china_communist_warlord_focus
	
	country = {
		factor = 0
	}
	

	default = no

	continuous_focus_position = { x = 20 y = 1000 }

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

	focus = {
		id = PRC_sea_strengthen_the_central_secretariat
		icon = GFX_focus_PRC_the_central_committee
		x = 3
		y = 0

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

	focus = {
		id = PRC_sea_inward_focus
		icon = GFX_focus_prc_maoism
		prerequisite = { focus = PRC_sea_strengthen_the_central_secretariat }
		mutually_exclusive = { focus = PRC_sea_toe_the_soviet_line }
		x = 2
		y = 1
		relative_position_id = PRC_sea_strengthen_the_central_secretariat

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

		completion_reward = {
			SOV = {
				add_opinion_modifier = {
					target = ROOT
					modifier = tsr_anti_soviet_government_opm
				}
			}
			add_political_power = 50
			add_stability = 0.05
		}
	}

	focus = {
		id = PRC_sea_rally_the_industry
		icon = GFX_focus_JAP_raise_the_red_flag_high
		prerequisite = { focus = PRC_sea_inward_focus }
		x = -1
		y = 1
		relative_position_id = PRC_sea_inward_focus

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

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

	focus = {
		id = PRC_sea_reforming_our_ranks
		icon = GFX_focus_PRC_peoples_liberation_army
		prerequisite = { focus = PRC_sea_inward_focus }
		x = 1
		y = 1
		relative_position_id = PRC_sea_inward_focus

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

		completion_reward = {
			army_experience = 75
			add_ideas = prc_tsr_warlord_army
		}
	}

	focus = {
		id = PRC_sea_agrarian_socialism
		icon = GFX_focus_prc_agrarian_socialism
		prerequisite = { focus = PRC_sea_reforming_our_ranks focus = PRC_sea_rally_the_industry }
		x = -1
		y = 1
		relative_position_id = PRC_sea_reforming_our_ranks

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

		completion_reward = {
			add_stability = 0.05
			add_popularity = {
				ideology = communism
				popularity = 0.1
			}
			add_ideas = prc_tsr_agrarian_socialism
		}
	}

	focus = {
		id = PRC_sea_forging_our_own_path
		icon = GFX_goal_generic_war_with_comintern
		prerequisite = { focus = PRC_sea_agrarian_socialism }
		x = 0
		y = 1
		relative_position_id = PRC_sea_agrarian_socialism

		cost = 5

		ai_will_do = {
			factor = 4
			modifier = {
				is_faction_leader = yes
				factor = 0
			}
		}

		available = {
			is_subject = no
		}

		bypass = {
			is_in_faction = yes
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			set_rule = { can_create_factions = yes }
			if = {
				limit = {
					is_in_faction = no
				}
				create_faction_from_template = {
					template = faction_template_government_of_national_defense
					name = PRC_mao_faction
				}
			}
		}
	}

	focus = {
		id = PRC_sea_toe_the_soviet_line
		icon = GFX_focus_PRC_embrace_stalinism
		prerequisite = { focus = PRC_sea_strengthen_the_central_secretariat }
		mutually_exclusive = { focus = PRC_sea_inward_focus }
		x = -2
		y = 1
		relative_position_id = PRC_sea_strengthen_the_central_secretariat

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {
			SOV = { has_government = ROOT }
			NOT = {
				has_war_with = SOV
			}
			OR = {
				is_subject = no
				is_subject_of = SOV
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			SOV = {
				add_opinion_modifier = {
					target = ROOT
					modifier = tsr_pro_soviet_government_opm
				}
			}
			add_political_power = 50
			add_stability = -0.05
		}
	}

	focus = {
		id = PRC_sea_aid_from_soviet_bolsheviks
		icon = GFX_focus_generic_communist_industry
		prerequisite = { focus = PRC_sea_toe_the_soviet_line }
		x = -1
		y = 1
		relative_position_id = PRC_sea_toe_the_soviet_line

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

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

	focus = {
		id = PRC_sea_soviet_advisors
		icon = GFX_focus_PRC_invite_soviet_general
		prerequisite = { focus = PRC_sea_toe_the_soviet_line }
		x = 1
		y = 1
		relative_position_id = PRC_sea_toe_the_soviet_line

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

		completion_reward = {
			IF = {
				limit 	= {
					PRC = {
						NOT = { 
							has_completed_focus = PRC_reclaim_the_grasp_of_power
						}
						has_country_flag = PRC_pavel_mif_alive
					}
				}
				PRC = {
					PRC_pavel_mif = {
						set_nationality = ROOT
					}
				}
				custom_effect_tooltip = available_political_advisor
				PRC = { show_ideas_tooltip = PRC_pavel_mif }
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			IF = {
				limit 	= {
					PRC = {
						NOT = { 
							has_completed_focus = PRC_reclaim_the_grasp_of_power
						}
					}
				}
				PRC = {
					PRC_otto_braun = {
						set_nationality = ROOT
					}
				}
				custom_effect_tooltip = available_chief_of_army
				PRC = { show_ideas_tooltip = PRC_otto_braun }
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			army_experience = 50
			add_political_power = 75
		}
	}

	focus = {
		id = PRC_sea_industrialisation_of_nature
		icon = GFX_focus_generic_low_cost_housing
		prerequisite = { focus = PRC_sea_soviet_advisors focus = PRC_sea_aid_from_soviet_bolsheviks }
		x = -1
		y = 1
		relative_position_id = PRC_sea_soviet_advisors

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

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

	focus = {
		id = PRC_sea_comintern_integration
		icon = GFX_focus_generic_join_comintern
		prerequisite = { focus = PRC_sea_industrialisation_of_nature }
		x = 0
		y = 1
		relative_position_id = PRC_sea_industrialisation_of_nature

		cost = 5

		ai_will_do = {
			factor = 4
		}

		available = {
			SOV = { has_government = ROOT }
			NOT = {
				has_war_with = SOV
			}
			OR = {
				is_subject = no
				is_subject_of = SOV
			}
			is_in_faction = no	
		}

		bypass = {
			is_in_faction_with = SOV
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			SOV = { country_event = generic.2 }
		}
	}

	focus = {
		id = PRC_sea_proclaim_the_peoples_republic
		icon = GFX_focus_prc_proclaim_the_peoples_republic 
		prerequisite = { focus = PRC_sea_comintern_integration focus = PRC_sea_forging_our_own_path }
		x = 2
		y = 1
		relative_position_id = PRC_sea_comintern_integration

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {
			strength_ratio = {
				tag = event_target:WTT_current_china_leader
				ratio > 0.5
			}
			num_of_factories > 49
			NOT = { has_idea = PRC_the_long_march_1 }
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {

			add_political_power = 150

			custom_effect_tooltip = generic_skip_one_line_tt

			set_cosmetic_tag = PRC_proclaimed
			hidden_effect = {
				news_event = { id = wtt_news.37 days = 3 random_days = 3 }
			}
		}

	}

	focus = {
		id = PRC_sea_new_economic_direction
		icon = GFX_focus_generic_currency_reforms
		prerequisite = { focus = PRC_sea_proclaim_the_peoples_republic }
		x = -1
		y = 1
		relative_position_id = PRC_sea_proclaim_the_peoples_republic

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {
			has_war = no
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			add_ideas = PRC_finalize_industrial_plan_idea
		}
	}

	focus = {
		id = PRC_sea_move_capital
		icon = GFX_focus_CHI_registry_of_property
		prerequisite = { focus = PRC_sea_proclaim_the_peoples_republic }
		x = 1
		y = 1
		relative_position_id = PRC_sea_proclaim_the_peoples_republic

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			608 = {
				is_owned_and_controlled_by = ROOT
			}
		}
		
		bypass = {
			
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			set_capital = {
				state = 608 
				remember_old_capital = no
			}
			608 = {
				add_extra_state_shared_building_slots = 5
				add_building_construction = {
					type = industrial_complex
					level = 3
					instant_build = yes
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			set_province_name = { id = 9843 name = PRC_beijing_capital_name }
			608 = {
				set_state_name = PRC_beijing_capital_name
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_stability = 0.1
			
		}
	}

	focus = {
		id = PRC_sea_land_redistribution
		icon = GFX_goal_generic_construction
		x = 10
		y = 0
		relative_position_id = PRC_sea_strengthen_the_central_secretariat

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {

		}

		bypass = {
			NOT = { PRC_has_low_popular_support = yes }
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			PRC_low_popular_support_level_down = yes
		}
	}

	focus = {
		id = PRC_sea_the_yanan_base_area
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = PRC_sea_land_redistribution }
		x = 6
		y = 1
		relative_position_id = PRC_sea_land_redistribution

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {
			capital_scope = { is_fully_controlled_by = ROOT }
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		complete_tooltip = {
			capital_scope = {
				IF = {
					limit = {
					capital_scope = { infrastructure < 4 }
						}
						add_building_construction = {
							type = infrastructure
							level = 2
							instant_build = yes
						}
				}
				ELSE_IF = {
					limit = {
					capital_scope = { infrastructure < 5 }
						}
						add_building_construction = {
							type = infrastructure
							level = 1
							instant_build = yes
						}
				}
				add_extra_state_shared_building_slots = 1
			}
		}

		completion_reward = {
			capital_scope = {
				IF = {
					limit = {
					capital_scope = { infrastructure < 4 }
						}
						add_building_construction = {
							type = infrastructure
							level = 2
							instant_build = yes
						}
				}
				ELSE_IF = {
					limit = {
					capital_scope = { infrastructure < 5 }
						}
						add_building_construction = {
							type = infrastructure
							level = 1
							instant_build = yes
						}
				}
				add_extra_state_shared_building_slots = 1
			}
		}
	}

	focus = {
		id = PRC_sea_prepare_for_war_with_japan
		icon = GFX_goal_generic_major_war
		prerequisite = { focus = PRC_sea_the_yanan_base_area }
		x = -1
		y = 1
		relative_position_id = PRC_sea_the_yanan_base_area

		cost = 10

		ai_will_do = {
			factor = 4
			modifier = {
				JAP = {
					has_government = communism
				}
				factor = 0
			}
		}

		available = {
			not = {
				is_subject_of = JAP
			}
		}

		bypass = {
			has_war_with = JAP
		}

		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 = PRC_sea_government_of_national_defense
		icon = GFX_focus_chi_united_front
		prerequisite = { focus = PRC_sea_prepare_for_war_with_japan }
		x = 0
		y = 1
		relative_position_id = PRC_sea_prepare_for_war_with_japan

		cost = 10

		ai_will_do = {
			factor = 1
		}

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

		bypass = {
			is_in_faction = yes
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			if = {
				limit = {
					event_target:WTT_current_china_leader = {
						is_puppet = no
						exists = yes
					}
				}
				event_target:WTT_current_china_leader = { country_event = wtt_prc.1 }
			}
			else = {
				set_rule = { can_create_factions = yes }
				create_faction_from_template = faction_template_government_of_national_defense
			}
		}
	}

	focus = {
		id = PRC_sea_confrontation_with_the_warlords
		icon = GFX_goal_generic_more_territorial_claims
		prerequisite = { focus = PRC_sea_government_of_national_defense }
		x = 0
		y = 2
		relative_position_id = PRC_sea_prepare_for_war_with_japan

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			is_subject = no
		}

		bypass = {
			OR = {
				AND = {
					is_in_faction = yes
					not = { is_in_faction_with = CHI } #in any other faction that doesn't include CHI
				}
				AND = {
					YUN = {
						OR = {
							exists = no
							is_in_faction_with = ROOT
						}
					}
					GXC = {
						OR = {
							exists = no
							is_in_faction_with = ROOT
						}
					}
					SHX = {
						OR = {
							exists = no
							is_in_faction_with = ROOT
						}
					}
					XSM = {
						OR = {
							exists = no
							is_in_faction_with = ROOT
						}
					}
					SIK = {
						OR = {
							exists = no
							is_in_faction_with = ROOT
						}
					}
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			hidden_effect = {
				if = {
					limit = {
						is_in_faction = no
					}
					set_rule = { can_create_factions = yes }
					create_faction = chinese_united_front
				}
			}
			every_country = {
				limit = {
					is_literally_china = yes
					is_in_faction = no
					NOT = {
						tag = ROOT
					}
				}
				country_event = wtt_prc.10
			}
		}
	}

	focus = {
		id = PRC_sea_anti_japanese_expedition
		icon = GFX_focus_AST_war_japan
		prerequisite = { focus = PRC_sea_prepare_for_war_with_japan}
		x = -3
		y = 1
		relative_position_id = PRC_sea_prepare_for_war_with_japan

		cost = 10

		ai_will_do = {
			factor = 4
			modifier = {
				JAP = {
					has_government = communism
				}
				factor = 0
			}
		}

		available = {
			OR = {
				MAN = {
					OR = {
						is_subject_of = JAP
						has_cosmetic_tag = MAN_kwantung_army
					}
				}
				AND = {
					MAN = {
						exists = no
					}
					JAP = {
						owns_state = 612
						owns_state = 611
						owns_state = 610
					}
				}
			}
			NOT = {
				is_subject_of = JAP
			}
		}

		bypass = {
			has_war_with = JAP
			OR = {
				has_war_with = JAP
				AND = {
					MAN = {
						is_subject = no
					}
					JAP = {
						NOT = {
							owns_state = 525
							owns_state = 527
						}
					}
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			unlock_decision_category_tooltip = PRC_anti_japanese_expedition
			set_country_flag = {
				flag = JAP_delay_sweep_for_communists
				days = 100
				value = 1
			}
		}
	}

	focus = {
		id = PRC_sea_revolutionary_military_commission
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = PRC_sea_confrontation_with_the_warlords focus = PRC_sea_infiltration }
		x = 0
		y = 1
		relative_position_id = PRC_sea_confrontation_with_the_warlords

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_ideas = PRC_revolutionary_military_commission
		}
	}

	focus = {
		id = PRC_sea_provoke_japan
		icon = GFX_goal_generic_position_armies
		prerequisite = { focus = PRC_sea_revolutionary_military_commission }
		prerequisite = { focus = PRC_sea_anti_japanese_expedition }
		x = -3
		y = 1
		relative_position_id = PRC_sea_revolutionary_military_commission

		cost = 10

		ai_will_do = {
			factor = 4
			modifier = {
				JAP = {
					has_government = communism
				}
				factor = 0
			}
		}

		available = {
			NOT = {
				is_subject_of = JAP #was fun while it lasted
			}
		}

		bypass = {
			OR = {
				has_war_with = JAP
				AND = {
					MAN = {
						is_subject = no
					}
					JAP = {
						NOT = {
							owns_state = 525
							owns_state = 527
						}
					}
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			unlock_decision_tooltip = { decision = PRC_provoke_japan show_effect_tooltip = yes }
		}
	}

	focus = {
		id = PRC_sea_protracted_warfare
		icon = GFX_goal_generic_army_doctrines
		prerequisite = { focus = PRC_sea_provoke_japan }
		mutually_exclusive = { focus = PRC_sea_mobile_warfare }
		x = -1
		y = 1
		relative_position_id = PRC_sea_provoke_japan

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_ideas = PRC_protracted_warfare
		}
	}

	focus = {
		id = PRC_sea_mobile_warfare
		icon = GFX_goal_generic_cavalry
		prerequisite = { focus = PRC_sea_provoke_japan }
		mutually_exclusive = { focus = PRC_sea_protracted_warfare }
		x = 1
		y = 1
		relative_position_id = PRC_sea_provoke_japan

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_ideas = PRC_mobile_warfare
		}
	}

	focus = {
		id = PRC_sea_peoples_war
		icon = GFX_focus_generic_support_the_left_right
		prerequisite = { focus = PRC_sea_protracted_warfare }
		x = -1
		y = 2
		relative_position_id = PRC_sea_provoke_japan

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_ideas = PRC_peoples_war
		}
	}

	focus = {
		id = PRC_sea_100_regiments_campaign
		icon = GFX_goal_generic_territory_or_war
		prerequisite = { focus = PRC_sea_mobile_warfare }
		x = 1
		y = 2
		relative_position_id = PRC_sea_provoke_japan

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			unlock_decision_tooltip = PRC_launch_100_regiments_campaign
		}
	}

	focus = {
		id = PRC_sea_central_military_commission
		icon = GFX_goal_generic_defence
		prerequisite = { focus = PRC_sea_revolutionary_military_commission }
		x = 0
		y = 1
		relative_position_id = PRC_sea_revolutionary_military_commission

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			swap_ideas = {
				remove_idea = PRC_revolutionary_military_commission
				add_idea = PRC_central_military_commission
			}
		}
	}

	focus = {
		id = PRC_sea_peoples_liberation_army
		icon = GFX_goal_generic_attack_allies
		prerequisite = { focus = PRC_sea_central_military_commission }
		x = 0
		y = 1
		relative_position_id = PRC_sea_central_military_commission

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			IF = {	
				limit = {
					has_idea = PRC_red_army_weakened
				}
				remove_ideas = PRC_red_army_weakened
			}
			ELSE = {
				add_ideas = PRC_tsr_warlord_peoples_liberation_army
			}	
		}
	}

	focus = {
		id = PRC_sea_peoples_volunteer_army
		icon = GFX_goal_generic_special_forces
		prerequisite = { focus = PRC_sea_central_military_commission }
		x = 2
		y = 1
		relative_position_id = PRC_sea_central_military_commission

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_ideas = PRC_peoples_volunteer_army
		}
	}

	focus = {
		id = PRC_sea_military_intelligence_department
		icon = GFX_goal_generic_intelligence_exchange
		prerequisite = { focus = PRC_sea_revolutionary_military_commission }
		x = 4
		y = 1
		relative_position_id = PRC_sea_revolutionary_military_commission

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			if = {
				limit = {
					NOT = {
						has_character = PRC_kang_sheng
						PRC = {
							exists = yes
						}
					}
				}
				PRC = {
					PRC_kang_sheng = {
						set_nationality = ROOT
					}
				}
				custom_effect_tooltip = available_political_advisor
				show_ideas_tooltip = PRC_kang_sheng
			}
			add_political_power = 50
			add_stability = 0.05
			random_owned_controlled_state = {
				limit = {
					impassable = no
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = PRC_sea_central_security_bureau
		icon = GFX_goal_generic_political_pressure
		prerequisite = { focus = PRC_sea_military_intelligence_department }
		x = 0
		y = 1
		relative_position_id = PRC_sea_military_intelligence_department

		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 = PRC_sea_focus_on_china
		icon = GFX_goal_generic_major_war
		prerequisite = { focus = PRC_sea_the_yanan_base_area }
		x = 1
		y = 1
		relative_position_id = PRC_sea_the_yanan_base_area

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {
			not = {
				is_subject_of = event_target:WTT_current_china_leader
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_ideas = PRC_focus_on_china
		}
	}

	focus = {
		id = PRC_sea_exploit_the_weak_neighbours
		icon = GFX_goal_generic_territory_or_war
		prerequisite = { focus = PRC_sea_focus_on_china }
		x = 1
		y = 1
		relative_position_id = PRC_sea_focus_on_china

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			any_neighbor_country = {
				is_chinese_warlord = yes	
				can_ROOT_get_wargoal_on_THIS = yes
				strength_ratio = {
					tag = ROOT
					ratio < 1
				}
			}
		}

		bypass = {
			any_neighbor_country = {
				is_chinese_warlord = yes	
				can_ROOT_get_wargoal_on_THIS = yes
				has_war_with = PREV
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			every_neighbor_country = {
				limit = {
					is_chinese_warlord = yes	
					can_ROOT_get_wargoal_on_THIS = yes
					strength_ratio = {
						tag = ROOT
						ratio < 1
					}
				}
				ROOT = {
					create_wargoal = {
						type = annex_everything
						target = PREV
					}
				}
			}	
		}
	}

	focus = {
		id = PRC_sea_infiltration
		icon = GFX_focus_prc_infiltration
		prerequisite = { focus = PRC_sea_focus_on_china }
		x = 0
		y = 2
		relative_position_id = PRC_sea_focus_on_china

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {
			event_target:WTT_current_china_leader = {
				exists = yes
				NOT = {
					has_subject = ROOT
				}
			}
		}

		bypass = {
			event_target:WTT_current_china_leader = { tag = ROOT }
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			unlock_decision_category_tooltip = PRC_infiltrate_nationalist_areas
			set_country_flag = {
				flag = CHI_delay_sweep_for_communists
				days = 90
				value = 1
			}
		}
	}

	focus = {
		id = PRC_sea_enforce_the_three_rules
		icon = GFX_goal_generic_national_unity
		prerequisite = { focus = PRC_sea_land_redistribution }
		x = 0
		y = 1
		relative_position_id = PRC_sea_land_redistribution

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {

		}

		bypass = {
			NOT = { PRC_has_low_popular_support = yes }
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			PRC_low_popular_support_level_down = yes
		}
	}

	focus = {
		id = PRC_sea_permit_opium_trade
		icon = GFX_goal_generic_forceful_treaty
		prerequisite = { focus = PRC_sea_enforce_the_three_rules}
		mutually_exclusive = { focus = PRC_sea_ban_the_opium_trade }
		x = -1
		y = 1
		relative_position_id = PRC_sea_enforce_the_three_rules

		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_INDUSTRY }
		completion_reward = {
			add_ideas = PRC_permit_opium_trade
			add_ideas = PRC_government_corruption
		}
	}

	focus = {
		id = PRC_sea_ban_the_opium_trade
		icon = GFX_goal_generic_political_pressure
		mutually_exclusive = { focus = PRC_sea_permit_opium_trade }
		prerequisite = { focus = PRC_sea_enforce_the_three_rules }
		x = 1
		y = 1
		relative_position_id = PRC_sea_enforce_the_three_rules

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

	focus = {
		id = PRC_sea_abolish_the_land_rent
		icon = GFX_focus_generic_support_the_left_right
		prerequisite = { focus = PRC_sea_permit_opium_trade focus = PRC_sea_ban_the_opium_trade }
		x = 0
		y = 2
		relative_position_id = PRC_sea_enforce_the_three_rules

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {
			if = {
				limit = {
					has_idea = PRC_low_popular_support_1
				}
				has_idea = PRC_low_popular_support_1
			}
			if = {
				limit = {
					has_idea = PRC_low_popular_support_2
				}
				has_idea = PRC_low_popular_support_2
			}
			if = {
				limit = {
					has_idea = PRC_low_popular_support_3
				}
				has_idea = PRC_low_popular_support_3
			}
			if = {
				limit = {
					has_idea = PRC_low_popular_support_4
				}
				has_idea = PRC_low_popular_support_4
			}
			if = {
				limit = {
					has_idea = PRC_low_popular_support_5
				}
				has_idea = PRC_low_popular_support_5
			}
		}

		bypass = {
			NOT = { PRC_has_low_popular_support = yes }
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			if = { limit = { has_idea = PRC_low_popular_support_1 } remove_ideas = PRC_low_popular_support_1 }
			else_if = { limit = { has_idea = PRC_low_popular_support_2 } remove_ideas = PRC_low_popular_support_2 }
			else_if = { limit = { has_idea = PRC_low_popular_support_3 } remove_ideas = PRC_low_popular_support_3 }
			else_if = { limit = { has_idea = PRC_low_popular_support_4 } remove_ideas = PRC_low_popular_support_4 }
			else_if = { limit = { has_idea = PRC_low_popular_support_5 } remove_ideas = PRC_low_popular_support_5 }
			else = { 
				add_political_power = 150
				add_stability = 0.1
			}
		}
	}

	focus = {
		id = PRC_sea_literacy_programs
		icon = GFX_focus_generic_socialist_science
		prerequisite = { focus = PRC_sea_land_redistribution }
		x = -4
		y = 1
		relative_position_id = PRC_sea_land_redistribution

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes

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

	focus = {
		id = PRC_sea_china_medical_university
		icon = GFX_focus_research
		prerequisite = { focus = PRC_sea_literacy_programs }
		x = 0
		y = 1
		relative_position_id = PRC_sea_literacy_programs

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			num_of_factories > 34
			amount_research_slots < 5
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes

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

	focus = {
		id = PRC_sea_form_the_academy_of_sciences
		icon = GFX_goal_generic_scientific_exchange
		prerequisite = { focus = PRC_sea_china_medical_university }
		x = 0
		y = 2
		relative_position_id = PRC_sea_literacy_programs

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			num_of_factories > 69
			amount_research_slots < 5
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_research_slot = 1

		}
	}
}
