search_filter_prios = {
	FOCUS_FILTER_POLITICAL = 1010
	
	FOCUS_FILTER_RESEARCH = 522
	
	FOCUS_FILTER_INDUSTRY = 509

	FOCUS_FILTER_BALANCE_OF_POWER = 200
	FOCUS_FILTER_SOV_POLITICAL_PARANOIA = 111
	FOCUS_FILTER_PROPAGANDA = 110
	FOCUS_FILTER_MISSIOLINI = 110
	FOCUS_FILTER_ARMY_XP = 103
	FOCUS_FILTER_NAVY_XP = 102
	FOCUS_FILTER_AIR_XP = 101

}

focus_tree = {
	id = generic_focus
	continuous_focus_position = { x = 1620 y = 1}
	country = {
		factor = 1
	}
	
	default = yes
	reset_on_civilwar = no

	initial_show_position = {
		focus = industrial_effort
	}

	focus = {
		id = army_effort
		icon = GFX_goal_generic_allies_build_infantry
		x = 1
		y = 0
		cost = 10
		search_filters = {  FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes

		completion_reward = {
			army_experience = 5
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
	}

	focus = {
		id = equipment_effort
		icon = GFX_goal_generic_small_arms
		prerequisite = { focus = army_effort }
		x = -1
		y = 1
		relative_position_id = army_effort
		cost = 10

		search_filters = {  FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes

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

	focus = {
		id = motorization_effort
		icon = GFX_goal_generic_army_motorized
		prerequisite = { focus = army_effort }
		bypass = { has_tech = motorised_infantry }
		x = 1
		y = 1
		relative_position_id = army_effort
		cost = 10

		search_filters = {  FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = motorized_bonus
				bonus = 3.0
				technology = motorised_infantry
			}
		}
	}

	focus = {
		id = doctrine_effort
		icon = GFX_goal_generic_army_doctrines
		prerequisite = { focus = army_effort }
		x = 0
		y = 2
		relative_position_id = army_effort
		cost = 10

		search_filters = {  FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes

		completion_reward = {
			army_experience = 5
			if = {
				limit = {
					has_idea = CHI_army_corruption_1
					has_idea = CHI_incompetent_officers
				}
				remove_ideas = {CHI_army_corruption_1 CHI_incompetent_officers}
			}
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
	}

	focus = {
		id = equipment_effort_2
		icon = GFX_goal_generic_army_artillery
		prerequisite = { focus = equipment_effort }
		x = 0
		y = 2
		relative_position_id = equipment_effort
		cost = 10

		search_filters = {  FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes

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

	focus = {
		id = mechanization_effort
		icon = GFX_goal_generic_build_tank
		prerequisite = { focus = motorization_effort }
		x = 0
		y = 2
		relative_position_id = motorization_effort
		cost = 10
		
		search_filters = {  FOCUS_FILTER_RESEARCH }

		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = motorized_bonus
				ahead_reduction = 2
				uses = 1
				category = motorized_equipment
			}
		}
	}

	focus = {
		id = doctrine_effort_2
		icon = GFX_goal_generic_army_doctrines
		prerequisite = { focus = doctrine_effort }
		x = 0
		y = 2
		relative_position_id = doctrine_effort
		cost = 10

		search_filters = {  FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes

		completion_reward = {
			if = {
				limit = {
					has_idea = PRC_low_popular_support_3
				}
				remove_ideas = PRC_low_popular_support_3
			}
			if = {
				limit = {
					has_idea = PRC_red_army_weakened
				}
				remove_ideas = PRC_red_army_weakened
			}
			army_experience = 5
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
	}

	focus = {
		id = equipment_effort_3
		icon = GFX_goal_generic_army_artillery2
		prerequisite = { focus = equipment_effort_2 }
		x = 0
		y = 2
		relative_position_id = equipment_effort_2
		cost = 10

		search_filters = {  FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = infantry_artillery_bonus
				ahead_reduction = 2
				uses = 1
				category = infantry_weapons
				category = artillery
			}
		}
	}

	focus = {
		id = armor_effort
		icon = GFX_goal_generic_army_tanks
		prerequisite = { focus = mechanization_effort }
		x = 0
		y = 2
		relative_position_id = mechanization_effort
		cost = 10

		search_filters = {  FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = armor_bonus
				bonus = 1.0
				uses = 2
				category = armor
			}
		}
	}

	focus = {
		id = special_forces
		icon = GFX_goal_generic_special_forces
		prerequisite = { focus = equipment_effort_3 }
		prerequisite = { focus = doctrine_effort_2 }
		prerequisite = { focus = armor_effort }
		x = 1
		y = 1
		relative_position_id = equipment_effort_3
		cost = 10

		search_filters = { FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes

		completion_reward = {
			add_ideas = special_forces
			add_tech_bonus = {
				name = special_forces_bonus
				bonus = 1.0
				uses = 1
				technology = paratroopers
				technology = paratroopers2
				technology = marines
				technology = marines2
				technology = tech_mountaineers
				technology = tech_mountaineers2
			}
		}
	}

	focus = {
		id = aviation_effort
		icon = GFX_goal_generic_build_airforce
		x = 5
		y = 0
		cost = 10
		
		search_filters = {   FOCUS_FILTER_RESEARCH }

		available_if_capitulated = yes


		complete_tooltip = {
			air_experience = 25
			if = { limit = { has_country_flag = aviation_effort_AB }
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}			
			add_doctrine_cost_reduction = {
				name = air_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}			
		}

		completion_reward = {
			air_experience = 25

			if = {
				limit = {
					capital_scope = {
						NOT = {
							free_building_slots = {
								building = air_base
								size > 1
							}
						}
					}
				}
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = air_base
							size > 1
						}
					}
					add_building_construction = {
						type = air_base
						level = 2
						instant_build = yes
					}
					ROOT = { set_country_flag = aviation_effort_AB }
				}
			}
			if = {
				limit = {
					capital_scope = {
						free_building_slots = {
							building = air_base
							size > 1
						}
					}
				}
				capital_scope = {
					add_building_construction = {
						type = air_base
						level = 2
						instant_build = yes
					}
					ROOT = { set_country_flag = aviation_effort_AB }
				}
			}
			add_doctrine_cost_reduction = {
				name = air_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
		}
	}

	focus = {
		id = fighter_focus
		icon = GFX_goal_generic_air_fighter
		prerequisite = { focus = aviation_effort }
		mutually_exclusive = { focus = bomber_focus }
		x = -1
		y = 1
		relative_position_id = aviation_effort
		cost = 10

		search_filters = {  FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = fighter_bonus
				bonus = 1.0
				uses = 2
				category = light_fighter
				category = cat_heavy_fighter
			}
		}
	}

	focus = {
		id = bomber_focus
		icon = GFX_goal_generic_air_bomber
		prerequisite = { focus = aviation_effort }
		mutually_exclusive = { focus = fighter_focus }
		x = 1
		y = 1
		relative_position_id = aviation_effort
		cost = 10

		search_filters = {  FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = bomber_bonus
				bonus = 1.0
				uses = 2
				category = cat_strategic_bomber
				category = tactical_bomber
			}
		}
	}

	focus = {
		id = aviation_effort_2
		icon = GFX_goal_generic_air_doctrine
		prerequisite = { focus = bomber_focus focus = fighter_focus }
		x = -1
		y = 1
		relative_position_id = bomber_focus
		cost = 10

		search_filters = {   FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes


		complete_tooltip = {
			air_experience = 25
			if = { limit = { has_country_flag = aviation_effort_2_AB }
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}
			add_doctrine_cost_reduction = {
				name =  air_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
		}
		completion_reward = {
			air_experience = 25
			if = {
				limit = {
					capital_scope = {
						OR = {
							NOT = { is_controlled_by = ROOT }
							NOT = {
								free_building_slots = {
									building = air_base
									size > 1
								}
							}
						}
					}
				}
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = air_base
							size > 1
						}
					}
					add_building_construction = {
						type = air_base
						level = 2
						instant_build = yes
					}
					ROOT = { set_country_flag = aviation_effort_2_AB }
				}
			}
			if = {
				limit = {
					capital_scope = {
						is_controlled_by = ROOT
						free_building_slots = {
							building = air_base
							size > 1
						}
					}
				}
				capital_scope = {
					add_building_construction = {
						type = air_base
						level = 2
						instant_build = yes
					}				
					ROOT = { set_country_flag = aviation_effort_2_AB }
				}
			}
			add_doctrine_cost_reduction = {
				name =  air_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
		}
	}

	focus = {
		id = CAS_effort
		icon = GFX_goal_generic_CAS
		prerequisite = { focus = aviation_effort_2 }
		prerequisite = { focus = motorization_effort }
		x = -1
		y = 1
		relative_position_id = aviation_effort_2
		cost = 10

		search_filters = {  FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = CAS_bonus
				bonus = 1.0
				ahead_reduction = 2
				uses = 1
				category = cas_bomber
			}
		}
	}

	focus = {
		id = rocket_effort
		icon = GFX_focus_rocketry
		prerequisite = { focus = aviation_effort_2 }
		prerequisite = { focus = infrastructure_effort }
		x = 0
		y = 2
		relative_position_id = aviation_effort_2
		cost = 10

		search_filters = {  FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = jet_rocket_bonus
				ahead_reduction = 2
				uses = 2
				category = rocketry
				category = jet_technology
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}

	focus = {
		id = NAV_effort
		icon = GFX_goal_generic_air_naval_bomber
		prerequisite = { focus = aviation_effort_2 }
		prerequisite = { focus = flexible_navy }
		x = 1
		y = 1
		relative_position_id = aviation_effort_2
		cost = 10

		search_filters = {  FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = nav_bomber_bonus
				bonus = 1.0
				ahead_reduction = 2
				uses = 1
				category = naval_bomber
			}
		}
	}

	focus = {
		id = naval_effort
		icon = GFX_goal_generic_construct_naval_dockyard
		x = 9
		y = 0
		cost = 10

		search_filters = {  FOCUS_FILTER_INDUSTRY }
		
		available_if_capitulated = yes


		available = {
			any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
		}

		complete_tooltip = {
			navy_experience = 25
			add_extra_state_shared_building_slots = 3
			add_building_construction = {
				type = dockyard
				level = 3
				instant_build = yes
			}
		}
		
		completion_reward = {
			navy_experience = 25
			if = {
				limit = {
					NOT = {
						any_owned_state = {
							dockyard > 0
							free_building_slots = {
								building = dockyard
								size > 2
								include_locked = yes
							}
						}
					}
					any_owned_state = {
						is_coastal = yes
					}
				}
				random_owned_controlled_state = {
					limit = {
						is_coastal = yes
						free_building_slots = {
							building = dockyard
							size > 2
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 3
					add_building_construction = {
						type = dockyard
						level = 3
						instant_build = yes
					}
				}
				set_country_flag = naval_effort_built
			}
			if = {
				limit = {
					NOT = { has_country_flag = naval_effort_built }
					any_owned_state = {
						dockyard > 0
						free_building_slots = {
							building = dockyard
							size > 2
							include_locked = yes
						}
					}
				}
				random_owned_controlled_state = {
					limit = {
						dockyard > 0
						free_building_slots = {
							building = dockyard
							size > 2
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 3
					add_building_construction = {
						type = dockyard
						level = 3
						instant_build = yes
					}
				}
				set_country_flag = naval_effort_built
			}
			if = {
				limit = {
					NOT = { has_country_flag = naval_effort_built }
					NOT = {
						any_owned_state = {
							free_building_slots = {
								building = dockyard
								size > 2
								include_locked = yes
							}
						}
					}
				}
				random_state = {
					limit = {
						controller = { tag = ROOT }
						free_building_slots = {
							building = dockyard
							size > 2
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 3
					add_building_construction = {
						type = dockyard
						level = 3
						instant_build = yes
					}
				}
			}			
		}
	}

	focus = {
		id = flexible_navy
		icon = GFX_goal_generic_build_navy
		prerequisite = { focus = naval_effort }
		mutually_exclusive = { focus = large_navy }
		x = -1
		y = 1
		relative_position_id = naval_effort
		cost = 10
		
		search_filters = {  FOCUS_FILTER_RESEARCH }

		available_if_capitulated = yes


		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				all_owned_state = {
					OR = {
						is_coastal = no
						dockyard < 1
					}
				}
			}
		}

		completion_reward = {
			add_doctrine_cost_reduction = {
				name = sub_op_bonus
				cost_reduction = 0.5
				uses = 2
				technology = convoy_interdiction_ti
				technology = unrestricted_submarine_warfare
				technology = wolfpacks
				technology = advanced_submarine_warfare
				technology = combined_operations_raiding
			}
		}
	}

	focus = {
		id = large_navy
		icon = GFX_goal_generic_navy_doctrines_tactics
		prerequisite = { focus = naval_effort }
		mutually_exclusive = { focus = flexible_navy }
		x = 1
		y = 1
		relative_position_id = naval_effort
		cost = 10
		
		search_filters = {   FOCUS_FILTER_RESEARCH }

		available_if_capitulated = yes


		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				all_owned_state = {
					OR = {
						is_coastal = no
						dockyard < 1
					}
				}
			}
		}

		completion_reward = {
			add_doctrine_cost_reduction = {
				name = fleet_in_being_bonus
				cost_reduction = 0.25
				uses = 2
				category = fleet_in_being_tree
			}
		}
	}

	focus = {
		id = submarine_effort
		icon = GFX_goal_generic_navy_submarine
		prerequisite = { focus = flexible_navy focus = large_navy }
		x = 0
		y = 1
		relative_position_id = flexible_navy
		cost = 10
		
		search_filters = {  FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes


		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				all_owned_state = {
					OR = {
						is_coastal = no
						dockyard < 1
					}
				}
			}
		}

		completion_reward = {
			add_tech_bonus = {
				name = ss_bonus
				bonus = 1.0
				ahead_reduction = 2
				uses = 1
				category = ss_tech
			}
		}
	}

	focus = {
		id = cruiser_effort
		icon = GFX_goal_generic_navy_cruiser
		prerequisite = { focus = large_navy focus = flexible_navy }
		x = 0
		y = 1
		relative_position_id = large_navy
		cost = 10
		
		search_filters = {  FOCUS_FILTER_RESEARCH }

		available_if_capitulated = yes


		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				all_owned_state = {
					OR = {
						is_coastal = no
						dockyard < 1
					}
				}
			}
		}

		completion_reward = {
			add_tech_bonus = {
				name = cr_bonus
				bonus = 1.0
				ahead_reduction = 2
				uses = 1
				category = cl_tech
				category = ca_tech
			}
		}
	}

	focus = {
		id = destroyer_effort
		icon = GFX_goal_generic_wolf_pack
		prerequisite = { focus = submarine_effort }
		x = 0
		y = 1
		relative_position_id = submarine_effort
		cost = 10

		search_filters = {  FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes


		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				all_owned_state = {
					OR = {
						is_coastal = no
						dockyard < 1
					}
				}
			}
		}

		completion_reward = {
			add_tech_bonus = {
				name = dd_bonus
				bonus = 1.0
				ahead_reduction = 2
				uses = 1
				category = dd_tech
			}
		}
	}

	focus = {
		id = capital_ships_effort
		icon = GFX_goal_generic_navy_battleship
		prerequisite = { focus = cruiser_effort }
		x = 0
		y = 1
		relative_position_id = cruiser_effort
		cost = 10

		search_filters = {  FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				all_owned_state = {
					OR = {
						is_coastal = no
						dockyard < 1
					}
				}
			}
		}

		completion_reward = {
			navy_experience = 25
			add_tech_bonus = {
				name = capital_ships_bonus
				bonus = 1.0
				ahead_reduction = 2
				uses = 1
				category = bc_tech
				category = bb_tech
				category = cv_tech
			}
		}
	}

	focus = {
		id = industrial_effort
		icon = GFX_goal_generic_production
		x = 13
		y = 0
		cost = 10

		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }
		
		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = industrial_bonus
				bonus = 1.0
				uses = 1
				category = industry
			}
		}

		ai_will_do = {
			factor = 3
			modifier = {
				factor = 0
				date < 1939.1.1
				OR = { 
					# we dont want chinese minors to go crazy on slots early since they get eaten
					tag = GXC 
					tag = YUN
					tag = SHX
					tag = XSM
					tag = BEL
					tag = LUX
					tag = HOL
					tag = DEN

					# we also dont want tiny nations to go crazy with slots right away
					num_of_controlled_states < 2
				}				
			}
		}
	}

	focus = {
		id = construction_effort
		icon = GFX_goal_generic_construct_civ_factory
		prerequisite = { focus = industrial_effort }
		x = -1
		y = 1
		relative_position_id = industrial_effort
		cost = 10

		search_filters = { FOCUS_FILTER_INDUSTRY  }
		
		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 = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}			
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = production_effort
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = industrial_effort }
		x = 1
		y = 1
		relative_position_id = industrial_effort
		cost = 10

		search_filters = { FOCUS_FILTER_INDUSTRY  }
		
		available_if_capitulated = yes


		ai_will_do = {
			factor = 2			
		}

		bypass = {
			custom_trigger_tooltip = {
				tooltip = production_effort_tt
				all_owned_state = {
					free_building_slots = {
						building = arms_factory
						size < 1
						include_locked = yes
					}
				}
			}
		}

		complete_tooltip = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = construction_effort_2
		icon = GFX_goal_generic_construct_civ_factory
		prerequisite = { focus = construction_effort }
		x = 0
		y = 1
		relative_position_id = construction_effort
		cost = 10

		search_filters = { FOCUS_FILTER_INDUSTRY  }
		
		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 = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}		

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = production_effort_2
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = production_effort }
		x = 0
		y = 1
		relative_position_id = production_effort
		cost = 10
		
		search_filters = { FOCUS_FILTER_INDUSTRY  }

		available_if_capitulated = yes


		ai_will_do = {
			factor = 2
		}

		bypass = {
			custom_trigger_tooltip = {
				tooltip = production_effort_tt
				all_owned_state = {
					free_building_slots = {
						building = arms_factory
						size < 1
						include_locked = yes
					}
				}
			}
		}

		complete_tooltip = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}		

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = infrastructure_effort
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = construction_effort_2 }
		x = 0
		y = 1
		relative_position_id = construction_effort_2
		cost = 10

		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		available_if_capitulated = yes

		bypass = {
			custom_trigger_tooltip = {
				tooltip = infrastructure_effort_tt
				all_owned_state = {			
					free_building_slots = {
						building = infrastructure
						size < 1
					}
				}
			}
		}

		complete_tooltip = {
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
		}

		completion_reward = {
			if = {
				limit = {
					has_idea = CHI_ineffective_bureaucracy
				}
				remove_ideas = CHI_ineffective_bureaucracy
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 1
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 1
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = production_effort_3
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = production_effort_2 }
		x = 0
		y = 1
		relative_position_id = production_effort_2
		cost = 10

		search_filters = { FOCUS_FILTER_INDUSTRY  }
		
		available_if_capitulated = yes


		ai_will_do = {
			factor = 2
		}

		bypass = {
			custom_trigger_tooltip = {
				tooltip = production_effort_tt
				all_owned_state = {
					free_building_slots = {
						building = arms_factory
						size < 1
						include_locked = yes
					}					
				}
			}
		}

		complete_tooltip = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}		

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = infrastructure_effort_2
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = infrastructure_effort }
		x = 0
		y = 1
		relative_position_id = infrastructure_effort
		cost = 10

		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		available_if_capitulated = yes

		bypass = {
			custom_trigger_tooltip = {
				tooltip = infrastructure_effort_tt
				all_owned_state = {			
					free_building_slots = {
						building = infrastructure
						size < 1
					}
				}
			}
		}

		complete_tooltip = {
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
		}

		completion_reward = {
			if = {
				limit = {
					OR = {
						has_country_flag = polit_nato_ally
						has_country_flag = polit_usa
						is_ally_with = USA
					}
				}
				complete_national_focus = GEN_nato
			}
			else = {
				if = {
					limit = {
						OR = {
							has_country_flag = polit_china
							is_ally_with = PRC
							is_ally_with = SOV
						}
					}
					complete_national_focus = GEN_china
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 1
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 1
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = construction_effort_3
		icon = GFX_goal_generic_construct_civ_factory
		prerequisite = { focus = infrastructure_effort }
		x = 2
		y = 1
		relative_position_id = infrastructure_effort
		cost = 10

		search_filters = { FOCUS_FILTER_INDUSTRY  }
		
		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 < 2
						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 = {
				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
				}
			}
		}
	}

	### the ukrainian special branch start
	focus = {
		id = UKR_chumak
		icon = GFX_focus_ITA_grande_rivolta_rurale
		x = -7
		y = 3
		relative_position_id = infrastructure_effort_2
		cost = 15
		allow_branch = {
			OR = {
				original_tag = UKR
				original_tag = KAZ
			}
		}
		available = {
			NOT = {
				is_ally_with = SOV
				is_ally_with = PRC
				has_completed_focus = GEN_support_china
			}
		}
		available_if_capitulated = no
		completion_reward = {
			if = {
				limit = {
					original_tag = UKR
				}
				197 = {
					add_core_of = UKR
					add_manpower = 20000
				}
				196 = {
					add_core_of = UKR
					add_manpower = 20000
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
				93 = {
					add_manpower = -10000
				}
				91 = {
					add_manpower = -10000
				}
				80 = {
					add_manpower = -5000
				}
				73 = {
					add_manpower = -5000
				}
				89 = {
					add_manpower = -10000
				}
			}
			if = {
				limit = {
					original_tag = KAZ
				}
				882 = {
					add_core_of = KAZ
					add_manpower = 10000
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
				404 = {
					add_manpower = -10000
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = UKR_close_southmach
		icon = GFX_focus_SOV_organize_wreckers
		x = -7
		y = 4
		relative_position_id = infrastructure_effort_2
		cost = 15
		prerequisite = {
			focus = UKR_chumak
		}
		allow_branch = {
			OR = {
				original_tag = UKR
				original_tag = KAZ
			}
		}
		available = {
			NOT = {
				is_ally_with = SOV
				is_ally_with = PRC
			}
		}
		available_if_capitulated = no
		completion_reward = {
			if = {
				limit = {
					original_tag = UKR
				}
				200 = {
					add_core_of = UKR
					add_manpower = -10000
				}
				226 = {
					add_core_of = UKR
					add_manpower = -10000
				}
				226 = {
					add_building_construction = {
						type = industrial_complex
						level = -2
						instant_build = yes
					}
				}
				add_manpower = -20000
			}
			if = {
				limit = {
					original_tag = KAZ
				}
				583 = {
					add_core_of = KAZ
					add_manpower = -10000
					add_building_construction = {
						type = industrial_complex
						level = -2
						instant_build = yes
					}
				}
				add_manpower = -10000
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = UKR_derussify
		icon = GFX_focus_ger_strike_at_the_source
		x = -7
		y = 5
		relative_position_id = infrastructure_effort_2
		cost = 20
		prerequisite = {
			focus = UKR_close_southmach
		}
		allow_branch = {
			OR = {
				original_tag = UKR
				original_tag = KAZ
			}
		}
		available = {
			NOT = {
				is_ally_with = SOV
				is_ally_with = PRC
			}
		}
		available_if_capitulated = no
		completion_reward = {
			set_country_flag = UKR_derussified
			if = {
				limit = {
					original_tag = UKR
				}
				192 = {
					add_core_of = UKR
					add_manpower = -10000
				}
				766 = {
					add_core_of = UKR
					add_manpower = -5000
				}
				221 = {
					add_core_of = UKR
					add_manpower = -10000
				}
				add_manpower = -25000
				if = {
					limit = {
						owns_state = 227
					}
					set_province_name = { id = 6420 name = "Mariupol'" }
					set_province_name = { id = 6493 name = "Sorokino" }
					set_province_name = { id = 3449 name = "Pokrov" }
					set_province_name = { id = 3479 name = "Bakhmut" }
					set_province_name = { id = 3491 name = "Liman" }
				}
				set_province_name = { id = 11437 name = "Dnepr" }
				set_province_name = { id = 3452 name = "Krapivnitzkiy" }
				set_province_name = { id = 3757 name = "Podol'sk" }
				set_province_name = { id = 3570 name = "Zvyagel'" }
			}
			if = {
				limit = {
					original_tag = KAZ
				}
				590 = {
					add_core_of = KAZ
					add_manpower = -10000
				}
				add_manpower = -10000
				set_province_name = { id = 1864 name = "O'skemen" }
				set_province_name = { id = 1418 name = "Kokshetau" }
				set_province_name = { id = 7874 name = "Kyzyl-Jar" }
				set_province_name = { id = 10584 name = "Semey" }
				set_province_name = { id = 3618 name = "Atyrau" }
				set_province_name = { id = 11537 name = "Oral" }
				set_province_name = { id = 10202 name = "Kerekuy" }
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = UKR_polish_variant
		icon = GFX_focus_POL_polish_revanchism
		x = -7
		y = 6
		relative_position_id = infrastructure_effort_2
		cost = 30
		prerequisite = {
			focus = UKR_derussify
		}
		allow_branch = {
			OR = {
				original_tag = UKR
				original_tag = KAZ
			}
		}
		available = {
			NOT = {
				is_ally_with = SOV
				is_ally_with = PRC
			}
			OR = {
				original_tag = KAZ
				AND = {
					owns_state = 137
					owns_state = 227
					owns_state = 972
					owns_state = 228
				}
			}
		}
		available_if_capitulated = no
		completion_reward = {
			if = {
				limit = {
					original_tag = UKR
				}
				227 = {
					add_core_of = UKR
					add_manpower = -200000
				}
				228 = {
					add_core_of = UKR
					add_manpower = -120000
				}
				137 = {
					add_manpower = -150000
					add_core_of = UKR
				}
				972 = {
					add_manpower = -30000
					add_core_of = UKR
				}
				192 = {
					add_manpower = -100000
				}
				226 = {
					add_manpower = -100000
				}
				221 = {
					add_manpower = -100000
				}
				202 = {
					add_manpower = -100000
				}
				every_owned_state = {
					remove_core_of = SOV
				}
				add_manpower = -900000
				234 = {
					add_manpower = 150000
				}
				219 = {
					add_manpower = 200000
				}
				195 = {
					add_manpower = 100000
				}
				218 = {
					add_manpower = 100000
				}
				260 = {
					add_manpower = 50000
				}
				240 = {
					add_manpower = 50000
				}
				220 = {
					add_manpower = 25000
				}
				224 = {
					add_manpower = 25000
				}
				235 = {
					add_manpower = 75000
				}
				217 = {
					add_manpower = 50000
				}
				252 = {
					add_manpower = 25000
				}
				569 = {
					add_manpower = 50000
				}
			}
			if = {
				limit = {
					original_tag = KAZ
				}
				588 = {
					add_core_of = KAZ
					add_manpower = -35000
				}
				every_owned_state = {
					remove_core_of = SOV
				}
				586 = {
					add_manpower = -10000
				}
				583 = {
					add_manpower = -15000
				}
				590 = {
					add_manpower = -15000
				}
				589 = {
					add_manpower = -5000
				}
				882 = {
					add_manpower = -15000
				}
				add_manpower = -95000
				570 = {
					add_manpower = 20000
				}
				653 = {
					add_manpower = 20000
				}
				219 = {
					add_manpower = 20000
				}
				572 = {
					add_manpower = 20000
				}
				569 = {
					add_manpower = 15000
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	### the ukrainian special branch end

	focus = {
		id = GEN_nato
		icon = GFX_focus_generic_the_giant_wakes
		prerequisite = { focus = infrastructure_effort_2 }
		x = -4
		y = 1
		relative_position_id = infrastructure_effort_2
		cost = 10
		mutually_exclusive = {
			focus = GEN_neutral
			focus = GEN_china
		}
		available = {
			OR = {
				has_country_flag = polit_usa
				has_country_flag = polit_usa_ally
				has_country_flag = polit_nato_ally
			}
			USA = {
				is_in_faction = yes
			}
			NOT = {
				is_subject = yes
			}
		}


		available_if_capitulated = yes

		completion_reward = {
			if = {
				limit = {
					is_subject = no
				}
				if = {
					limit = {
						has_country_flag = polit_usa
						is_faction_leader = no
					}
					create_faction = "NATO"
					every_country = {
						limit = {
							has_country_flag = polit_nato_ally
						}
						USA = {
							add_to_faction = FROM
						}
					}
				}
				else = {
					ROOT = {
						add_popularity = {
							ideology = democratic
							popularity = 0.4
						}
					}
					USA = {
						add_to_faction = ROOT
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = GEN_support_nato
		icon = GFX_focus_generic_befriend_usa
		prerequisite = { focus = GEN_neutral}
		x = -2
		y = 2
		mutually_exclusive = {focus = GEN_support_china}
		relative_position_id = infrastructure_effort_2
		cost = 10
		available = {
			NOT = {
				has_country_flag = polit_china
				has_country_flag = polit_china_ally
				is_subject = yes
			}
		}
		
		
		available_if_capitulated = yes

		completion_reward = {
			USA = {
				give_guarantee = ROOT
			}
			#ROOT = {
			#	give_guarantee = USA
			#}
			set_country_flag = polit_supported_nato
		}

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 1
				always = yes
			}
		}
	}
	focus = {
		id = GEN_condemn_nato
		icon = GFX_focus_generic_attack_usa
		prerequisite = { focus = GEN_nato }
		x = -2
		y = 3
		relative_position_id = infrastructure_effort_2
		cost = 10
		available = {
			NOT = {
				has_country_flag = polit_usa
			}
			is_subject = no
			num_of_factories > 15
			
		}
		
		
		available_if_capitulated = yes

		completion_reward = {
			if = {
				limit = {
					is_ally_with = USA
				}
				leave_faction = yes
				USA = {
					add_opinion_modifier = {
						target = ROOT
						modifier = faction_traitor
					}
				}
				add_research_slot = -1
			}
		}

		ai_will_do = {
			factor = 0
			modifier = {
				factor = 0
				always = yes
			}
		}
	}
	focus = {
		id = GEN_nato_tech_support
		icon = GFX_goal_generic_scientific_exchange
		prerequisite = { 
			focus = GEN_nato focus = GEN_support_nato 
		}
		x = -4
		y = 3
		relative_position_id = infrastructure_effort_2
		cost = 10
		available = {
			OR = {
				is_ally_with = USA
				tag = USA
			}
		}
		available_if_capitulated = yes
		completion_reward = {
			if = {
				limit = {
					has_tech_sharing_feature = yes
				}
				add_to_tech_sharing_group = nato_research
			}
			else = {
				if = {
					limit = {
						amount_research_slots < 5
					}
					add_research_slot = 1
				}
			}
			if = {
				limit = {
					has_idea = CRI_third_world_country
				}
				remove_ideas = CRI_third_world_country
			}
			else = {
				add_ideas = CRI_first_world_country
				if = {
					limit = {
						amount_research_slots < 5
					}
					add_research_slot = 1
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = GEN_nato_defence
		icon = GFX_focus_generic_coastal_fort
		prerequisite = { 
			focus = GEN_nato_tech_support  
		}
		x = -5
		y = 4
		mutually_exclusive = {focus = GEN_nato_offence}
		relative_position_id = infrastructure_effort_2
		cost = 10
		available = {
			is_ally_with = USA
		}
		available_if_capitulated = yes
		completion_reward = {
			capital_scope = {
				add_building_construction = {
					type = bunker
					level = 7
					instant_build = yes
					province = {
						all_provinces = yes
					}
				}
			}
			every_owned_state = {
				add_building_construction = {
					type = coastal_bunker
					level = 7
					instant_build = yes
					province = {
						all_provinces = yes
						limit_to_coastal = yes
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
			modifier = {
				tag = TUR
				factor = 0
			}
			modifier = {
				tag = FRA
				factor = 0
			}
			modifier = {
				tag = ENG
				factor = 0
			}
		}
	}
	focus = {
		id = GEN_nato_offence
		icon = GFX_focus_SOV_the_glory_of_the_red_army_alternative
		prerequisite = { 
			focus = GEN_nato_tech_support  
		}
		x = -3
		y = 4
		mutually_exclusive = {focus = GEN_nato_defence}
		relative_position_id = infrastructure_effort_2
		cost = 10
		available = {
			is_ally_with = USA
		}
		available_if_capitulated = yes
		completion_reward = {
			add_ideas = volunteer_corps_focus 
			add_ideas = foreign_expeditions_focus
			add_ideas = why_we_fight_focus 
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
			modifier = {
				tag = USA
				factor = 0
			}
			modifier = {
				tag = GER
				factor = 0
			}
			modifier = {
				tag = ITA
				factor = 0
			}
		}
	}
	focus = {
		id = GEN_reach_out_to_uyguristan
		icon = GFX_focus_TUR_turanist_ambition
		prerequisite = { 
			focus = GEN_nato_offence  
		}
		x = -5
		y = 5
		mutually_exclusive = {focus = GEN_reach_out_to_taiwan}
		relative_position_id = infrastructure_effort_2
		cost = 10

		available_if_capitulated = yes
		completion_reward = {
			if = {
				limit = {
					RAJ = {
						is_ally_with = PRC
					}
				}
				SIQ = {
					every_core_state = {
						if = {
							limit = {
								is_core_of = RAJ
							}
							remove_core_of = RAJ
							start_resistance = yes
							set_resistance = 20
						}
						else = {
							add_resistance = 20
						}
					}
				}
				DRA = {
					every_core_state = {
						if = {
							limit = {
								is_core_of = RAJ
							}
							remove_core_of = RAJ
							start_resistance = yes
							set_resistance = 20
						}
						else = {
							add_resistance = 20
						}
					}
				}
			}
			GXC = {
				every_core_state = {
					if = {
						limit = {
							is_core_of = PRC
						}
						remove_core_of = PRC
						start_resistance = yes
						set_resistance = 20
					}
					else = {
						add_resistance = 20
					}
				}
			}
			TIB = {
				every_core_state = {
					if = {
						limit = {
							is_core_of = PRC
						}
						remove_core_of = PRC
						start_resistance = yes
						set_resistance = 20
					}
					else = {
						add_resistance = 20
					}
				}
			}
			SIK = {
				every_core_state = {
					if = {
						limit = {
							is_core_of = PRC
						}
						remove_core_of = PRC
						start_resistance = yes
						set_resistance = 20
					}
					else = {
						add_resistance = 20
					}
				}
			}
			XSM = {
				every_core_state = {
					if = {
						limit = {
							is_core_of = PRC
						}
						remove_core_of = PRC
						start_resistance = yes
						set_resistance = 20
					}
					else = {
						add_resistance = 20
					}
				}
			}
			YUN = {
				every_core_state = {
					if = {
						limit = {
							is_core_of = PRC
						}
						remove_core_of = PRC
						start_resistance = yes
						set_resistance = 20
					}
					else = {
						add_resistance = 20
					}
				}
			}
			SHX = {
				every_core_state = {
					if = {
						limit = {
							is_core_of = PRC
						}
						remove_core_of = PRC
						start_resistance = yes
						set_resistance = 20
					}
					else = {
						add_resistance = 20
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = GEN_reach_out_to_taiwan
		icon = GFX_focus_generic_china1
		prerequisite = { 
			focus = GEN_nato_offence  
		}
		x = -3
		y = 5
		mutually_exclusive = {focus = GEN_reach_out_to_uyguristan}
		relative_position_id = infrastructure_effort_2
		cost = 10
		available_if_capitulated = yes
		completion_reward = {
			CHI = {
				add_ideas = received_attache 
			}
			PRC = {
				if = {
					limit = {
						has_idea = strikes_2
					}
					swap_ideas = {
						remove_idea = strikes_2
						add_idea = strikes_3
					}
					swap_ideas = {
						remove_idea = draft_dodging_2
						add_idea = draft_dodging_3
					}
					swap_ideas = {
						remove_idea = mutiny_2
						add_idea = mutiny_3
					}
				}
				else = {
					if = {
						limit = {
							has_idea = strikes_1
						}
						swap_ideas = {
							remove_idea = strikes_1
							add_idea = strikes_2
						}
						swap_ideas = {
							remove_idea = draft_dodging
							add_idea = draft_dodging_2
						}
						swap_ideas = {
							remove_idea = mutiny_1
							add_idea = mutiny_2
						}
					}
					else = {
						if = {
							limit = {
								NOT = {
									has_idea = strikes_3
								}
							}
							add_ideas = strikes_1
							add_ideas = mutiny_1
 							add_ideas = draft_dodging
						}
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = GEN_nato_subdue_results
		icon = GFX_focus_usa_focus_on_asia
		prerequisite = { 
			focus = GEN_reach_out_to_taiwan
			focus = GEN_reach_out_to_uyguristan  
		}
		x = -5
		y = 6
		mutually_exclusive = {focus = GEN_nato_befriend_results}
		relative_position_id = infrastructure_effort_2
		cost = 10
		available = {
			CHI = {
				num_of_controlled_states > 1
				has_war = no
			}
		}
		available_if_capitulated = yes
		completion_reward = {
			create_wargoal = {
				target = GXC
				type = puppet_wargoal_focus
			}
			create_wargoal = {
				target = YUN
				type = puppet_wargoal_focus
			}
			if = {
				limit = {
					SIK = {
						NOT = {
							is_subject = yes
						}
					}
				}
				create_wargoal = {
					target = SIK
					type = puppet_wargoal_focus
				}
			}
			create_wargoal = {
				target = CHI
				type = puppet_wargoal_focus
			}

			if = {
				limit = {
					XSM = {
						NOT = {
							is_subject = yes
						}
					}
				}
				create_wargoal = {
					target = XSM 
					type = puppet_wargoal_focus
				}
			}
			if = {
				limit = {
					TIB = {
						NOT = {
							is_subject = yes
						}
					}
				}
				create_wargoal = {
					target = TIB 
					type = puppet_wargoal_focus
				}
			}
			if = {
				limit = {
					SHX = {
						NOT = {
							is_subject = yes
						}
					}
				}
				create_wargoal = {
					target = SHX
					type = puppet_wargoal_focus
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = GEN_nato_befriend_results
		icon = GFX_focus_SWE_refuge_from_war
		prerequisite = { 
			focus = GEN_reach_out_to_uyguristan
			focus = GEN_reach_out_to_taiwan  
		}
		x = -3
		y = 6
		mutually_exclusive = {focus = GEN_nato_subdue_results}
		relative_position_id = infrastructure_effort_2
		cost = 10
		available = {
			CHI = {
				num_of_controlled_states > 1
				has_war = no
			}
		}
		available_if_capitulated = yes
		completion_reward = {
			GXC = {
				add_ideas = democratic_influence 
				add_opinion_modifier = {
					target = USA
					modifier = our_liberators 
				}
			}
			CHI = {
				add_ideas = democratic_influence 
				add_opinion_modifier = {
					target = USA
					modifier = our_liberators 
				}
			}
			YUN = {
				add_ideas = democratic_influence 
				add_opinion_modifier = {
					target = USA
					modifier = our_liberators 
				}
			}
			TIB = {
				add_ideas = democratic_influence 
				add_opinion_modifier = {
					target = USA
					modifier = our_liberators 
				}
			}
			SIK = {
				add_ideas = democratic_influence 
				add_opinion_modifier = {
					target = USA
					modifier = our_liberators 
				}
			}
			XSM = {
				add_ideas = democratic_influence 
				add_opinion_modifier = {
					target = USA
					modifier = our_liberators 
				}
			}
			SHX = {
				add_ideas = democratic_influence 
				add_opinion_modifier = {
					target = USA
					modifier = our_liberators 
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = GEN_neutral
		icon = GFX_goal_generic_neutrality_focus
		prerequisite = { focus = infrastructure_effort_2 }
		x = 0
		y = 1
		relative_position_id = infrastructure_effort_2
		cost = 10
		mutually_exclusive = {
			focus = GEN_nato
			focus = GEN_china
		}
		available = {
			NOT = {
				is_ally_with = PRC
				is_ally_with = USA
			}
		}
		available_if_capitulated = yes

		completion_reward = {
			add_ideas = neutrality_idea
		}
	}
	focus = {
		id = GEN_deterrence
		icon = GFX_goal_generic_defence
		prerequisite = { 
			focus = GEN_neutral
			focus = GEN_condemn_nato
			focus = GEN_condemn_china
		}
		x = 0
		y = 3
		relative_position_id = infrastructure_effort_2
		cost = 10
		available_if_capitulated = yes
		available = {
			NOT = {
				is_ally_with = USA
				is_ally_with = PRC
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_completed_focus = GEN_support_china
			}
			modifier = {
				factor = 0
				has_completed_focus = GEN_support_nato
			}
		}
		completion_reward = {
			remove_ideas = CRI_flexible_foreign_policy
			add_ideas = deterrence
		}
	}
	focus = {
		id = GEN_freedom
		icon = GFX_goal_support_democracy
		prerequisite = { 
			focus = GEN_deterrence
		}
		x = -1
		mutually_exclusive = {
			focus = GEN_morality
		}
		y = 4
		relative_position_id = infrastructure_effort_2
		cost = 10
		available_if_capitulated = yes
		completion_reward = {
			add_ideas = liberty_ethos_focus
			add_stability = 0.2
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
			modifier = {
				tag = SAU
				factor = 0
			}
			modifier = {
				tag = KUW
				factor = 0
			}
			modifier = {
				tag = UAE
				factor = 0
			}
			modifier = {
				tag = OMA
				factor = 0
			}
			modifier = {
				tag = YEM
				factor = 0
			}
			modifier = {
				tag = QAT
				factor = 0
			}
			modifier = {
				tag = PER
				factor = 0
			}
			modifier = {
				tag = IRQ
				factor = 0
			}
			modifier = {
				tag = SYR
				factor = 0
			}
			modifier = {
				tag = LEB
				factor = 0
			}
			modifier = {
				tag = AZR
				factor = 0
			}
			modifier = {
				tag = JOR
				factor = 0
			}
			modifier = {
				tag = TUR
				factor = 0
			}
			modifier = {
				tag = KOS
				factor = 0
			}
			modifier = {
				tag = ALB
				factor = 0
			}
			modifier = {
				tag = BOS
				factor = 0
			}
			modifier = {
				tag = LBA
				factor = 0
			}
			modifier = {
				tag = EGY
				factor = 0
			}
			modifier = {
				tag = TUN
				factor = 0
			}
			modifier = {
				tag = ERI
				factor = 0
			}
			modifier = {
				tag = SUD
				factor = 0
			}
			modifier = {
				tag = DJI
				factor = 0
			}
			modifier = {
				tag = HAR
				factor = 0
			}
			modifier = {
				tag = MRT
				factor = 0
			}
			modifier = {
				tag = MOR
				factor = 0
			}
			modifier = {
				tag = ALG
				factor = 0
			}
			modifier = {
				tag = MLI
				factor = 0
			}
			modifier = {
				tag = NGR
				factor = 0
			}
			modifier = {
				tag = CHA
				factor = 0
			}
			modifier = {
				tag = SOV
				factor = 0
			}
			modifier = {
				tag = BLR
				factor = 0
			}
			modifier = {
				tag = KAZ
				factor = 0
			}
			modifier = {
				tag = UZB
				factor = 0
			}
			modifier = {
				tag = KYR
				factor = 0
			}
			modifier = {
				tag = TMS
				factor = 0
			}
			modifier = {
				tag = TAJ
				factor = 0
			}
			modifier = {
				tag = SIK
				factor = 0
			}
			modifier = {
				tag = XSM
				factor = 0
			}
			modifier = {
				tag = CSA
				factor = 0
			}
			modifier = {
				tag = AFG
				factor = 0
			}
			modifier = {
				tag = PAK
				factor = 0
			}
			modifier = {
				tag = BAN
				factor = 0
			}
			modifier = {
				tag = MAL
				factor = 0
			}
			modifier = {
				tag = INS
				factor = 0
			}
		}
	}
	focus = {
		id = GEN_morality
		icon = GFX_focus_rom_parties_end
		prerequisite = { 
			focus = GEN_deterrence
		}
		x = 1
		mutually_exclusive = {
			focus = GEN_freedom
		}
		y = 4
		relative_position_id = infrastructure_effort_2
		cost = 10
		available_if_capitulated = yes
		completion_reward = {
			add_ideas = militarism_focus
			add_war_support = 0.2
		}
		ai_will_do = {
			modifier = {
				tag = FIN
				factor = 0
			}
			modifier = {
				tag = SWE
				factor = 0
			}
			modifier = {
				tag = AUS
				factor = 0
			}
			modifier = {
				tag = SWI
				factor = 0
			}
			modifier = {
				tag = IRE
				factor = 0
			}
			modifier = {
				tag = ISR
				factor = 0
			}
			modifier = {
				tag = AST
				factor = 0
			}
			modifier = {
				tag = NZL
				factor = 0
			}
		}
	}
	focus = {
		id = GEN_invite_foreigners
		icon = GFX_focus_generic_concessions
		prerequisite = { 
			focus = GEN_morality
			focus = GEN_freedom
		}
		x = -1
		available = {
			OR = {
				has_government = democratic
				has_government = neutrality
			}
		}
		mutually_exclusive = {
			focus = GEN_expel_foreigners
		}
		bypass = {
			is_in_faction = yes
		}
		y = 5
		relative_position_id = infrastructure_effort_2
		cost = 10
		available_if_capitulated = yes
		completion_reward = {
			capital_scope = {
				set_building_level = {
					type = air_base
					level = 10
					instant_build = yes
				}
			}
			add_ideas = volunteer_corps_focus 
			add_ideas = foreign_expeditions_focus
			add_ideas = why_we_fight_focus 
		}
	}
	focus = {
		id = GEN_expel_foreigners
		icon = GFX_goal_generic_political_pressure
		prerequisite = { 
			focus = GEN_morality
			focus = GEN_freedom
		}
		available = {
			OR = {
				has_government = communism
				has_government = neutrality
				has_government = fascism
			}
		}
		x = 1
		mutually_exclusive = {
			focus = GEN_invite_foreigners
		}
		y = 5
		relative_position_id = infrastructure_effort_2
		cost = 10
		available_if_capitulated = yes
		completion_reward = {
			add_ideas = war_economy
			add_ideas = paramilitarism_focus 
			add_ideas = indoctrination_focus 
			add_ideas = ideological_fanaticism_focus 
		}
	}
	
	focus = {
		id = GEN_stronger_together
		icon = GFX_goal_generic_national_unity
		prerequisite = { 
			focus = GEN_invite_foreigners
		}
		x = -1
		y = 6
		relative_position_id = infrastructure_effort_2
		cost = 10
		available_if_capitulated = yes
		completion_reward = {
			every_neighbor_country = {
				if = {
					limit = {
						is_in_faction = yes
					}
				}
				faction_leader = {
					if = {
						limit = {
							NOT = {
								is_ally_with = USA
								is_ally_with = PRC
								is_ally_with = SOV
							}
						}
					}
					add_to_faction = ROOT
				}
			}
			set_rule = {
				can_create_factions = yes
			}
			if = {
				limit = {
					has_government = neutrality
				}
				every_neighbor_country = {
					add_timed_idea = {
						idea = neutrality_influence
						days = 366
					}
				}
			}
			if = {
				limit = {
					has_government = democratic
				}
				every_neighbor_country = {
					add_timed_idea = {
						idea = democratic_influence 
						days = 366
					}
				}
			}
			if = {
				limit = {
					has_government = communism
				}
				every_neighbor_country = {
					add_timed_idea = {
						idea = communist_influence 
						days = 366
					}
				}
			}
			if = {
				limit = {
					has_government = fascism
				}
				every_neighbor_country = {
					add_timed_idea = {
						idea = fascist_influence 
						days = 366
					}
				}
			}
		}
		bypass = {
			is_in_faction = yes
		}
	}
	focus = {
		id = GEN_proactive_defence
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { 
			focus = GEN_expel_foreigners
		}
		x = 1
		y = 6
		relative_position_id = infrastructure_effort_2
		cost = 10
		available_if_capitulated = yes
		completion_reward = {
			### reduce justification time
			every_neighbor_country = {
				ROOT = {
					create_wargoal = {
						target = PREV
						type = topple_government
					}
				}
			}
		}
	}
	focus = {
		id = GEN_light_buildup
		icon = GFX_goal_generic_construct_civ_factory
		prerequisite = { 
			focus = GEN_expel_foreigners
			focus = GEN_invite_foreigners
		}
		x = -2
		y = 7
		relative_position_id = infrastructure_effort_2
		cost = 10
		available_if_capitulated = yes
		completion_reward = {
			random_owned_state = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}	
			}
			if = {
				limit = {
					num_of_controlled_states > 1
				}
				random_owned_state = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}	
				}
			}
			if = {
				limit = {
					num_of_controlled_states > 2
				}
				random_owned_state = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}	
				}
			}
		}
	}
	focus = {
		id = GEN_heavy_buildup
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { 
			focus = GEN_expel_foreigners
			focus = GEN_invite_foreigners
		}
		x = 2
		y = 7
		relative_position_id = infrastructure_effort_2
		cost = 10
		available_if_capitulated = yes
		completion_reward = {
			random_owned_state = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}	
			}
			if = {
				limit = {
					num_of_controlled_states > 1
				}
				random_owned_state = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}	
				}
			}
			if = {
				limit = {
					num_of_controlled_states > 2
				}
				random_owned_state = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}	
				}
			}
		}
	}
	focus = {
		id = GEN_protect_borders
		icon = GFX_goal_generic_construct_military
		prerequisite = { 
			focus = GEN_expel_foreigners
			focus = GEN_invite_foreigners
		}
		x = 0
		y = 7
		relative_position_id = infrastructure_effort_2
		cost = 10
		available_if_capitulated = yes
		completion_reward = {
			every_owned_state = {
				add_building_construction = {
					type = bunker
					level = 5
					instant_build = yes
					province = {
						all_provinces = yes
						limit_to_border = yes
					}
				}
			}
		}
	}
	focus = {
		id = GEN_extra_slot_neutral
		icon = GFX_focus_research
		prerequisite = { 
			focus = GEN_protect_borders
		}
		x = 0
		y = 8
		relative_position_id = infrastructure_effort_2
		cost = 10
		available_if_capitulated = yes
		available = {
			has_war = no
		}
		completion_reward = {
			if = {
				limit = {
					amount_research_slots < 5
				}
				add_research_slot = 1
			}
			if = {
				limit = {
					has_idea = CRI_third_world_country
				}
				remove_ideas = CRI_third_world_country
			}
			else = {
				add_ideas = CRI_first_world_country
			}
		}
	}
	

	focus = {
		id = GEN_china
		icon = GFX_goal_support_communism 
		prerequisite = { focus = infrastructure_effort_2 }
		x = 4
		y = 1
		relative_position_id = infrastructure_effort_2
		cost = 10
		mutually_exclusive = {
			focus = GEN_neutral
			focus = GEN_nato
		}
		available = {
			OR = {
				has_country_flag = polit_china
				has_country_flag = polit_china_ally
				#has_country_flag = polit_nato_ally
			}
			PRC = {
				is_in_faction = yes
			}
			NOT = {
				is_subject = yes
			}
		}

		
		available_if_capitulated = yes

		completion_reward = {
			if = {
				limit = {
					has_country_flag = polit_china
				}
				create_faction = "Nanhai Lianmeng"
			}
			else = {
				if = {
					limit = {
						AND = {
							is_subject = no
							is_in_faction = no
						}
					}
					if = {
						limit = {
							any_owned_state = {
								is_core_of = SOV
							}
						}
						SOV = {
							add_to_faction = ROOT
						}
					}
					else = {
						ROOT = {
							add_popularity = {
								ideology = communism
								popularity = 0.4
							}
						}
						PRC = {
							add_to_faction = ROOT
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = GEN_china_tech_support
		icon = GFX_goal_generic_scientific_exchange
		prerequisite = { focus = GEN_china focus = GEN_support_china }
		x = 4
		y = 3
		relative_position_id = infrastructure_effort_2
		cost = 10
		available = {
			OR = {
				is_ally_with = PRC
				tag = PRC
				is_ally_with = SOV
				tag = SOV
			}
		}
		available_if_capitulated = yes
		completion_reward = {
			if = {
				limit = {
					has_tech_sharing_feature = yes
				}
				add_to_tech_sharing_group = china_research
			}
			else = {
				if = {
					limit = {
						amount_research_slots < 5
					}
					add_research_slot = 1
				}
			}
			if = {
				limit = {
					has_idea = CRI_third_world_country
				}
				remove_ideas = CRI_third_world_country
			}
			else = {
				#add_ideas = CRI_first_world_country #Chinese science does not really spill over borders of China, so there's that...
				if = {
					limit = {
						amount_research_slots < 5
					}
					add_research_slot = 1 #but the slot still will be available, just like Saudis.
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = GEN_china_defence
		icon = GFX_goal_generic_military_sphere
		prerequisite = { focus = GEN_china_tech_support }
		x = 3
		y = 4
		relative_position_id = infrastructure_effort_2
		cost = 10
		mutually_exclusive = {focus = GEN_china_offence}
		available_if_capitulated = yes
		completion_reward = {
			if = {
				limit = {
					has_idea = PRC_nails
				}
				remove_ideas = PRC_nails
			}

			capital_scope = {
				add_building_construction = {
					type = bunker
					level = 7
					instant_build = yes
					province = {
						all_provinces = yes
					}
				}
			}
			every_owned_state = {
				add_building_construction = {
					type = coastal_bunker
					level = 7
					instant_build = yes
					province = {
						all_provinces = yes
						limit_to_coastal = yes
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
			modifier = {
				tag = SOV
				factor = 0
			}
		}
	}
	focus = {
		id = GEN_china_offence
		icon = GFX_focus_SOV_the_glory_of_the_red_army_communism
		prerequisite = { focus = GEN_china_tech_support }
		x = 5
		y = 4
		relative_position_id = infrastructure_effort_2
		cost = 10
		mutually_exclusive = {focus = GEN_china_defence}
		available_if_capitulated = yes
		completion_reward = {
			add_ideas = volunteer_corps_focus 
			add_ideas = foreign_expeditions_focus
			add_ideas = why_we_fight_focus 
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
			modifier = {
				tag = PRC
				factor = 0
			}
		}
	}
	focus = {
		id = GEN_reach_out_to_trump
		icon = GFX_focus_usa_voter_registration_act
		prerequisite = { focus = GEN_china_offence }
		x = 5
		y = 5
		relative_position_id = infrastructure_effort_2
		cost = 10
		mutually_exclusive = {focus = GEN_reach_out_to_navajo}
		available_if_capitulated = yes
		completion_reward = {
			CSA = {
				add_ideas = received_attache 
			}
			USA = {
				if = {
					limit = {
						has_idea = strikes_2
					}
					swap_ideas = {
						remove_idea = strikes_2
						add_idea = strikes_3
					}
					swap_ideas = {
						remove_idea = draft_dodging_2
						add_idea = draft_dodging_3
					}
					swap_ideas = {
						remove_idea = mutiny_2
						add_idea = mutiny_3
					}
				}
				else = {
					if = {
						limit = {
							has_idea = strikes_1
						}
						swap_ideas = {
							remove_idea = strikes_1
							add_idea = strikes_2
						}
						swap_ideas = {
							remove_idea = draft_dodging
							add_idea = draft_dodging_2
						}
						swap_ideas = {
							remove_idea = mutiny_1
							add_idea = mutiny_2
						}
					}
					else = {
						if = {
							limit = {
								NOT = {
									has_idea = strikes_3
								}
							}
							add_ideas = strikes_1
							add_ideas = mutiny_1
 							add_ideas = draft_dodging
						}
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = GEN_reach_out_to_navajo
		icon = GFX_focus_usa_tank_destroyer_doctrine
		prerequisite = { focus = GEN_china_offence }
		x = 3
		y = 5
		relative_position_id = infrastructure_effort_2
		cost = 10
		mutually_exclusive = {focus = GEN_reach_out_to_trump}
		available_if_capitulated = yes
		completion_reward = {
			if = {
				limit = {
					TUR = {
						is_ally_with = USA
					}
				}
				KUR = {
					every_core_state = {
						if = {
							limit = {
								is_owned_by = TUR
							}
							remove_core_of = TUR
							start_resistance = yes
							add_resistance = 20
						}
					}
				}
			}
			if = {
				limit = {
					ENG = {
						is_ally_with = USA
					}
				}
				IRE = {
					every_core_state = {
						if = {
							limit = {
								is_owned_by = ENG
							}
							remove_core_of = ENG
							start_resistance = yes
							add_resistance = 20
						}
					}
				}
			}
			if = {
				limit = {
					SPR = {
						is_ally_with = USA
					}
				}
				NAV = {
					every_core_state = {
						remove_core_of = SPR
						remove_core_of = FRA
						start_resistance = yes
						add_resistance = 20
					}
				}
				CAT = {
					every_core_state = {
						remove_core_of = SPR
						remove_core_of = FRA
						start_resistance = yes
						add_resistance = 20
					}
				}
			}
			NEN = {
				every_core_state = {
					if = {
						limit = {
							is_core_of = USA
						}
						remove_core_of = USA
						start_resistance = yes
						set_resistance = 20
					}
					else = {
						add_resistance = 20
					}
				}
			}
			CSA = {
				every_core_state = {
					if = {
						limit = {
							is_core_of = USA
						}
						remove_core_of = USA
						start_resistance = yes
						set_resistance = 20
					}
					else = {
						add_resistance = 20
					}
				}
			}
			USB = {
				every_core_state = {
					if = {
						limit = {
							is_core_of = USA
						}
						remove_core_of = USA
						start_resistance = yes
						set_resistance = 20
					}
					else = {
						add_resistance = 20
					}
				}
			}
			AFA = {
				every_core_state = {
					if = {
						limit = {
							is_core_of = USA
						}
						remove_core_of = USA
						start_resistance = yes
						set_resistance = 20
					}
					else = {
						add_resistance = 20
					}
				}
			}
			PUE = {
				every_core_state = {
					if = {
						limit = {
							is_core_of = USA
						}
						remove_core_of = USA
						start_resistance = yes
						set_resistance = 20
					}
					else = {
						add_resistance = 20
					}
				}
			}
			HAW = {
				every_core_state = {
					if = {
						limit = {
							is_core_of = USA
						}
						remove_core_of = USA
						start_resistance = yes
						set_resistance = 20
					}
					else = {
						add_resistance = 20
					}
				}
			}
			VLA = {
				every_core_state = {
					if = {
						limit = {
							OR = {
								is_core_of = USA
								is_core_of = CAN
							}
						}
						remove_core_of = USA
						remove_core_of = CAN
						start_resistance = yes
						set_resistance = 20
					}
					else = {
						add_resistance = 20
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = GEN_china_subdue_results
		icon = GFX_focus_generic_annex_country_2
		prerequisite = { focus = GEN_reach_out_to_navajo focus = GEN_reach_out_to_trump }
		x = 5
		y = 6
		relative_position_id = infrastructure_effort_2
		cost = 10
		mutually_exclusive = {
			focus = GEN_china_befriend_results
		}
		available_if_capitulated = yes
		available = {
			country_exists = CSA
			CSA = {
				has_war = no
			}
		}
		completion_reward = {
			create_wargoal = {
				target = NEN
				type = annex_everything
			}
			create_wargoal = {
				target = USB
				type = annex_everything
			}
			create_wargoal = {
				target = CSA
				type = annex_everything
			}
			create_wargoal = {
				target = AFA
				type = annex_everything
			}
			create_wargoal = {
				target = VLA
				type = annex_everything
			}
			create_wargoal = {
				target = PUE
				type = annex_everything
			}
			create_wargoal = {
				target = HAW
				type = annex_everything
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = GEN_china_befriend_results
		icon = GFX_focus_SOV_international_union_of_soviet_republics
		prerequisite = { focus = GEN_reach_out_to_navajo focus = GEN_reach_out_to_trump }
		x = 3
		y = 6
		relative_position_id = infrastructure_effort_2
		cost = 10
		mutually_exclusive = {
			focus = GEN_china_subdue_results
		}
		available = {
			country_exists = CSA
			CSA = {
				has_war = no
			}
		}
		available_if_capitulated = yes
		completion_reward = {
			NEN = {
				add_ideas = communist_influence 
				add_opinion_modifier = {
					target = PRC
					modifier = our_liberators 
				}
			}
			CSA = {
				add_ideas = communist_influence 
				add_opinion_modifier = {
					target = PRC
					modifier = our_liberators 
				}
			}
			USB = {
				add_ideas = communist_influence 
				add_opinion_modifier = {
					target = PRC
					modifier = our_liberators 
				}
			}
			PUE = {
				add_ideas = communist_influence 
				add_opinion_modifier = {
					target = PRC
					modifier = our_liberators 
				}
			}
			HAW = {
				add_ideas = communist_influence 
				add_opinion_modifier = {
					target = PRC
					modifier = our_liberators 
				}
			}
			AFA = {
				add_ideas = communist_influence 
				add_opinion_modifier = {
					target = PRC
					modifier = our_liberators 
				}
			}
			VLA = {
				add_ideas = communist_influence 
				add_opinion_modifier = {
					target = PRC
					modifier = our_liberators 
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = GEN_support_china
		icon = GFX_focus_chi_one_china_policy
		prerequisite = { focus = GEN_neutral}
		x = 2
		y = 2
		mutually_exclusive = {focus = GEN_support_nato}
		relative_position_id = infrastructure_effort_2
		cost = 10
		available = {
			NOT = {
				has_country_flag = polit_usa
				has_country_flag = polit_nato_ally
				has_country_flag = polit_usa_ally
				is_subject = yes
			}
		}
		
		
		available_if_capitulated = yes

		completion_reward = {
			if = {
				limit = {
					original_tag = UKR
				}
				91 = {
					remove_core_of = UKR
					add_core_of = GAL
				}
				89 = {
					remove_core_of = UKR
					add_core_of = GAL
				}
				80 = {
					remove_core_of = UKR
					add_core_of = BUK
				}
				73 = {
					remove_core_of = UKR
					add_core_of = KHI
				}
				766 = {
					add_core_of = UKR
				}
				192 = {
					add_core_of = UKR
				}
				197 = {
					add_core_of = UKR
				}
				196 = {
					add_core_of = UKR
				}
				200 = {
					add_core_of = UKR
				}
				226 = {
					add_core_of = UKR
				}
				221 = {
					add_core_of = UKR
				}
				228 = {
					add_core_of = UKR
				}
				227 = {
					add_core_of = UKR
				}
			}
			if = {
				limit = {
					any_owned_state = {
						is_core_of = SOV
					}
				}
				SOV = {
					give_guarantee = ROOT
				}
			}
			else = {
				PRC = {
					give_guarantee = ROOT
				}
			}
			set_country_flag = polit_supported_china
		}

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 1
				always = yes
			}
		}
	}
	focus = {
		id = GEN_condemn_china
		icon = GFX_focus_jap_strike_south
		prerequisite = { focus = GEN_china }
		x = 2
		y = 3
		relative_position_id = infrastructure_effort_2
		cost = 10
		available = {
			NOT = {
				has_country_flag = polit_china
			}
			is_subject = no
			num_of_factories > 15
		}
		
		
		available_if_capitulated = yes

		completion_reward = {
			if = {
				limit = {
					is_ally_with = PRC
				}
				leave_faction = yes
				add_research_slot = -1
				PRC = {
					add_opinion_modifier = {
						target = ROOT
						modifier = faction_traitor
					}
				}
			}
			if = {
				limit = {
					is_ally_with = SOV
				}
				leave_faction = yes
				add_research_slot = -1
				SOV = {
					add_opinion_modifier = {
						target = ROOT
						modifier = faction_traitor
					}
				}
			}
		}

		ai_will_do = {
			factor = 0
			modifier = {
				factor = 0
				always = yes
			}
		}
	}
	
	### the russian special branch start
	focus = {
		id = SOV_infrastructure
		icon = GFX_focus_CHL_focus_on_cattle_and_wool
		x = 7
		y = 3
		relative_position_id = infrastructure_effort_2
		cost = 15
		allow_branch = {
			original_tag = SOV
		}
		available = {
			OR = {
				owns_state = 828
				owns_state = 821
				owns_state = 232
				owns_state = 329
			}
		}
		available_if_capitulated = no
		completion_reward = {
			329 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			232 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			821 = {
				add_resistance = -10
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			828 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = SOV_light_industry
		icon = GFX_focus_CHL_enlarge_the_textile_industries
		x = 7
		y = 4
		relative_position_id = infrastructure_effort_2
		cost = 15
		prerequisite = {
			focus = SOV_infrastructure
		}
		allow_branch = {
			original_tag = SOV
		}
		available = {
			OR = {
				owns_state = 828
				owns_state = 821
				owns_state = 232
				owns_state = 329
			}
		}
		available_if_capitulated = no
		completion_reward = {
			329 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			232 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			821 = {
				add_resistance = -10
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			828 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = SOV_heavy_industry_cin
		icon = GFX_focus_generic_hydroelectric_energy
		x = 7
		y = 5
		relative_position_id = infrastructure_effort_2
		cost = 20
		prerequisite = {
			focus = SOV_light_industry
		}
		allow_branch = {
			original_tag = SOV
		}
		available = {
			OR = {
				owns_state = 828
				owns_state = 821
				owns_state = 232
				owns_state = 329
			}
		}
		available_if_capitulated = no
		completion_reward = {
			329 = {
				add_core_of = SOV
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			232 = {
				#add_core_of = SOV
				set_resistance = 0
				set_compliance = 80
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			821 = {
				#add_core_of = SOV
				set_resistance = 0
				set_compliance = 80
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			828 = {
				add_core_of = SOV
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	focus = {
		id = SOV_rename_cities
		icon = GFX_focus_SOV_patriarch_of_all_russia
		x = 7
		y = 6
		relative_position_id = infrastructure_effort_2
		cost = 30
		prerequisite = {
			focus = SOV_heavy_industry_cin
		}
		allow_branch = {
			original_tag = SOV
		}
		available = {
			OR = {
				owns_state = 828
				owns_state = 821
				owns_state = 232
				owns_state = 329
			}
		}
		available_if_capitulated = no
		completion_reward = {
			set_province_name = { id = 9402 name = "Krasnokokshaysk" }
			set_province_name = { id = 108 name = "Ust'-Sysol'sk" }
			set_province_name = { id = 6701 name = "Port-Petrovsk" }
			set_province_name = { id = 7816 name = "Verkhne-Udinsk" }
			set_province_name = { id = 10627 name = "Verkhne-Eniseysk" }
			329 = {
				add_manpower = -1000
			}
			232 = {
				add_manpower = -30000
			}
			821 = {
				add_manpower = -20000
			}
			add_manpower = -51000
			455 = {
				add_manpower = 50000
			}
			330 = {
				add_manpower = 1000
			}
			every_owned_state = {
				add_core_of = SOV
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}
	### the russian special branch end

}
