#!gfx:interface\r56_goals.gfx
focus_tree = {
	id = polish_focus
	
	country = {
		factor = 0
		
		modifier = {
			add = 10
			tag = POL
			#OR = { #r56 removed not to cause troubles, NSB content is DLC locked anyway
			#	has_dlc = "Poland: United and Ready"
			#	has_dlc = "No Step Back"
			#}
		}
	}
	default = no

	continuous_focus_position = {
		x = 1150
		y = 1100
	}

	############################
	#### INDUSTRIAL SECTION ####
	############################

	focus = {
		id = POL_the_four_year_plan
		icon = GFX_focus_POL_the_four_year_plan
		x = 2
		y = 0
		cost = 5

		ai_will_do = {
			factor = 10
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }
		completion_reward = {
			#activate_mission = POL_four_year_plan_mission
			set_variable = {
				var = POL_investments_var
				value = 1
			}
			add_tech_bonus = {
				name = POL_the_four_year_plan
				bonus = 1.0
				uses = 1
				category = construction_tech
			}
			add_timed_idea = {
				idea = POL_four_year_plan_idea
				days = 1460
			}
		}
	}

	focus = { #r56
		id = POL_Stomil_Debica_Rubber_Plant
		icon = GFX_focus_generic_rubber
		prerequisite = { focus = POL_the_four_year_plan }
		available = {
			has_tech = rubber_plant_a
		}
		x = -4
		y = 1
		relative_position_id = POL_the_four_year_plan 
		cost = 5

		ai_will_do = {
			base = 15
			modifier = {
				factor = 3
				is_historical_focus_on = yes
				has_completed_focus = POL_the_sanation_right
				has_war = no
			}
			modifier = {
				factor = 0
				date < 1938.01.01
			}
		}

		completion_reward = {
			add_tech_bonus = {
				name = POL_Stomil_Debica_Rubber_Plant
				bonus = 0.75
				uses = 1				
				category = synth_resources
			}
			random_owned_controlled_state = {
				prioritize = { 88 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = rubber_refinery
						level = 1
						instant_build = yes
					}
			}
			custom_effect_tooltip = available_industrial_concern
			show_ideas_tooltip = POL_Debica_SA
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESOURCES }
	}

	focus = {
		id = POL_additional_research_slot1
		icon = GFX_focus_research
		prerequisite = { focus = POL_the_four_year_plan }
		x = 0
		y = 1
		relative_position_id = POL_the_four_year_plan
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			if = {
				limit = { amount_research_slots > 3 }
				num_of_owned_factories > 50
			}
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			add_research_slot = 1
		}
	}

	focus = {
		id = POL_central_region_strategy
		icon = GFX_goal_central_industrial_region_strategy
		prerequisite = { focus = POL_the_four_year_plan }
		x = 2
		y = 1
		relative_position_id = POL_the_four_year_plan
		cost = 10

		ai_will_do = {
			factor = 10
		}
		
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }
	
		complete_tooltip = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_state = {
				limit = { has_state_flag = POL_start_central_industrial_region_1 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = anti_air_building
					level = 1
					instant_build = yes
				}
			}
			random_state = {
				limit = { has_state_flag = POL_start_central_industrial_region_2 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = anti_air_building
					level = 1
					instant_build = yes
				}
			}
			random_state = {
				limit = { has_state_flag = POL_start_central_industrial_region_3 }
				add_extra_state_shared_building_slots = 2
			}
			add_tech_bonus = {
				name = POL_central_region_strategy
				bonus = 1.0
				uses = 1
				category = industry
			}
		}
	
		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_owned_controlled_state = {
				prioritize = { 10 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
					free_building_slots = {
						building = anti_air_building
						size > 0
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = anti_air_building
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_start_central_industrial_region_1
			}
			random_owned_controlled_state = {
				prioritize = { 90 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
					free_building_slots = {
						building = anti_air_building
						size > 0
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = anti_air_building
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_start_central_industrial_region_2
			}
			random_owned_controlled_state = {
				prioritize = { 92 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				set_state_flag = POL_start_central_industrial_region_3
			}
			add_tech_bonus = {
				name = POL_central_region_strategy
				bonus = 1.0
				uses = 1
				category = industry
			}
		}
	}

	focus = {
		id = POL_expansion_of_new_towns
		icon = GFX_goal_generic_construct_civ_factory
		prerequisite = { focus = POL_central_region_strategy }
		x = 2
		y = 1
		relative_position_id = POL_central_region_strategy
		cost = 5

		ai_will_do = {
			factor = 10
		}
		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_state = {
				limit = { has_state_flag = POL_expansion_of_new_towns_1 }
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_state = {
				limit = { has_state_flag = POL_expansion_of_new_towns_2 }
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}

		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_owned_controlled_state = {
				prioritize = { 86 }
				limit = {									
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_expansion_of_new_towns_1
			}
			random_owned_controlled_state = {
				prioritize = { 807 }
				limit = {									
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_expansion_of_new_towns_2
			}
			build_railway = {
				#level = 1
				start_province = 9508 
				target_province = 6558
			}
		}
	}

	focus = {
		id = POL_start_central_industrial_region
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = POL_expansion_of_new_towns }
		x = 0
		y = 1
		relative_position_id = POL_expansion_of_new_towns
		cost = 10

		ai_will_do = {
			factor = 10
		}

		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_state = {
				limit = { has_state_flag = POL_start_central_industrial_region_1 }
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}

		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_owned_controlled_state = {
				prioritize = { 88 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_start_central_industrial_region_1
			}
		}

	}
	
	focus = {
		id = POL_expand_central_industrial_region
		icon = GFX_goal_generic_build_tank
		prerequisite = { focus = POL_start_central_industrial_region }
		x = 0
		y = 1
		relative_position_id = POL_start_central_industrial_region
		cost = 10

		ai_will_do = {
			factor = 10
		}
		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_state = {
				limit = { has_state_flag = POL_start_central_industrial_region_1 }
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			random_state = {
				limit = { has_state_flag = POL_start_central_industrial_region_2 }
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}

		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_owned_controlled_state = {
				prioritize = { 89 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = POL_start_central_industrial_region_1
			}
			random_owned_controlled_state = {
				prioritize = { 91 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_start_central_industrial_region_2
			}
		}
	}

	focus = {
		id = POL_expand_katowice_mines
		icon = GFX_focus_generic_steel
		prerequisite = { focus = POL_expansion_of_new_towns }
		x = 2
		y = 1
		relative_position_id = POL_expansion_of_new_towns
		cost = 10

		ai_will_do = {
			factor = 10

			modifier = {
				factor = 0
				has_resources_in_country = {
					resource = steel
					amount > 30
				}
				has_resources_in_country = {
					resource = aluminium
					amount > 15
				}
			}
		}

		available = {
			762 = {
				owns_or_subject_of = yes
				controller = {
					tag = PREV.OWNER
				}
				free_building_slots = {
					building = steel_mill
					size > 1
					include_locked = yes
				}
				free_building_slots = {
					building = aluminum_mill
					size > 0
					include_locked = yes
				}
			}
		}
		
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESOURCES }

		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			762 = {
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = steel_mill
					level = 2
				}
				add_building_construction = {
					type = aluminum_mill
					level = 1
				}
			}
		}
	}

	focus = {
		id = POL_additional_research_slot2
		icon = GFX_goal_generic_education
		prerequisite = { focus = POL_expansion_of_new_towns }
	
		available = {
			if = {
				limit = { amount_research_slots > 3 }
				num_of_owned_factories > 50
			}
		}
		
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		x = 4
		y = 1
		relative_position_id = POL_expansion_of_new_towns
		cost = 10

		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			add_research_slot = 1
		}
	}

	focus = {
		id = POL_ideological_fanaticism
		icon = GFX_focus_POL_nationalist_education
		prerequisite = { focus = POL_additional_research_slot2 }
		mutually_exclusive = { focus = POL_abolish_segregated_seating }
		available = {
			NOT = {
				has_government = democratic
				has_government = communism
			}
		}
		
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_WAR_SUPPORT }
		x = -2
		y = 1
		relative_position_id = POL_additional_research_slot2
		cost = 10

		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			add_ideas = {
				POL_ideological_fanaticism
			}
		}
	}

	focus = {
		id = POL_abolish_segregated_seating
		icon = GFX_goal_support_democracy
		prerequisite = { focus = POL_additional_research_slot2 }
		mutually_exclusive = { focus = POL_ideological_fanaticism }
		available = {
			NOT = {
				has_government = fascism
			}
		}
		
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_MANPOWER }
		x = 0
		y = 1
		relative_position_id = POL_additional_research_slot2
		cost = 10

		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			add_ideas = {
				POL_segregated_seating_abolished
			}
		}
	}

	focus = {
		id = POL_fill_the_railways_gaps
		icon = GFX_focus_generic_public_works_A
		prerequisite = { focus = POL_the_four_year_plan }
		x = -2
		y = 1
		relative_position_id = POL_the_four_year_plan
		cost = 10 #maybe 20?

		ai_will_do = {
			factor = 10
		}

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

		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 2
			}
			every_owned_state = {
				limit = { 
					is_core_of = ROOT 
					free_building_slots = {
						building = infrastructure 
						size > 2
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			build_railway = {
				#level = 3
				path = { 438 3483 6557 11543 }
			}
			build_railway = {
				#level = 2
				path = { 11543 6520 11503 560 6280 11341 9304 }
			}
			build_railway = {
				#level = 2
				path = { 9236 277 }
			}
			build_railway = {
				#level = 2
				path = { 277 406 11391 11342 }
			}
			build_railway = {
				#level = 2
				path = { 11550 3562 438 }
			}
			build_railway = {
				#level = 2
				path = { 11357 11329 9316 9290 }
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			effect_tooltip = {
				swap_ideas = {
					remove_idea = POL_four_year_plan_idea
					add_idea = POL_The_Four_Year_Plan2
				}
			}
			custom_effect_tooltip = POL_armoured_trains2_tooltip_upgrade
			set_country_flag = POL_Upgraded_Armoured_Trains
			hidden_effect = { 
				remove_ideas = POL_four_year_plan_idea
				add_timed_idea = { idea = POL_The_Four_Year_Plan2 days = 1000 }
			}
		}
	}
	
	focus = {
		id = POL_national_defence_fund
		icon = GFX_goal_italy_redirect_military_fundings
		prerequisite = { focus = POL_fill_the_railways_gaps }
		x = 0
		y = 1
		relative_position_id = POL_fill_the_railways_gaps
		cost = 10

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0.7
				has_war_support < 0.64
			}
		}
		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			country_event = poland.110
			custom_effect_tooltip = decision_reward
			effect_tooltip = {
				add_timed_idea = {
					idea = POL_national_defence_fund_idea
					days = 720
				}
			}
			custom_effect_tooltip = alternative_decision_reward
			effect_tooltip = {
				custom_effect_tooltip = POL_Create_Units_ON
			}
		}
	}

	focus = { #r56
		id = POL_Huta_Stalowa_Wola_Steel_Mill
		icon = GFX_focus_generic_steel
		prerequisite = { focus = POL_fill_the_railways_gaps }
		x = -2
		y = 1
		relative_position_id = POL_fill_the_railways_gaps
		cost = 5

		ai_will_do = {
			base = 15
			modifier = {
				factor = 3
				is_historical_focus_on = yes
				has_completed_focus = POL_the_sanation_right
				has_war = no
			}
			modifier = {
				factor = 0
				date < 1938.01.01
			}
		}

		completion_reward = {
            add_tech_bonus = {
                name = industrial_bonus
                bonus = 1
                uses = 1
                category = steel_tech
            }			
			if = {
				limit = { 
					OR = {
						controls_state = 88
						any_other_country = {
							is_subject_of = ROOT
							controls_state = 88
						} 
					}
				}
				88 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = steel_mill
						level = 2
						instant_build = yes
					}
				}
			}
			random_owned_controlled_state = {
				prioritize = { 92 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			custom_effect_tooltip = available_industrial_concern
			show_ideas_tooltip = POL_HSW
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESOURCES}
	}

	focus = {
		id = POL_central_defence_of_poland
		icon = GFX_goal_fortify_the_westwall
		prerequisite = { focus = POL_fill_the_railways_gaps focus = POL_central_region_strategy }
		x = 2
		y = 1
		relative_position_id = POL_fill_the_railways_gaps
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			add_timed_idea = {
				idea = POL_central_defence_of_poland_idea
				days = 720
			}
		}
	}

	focus = {
		id = POL_develop_upper_silesia
		icon = GFX_goal_generic_consumer_goods
		prerequisite = { focus = POL_central_defence_of_poland }
		x = 0
		y = 1
		relative_position_id = POL_central_defence_of_poland
		cost = 5

		available = {
			controls_state = 762
		}

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_state = {
				limit = { has_state_flag = POL_develop_upper_silesia_1 }
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}

		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_owned_controlled_state = {
				prioritize = { 762 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_develop_upper_silesia_1
			}
		}
	}

	focus = {
		id = POL_agrarian_reform
		icon = GFX_goal_agrarian_reform
		prerequisite = { focus = POL_fill_the_railways_gaps }
		x = -1
		y = 2
		relative_position_id = POL_fill_the_railways_gaps
		cost = 10

		cancelable = no

		ai_will_do = {
			factor = 10
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		
		available = {
			NOT = { has_completed_focus = POL_organize_the_peasants_strike }
		}
		
		bypass = {
			NOT = {
				has_active_mission = POL_looming_peasants_strike_mission
				has_active_mission = POL_peasants_strike
				has_idea = POL_great_peasants_strike
				has_idea = POL_looming_peasants_strike
			}
		}

		select_effect = {
			if = {
				limit = {
					has_active_mission = POL_looming_peasants_strike_mission
				}
				add_days_mission_timeout  = {
					mission = POL_looming_peasants_strike_mission
					days = 70
				}
			}
			if = {
				limit = {
					has_active_mission = POL_peasants_strike
				}
				add_days_mission_timeout  = {
					mission = POL_peasants_strike
					days = 70
				}
			}
		}

		completion_reward = {
			custom_effect_tooltip = POL_delay_strike_70_days_tt
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			if = {
				limit = { has_idea = POL_great_peasants_strike }
				remove_ideas = POL_great_peasants_strike
			}
			else = {
				remove_ideas = POL_looming_peasants_strike
			}
		}		
	}
	
	focus = {
		id = POL_invest_in_eastern_poland
		icon = GFX_goal_generic_construct_civ_factory
		prerequisite = { focus = POL_agrarian_reform focus = POL_central_defence_of_poland }
		x = 0
		y = 2
		relative_position_id = POL_national_defence_fund
		cost = 10

		ai_will_do = {
			factor = 10
		}
		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_state = {
				limit = { has_state_flag = POL_develop_east_poland_1 }
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_state = {
				limit = { has_state_flag = POL_develop_east_poland_2 }
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_state = {
				limit = { has_state_flag = POL_develop_east_poland_3 }
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_state = {
				limit = { has_state_flag = POL_develop_east_poland_4 }
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}

		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_owned_controlled_state = {
				prioritize = { 93 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_develop_east_poland_1
			}
			random_owned_controlled_state = {
				prioritize = { 94 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_develop_east_poland_2
			}
			random_owned_controlled_state = {
				prioritize = { 95 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_develop_east_poland_3
			}
			random_owned_controlled_state = {
				prioritize = { 96 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_develop_east_poland_4
			}
		}
	}

	focus = {
		id = POL_invest_in_the_old_polish_region
		icon = GFX_goal_polish_wartime_industry
		prerequisite = { focus = POL_central_region_strategy }
		x = 0
		y = 1
		relative_position_id = POL_central_region_strategy
		cost = 5

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_state = {
				limit = { has_state_flag = POL_invest_in_the_old_polish_region_1 }
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}

		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_owned_controlled_state = {
				prioritize = { 88 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_invest_in_the_old_polish_region_1
			}
		}
	}

	focus = {
		id = POL_modernize_congressional_factories
		icon = GFX_focus_generic_industry_3
		prerequisite = { focus = POL_invest_in_the_old_polish_region }
		x = 0
		y = 1
		relative_position_id = POL_invest_in_the_old_polish_region
		cost = 10

		ai_will_do = {
			factor = 10
		}

		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_state = {
				limit = { has_state_flag = POL_modernize_congressional_factories_1 }
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_state = {
				limit = { has_state_flag = POL_modernize_congressional_factories_2 }
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_state = {
				limit = { has_state_flag = POL_modernize_congressional_factories_3 }
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}

		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_owned_controlled_state = {
				prioritize = { 10 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_modernize_congressional_factories_1
			}
			random_owned_controlled_state = {
				prioritize = { 90 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_modernize_congressional_factories_2
			}
			random_owned_controlled_state = {
				prioritize = { 98 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_modernize_congressional_factories_3
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				custom_effect_tooltip = available_mio_tt
				# show_mio_tooltip = POL_Starachowice_Works_organization
				# mio:POL_Starachowice_Works_organization = {
				# 	add_mio_size = 1
				# }
				mio:POL_fb_organization = {
					add_mio_funds = 1000
				}
			}
			else = {
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = POL_Starachowice_Works
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = POL_fb
			}						
		}
	}

	focus = {
		id = POL_warsaw_main_railway_station
		icon = GFX_focus_POL_warsaw_main_station
		prerequisite = { focus = POL_modernize_congressional_factories }
		x = 0
		y = 1
		relative_position_id = POL_modernize_congressional_factories
		cost = 10

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_state = {
				prioritize = { 10 }
				limit = { has_state_flag = POL_warsaw_main_railway_station_1 }
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
		}

		completion_reward = {
			add_to_variable = {
				var = POL_investments_var
				value = 1
			}
			random_owned_controlled_state = {
				prioritize = { 10 }
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
				}
				if = {
					limit = { ROOT = { controls_state = 88 } }
					
					build_railway = { #Warsaw to Krakow 
						level = 2 
						start_state = THIS
						target_state = 88
					}
				}			
				if = {
					limit = { ROOT = { controls_state = 92 } }

					build_railway = { #Warsaw to Lublin
						level = 2 
						start_state = THIS
						target_state = 92
					}
				}
				if = {
					limit = { ROOT = { controls_state = 85 } }
			
					build_railway = { #Warsaw to Danzig 
						level = 2 
						start_state = THIS
						target_state = 85
					}
				}	
				if = {
					limit = { ROOT = { controls_state = 784 } }

					build_railway = { #Warsaw to Wilno
						level = 2 
						start_state = THIS
						target_state = 784
					}
				}
				set_state_flag = POL_warsaw_main_railway_station_1
			}
		}
			#	Increase Infrastructure in Warsaw
	}

	focus = { #r56
		id = POL_Start_The_Fifteen_Year_Plan
		icon = GFX_focus_generic_the_giant_wakes
		prerequisite = { focus = POL_develop_upper_silesia focus = POL_warsaw_main_railway_station focus = POL_expand_central_industrial_region  }
		available = {
			is_subject = no
			surrender_progress < 0.1
			NOT = {
				has_idea = POL_four_year_plan_idea
			}
		}
		x = 0
		y = 1
		relative_position_id = POL_warsaw_main_railway_station
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 98 }
				limit = {
					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
				}
			}
			random_owned_controlled_state = {
				prioritize = { 95 }
				limit = {
					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
				}
			}
			random_owned_controlled_state = {
				prioritize = { 94 }
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 1
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = { #r56
		id = POL_Phase_I_Military_Rearmament
		icon = GFX_focus_generic_tank_production
		prerequisite = { focus = POL_Start_The_Fifteen_Year_Plan }
		x = 0
		y = 1
		relative_position_id = POL_Start_The_Fifteen_Year_Plan
		cost = 10
		
		available = {
			is_subject = no
			surrender_progress < 0.1
			num_of_factories > 49
		}

		ai_will_do = {
			factor = 15
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 90 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 88 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 92 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = { #r56
		id = POL_Phase_II_Infrastructure_Development
		icon = GFX_goal_generic_modernizing_the_cavalry2
		prerequisite = { focus = POL_Phase_I_Military_Rearmament }
		
		x = 0
		y = 1
		relative_position_id = POL_Phase_I_Military_Rearmament
		cost = 10

		available = {
			is_subject = no
			surrender_progress < 0.1
			num_of_factories > 59
		}
		
		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			every_state = {
				limit = {
					OR = {
						state = 86
						state = 98
						state = 87
						state = 90
						state = 91
						state = 95
						state = 96
					}
					is_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
					free_building_slots = {
						building = infrastructure
						size > 0
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = { #r56
		id = POL_Construct_Hydroelectric_Power_Plants
		icon = GFX_goal_generic_production
		prerequisite = { focus = POL_Phase_II_Infrastructure_Development }
		x = 1
		y = 1
		relative_position_id = POL_Phase_II_Infrastructure_Development
		cost = 5

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 2
				is_historical_focus_on = yes
				has_completed_focus = POL_the_sanation_right
				has_war = no
			}
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 88 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = { #r56
		id = POL_Electrification_of_the_Countryside
		icon = GFX_goal_generic_radar
		prerequisite = { focus = POL_Construct_Hydroelectric_Power_Plants }
		x = 0
		y = 1
		relative_position_id = POL_Construct_Hydroelectric_Power_Plants
		cost = 5

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_political_power = 60
			random_owned_controlled_state = {
				prioritize = { 97 }
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 1
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL }
	}
	
	focus = { #r56
		id = POL_Phase_III_Agriculture_and_Education
		icon = GFX_goal_tfv_generic_tech_sharing
		prerequisite = { focus = POL_Phase_II_Infrastructure_Development }
		
		x = -1
		y = 1
		relative_position_id = POL_Phase_II_Infrastructure_Development
		cost = 10

		available = {
			is_subject = no
			surrender_progress < 0.1
			num_of_factories > 69
		}
		
		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 95 }
				limit = {
					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_timed_idea = {
				idea = POL_Agriculture_Modernization_and_Education_Effort
				days = 700
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = { #r56
		id = POL_Phase_IV_Urbanization
		icon = GFX_focus_generic_industry_3
		prerequisite = { focus = POL_Phase_III_Agriculture_and_Education }
		x = 0
		y = 1
		relative_position_id = POL_Phase_III_Agriculture_and_Education
		cost = 10

		available = {
			is_subject = no
			surrender_progress < 0.1
			num_of_factories > 89
		}
		
		ai_will_do = {
			factor = 10
		}
		
		completion_reward = {
			if = {
				limit = { has_idea = POL_strenghten_the_zloty }
				remove_ideas = POL_strenghten_the_zloty
			}
			if = {
				limit = { has_idea = POL_devalue_the_zloty }
				remove_ideas = POL_devalue_the_zloty
			}
			random_owned_controlled_state = {
				prioritize = { 86 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 91 }
				limit = {
					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
				}
			}
			random_owned_controlled_state = {
				prioritize = { 96 }
				limit = {
					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
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY  FOCUS_FILTER_RESOURCES}
	}
	
	focus = { #r56
		id = POL_Expansion_Of_New_Towns
		icon = GFX_focus_generic_expansion_of_new_towns
		prerequisite = { focus = POL_Phase_IV_Urbanization }
		x = 1
		y = 1
		relative_position_id = POL_Phase_IV_Urbanization
		cost = 5

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 91 }
				limit = {									
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = { #r56
		id = POL_Phase_V_Equalize_Poland_A_and_B
		icon = GFX_goal_generic_equalize_AB
		prerequisite = { focus = POL_Phase_IV_Urbanization }
		
		x = -1
		y = 1
		relative_position_id = POL_Phase_IV_Urbanization
		cost = 10

		available = {
			is_subject = no
			surrender_progress < 0.1
			num_of_factories > 99
		}
		
		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			if = {
				limit = { has_idea = POL_Divided_Nation }
				remove_ideas = POL_Divided_Nation
			}
			random_owned_controlled_state = {
				prioritize = { 92 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 94 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 97 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	############################
	####### ARMY SECTION #######
	############################


	focus = {
		id = POL_prepare_for_the_next_war
		icon = GFX_focus_generic_collective_defense
		
		x = 27
		y = 0
		cost = 5

		ai_will_do = {
			factor = 5
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_doctrine_cost_reduction = {
				name = POL_prepare_for_the_next_war
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
			#1x 50% cost reduction for one land doctrine research
		}
	}

	focus = { #r56
		id = POL_Plan_W
		icon = GFX_goal_generic_army_mobilization
		prerequisite = { focus = POL_prepare_for_the_next_war }
		
		x = -2
		y = 1
		relative_position_id = POL_prepare_for_the_next_war
		cost = 5

		available = {
			has_completed_focus = POL_national_defence_fund
		}
		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			army_experience = 5
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = POL_Plan_W
		}
		search_filters = { FOCUS_FILTER_ARMY_XP }
	}
	
	focus = { #r56
		id = POL_Plan_Z
		icon = GFX_goal_generic_army_doctrines
		prerequisite = { focus = POL_Plan_W }
		
		x = -1
		y = 1
		relative_position_id = POL_Plan_W
		cost = 5

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_doctrine_cost_reduction = {
				name = POL_Plan_Z
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = { #r56
		id = POL_Class_A_Reservists
		icon = GFX_goal_class_a_reservists
		prerequisite = { focus = POL_Plan_W }
		available = {
			NOT = { has_idea = POL_Neutral_Foreign_Policy }
		}
		
		bypass = {
			has_completed_focus = POL_polish_militarism
		}

		x = 1
		y = 1
		relative_position_id = POL_Plan_W
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_ideas = POL_militarism_focus
		}
		search_filters = {  FOCUS_FILTER_MANPOWER }
	}
	
	focus = { #r56
		id = POL_Wartime_Industry
		icon = GFX_goal_polish_wartime_industry
		prerequisite = { focus = POL_Class_A_Reservists }
		prerequisite = { focus = POL_Plan_Z }
		available = {
			OR = {
				has_army_manpower = { size > 999999 }
				num_of_factories > 75
				has_war_with = GER
				has_war_with = SOV
				any_enemy_country = {
					ic_ratio = { 
						tag = ROOT 
						ratio > 0.8
					}
				}
			}
		}
		
		x = 1
		y = 1
		relative_position_id = POL_Plan_Z
		cost = 5
		ai_will_do = {
			factor = 10
		}

		cancel_if_invalid = no
		continue_if_invalid = yes
		available_if_capitulated = yes

		completion_reward = {
			add_timed_idea = { idea = POL_Wartime_Industry_Effort days = 365 }
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = { #r56
		id = POL_Expand_the_Lucznik_State_Arms_Factory
		icon = GFX_focus_generic_FB
		prerequisite = { focus = POL_prepare_for_the_next_war }
		x = 2
		y = 1
		relative_position_id = POL_prepare_for_the_next_war
		cost = 5
		
		available = {
			OR = {
				date > 1938.01.01
				has_war_support > 0.60
			}
		}

		ai_will_do = {
			factor = 15
		}

		completion_reward = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 2000
				producer = POL
			}
			random_owned_controlled_state = {
				prioritize = { 90 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MILITARY_EQUIPMENT }
	}

	focus = { #r56
		id = POL_Kasprzycki_Gamelin_Convention
		icon = GFX_ENG_alliance
		prerequisite = { focus = POL_prepare_for_the_next_war }
		available = {
			has_guaranteed = FRA
			is_subject = no
			is_in_faction = no
			NOT = {
				OR = {
					has_completed_focus = POL_Polish_Revanchism
					has_completed_focus = POL_Pressure_Czechoslovakia
					has_completed_focus = POL_Silesia_Or_War
				}
			}
			OR = {
				has_government = neutrality
				has_government = democratic
			}
			NOT = { has_war_with = FRA }
			OR = {
				FRA = { 
					is_faction_leader = yes
					has_government = democratic
				}
				ENG = {
					is_faction_leader = yes
					is_in_faction_with = FRA
					has_government = democratic
					NOT = { has_war_with = POL }
				}
			}
			OR = {
				SOV = {
					OR = {
						has_offensive_war_with = FRA
						has_offensive_war_with = POL
						is_justifying_wargoal_against = POL
						if = {
							limit = { has_global_flag = SOV_old_focus_tree }
							has_completed_focus = SOV_claims_on_poland_old
						}
						else = { has_completed_focus = SOV_claims_on_poland }	
					}
				}
				GER = {
					OR = {
						has_offensive_war_with = FRA
						has_offensive_war_with = POL
						is_justifying_wargoal_against = POL
						has_completed_focus = GER_reassert_eastern_claims
					}
				}
			}
		}
		bypass = {
			OR = {
				is_in_faction_with = FRA
				is_in_faction_with = ENG
			}
		}

		x = 4
		y = 1
		relative_position_id = POL_prepare_for_the_next_war
		cost = 1

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 15
				is_historical_focus_on = yes
			}
		}

		

		completion_reward = {
			if = {
				limit = {
					has_defensive_war = no
				}
				set_global_flag = POL_gamelin_convention
				custom_effect_tooltip = POL_gamelin_convention_tooltip
			}
			if = {
				limit = {
					has_defensive_war = yes
				}
				if = {
					limit = { FRA = { is_faction_leader = yes } }
					FRA = { country_event = poland.126 }
				}
				if = {
					limit = {
						ENG = {
							is_faction_leader = yes
							is_in_faction_with = FRA
						}
					}
					ENG = { country_event = poland.126 }
				}			
			}			
		}
	}
	
	focus = { #r56
		id = POL_Modlin_Fortress
		icon = GFX_goal_generic_fortify_city
		prerequisite = { focus = POL_prepare_for_the_next_war }
		available = {
			10 = {
				owns_or_subject_of = yes
			}
		}
		
		x = 7
		y = 1
		relative_position_id = POL_prepare_for_the_next_war
		cost = 2.9

		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 10 }
				limit = {
					free_building_slots = {
						building = anti_air_building
						size > 0
					}
				}
				add_building_construction = {
					type = anti_air_building
					level = 1
					instant_build = yes
				}
			}
			10 = {
				add_building_construction = {
					type = bunker
					province = 3544
					level = 3
					instant_build = yes
				}
			}
			10 = {
				add_building_construction = {
					type = bunker
					province = 524
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POL_new_military_academy
		icon = GFX_focus_generic_military_academy
		prerequisite = { focus = POL_prepare_for_the_next_war }
		
		available_if_capitulated = yes
		x = 0
		y = 1
		relative_position_id = POL_prepare_for_the_next_war
		cost = 10
		
		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			army_experience = 20
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = {
				POL_new_military_academy_idea
			}
		}
		search_filters = { FOCUS_FILTER_ARMY_XP }
	}

	focus = { #r56
		id = POL_KOR_Committee_For_Defense
		icon = GFX_goal_generic_air_doctrine
		prerequisite = { focus = POL_new_military_academy }
		x = 1
		y = 1
		relative_position_id = POL_new_military_academy
		
		cost = 5

		ai_will_do = {
			factor = 11
		}

		completion_reward = {
			add_ideas = POL_SeKOR
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POL_standardisation_of_equipment
		icon = GFX_goal_generic_small_arms
		prerequisite = { focus = POL_new_military_academy }
		
		x = 0
		y = 2
		relative_position_id = POL_new_military_academy
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		completion_reward = {
			army_experience = 10
			custom_effect_tooltip = generic_skip_one_line_tt
			add_tech_bonus = {
				name = POL_standardisation_of_equipment
				bonus = 1.0
				uses = 1
				category = infantry_weapons
			}
		}
		search_filters = { FOCUS_FILTER_ARMY_XP FOCUS_FILTER_RESEARCH }
	}
	
	focus = { #r56
		id = POL_Land_Mine_Detectors
		icon = GFX_focus_generic_cryptologic_bomb
		prerequisite = { focus = POL_standardisation_of_equipment }
		x = 0
		y = 1
		relative_position_id = POL_standardisation_of_equipment
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			set_technology = { POL_Man_Portable_Land_Mine_Detectors = 1 }
			custom_effect_tooltip = POL_Man_Portable_Land_Mine_Detectors_tt
			add_tech_bonus = {
				name = POL_Land_Mine_Detectors
				bonus = 3.0
				uses = 1
				category = engineers_tech
			}
			hidden_effect = {
				country_event = poland.109
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POL_army_modernisation
		icon = GFX_focus_generic_army_modernizations
		prerequisite = { focus = POL_standardisation_of_equipment }
		
		x = -4
		y = 1
		relative_position_id = POL_standardisation_of_equipment
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH } 
		completion_reward = {
			add_doctrine_cost_reduction = {
				name = POL_army_modernisation
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
			add_tech_bonus = {
				name = POL_army_modernisation
				bonus = 1.0
				uses = 1
				category = infantry_weapons
			}
		}
	}

	focus = {
		id = POL_modernising_the_cavalry
		icon = GFX_goal_generic_cavalry
		prerequisite = { focus = POL_army_modernisation }
		mutually_exclusive = { focus = POL_attract_foreign_motors }
		
		x = -3
		y = 1
		relative_position_id = POL_army_modernisation
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_tech_bonus = {
				name = POL_modernising_the_cavalry
				ahead_reduction = 1.0
				bonus = 2.0
				uses = 1
				category = motorized_equipment
				category = recon_tech
			}
		}
	}

	focus = {
		id = POL_attract_foreign_motors
		icon = GFX_goal_generic_army_motorized
		prerequisite = { focus = POL_army_modernisation }
		mutually_exclusive = { focus = POL_modernising_the_cavalry }
		
		x = -1
		y = 1
		relative_position_id = POL_army_modernisation
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_tech_bonus = {
				name = POL_attract_foreign_motors
				bonus = 1.0
				uses = 1
				category = motorized_equipment
			}
			unlock_decision_category_tooltip = POL_invite_foreign_motor_decisions
		}
	}

	focus = {
		id = POL_study_foreign_tanks
		icon = GFX_focus_generic_study_foreign_tanks
		prerequisite = { focus = POL_modernising_the_cavalry focus = POL_attract_foreign_motors }
		
		x = 1
		y = 1
		relative_position_id = POL_modernising_the_cavalry
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			if = {
				limit = {
					NOT = { 
						has_dlc = "No Step Back"
					} 
				}
				add_tech_bonus = {
					name = POL_study_foreign_tanks
					bonus = 3.0
					uses = 1
					technology = basic_light_tank
					technology = improved_light_tank
					category = amphibious_armor_tech
				}
			}			
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				add_tech_bonus = {
					name = POL_study_foreign_tanks
					bonus = 3.0
					uses = 1
					technology = basic_light_tank_chassis
					technology = improved_light_tank_chassis
					category = amphibious_armor_tech
				}
			}			
			if = { 
				limit = { 
					NOT = { has_war_with = FRA }
					NOT = { is_in_faction_with = GER }
					NOT = { 
						has_dlc = "No Step Back"
					} 					
				}
				add_equipment_to_stockpile = {
					type = light_tank_equipment_1 
					amount = 40
					producer = FRA
				}
			}
			if = { 
				limit = { 
					NOT = { has_war_with = FRA }
					NOT = { is_in_faction_with = GER } 
					has_dlc = "No Step Back"
				}
				add_equipment_to_stockpile = {
					type = light_tank_chassis_1 
					amount = 40
					producer = FRA
				}
			}	
			if = {
				limit = {
					is_in_faction_with = GER
					NOT = {
						has_dlc = "No Step Back"
					}
				}
				add_equipment_to_stockpile = {
					type = light_tank_equipment_1 
					amount = 40
					producer = GER
				}
			}
			if = {
				limit = {
					is_in_faction_with = GER
					has_dlc = "No Step Back"
				}
				add_equipment_to_stockpile = {
					type = light_tank_chassis_1 
					amount = 40
					producer = GER
				}
			}			
			if = {
				limit = {
					NOT = {
						has_dlc = "No Step Back"
					}
				}
				custom_effect_tooltip = POL_Factory_Conversion_Tooltip
				create_equipment_variant = {
					name = "TKS (wz. 38 FK-A)"
					type = gw_tank_equipment
					upgrades = {
						tank_reliability_upgrade = 3
						tank_engine_upgrade = 5
						tank_armor_upgrade = 1
						tank_gun_upgrade = 4
					}
				}				
			}
		}
	}
	
	focus = { #r56
		id = POL_Gundlach_Periscope
		icon = GFX_focus_POL_gundlach_periscope
		prerequisite = { focus = POL_study_foreign_tanks }
		
		x = -1
		y = 1
		relative_position_id = POL_study_foreign_tanks
		cost = 5

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			set_technology = { Reversible_Periscope = 1 }
			custom_effect_tooltip = Reversible_Periscope_tt
			custom_effect_tooltip = {
				localization_key = available_scientist_one_line_tt
				CHARACTER = POL_rudolf_gundlach
			}
			mio:POL_pzinz_organization = {
				add_mio_funds = 500
			}
			if = {
				limit = { 
					ROOT = {
						has_character = POL_rudolf_gundlach
					}
				}
				ROOT = { #He is the GUY
					POL_rudolf_gundlach = {
						add_scientist_xp = {
							experience = 100
							specialization = specialization_land
						}
					}
				}
			}
		}
	}

	focus = {
		id = POL_cruiser_tank_experiments
		icon = GFX_goal_polish_tank
		prerequisite = { focus = POL_study_foreign_tanks }
		
		x = 1
		y = 1
		relative_position_id = POL_study_foreign_tanks
		cost = 10

		bypass = {
			has_tech = advanced_light_tank
			has_tech = basic_medium_tank
		}

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			if = {
				limit = {
					NOT = {
						has_dlc = "No Step Back"
					}
				}
				#1x 50% reduction on research for medium tanks
				add_tech_bonus = {
					name = POL_cruiser_tank_experiments
					bonus = 0.75
					ahead_reduction = 2
					uses = 1
					technology = advanced_light_tank
				}
				add_tech_bonus = {
					name = POL_cruiser_tank_experiments
					bonus = 0.5
					uses = 1
					technology = basic_medium_tank
				}				
			}
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				#1x 50% reduction on research for medium tanks
				add_tech_bonus = {
					name = POL_cruiser_tank_experiments
					bonus = 0.75
					ahead_reduction = 2
					uses = 1
					technology = advanced_light_tank_chassis
				}
				add_tech_bonus = {
					name = POL_cruiser_tank_experiments
					bonus = 0.5
					uses = 1
					technology = basic_medium_tank_chassis
					technology = improved_medium_tank_chassis
				}				
			}			

			custom_effect_tooltip = POL_Factory_Conversion_Tooltip
			effect_tooltip = {
				create_equipment_variant = {
					name = "9TP"
					type = light_tank_equipment_2
					upgrades = {
						tank_reliability_upgrade = 2
						tank_engine_upgrade = 2
						tank_armor_upgrade = 2
						tank_gun_upgrade = 0
					}
				}
			}
		}
	}

	focus = {
		id = POL_Artillery_Motorization #r56 renamed
		icon = GFX_goal_generic_army_artillery2
		prerequisite = { focus = POL_army_modernisation }
		
		x = 3
		y = 1
		relative_position_id = POL_army_modernisation
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		completion_reward = {
			add_tech_bonus = {
				name = POL_Artillery_Motorization
				bonus = 1.0
				uses = 1
				category = motorized_equipment
				category = artillery
			}
			add_equipment_to_stockpile = {
				type = motorized_equipment_1
				amount = 200
				producer = ITA
			}
			#1 x 50% for Artillery Equipment
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_MILITARY_EQUIPMENT }
	}

	focus = { #r56
		id = POL_Cegielski_Artillery_Factory
		icon = GFX_goal_generic_munitions_factories
		prerequisite = { focus = POL_Artillery_Motorization }
		
		x = 1
		y = 1
		relative_position_id = POL_Artillery_Motorization
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_tech_bonus = {
				name = POL_Cegielski_Artillery_Factory
				bonus = 0.75
				uses = 1
				category = artillery
			}
			random_owned_controlled_state = {
				prioritize = { 88 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}

			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				#custom_effect_tooltip = available_mio_tt ## Change to MIO trait
				#show_mio_tooltip = POL_H_Cegielski_organization

				mio:POL_pzinz_organization = {
					add_mio_funds = 750
				}
			}
			else = {
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = POL_H_Cegielski

			}

		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
	}
	
	focus = { #r56
		id = POL_Modernize_The_Starachowice_Works
		icon = GFX_goal_generic_army_artillery
		prerequisite = { focus = POL_Artillery_Motorization }
		
		x = -1
		y = 1
		relative_position_id = POL_Artillery_Motorization
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_tech_bonus = {
				name = POL_Modernize_The_Starachowice_Works
				bonus = 0.75
				uses = 1
				category = artillery
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			random_owned_controlled_state = {
				prioritize = { 90 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				# mio:POL_Starachowice_Works_organization = {
				# 	add_mio_size = 1
				# 	add_mio_funds = 1000
				# }
				mio:POL_smpa_organization = {
					complete_mio_trait = POL_mio_trait_starachowice_works_artillery_production_methods
				}
			}
			else = {
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = POL_Starachowice_Works
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POL_Wz_35_Anti_Tank_Rifle #renamed
		icon = GFX_goal_tank_hunt
		prerequisite = { focus = POL_army_modernisation }
		
		x = 1
		y = 1
		relative_position_id = POL_army_modernisation
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_tech_bonus = {
				name = POL_Wz_35_Anti_Tank_Rifle
				bonus = 1.0
				uses = 1
				category = cat_anti_tank
			}
			#1x 50% bonus for Anti-Tank guns
			set_technology = { infantry_at = 1 }
			#add_tech_bonus = {
			#	name = POL_Wz_35_Anti_Tank_Rifle
			#	ahead_reduction = 0.5
			#	bonus = 0.25
			#	uses = 1
			#	technology = infantry_at
			#}
			custom_effect_tooltip = POL_Flexible_AT
			hidden_effect = { set_technology = { Flexible_AT = 1 } }
		}
	}

	focus = {
		id = POL_anti_blitz_vehicles
		icon = GFX_goal_generic_army_artillery2
		prerequisite = { focus = POL_study_foreign_tanks }
		prerequisite = { focus = POL_Wz_35_Anti_Tank_Rifle }
		
		x = 3
		y = 1
		relative_position_id = POL_study_foreign_tanks
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_ideas = POL_anti_blitz_vehicles
		}
	}

	focus = {
		id = POL_adaptive_designs
		icon = GFX_goal_generic_production2
		prerequisite = { focus = POL_attract_foreign_motors }
		prerequisite = { focus = POL_Wz_35_Anti_Tank_Rifle }
		
		x = 1
		y = 1
		relative_position_id = POL_attract_foreign_motors
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_country_flag = invited_motor_co
			IF = {
				limit = { NOT = { has_dlc = "Arms Against Tyranny" } }
				OR = {
					has_idea = POL_vauxhall
					has_idea = POL_ford
					has_idea = POL_somua
				}
			}
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				IF = { 
					limit = { has_country_flag = POL_somua_motors }
					mio:FRA_somua_organization = {
						add_mio_funds = 500
						add_mio_funds_gain_factor = 0.1
					}

				}
				IF = { 
					limit = { has_country_flag = POL_vauxhall_motors }
					mio:ENG_vauxhall_organization = {
						add_mio_funds = 500
						add_mio_funds_gain_factor = 0.1
					}
				}
				IF = { 
					limit = { has_country_flag = POL_ford_motors }
					mio:USA_ford_motor_company_organization = {
						add_mio_funds = 500
						add_mio_funds_gain_factor = 0.1
					}
				}
			}
			ELSE = {

				if = {
					limit = {
						has_idea = POL_vauxhall
					}
					swap_ideas = {
						remove_idea = POL_vauxhall
						add_idea = POL_vauxhall_free
					}
				}
				else_if = {
					limit = {
						has_idea = POL_somua
					}
					swap_ideas = {
						remove_idea = POL_somua
						add_idea = POL_somua_free
					}
				}
				else_if = {
					limit = {
						has_idea = POL_ford
					}
					swap_ideas = {
						remove_idea = POL_ford
						add_idea = POL_ford_free
					}
				}
				else = {
					custom_effect_tooltip = POL_motors_become_free_tt
				}
			}
		}
	}


	############################
	##### AIRFORCE SECTION #####
	############################


	focus = {
		id = POL_Military_Aviation_Exports #renamed
		icon = GFX_goal_generic_air_production
		prerequisite = { focus = POL_standardisation_of_equipment }
		relative_position_id = POL_standardisation_of_equipment
		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		x = 4
		y = 1
		cost = 10

		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes

		complete_tooltip = {
			random_state = {
				limit = { has_state_flag = POL_air_base_expansion_1 }
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 10 }
				limit = {
					free_building_slots = {
						building = air_base
						size > 1
					}
				}
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
				set_state_flag = POL_air_base_expansion_1
			}
			#Add 2 Airbases in Warsaw
			custom_effect_tooltip = POL_Factory_Conversion_Tooltip
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				create_equipment_variant = {
					name = "PZL P.11G Kobuz" 
					type = small_plane_airframe_1
					modules = {
						fixed_main_weapon_slot = light_mg_4x
						fixed_auxiliary_weapon_slot_1 = light_mg_2x
						engine_type_slot = engine_2_1x
						special_type_slot_1 = empty
					}
					icon = "GFX_POL_early_fighter_medium"
				}
				create_equipment_variant = {
					name = "PZL P.24F" 
					type = small_plane_airframe_1
					modules = {
						fixed_main_weapon_slot = aircraft_cannon_1_2x
						fixed_auxiliary_weapon_slot_1 = light_mg_2x
						engine_type_slot = engine_2_1x
						special_type_slot_1 = empty
					}
					icon = "GFX_POL_early_fighter_medium"
				}
				create_equipment_variant = {
					name = "PZL.43A Karaś" 
					type = small_plane_airframe_0
					modules = {
						fixed_main_weapon_slot = light_mg_2x
						fixed_auxiliary_weapon_slot_1 = bomb_locks
						engine_type_slot = engine_2_1x
						special_type_slot_1 = empty
					}
					icon = "GFX_POL_CAS2_medium"
				}
			}
			else = {	
				create_equipment_variant = {
				name = "PZL P.11g Kobuz"
				type = fighter_equipment_0
				upgrades = {
					plane_gun_upgrade = 3
					plane_range_upgrade = 0  
					plane_engine_upgrade = 5
					plane_reliability_upgrade = 5
					}
				}
				create_equipment_variant = {
					name = "PZL P.24F"
					type = fighter_equipment_1
					upgrades = {
						plane_gun_upgrade = 2
						plane_range_upgrade = 0  
						plane_engine_upgrade = 2
						plane_reliability_upgrade = 2
					}
				}
				create_equipment_variant = {
					name = "PZL.43A Karaś"
					type = CAS_equipment_1
					upgrades = {
						plane_cas_upgrade = 0
						plane_range_upgrade = 0  
						plane_engine_upgrade = 2
						plane_reliability_upgrade = 0
					}
				}
			}
			hidden_effect = {
				country_event = poland.90
			}
			
		}
	}

	focus = {
		id = POL_fighter_modernisation
		icon = GFX_goal_generic_air_fighter
		prerequisite = { focus = POL_Military_Aviation_Exports }
		
		x = 1
		y = 1
		relative_position_id = POL_Military_Aviation_Exports
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				add_tech_bonus = {
					name = POL_fighter_modernisation
					bonus = 1.0
					uses = 1
					category = light_air
				}
			}
			else = {
				add_tech_bonus = {
					name = POL_fighter_modernisation
					bonus = 1.0
					uses = 1
					category = light_fighter
				}
			}

		}
	}



	focus = {
		id = POL_air_innovations
		icon = GFX_goal_generic_build_airforce
		prerequisite = { focus = POL_Military_Aviation_Exports }
		
		x = -1
		y = 1
		relative_position_id = POL_Military_Aviation_Exports
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_doctrine_cost_reduction = {
				name = POL_air_innovations
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
			#1x50% research bonus to Air Doctrine Research
			add_ideas = POL_Advanced_Pilot_Training_Program
		}
	}

	focus = {
		id = POL_heavy_fighter_concept
		icon = GFX_goal_generic_air_fighter2
		prerequisite = { focus = POL_air_innovations focus = POL_fighter_modernisation }
		
		x = 1
		y = 1
		relative_position_id = POL_air_innovations
		cost = 10

		ai_will_do = {
			factor = 10
		}
		
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				create_equipment_variant = {
					name = "PZL.38 Wilk" #
					type = medium_plane_fighter_airframe_1 
					modules = {
						fixed_main_weapon_slot = heavy_mg_4x
						fixed_auxiliary_weapon_slot_1 = aircraft_cannon_1_1x
						engine_type_slot = engine_2_2x
						special_type_slot_1 = empty
					}
					icon = "GFX_USA_CAS1_medium"
				}
				add_tech_bonus = {
					name = POL_heavy_fighter_concept
					bonus = 1.0
					uses = 1				
					category = medium_air
				}
			}
			else = {
				add_tech_bonus = {
					name = POL_heavy_fighter_concept
					bonus = 1.0
					uses = 1				
					category = cat_heavy_fighter
				}
			}
		}
	}

	focus = {
		id = POL_naval_bomber_experiments
		icon = GFX_goal_generic_air_naval_bomber
		prerequisite = { focus = POL_air_innovations }
		
		x = -1
		y = 1
		relative_position_id = POL_air_innovations
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				add_tech_bonus = {
					name = POL_naval_bomber_experiments
					bonus = 0.75
					uses = 1				
					category = cat_torpedoes
				}
				add_tech_bonus = {
					name = POL_naval_bomber_experiments
					bonus = 1.0
					uses = 1				
					category = medium_air
				}
			}
			else = {
				add_tech_bonus = {
					name = POL_naval_bomber_experiments
					bonus = 1.0
					uses = 1				
					category = naval_bomber
				}
			}
		}
	}
	
	focus = { #r56
		id = POL_Independent_Parachute_Brigades
		icon = GFX_focus_generic_paratrooper
		prerequisite = { focus = POL_air_innovations }
		
		x = -2
		y = 2
		relative_position_id = POL_air_innovations
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_tech_bonus = {
				name = POL_Independent_Parachute_Brigades
				bonus = 3.0
				uses = 1
				category = para_tech
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_doctrine_cost_reduction = {
					name = special_forces_bonus
					cost_reduction = 0.5
					uses = 1
					category = special_forces_doctrine
				}
			}
			else = {
				add_tech_bonus = {
					name = special_forces_bonus
					bonus = 0.5
					uses = 1
					category = r56_special_forces_training_tech 
				}	
			}
            hidden_effect = {
                set_country_flag = cite_an_airborne_unit_flag
            }
            unlock_decision_tooltip = { decision = cite_an_airborne_unit show_effect_tooltip = yes }						
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POL_medium_bomber_focus
		icon = GFX_goal_generic_occupy_start_war
		prerequisite = { focus = POL_heavy_fighter_concept focus = POL_air_innovations }
		mutually_exclusive = { focus = POL_light_bomber_focus }
		
		x = -1
		y = 1
		relative_position_id = POL_heavy_fighter_concept
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				add_tech_bonus = {
					name = POL_medium_bomber_focus
					technology = basic_medium_airframe
					technology = improved_medium_airframe
					technology = advanced_medium_airframe
					bonus = 1.0
					uses = 1				
					category = medium_air
				}
			}
			else = {
				add_tech_bonus = {
					name = POL_medium_bomber_focus
					bonus = 1.0
					uses = 1				
					category = tactical_bomber
				}
			}
		}
	}
	
	focus = { #r56
		id = POL_Swiatecki_Bomb_Slip
		icon = GFX_goal_generic_air_strategic_bomber_new
		prerequisite = { focus = POL_medium_bomber_focus }
		
		x = -1
		y = 1
		relative_position_id = POL_medium_bomber_focus
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			set_technology = { POL_Heavy_Weight_Bomb_Ejector = 1 }
			custom_effect_tooltip = POL_Swiatecki_Bomb_Slip_tt
			add_tech_bonus = {
				name = POL_Swiatecki_Bomb_Slip
				bonus = 1.0
				uses = 2
				category = strategic_destruction_tree
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POL_light_bomber_focus
		icon = GFX_goal_generic_CAS
		prerequisite = { focus = POL_heavy_fighter_concept focus = POL_fighter_modernisation }
		mutually_exclusive = { focus = POL_medium_bomber_focus }
		
		x = 1
		y = 1
		relative_position_id = POL_heavy_fighter_concept
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				add_tech_bonus = {
					name = POL_light_bomber_focus
					technology = aa_cannon_1
					technology  = aa_cannon_2
					bonus = 1.0
					uses = 1				
				}
				add_tech_bonus = {
					name = POL_light_bomber_focus
					bonus = 0.75
					uses = 2
					category = battlefield_support_tree
				}
			}
			else = {
				add_tech_bonus = {
					name = POL_light_bomber_focus
					bonus = 1.0
					uses = 1				
					category = cas_bomber
				}
			}
		}
	}

	focus = { #r56
		id = POL_Mielec_Aircraft_Factory
		icon = GFX_goal_mielec_aircraft_factory
		prerequisite = { focus = POL_light_bomber_focus }
		x = 1
		y = 1
		relative_position_id = POL_light_bomber_focus
		cost = 10

		ai_will_do = {
			factor = 12
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 92 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			add_ideas = POL_Modern_Aircraft_Production
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POL_air_modernisations_programme
		icon = GFX_goal_generic_air_doctrine
		prerequisite = { focus = POL_light_bomber_focus focus = POL_medium_bomber_focus }
		
		x = -1
		y = 1
		relative_position_id = POL_light_bomber_focus
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			air_experience = 25
			custom_effect_tooltip = generic_skip_one_line_tt
			add_doctrine_cost_reduction = {
				name = POL_air_modernisations_programme
				cost_reduction = 0.5
				uses = 2
				category = air_doctrine
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			random_state = {
				prioritize = { 92 }
				limit = {
					has_state_flag = POL_air_modernisations_programme_1
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			if = {
				limit = {
					has_country_flag = POL_air_modernisations_programme_2
				}
				country_event = poland.89
			}
		}

		completion_reward = {
			air_experience = 25
			custom_effect_tooltip = generic_skip_one_line_tt
			add_doctrine_cost_reduction = {
				name = POL_air_modernisations_programme
				cost_reduction = 0.5
				uses = 2
				category = air_doctrine
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			random_owned_controlled_state = {
				prioritize = { 92 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_air_modernisations_programme_1
			}
			if = {
				limit = {
					has_country_leader = {
						character = POL_edward_rydzsmigly
						ruling_only = yes
					}
				}
				country_event = poland.89
				set_country_flag = POL_air_modernisations_programme_2
			}
		}
	}

	focus = {
		id = POL_rocket_development
		icon = GFX_focus_rocketry
		prerequisite = { focus = POL_air_modernisations_programme }
		
		x = 0
		y = 1
		relative_position_id = POL_air_modernisations_programme
		cost = 10

		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.5
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_tech_bonus = {
				name = POL_rocket_development
				bonus = 0.75
				uses = 2
				category = jet_technology
				category = rocketry
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = r56_generic_rocket_idea
			if = {
				limit = { NOT = { has_completed_focus = POL_Draw_Closer_To_The_USSR } }
				custom_effect_tooltip = generic_skip_one_line_tt
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = POL_LWD
			}
		}
	}

	############################
	##### POLITICS SECTION #####
	############################

	
	#polish communist/democratic path
	focus = {
		id = POL_radicalize_the_front
		icon = GFX_goal_generic_revolt
		allow_branch = { #new check
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = POL_complete_april_constitution
						has_completed_focus = POL_assemble_the_regency_council
						has_completed_focus = POL_rewrite_1935_constitution
						has_completed_focus = POL_organize_the_peasants_strike
					}
				}
			}
		}

		mutually_exclusive = { 
			focus = POL_complete_april_constitution 
			focus = POL_rewrite_1935_constitution focus = POL_organize_the_peasants_strike 
			focus = POL_assemble_the_regency_council
		}

		available = { 
			has_government = neutrality
		}
		bypass = {
			has_government = communism
		}
		x = 54
		y = 0
		cost = 5

		completion_reward = {
			hidden_effect = { #collapse focus tree
				load_focus_tree = {
					tree = polish_focus
					keep_completed = yes
				}
				mark_focus_tree_layout_dirty = yes
			}
			add_popularity = { ideology = communism popularity = 0.20 }
			add_popularity = {
				ideology = democratic
				popularity = -0.20
			}
			POL_april_constitution_remove = yes
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = POL_complete_april_constitution
		icon = GFX_focus_POL_complete_april_constitution
		mutually_exclusive = { 
			focus = POL_radicalize_the_front
			focus = POL_rewrite_1935_constitution focus = POL_organize_the_peasants_strike 
			focus = POL_assemble_the_regency_council
		}
		x = 11
		y = 0
		relative_position_id = POL_radicalize_the_front
		cost = 10

		ai_will_do = {
			factor = 10
		}
		
		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = POL_organize_the_peasants_strike
						has_completed_focus = POL_assemble_the_regency_council
						has_completed_focus = POL_radicalize_the_front
						has_completed_focus = POL_rewrite_1935_constitution
					}
				}
			}
		}

		offset = { #new, edit 2
			x = -10
			y = 0
			trigger = {
				has_completed_focus = POL_complete_april_constitution
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}
		available = { is_subject = no }

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		completion_reward = {
			hidden_effect = { #collapse focus tree
				load_focus_tree = {
					tree = polish_focus
					keep_completed = yes
				}
				mark_focus_tree_layout_dirty = yes
			}
			POL_april_constitution_up = yes
			add_political_power = 100
#			swap_ideas = {
#				add_idea = POL_sanation_right_opposition_2
#				remove_idea = POL_sanation_right_opposition_1
#			}
#			swap_ideas = {
#				add_idea = POL_sanation_left_opposition_2
#				remove_idea = POL_sanation_left_opposition_1
#			}
#			activate_mission = POL_sanation_left_irritation
#			activate_mission = POL_sanation_right_irritation
#			unlock_decision_tooltip = POL_sideline_the_left
#			unlock_decision_tooltip = POL_sideline_the_right
			hidden_effect = {
				country_event = poland.91
			}
		}
	}

	focus = {
		id = POL_polish_militarism
		icon = GFX_goal_polish_military_agreement
		prerequisite = { focus = POL_complete_april_constitution }
		
		x = 0
		y = 1
		relative_position_id = POL_complete_april_constitution
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		completion_reward = {
			army_experience = 20
			add_ideas = POL_militarism_focus
			POL_april_constitution_up = yes
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_STABILITY FOCUS_FILTER_ARMY_XP } 
	}

	focus = {
		id = POL_consolidate_sanation_government
		icon = GFX_goal_generic_pilsudski
		prerequisite = { focus = POL_polish_militarism }
		
		x = 0
		y = 1
		relative_position_id = POL_polish_militarism
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		completion_reward = {
			set_power_balance = {
				id = POL_power_balance
				set_default = yes
			}
			POL_april_constitution_up = yes
			add_political_power = 25
			add_popularity = {
				ideology = neutrality
				popularity = 0.05
			}
			effect_tooltip = {
				add_ideas = POL_Cult_Of_The_Marshal
			}
			hidden_effect = {
				country_event = poland.86
			}
			show_unit_leaders_tooltip = POL_stefan_dab_biernacki
			
		
		}
	}

	focus = { #r56
		id = POL_rewrite_1935_constitution
		icon = GFX_goal_generic_major_diplo
		mutually_exclusive = { 
			focus = POL_radicalize_the_front focus = POL_complete_april_constitution 
			focus = POL_organize_the_peasants_strike 
			focus = POL_assemble_the_regency_council 
		}
		allow_branch = { #new check
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = POL_complete_april_constitution
						has_completed_focus = POL_assemble_the_regency_council
						has_completed_focus = POL_radicalize_the_front
						has_completed_focus = POL_organize_the_peasants_strike
					}
				}
			}
		}
		available = { 
			has_government = neutrality
		}
		bypass = {
			is_subject = no
			OR = {
				has_government = democratic
				has_government = fascism
			}
		}

		x = 11
		y = 0
		relative_position_id = POL_complete_april_constitution
		cost = 2.9

		offset = { #new
			x = -23
			y = 0
			trigger = {
				has_completed_focus = POL_rewrite_1935_constitution
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		completion_reward = {
			add_political_power = 75
			POL_april_constitution_remove = yes
			mark_focus_tree_layout_dirty = yes
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }
	}
	
	focus = { #r56
		id = POL_Reaffirm_Ties_With_Romania
		icon = GFX_focus_generic_reaffirm_romanian_ties
		prerequisite = { focus = POL_consolidate_sanation_government }
		x = 2
		y = 1
		relative_position_id = POL_consolidate_sanation_government
		cost = 5

		available = {
			is_subject = no
			OR = {
				threat > 0.1
				is_in_faction_with = ROM
				HUN = { has_completed_focus = HUN_renounce_the_treaty_of_trianon }
			}
			NOT = { is_justifying_wargoal_against = ROM }
			ROM = { 
				is_owner_neighbor_of = POL
	 			is_subject = no
	 			NOT = { has_war_with = POL }
	 		}
		}
		
		ai_will_do = {
			factor = 2
			modifier = {
				factor = 1000.0
				SOV = { is_justifying_wargoal_against = ROM }
				NOT = { POL = { has_government = communism } }
			}
			modifier = {
				factor = 0
				threat < 0.13
			}
		}

		completion_reward = {
			country_event = poland_r56.20
			custom_effect_tooltip = POL_Reaffirm_Ties_With_Romania_Tooltip
		}
	}

	#The Castle
	focus = {
		id = POL_the_castle
		icon = GFX_focus_POL_the_castle
		prerequisite = { focus = POL_consolidate_sanation_government }
		
		x = 4
		y = 1
		relative_position_id = POL_consolidate_sanation_government
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
			NOT = {
				OR = {
					has_completed_focus = POL_dissolve_the_bbwr
					has_completed_focus = POL_ozon
				}
			}
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			custom_effect_tooltip = POL_castle_small_bal_tt
			add_political_power = 75
			if = {
				limit = {
					has_country_leader = {
						character = POL_ignacy_moscicki
						ruling_only = yes
					}
				}
				add_country_leader_trait = the_king_of_the_castle
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.1
			}
#			POL_sanation_left_opposition_down = yes
#			POL_sanation_right_opposition_down = yes

			hidden_effect = {
				if = {
					limit = {
						power_balance_value = {
							id = POL_power_balance
							value > 0
						}
					}
					add_power_balance_value = {
						id = POL_power_balance
						value = -0.05
					}
				}
				else_if = {
					limit = {
						power_balance_value = {
							id = POL_power_balance
							value < 0
						}
					}
					add_power_balance_value = {
						id = POL_power_balance
						value = 0.05
					}
				}
				else = {
					add_political_power = 50
				}

				set_politics = {
					ruling_party = neutrality
					elections_allowed = no
				}
				country_event = poland.161
			}
			add_political_power = 25

			#marijn211: these were apparently ported from the R56 tree (by fantom) but it breaks the focus to join the Allies
			#POL = { diplomatic_relation = { country = FRA relation = guarantee active = no} }
			#add_ideas = POL_Neutral_Foreign_Policy
		}
	}

	
	focus = { #r56
		id = POL_Budget_Reform
		icon = GFX_focus_generic_self_management
		prerequisite = { focus = POL_the_castle }
		mutually_exclusive = { focus = POL_second_man_of_the_state focus = POL_the_left_chairman }
		available = {
			custom_trigger_tooltip = {
				tooltip = POL_bop_status_quo_tt
				and = {
					power_balance_value = {
						id = POL_power_balance
						value > -0.11
					}
					power_balance_value = {
						id = POL_power_balance
						value < 0.11
					}
				}
			}
			has_government = neutrality
			
		}
		
		x = 0
		y = 2
		relative_position_id = POL_the_castle
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
#			POL_sanation_left_opposition_down = yes
#			POL_sanation_right_opposition_down = yes
			country_event = poland.163
			effect_tooltip = {
				add_timed_idea = {
					idea = POL_Budget_Reform_Focus
					days = 365
				}
			}
		}
	}

	focus = {
		id = POL_eliminate_socialist_parties
		icon = GFX_goal_anti_comintern_pact
		prerequisite = { focus = POL_the_castle }
		
		x = 1
		y = 1
		relative_position_id = POL_the_castle
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
			NOT = {
				has_government = communism
				OR = {
					has_completed_focus = POL_dissolve_the_bbwr
					has_completed_focus = POL_ozon
				}
			}
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			custom_effect_tooltip = POL_castle_medium_bal_tt
			add_popularity = {
				ideology = communism
				popularity = -0.2
			}
			add_popularity = {
				ideology = democratic
				popularity = -0.05
			}
#			POL_sanation_left_opposition_down = yes 
#			POL_sanation_right_opposition_down = yes
			hidden_effect = {
				if = {
					limit = {
						power_balance_value = {
							id = POL_power_balance
							value > 0
						}
					}
					add_power_balance_value = {
						id = POL_power_balance
						value = -0.15
					}
				}
				else_if = {
					limit = {
						power_balance_value = {
							id = POL_power_balance
							value < 0
						}
					}
					add_power_balance_value = {
						id = POL_power_balance
						value = 0.15
					}
				}
				else = {
					add_political_power = 75
				}
			}
		}
	}

	focus = {
		id = POL_dissolve_the_sejm
		icon = GFX_focus_generic_strike_at_democracy2
		prerequisite = { focus = POL_eliminate_socialist_parties }
		
		x = 1
		y = 1
		relative_position_id = POL_eliminate_socialist_parties
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
			has_elections = yes
			NOT = {
				OR = {
					has_completed_focus = POL_dissolve_the_bbwr
					has_completed_focus = POL_ozon
				}
			}
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			custom_effect_tooltip = POL_castle_high_bal_tt
			add_popularity = {
				ideology = democratic
				popularity = -0.2
			}
#			POL_sanation_left_opposition_down = yes
#			POL_sanation_right_opposition_down = yes
			hidden_effect = {
				if = {
					limit = {
						power_balance_value = {
							id = POL_power_balance
							value > 0
						}
					}
					add_power_balance_value = {
						id = POL_power_balance
						value = -0.25
					}
				}
				else_if = {
					limit = {
						power_balance_value = {
							id = POL_power_balance
							value < 0
						}
					}
					add_power_balance_value = {
						id = POL_power_balance
						value = 0.25
					}
				}
				else = {
					add_political_power = 75
				}
			}
		}
	}
	
	focus = {
		id = POL_promote_chemical_industry
		icon = GFX_focus_generic_rubber
		prerequisite = { focus = POL_Budget_Reform }
		x = 1
		y = 1
		relative_position_id = POL_Budget_Reform
		cost = 10

		ai_will_do = {
			base = 10
		}

		available = {
			#NOT = {
			#	OR = {
			#		has_completed_focus = POL_dissolve_the_bbwr
			#		has_completed_focus = POL_ozon
			#	}
			#}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESOURCES }

		complete_tooltip = {
			random_state = {
				limit = {
					has_state_flag = POL_promote_chemical_industry_1
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
			}
			random_state = {
				limit = {
					has_state_flag = POL_promote_chemical_industry_2
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = POL_promote_chemical_industry
				bonus = 3.0
				uses = 1
				category = synth_resources
			}
			custom_effect_tooltip = available_industrial_concern
			show_ideas_tooltip = POL_Zaklady_Azotowe
			custom_effect_tooltip = POL_promote_chemical_industry_tt
		}

		completion_reward = {
#			POL_sanation_left_opposition_down = yes 
#			POL_sanation_right_opposition_down = yes
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = synthetic_refinery
						size > 0
					}
				}
				prioritize = { 88 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_promote_chemical_industry_1
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
					}
				}
				prioritize = { 90 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_promote_chemical_industry_2
			}
			add_tech_bonus = {
				name = POL_promote_chemical_industry
				bonus = 3.0
				uses = 1
				category = synth_resources
			}
			custom_effect_tooltip = available_industrial_concern
			show_ideas_tooltip = POL_Zaklady_Azotowe
			custom_effect_tooltip = POL_promote_chemical_industry_tt
		}
	}

	focus = {
		id = POL_camp_of_national_unity
		icon = GFX_goal_POL_castle_faction
		prerequisite = { focus = POL_Budget_Reform focus = POL_second_man_of_the_state }
		mutually_exclusive = { focus = POL_dissolve_the_bbwr focus = POL_ozon }
		x = 0
		y = 2
		relative_position_id = POL_Budget_Reform
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
			OR = {
				custom_trigger_tooltip = {
					tooltip = POL_bop_status_quo_tt
					and = {
						power_balance_value = {
							id = POL_power_balance
							value > -0.11
						}
						power_balance_value = {
							id = POL_power_balance
							value < 0.11
						}
					}
				}
				AND = {
					has_completed_focus = POL_second_man_of_the_state
					custom_trigger_tooltip = {
						tooltip = POL_bop_limited_right_influence_tt
						and = {
							power_balance_value = {
								id = POL_power_balance
								value > -0.11
							}
							power_balance_value = {
								id = POL_power_balance
								value < 0.50
							}
						}
					}
				}
			}
			neutrality > 0.5
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			remove_power_balance = {
				id = POL_power_balance
			}
			set_party_name = { ideology = neutrality long_name = POL_Castle_party_long name = POL_Castle_party }
			add_country_leader_trait = stern_imperialist
#			POL_sanation_left_opposition_remove = yes
#			POL_sanation_right_opposition_remove = yes
			custom_effect_tooltip = no_more_san_right_tt
			custom_effect_tooltip = no_more_san_left_tt
			unlock_decision_category_tooltip = POL_industrial_projects_category
			effect_tooltip = {	#moscicki solidifying his powers and gets new generals
				add_field_marshal_role = {
					character = POL_Kazimierz_Dzierzanowski
					skill = 2
					attack_skill = 1
					defense_skill = 2
					planning_skill = 2
					logistics_skill = 2
				}
				add_field_marshal_role = {
					character = POL_Tadeusz_Piskor
					skill = 2
					attack_skill = 1
					defense_skill = 2
					planning_skill = 1
					logistics_skill = 3
				}
				add_corps_commander_role = {
					character = POL_Stanislaw_Haller
					skill = 3
					attack_skill = 1
					defense_skill = 1
					planning_skill = 4
					logistics_skill = 4
				}
				add_corps_commander_role = {
					character = POL_Juliusz_Zulauf
					skill = 1
					attack_skill = 1
					defense_skill = 1
					planning_skill = 1
					logistics_skill = 1
				}
				add_corps_commander_role = {
					character = POL_Rudolf_Prich
					skill = 2
					attack_skill = 1
					defense_skill = 2
					planning_skill = 2
					logistics_skill = 2
				}
			}
			effect_tooltip = { #Done in the char files to avoid error spam
				retire_character = POL_edward_rydzsmigly
			}
		}
	}

	#Sanation Left
	focus = {
		id = POL_the_sanation_left
		icon = GFX_focus_POL_sanation_left
		prerequisite = { focus = POL_consolidate_sanation_government }
		
		x = -4
		y = 1
		relative_position_id = POL_consolidate_sanation_government
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
#			has_sanation_left_opposition = yes
			NOT = { has_completed_focus = POL_second_man_of_the_state }
			NOT = { has_completed_focus = POL_camp_of_national_unity }
			NOT = { has_completed_focus = POL_dissolve_the_bbwr }
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		completion_reward = {
			add_power_balance_value = {
				id = POL_power_balance
				value = -0.05
			}
			add_political_power = 75
#			POL_sanation_left_opposition_down = yes
#			POL_sanation_right_opposition_up = yes
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_walery_slawek
			custom_effect_tooltip = available_military_high_command
			show_ideas_tooltip = POL_kazimierz_switalski
			add_political_power = 25
			POL = { diplomatic_relation = { country = FRA relation = guarantee active = no} }
			if = {
				limit = { has_idea = POL_jozef_beck } 
				hidden_effect = {
					remove_ideas = POL_jozef_beck
					add_ideas = POL_August_Zaleski
				}
			}
		}
	}

	focus = {
		id = POL_modus_vivendi
		icon = GFX_focus_generic_polish_deal
		prerequisite = { focus = POL_the_sanation_left }
		
		x = -2
		y = 2
		relative_position_id = POL_the_sanation_left
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
#			has_sanation_left_opposition = yes
			NOT = { has_completed_focus = POL_second_man_of_the_state }
			NOT = { has_completed_focus = POL_camp_of_national_unity }
			NOT = { has_completed_focus = POL_dissolve_the_bbwr }
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		completion_reward = {
			add_power_balance_value = {
				id = POL_power_balance
				value = -0.1
			}
			add_political_power = 35
			add_stability = 0.03
#			POL_sanation_left_opposition_down = yes
#			POL_sanation_right_opposition_up = yes
			add_popularity = {
				ideology = neutrality
				popularity = -0.25
			}
			add_country_leader_trait = great_compromiser
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_stanislaw_wojciechowski
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_joachim_stefan_bartoszewicz
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_wanda_wasilewska
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_mieczyslaw_michalowicz
			custom_effect_tooltip = POL_Invite_The_Political_Opposition_tt
			show_unit_leaders_tooltip = POL_boleslaw_wieniawa_glugoszowski
		}
	}

	focus = {
		id = POL_draft_a_new_constitution
		icon = GFX_goal_april_constitution
		prerequisite = { focus = POL_the_sanation_left }
		mutually_exclusive = { focus = POL_codify_national_unity }
		
		x = 1
		y = 1
		relative_position_id = POL_the_sanation_left
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
#			has_sanation_left_opposition = yes
			NOT = { has_completed_focus = POL_second_man_of_the_state }
			NOT = { has_completed_focus = POL_camp_of_national_unity }
			NOT = { has_completed_focus = POL_dissolve_the_bbwr }
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		completion_reward = {
			add_power_balance_value = {
				id = POL_power_balance
				value = -0.15
			}
#			POL_sanation_left_opposition_down = yes
#			POL_sanation_right_opposition_up = yes
			#POL_april_constitution_up = yes
			swap_ideas = {
				remove_idea = POL_april_constitution_4
				add_idea = POL_april_constitution_left
			}
		}
	}

	focus = {
		id = POL_legion_of_merit
		icon = GFX_focus_generic_monarchy_2
		prerequisite = { focus = POL_the_sanation_left }
		
		x = -1
		y = 1
		relative_position_id = POL_the_sanation_left
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
#			has_sanation_left_opposition = yes
			NOT = { has_completed_focus = POL_second_man_of_the_state }
			NOT = { has_completed_focus = POL_camp_of_national_unity }
			NOT = { has_completed_focus = POL_dissolve_the_bbwr }
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_power_balance_value = {
				id = POL_power_balance
				value = -0.05
			}
#			POL_sanation_left_opposition_down = yes
#			POL_sanation_right_opposition_up = yes
			add_ideas = POL_legion_of_merit
		}
	}

	focus = {
		id = POL_the_left_chairman
		icon = GFX_goal_POL_sanitation_left
		prerequisite = { focus = POL_the_sanation_left }
		mutually_exclusive = { focus = POL_second_man_of_the_state focus = POL_Budget_Reform }
		x = 0
		y = 2
		relative_position_id = POL_the_sanation_left
		cost = 10

		ai_will_do = {
			factor = 10
		}
		
		available = {
#			has_sanation_left_opposition = yes
			power_balance_value = {
				id = POL_power_balance
				value < -0.5
			}
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		completion_reward = {
#			POL_sanation_right_opposition_up = yes
#			POL_sanation_left_opposition_remove = yes
			add_ideas = POL_walery_slawek_chairman
			custom_effect_tooltip = no_more_san_right_tt
			
			# hidden_effect = {		#means you can't keep doing focuses
			# 	country_event = poland.214
			# }
		}
	}

	
	focus = { #r56
		id = POL_Prepare_For_The_upcoming_conflict
		icon = GFX_focus_eng_expose_the_belly_of_the_bear
		prerequisite = { focus = POL_the_left_chairman }
		available = {
			has_government = neutrality
		}
		
		x = -2
		y = 1
		relative_position_id = POL_the_left_chairman
		cost = 10
		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_ideas = POL_Next_War_Focus
			custom_effect_tooltip = POL_Prepare_For_The_Next_War_tt
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = { #r56
		id = POL_Re_Expand_The_Military
		icon = GFX_focus_pol_military_buildup
		prerequisite = { focus = POL_Prepare_For_The_upcoming_conflict }
		available = {
			has_government = neutrality
		}
		
		x = 0
		y = 1
		relative_position_id = POL_Prepare_For_The_upcoming_conflict
		cost = 10
		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_timed_idea = {
				idea = POL_Military_Rearmament
				days = 365
			}
		}
	}
	
	focus = { #r56
		id = POL_Polish_German_Trade_Agreement
		icon = GFX_goal_generic_neutrality_focus
		prerequisite = { focus = POL_the_left_chairman }
		available = {
			has_government = neutrality
			OR = {
				has_country_flag = anti_comintern_member
				has_non_aggression_pact_with = GER
				is_ally_with = GER
			}
			GER = {
				exists = yes
	 			is_subject = no
	 			NOT = { has_war_with = POL }
				OR = {
					has_government = neutrality
					has_government = democratic
				}
	 		}
		}
		
		x = 2
		y = 1
		relative_position_id = POL_the_left_chairman
		cost = 7.2

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_political_power = 25
			navy_experience = 50
			add_tech_bonus = {
				name = POL_Polish_German_Trade_Agreement
				bonus = 1.0
				uses = 1
				category = light_fighter
			}
			GER = {
				add_tech_bonus = {
					name = POL_Polish_German_Trade_Agreement
					bonus = 1.0
					uses = 1
					category = electronics
				}
			}
			hidden_effect = { country_event = poland.75 }
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = POL_common_organization_of_society
		icon = GFX_focus_POL_common_organization_of_society
		prerequisite = { focus = POL_the_left_chairman }
		
		x = 0
		y = 1
		relative_position_id = POL_the_left_chairman
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_ideas = {
				POL_common_organization_of_society_idea
			}
			every_owned_state = {
				limit = {
					is_core_of = ROOT
				}
				add_extra_state_shared_building_slots = 2
			}
		}
	}

	focus = {
		id = POL_dissolve_the_bbwr
		icon = GFX_goal_constitution
		prerequisite = { focus = POL_common_organization_of_society }
		mutually_exclusive = { focus = POL_ozon focus = POL_camp_of_national_unity }
		x = 0
		y = 1
		relative_position_id = POL_common_organization_of_society
		cost = 5
		
		available = {
			power_balance_value = {
				id = POL_power_balance
				value < -0.8
			}
		}

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			remove_ideas = POL_bop_sanation_right_unrest_idea
			hidden_effect = {
				set_politics = {
					ruling_party = neutrality
					elections_allowed = no
				}
			}
			
			set_party_name = { ideology = neutrality long_name = POL_POS_party_long name = POL_POS_party }
#			POL_sanation_right_opposition_remove = yes
			effect_tooltip = {
				set_cosmetic_tag = POL_SANATION
				add_country_leader_role = {
					character = "POL_walery_slawek"
					country_leader = {
						ideology=oligarchism
						traits = { left_sanationist_minister staunch_constitutionalist }
						expire="1965.1.1.1"
					}
					promote_leader = yes
				}
			}
			hidden_effect = {
				country_event = poland.17
			}
			remove_power_balance = {
				id = POL_power_balance
			}
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_ignacy_moscicki
			custom_effect_tooltip = no_more_san_left_tt
			unlock_decision_category_tooltip = POL_political_reform_category
			POL_lucjan_zeligowski = {
				if = {
					limit = {
						is_field_marshal = no
					}
					promote_leader = yes
				}
				if = {
					limit = {
						has_trait = career_officer
					}
					remove_unit_leader_trait = career_officer
				}
			}
			POL_Stanislaw_Haller = {
				if = {
					limit = {
						is_field_marshal = no
					}
					promote_leader = yes
				}
				if = {
					limit = {
						has_trait = career_officer
					}
					remove_unit_leader_trait = career_officer
				}
			}
			show_unit_leaders_tooltip = POL_leonard_skierski
			effect_tooltip = {
				retire_character = POL_edward_rydzsmigly
			}
		}
	}

	
	focus = { #r56
		id = POL_Align_With_Kaiserreich
		icon = GFX_focus_ger_revive_kaiserreich
		prerequisite = { focus = POL_dissolve_the_bbwr }
		mutually_exclusive = { focus = POL_The_Intermarium }
		available = {
			is_subject = no
			is_in_faction = no
			has_government = neutrality
			NOT = {
				has_completed_focus = POL_clamp_down_on_danzig
			}
			GER = {
				exists = yes
	 			is_faction_leader = yes
	 			NOT = { has_war_with = POL }
				OR = {
					has_government = neutrality
					has_government = democratic
				}
	 		}
		}
		
		x = -2
		y = 1
		relative_position_id = POL_dissolve_the_bbwr
		cost = 10
		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			GER = { country_event = poland.170 }
			custom_effect_tooltip = POL_presitge_toolip
		}
	}

	#Sanation Right
	focus = {
		id = POL_the_sanation_right
		icon = GFX_focus_POL_sanation_right
		prerequisite = { focus = POL_consolidate_sanation_government }
		
		x = 0
		y = 1
		relative_position_id = POL_consolidate_sanation_government
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
#			has_sanation_right_opposition = yes
			NOT = { has_completed_focus = POL_the_left_chairman }
			NOT = { has_completed_focus = POL_camp_of_national_unity }
			NOT = { has_completed_focus = POL_ozon }
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_power_balance_value = {
				id = POL_power_balance
				value = 0.05
			}
			add_political_power = 25
#			POL_sanation_left_opposition_up = yes
#			POL_sanation_right_opposition_down = yes
			custom_effect_tooltip = available_theorist
			show_ideas_tooltip = POL_edward_rydz_smigly
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_henryk_floyar_rajchman
			POL_wladyslaw_bortnowski = {
				if = {
					limit = {
						is_field_marshal = no
					}
					promote_leader = yes
				}
				if = {
					limit = {
						has_trait = career_officer
					}
					remove_unit_leader_trait = career_officer
				}
			}
			if = { limit = { has_unit_leader = 3130 } random_unit_leader = { limit = { has_id = 3130 } retire = yes } }
			if = { limit = { has_country_flag = POL_thirty_eight_generals }
				if = { limit = { NOT = { has_unit_leader = 3165 } }
					create_corps_commander = {
						name = "Stefan Rowecki"
						picture = GFX_Portrait_POL_Stefan_Rowecki
						traits = { infantry_officer panzer_leader guerilla_fighter }
						id = 3165
						skill = 2
						attack_skill = 3
						defense_skill = 1
						planning_skill = 2
						logistics_skill = 1
					}
				}
				if = { limit = { NOT = { has_unit_leader = 3172 } }
					create_corps_commander = {
						name = "Zygmunt Podhorski"
						picture = GFX_Portrait_POL_Zygmunt_Podhorski
						traits = { career_officer cavalry_officer cavalry_leader organizer }
						id = 3172 # think this will throw an error after changing to gfx, but need to test 1st
						skill = 2
						attack_skill = 1
						defense_skill = 3
						planning_skill = 1
						logistics_skill = 3
					}
				}
				if = { limit = { NOT = { has_unit_leader = 3175 } }
					create_corps_commander = {
						name = "Ludwik Kmicic-Skrzyński"
						picture = GFX_Portrait_POL_Ludwik_Kmicic_Skrzynski
						traits = { cavalry_officer panzer_leader }
						id = 3175 # think this will throw an error after changing to gfx, but need to test 1st
						skill = 1
						attack_skill = 1
						defense_skill = 2
						planning_skill = 1
						logistics_skill = 2
					}
				}
			}
			if = { limit = { has_country_flag = POL_thirty_nine_generals }
				if = { limit = { NOT = { has_unit_leader = 3166 } }
					create_corps_commander = {
						name = "Józef Kustroń"
						picture = GFX_Portrait_POL_Jozef_Kustron
						traits = { trait_reckless war_hero hill_fighter }
						id = 3166 # think this will throw an error after changing to gfx, but need to test 1st
						skill = 2
						attack_skill = 3
						defense_skill = 2
						planning_skill = 1
						logistics_skill = 2
					}
				}
			}
		}
	}

	focus = {
		id = POL_department_for_home_defence
		icon = GFX_goal_generic_military_sphere
		prerequisite = { focus = POL_the_sanation_right }
		
		x = 1
		y = 1
		relative_position_id = POL_the_sanation_right
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
			#has_sanation_right_opposition = yes
			#NOT = { has_completed_focus = POL_the_left_chairman }
			#NOT = { has_completed_focus = POL_camp_of_national_unity }
			#NOT = { has_completed_focus = POL_ozon }
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_doctrine_cost_reduction = {
				name = POL_prepare_for_the_next_war
				cost_reduction = 0.5
				uses = 2
				category = land_doctrine
			}
		}
	}

	focus = {
		id = POL_support_right_paramilitaries
		icon = GFX_focus_all_polish_youth
		prerequisite = { focus = POL_the_sanation_right }
		
		x = 3
		y = 1
		relative_position_id = POL_the_sanation_right
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
#			has_sanation_right_opposition = yes
			NOT = { has_completed_focus = POL_the_left_chairman }
			NOT = { has_completed_focus = POL_camp_of_national_unity }
			NOT = { has_completed_focus = POL_ozon }
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_power_balance_value = {
				id = POL_power_balance
				value = 0.15
			}
#			POL_sanation_left_opposition_up = yes
#			POL_sanation_right_opposition_down = yes
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_jerzy_rutkowski_theorist
			add_ideas = {
				POL_right_paramilitarism_idea
			}
		}
	}

	focus = {
		id = POL_codify_national_unity
		icon = GFX_goal_generic_forceful_treaty
		prerequisite = { focus = POL_the_sanation_right }
		mutually_exclusive = { focus = POL_draft_a_new_constitution }
		
		x = -1
		y = 1
		relative_position_id = POL_the_sanation_right
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
#			has_sanation_right_opposition = yes
			NOT = { has_completed_focus = POL_the_left_chairman }
			NOT = { has_completed_focus = POL_camp_of_national_unity }
			NOT = { has_completed_focus = POL_ozon }
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_power_balance_value = {
				id = POL_power_balance
				value = 0.15
			}
#			POL_sanation_left_opposition_up = yes
#			POL_sanation_right_opposition_down = yes
			swap_ideas = {
				remove_idea = POL_april_constitution_4
				add_idea = POL_april_constitution_right
			}
		}
	}

	focus = {
		id = POL_second_man_of_the_state
		icon = GFX_goal_POL_sanitation_right
		prerequisite = { focus = POL_the_sanation_right }
		mutually_exclusive = { focus = POL_the_left_chairman focus = POL_Budget_Reform }
		x = 0
		y = 2
		relative_position_id = POL_the_sanation_right
		cost = 10

		ai_will_do = {
			factor = 10
		}
		
		available = {
			power_balance_value = {
				id = POL_power_balance
				value > 0.5
			}
#			has_sanation_right_opposition = yes
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
#			POL_sanation_left_opposition_up = yes
#			POL_sanation_right_opposition_remove = yes
			add_ideas = POL_general_staff
			custom_effect_tooltip = no_more_san_left_tt
			
			# hidden_effect = {	#means you can't keep doing focuses
			# 	country_event = poland.213
			# }
		}
	}

	
	focus = { #r56
		id = POL_Army_Modernisation
		icon = GFX_focus_generic_army_modernizations
		prerequisite = { focus = POL_second_man_of_the_state }
		available = {
			has_government = neutrality
		}
		
		x = 1
		y = 1
		relative_position_id = POL_second_man_of_the_state
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			army_experience = 20
			add_equipment_to_stockpile = {
				type = support_equipment_1
				amount = 100
				producer = POL
			}
			add_tech_bonus = {
				name = POL_Army_Modernisation
				bonus = 1.0
				uses = 1
				category = infantry_weapons
			}
			country_event = poland.197
			#custom_effect_tooltip = POL_technical_training_focus_tt
			#hidden_effect = { set_technology = { technical_training_focus = 1 } }
			custom_effect_tooltip = POL_army_reform
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_MILITARY_EQUIPMENT FOCUS_FILTER_ARMY_XP }
	}

	focus = { #r56
		id = POL_Devalue_Zloty
		icon = GFX_focus_hol_abandon_the_gold_standard
		prerequisite = { focus = POL_second_man_of_the_state focus = POL_Budget_Reform }
		available = {
			has_government = neutrality
		}
		
		x = 3
		y = 1
		relative_position_id = POL_second_man_of_the_state
		cost = 5
		ai_will_do = {
			factor = 10
		}
		
		dynamic = yes

		completion_reward = {
			if = {
				limit = {
					NOT = { has_completed_focus = POL_Budget_Reform }
					NOT = { has_completed_focus = POL_second_man_of_the_state }
				}
				custom_effect_tooltip = Zloty_Castle_tt
				add_ideas = POL_strenghten_the_zloty
				
				custom_effect_tooltip = Zloty_Right_tt
				add_ideas = POL_devalue_the_zloty
			}
			if = {
				limit = { has_completed_focus = POL_Budget_Reform }
				add_ideas = POL_strenghten_the_zloty
			}
			if = {
				limit = { has_completed_focus = POL_second_man_of_the_state }
				add_ideas = POL_devalue_the_zloty
			}
			country_event = { id = poland.41 }
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POL_ozon
		icon = GFX_focus_POL_OZON
		prerequisite = { focus = POL_second_man_of_the_state }
		mutually_exclusive = { focus = POL_dissolve_the_bbwr focus = POL_camp_of_national_unity }
		x = 0
		y = 2
		relative_position_id = POL_second_man_of_the_state
		cost = 10
		
		available = {
			power_balance_value = {
				id = POL_power_balance
				value > 0.8
			}
		}

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		completion_reward = {
			remove_power_balance = {
				id = POL_power_balance
			}
			remove_ideas = POL_bop_sanation_left_unrest_idea
#			POL_sanation_left_opposition_remove = yes
			hidden_effect = {
				set_politics = {
					ruling_party = neutrality
					elections_allowed = no
				}
			}
			effect_tooltip = {
				set_cosmetic_tag = POL_SANATION
				add_country_leader_role = {
					character = "POL_edward_rydzsmigly"
					country_leader = {
						ideology=oligarchism
						traits = { sanation_militarist }
						expire="1965.1.1.1"
					}
					promote_leader = yes
				}
			}
			country_event = poland.70
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_ignacy_moscicki
			custom_effect_tooltip = no_more_san_right_tt
			unlock_decision_category_tooltip = POL_army_reform_category
		}
	}

	#Polish Revanchism
	# focus = {
	# 	id = POL_polish_revanchism
	# 	icon = GFX_focus_POL_polish_revanchism
	# 	prerequisite = { focus = POL_ozon }
	# 	mutually_exclusive = { focus = POL_align_with_the_west focus = POL_baltic_security }
		
	# 	x = 0
	# 	y = 1
	# 	relative_position_id = POL_ozon
	# 	cost = 10

	# 	ai_will_do = {
	# 		factor = 10
	# 	}
		
	# 	search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL } 
	# 	completion_reward = {
	# 		add_ideas = POL_polish_revanchism_focus
	# 		#grants a -10% PP cost to war goal justification
	# 	}
	# }

	#Baltic Security
	focus = {
		id = POL_baltic_security
		icon = GFX_goal_SOV_baltic_aggression
		prerequisite = { focus = POL_dissolve_the_bbwr }
		mutually_exclusive = { focus = POL_align_with_the_west focus = POL_Third_Europe }
		
		x = 0
		y = 1
		relative_position_id = POL_dissolve_the_bbwr
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			OR = {
				AND = {
					LIT = {
						exists = yes
						NOT = { has_war_with = ROOT }
						is_in_faction = no
					}
				}
				AND = {
					LAT = {
						exists = yes
						NOT = { has_war_with = ROOT }
						is_in_faction = no
					}
				}
				AND = {
					EST = {
						exists = yes
						NOT = { has_war_with = ROOT }
						is_in_faction = no
					}
				}
			}
			is_subject = no
		}

		bypass = {
			LIT = {
				OR = {
					exists = no
					has_war_with = ROOT
					is_in_faction = yes
				}
			}
			LAT = {
				OR = {
					exists = no
					has_war_with = ROOT
					is_in_faction = yes
				}
			}
			EST = {
				OR = {
					exists = no
					has_war_with = ROOT
					is_in_faction = yes
				}
			}
		}

		
		search_filters = { FOCUS_FILTER_POLITICAL } 
		completion_reward = {
			if = {
				limit = {
					LIT = {
						exists = yes
						is_subject = no
					}
					NOT = { has_war_with = LIT }
				}
				give_guarantee = LIT
				add_opinion_modifier = {
					target = LIT
					modifier = baltic_security_opinion
				}
				reverse_add_opinion_modifier = {
					target = LIT
					modifier = baltic_security_opinion
				}
			}
			else_if = {
				limit = {
					NOT = { has_war_with = EST }
				}
				create_wargoal = {
					type = puppet_wargoal_focus
					target = LIT
				}
			}
			if = {
				limit = {
					LAT = {
						exists = yes
						is_subject = no
					}
					NOT = { has_war_with = LAT }
				}
				give_guarantee = LAT
				add_opinion_modifier = {
					target = LAT
					modifier = baltic_security_opinion
				}
				reverse_add_opinion_modifier = {
					target = LAT
					modifier = baltic_security_opinion
				}
			}
			else_if = {
				limit = {
					NOT = { has_war_with = EST }
				}
				create_wargoal = {
					type = puppet_wargoal_focus
					target = LAT
				}
			}
			if = {
				limit = {
					EST = {
						exists = yes
						is_subject = no
					}
					NOT = { has_war_with = EST }
				}
				give_guarantee = EST
				add_opinion_modifier = {
					target = EST
					modifier = baltic_security_opinion
				}
				reverse_add_opinion_modifier = {
					target = EST
					modifier = baltic_security_opinion
				}
			}
			else_if = {
				limit = {
					NOT = { has_war_with = EST }
				}
				create_wargoal = {
					type = puppet_wargoal_focus
					target = EST
				}
			}
		}
	}

	focus = {
		id = POL_protect_czechozlovakia
		icon = GFX_goal_CZE_defense
		prerequisite = { focus = POL_baltic_security focus = POL_The_Intermarium }
		
		x = -1
		y = 1
		relative_position_id = POL_baltic_security
		cost = 5
		offset = { #new
			x = -1
			y = 0
			trigger = {
				has_completed_focus = POL_radicalize_the_front
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}

		ai_will_do = {
			factor = 10
		}

		available = {
			CZE = {
				exists = yes
				NOT = { has_war_with = ROOT }
				is_in_faction = no
			}
			is_subject = no
		}

		bypass = {
			CZE = {
				OR = {
					exists = no
					has_war_with = ROOT
					is_in_faction = yes
				}
			}
		}

		
		search_filters = { FOCUS_FILTER_POLITICAL } 
		completion_reward = {
			if = {
				limit = {
					CZE = {
						exists = yes
						is_subject = no
					}
					NOT = { has_war_with = CZE }
				}
				if = {
					limit = { is_faction_leader = yes }
					CZE = {
						country_event = { id = poland.16 days = 1 }
					}
				}
				else = {
					give_guarantee = CZE
				}
				add_opinion_modifier = {
					target = CZE
					modifier = baltic_security_opinion
				}
				reverse_add_opinion_modifier = {
					target = CZE
					modifier = baltic_security_opinion
				}
			}
			else_if = {
				limit = {
					NOT = { has_war_with = CZE }
				}
				create_wargoal = {
					type = puppet_wargoal_focus
					target = CZE
				}
			}
		}
	}

	focus = {
		id = POL_baltic_alliance_focus
		icon = GFX_goal_baltic_cooperation
		prerequisite = { focus = POL_baltic_security focus = POL_The_Intermarium }
		y = 0
		x = 2
		relative_position_id = POL_protect_czechozlovakia
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			OR = {
				AND = {
					LIT = {
						exists = yes
						NOT = { has_war_with = ROOT }
						is_in_faction = no
					}
				}
				AND = {
					LAT = {
						exists = yes
						NOT = { has_war_with = ROOT }
						is_in_faction = no
					}
				}
				AND = {
					EST = {
						exists = yes
						NOT = { has_war_with = ROOT }
						is_in_faction = no
					}
				}
			}
			is_subject = no
		}

		bypass = {
			LIT = {
				OR = {
					exists = no
					has_war_with = ROOT
					is_in_faction = yes
				}
			}
			LAT = {
				OR = {
					exists = no
					has_war_with = ROOT
					is_in_faction = yes
				}
			}
			EST = {
				OR = {
					exists = no
					has_war_with = ROOT
					is_in_faction = yes
				}
			}
		}

		
		search_filters = { FOCUS_FILTER_POLITICAL } 
		completion_reward = {
			if = {
				limit = {
					is_faction_leader = no
				}
				set_rule = { can_create_factions = yes }
				IF = {
					limit = {
						has_dlc = "No Compromise, No Surrender"
					}
					create_faction_from_template = faction_template_POL_baltic_alliance
					add_faction_initiative = 1
				}
				ELSE = {
					create_faction_from_template = {
						template = faction_template_defensive_democratic
						name = POL_baltic_alliance
						icon = GFX_faction_logo_generic_17
					}
				}
			}
			set_rule = { can_create_factions = yes }
			hidden_effect = {
				if = {
					limit = {
						has_guaranteed = LIT
						LIT = {
							is_in_faction = no
							is_subject = no
						}
					}
					LIT = {
						country_event = { id = baltic.7 days = 1 }
					}
				}
				if = {
					limit = {
						has_guaranteed = LAT
						LAT = {
							is_in_faction = no
							is_subject = no
						}
					}
					LAT = {
						country_event = { id = baltic.7 days = 1 }
					}
				}
				if = {
					limit = {
						has_guaranteed = EST
						EST = {
							is_in_faction = no
							is_subject = no
						}
					}
					EST = {
						country_event = { id = baltic.7 days = 1 }
					}
				}
				if = {
					limit = {
						has_guaranteed = CZE
						CZE = { is_in_faction = no }
					}
					CZE = {
						country_event = { id = baltic.7 days = 1 }
					}
				}
			}
			if = {
				limit = {
					LIT = {
						is_in_faction = no
						is_subject = no
						NOT = { has_war_with = POL }
					}
				}
				LIT = {
					custom_effect_tooltip = POL_invite_to_faction_tooltip
				}
			}
			if = {
				limit = {
					LAT = {
						is_in_faction = no
						is_subject = no
						NOT = { has_war_with = POL }
					}
				}
				LAT = {
					custom_effect_tooltip = POL_invite_to_faction_tooltip
				}
			}
			if = {
				limit = {
					EST = {
						is_in_faction = no
						is_subject = no
						NOT = { has_war_with = POL }
					}
				}
				EST = {
					custom_effect_tooltip = POL_invite_to_faction_tooltip
				}
			}
			if = {
				limit = {
					has_guaranteed = CZE
					CZE = { is_in_faction = no }
				}
				CZE = {
					custom_effect_tooltip = POL_invite_to_faction_tooltip
				}
			}
		}
	}

	focus = {
		id = POL_romanian_alliance
		icon = GFX_focus_generic_reaffirm_romanian_ties
		prerequisite = { focus = POL_protect_czechozlovakia }
		#prerequisite = { focus = POL_baltic_alliance_focus }
		
		x = 0
		y = 1
		relative_position_id = POL_protect_czechozlovakia
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			is_faction_leader = yes
		}

		
		search_filters = { FOCUS_FILTER_POLITICAL } 
		completion_reward = {
			set_faction_name = miedzymorze_faction
			hidden_effect = {
				news_event = { hours = 6 id = news.214 }
			}
			#unlock_national_focus = POL_the_between_the_seas_concept
			if = {
				limit = {
					ROM = {
						exists = yes
						is_subject = no
						is_in_faction = no
					}
					NOT = { has_war_with = ROM }
				}
				ROM = {
					country_event = { id = poland.16 days = 1 }
				}
			}
		}
	}

	###############
	###PLAN WEST###
	###############
	focus = {
		id = POL_plan_west
		icon = GFX_focus_POL_plan_west
		prerequisite = { focus = POL_prepare_for_the_next_war }
		x = 12
		y = 1
		relative_position_id = POL_prepare_for_the_next_war
		cost = 10

		ai_will_do = {
			factor = 10
		}
		
		available = {
			NOT = {
				is_ally_with = GER
			}
			OR = {
				NOT = { has_completed_focus = POL_plan_east }
				has_completed_focus = POL_complete_plan_east
			}
		}

		
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			every_owned_state = {
				limit = {
					any_neighbor_state = {
						owner = { tag = GER }
					}
				}
				add_dynamic_modifier = {
					modifier = POL_plan_modifier
					days = 547
					scope = POL
				}
			}
		}
	}

	focus = {
		id = POL_the_prusya_line
		icon = GFX_focus_POL_prussia_line
		prerequisite = { focus = POL_plan_west }
		x = 4
		y = 1
		relative_position_id = POL_plan_west
		cost = 7.16
		
		available = {
			NOT = { has_completed_focus = POL_complete_plan_west }
		}

		ai_will_do = {
			factor = 10
		}

		
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			custom_effect_tooltip = POL_add_forts_on_border_with_prussia_tt
			if = {
				limit = {
					controls_state = 97
				}
				97 = {
					add_building_construction = {
						type = bunker
						level = 1
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
				}
			}
			if = {
				limit = {
					controls_state = 934
				}
				934 = {
					add_building_construction = {
						type = bunker
						level = 1
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
				}
			}
			if = {
				limit = {
					controls_state = 98
				}
				98 = {
					add_building_construction = {
						type = bunker
						level = 2
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
				}
			}
			if = {
				limit = {
					controls_state = 807
				}
				807 = {
					add_building_construction = {
						type = bunker
						level = 3
						instant_build = yes
						province = 6347
					}
					add_building_construction = {
						type = bunker
						level = 3
						instant_build = yes
						province = 3295
					}
				}
			}
		}
	}

	focus = {
		id = POL_invest_anti_air
		icon = GFX_goal_airplane_hunt
		prerequisite = { focus = POL_plan_west }
		x = 2
		y = 1
		relative_position_id = POL_plan_west
		cost = 7.16
		
		available = {
			NOT = { has_completed_focus = POL_complete_plan_west }
		}

		ai_will_do = {
			factor = 10
		}

		
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_tech_bonus = {
				name = POL_invest_anti_air
				bonus = 1.0
				uses = 2
				category = cat_anti_air
			}
		}
	}

	focus = {
		id = POL_the_prusya_army
		icon = GFX_focus_generic_manpower
		prerequisite = { focus = POL_plan_west }
		x = -1
		y = 1
		relative_position_id = POL_the_prusya_line
		cost = 7.16
		
		available = {
			NOT = { has_completed_focus = POL_complete_plan_west }
		}

		ai_will_do = {
			factor = 10
		}

		
		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			division_template = {
				name = "Pruska Straż Graniczna"
				priority = 1
				division_names_group = POL_INF_01
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
		
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
					infantry = { x = 1 y = 2 }
				}
				support = {
					engineer = { x = 0 y = 0 }
				}
			}
			random_owned_controlled_state = {
				prioritize = { 807 }
				limit = { PREV = { has_full_control_of_state = PREV } }
				create_unit = {
					division = "name = \"Pruska Straż Graniczna\" division_template = \"Pruska Straż Graniczna\" start_experience_factor = 0.9" 
					owner = PREV
				}
				create_unit = {
					division = "name = \"Pruska Straż Graniczna\" division_template = \"Pruska Straż Graniczna\" start_experience_factor = 0.9" 
					owner = PREV
				}
				create_unit = {
					division = "name = \"Pruska Straż Graniczna\" division_template = \"Pruska Straż Graniczna\" start_experience_factor = 0.9" 
					owner = PREV
				}
			}
		}
	}

	focus = {
		id = POL_expand_poznan_forts
		icon = GFX_goal_fortify_the_westwall
		prerequisite = { focus = POL_plan_west }
		x = 1
		y = 1
		relative_position_id = POL_the_prusya_line
		cost = 7.16
		
		available = {
			NOT = { has_completed_focus = POL_complete_plan_west }
			controls_state = 86
			controls_state = 87
		}

		ai_will_do = {
			factor = 10
		}

		
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			custom_effect_tooltip = POL_add_level_two_forts_on_western_border_with_germany_tt
			if = {
				limit = {
					controls_state = 86
				}
				86 = {
					add_building_construction = {
						type = bunker
						level = 2
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
				}
				87 = {
					add_building_construction = {
						type = bunker
						level = 2
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
				}
			}
		}
	}

	focus = {
		id = POL_hel_fortified_area
		icon = GFX_goal_fortify_the_westwall
		prerequisite = { focus = POL_plan_west }
		x = 3
		y = 1
		relative_position_id = POL_the_prusya_line
		cost = 7.16
		
		available = {
			NOT = { has_completed_focus = POL_complete_plan_west }
			OR = {
				controls_state = 85 
				controls_state = 807
			}
		}


		ai_will_do = {
			factor = 10
		}

		
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			IF = {
				limit = {
					controls_state = 807
				}
				807 = {
					add_building_construction = {
						type = coastal_bunker
						province = 9263
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						province = 9263
						level = 3
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						province = 334
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						province = 279
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						province = 389
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						province = 3324
						level = 2
						instant_build = yes
					}
				}
			}
			IF = {
				limit = { 
					controls_state = 85
				}
				85 = {
					add_building_construction = {
						type = bunker
						province = 362
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = coastal_bunker
						province = 362
						level = 2
						instant_build = yes
					}
				}
			}
			custom_effect_tooltip = available_chief_of_navy
			show_ideas_tooltip = POL_Wlodzimierz_Steyer
		}
	}

	focus = {
		id = POL_local_western_plans
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = POL_plan_west }
		x = 0
		y = 1
		relative_position_id = POL_plan_west
		cost = 10
		
		available = {
			NOT = { has_completed_focus = POL_complete_plan_west }
		}

		ai_will_do = {
			factor = 10
		}

		
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			unlock_decision_tooltip = POL_defend_in_west_state
			add_doctrine_cost_reduction = {
				name = POL_local_western_plans
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
	}

	focus = {
		id = POL_sudeten_mountaineers
		icon = GFX_focus_GRE_a_land_of_mountains
		prerequisite = { focus = POL_plan_west }
		x = 1
		y = 2
		relative_position_id = POL_plan_west
		cost = 10
		
		available = {
			NOT = { has_completed_focus = POL_complete_plan_west }
		}

		ai_will_do = {
			factor = 10
		}

		
		search_filters = { FOCUS_FILTER_MANPOWER } 
		completion_reward = {
			division_template = {
				name = "Dywizja Karpacka"
				priority = 1
				division_names_group = POL_MNT_01
				regiments = {
					mountaineers = { x = 0 y = 0 }
					mountaineers = { x = 0 y = 1 }
					mountaineers = { x = 0 y = 2 }
		
					mountaineers = { x = 1 y = 0 }
					mountaineers = { x = 1 y = 1 }
					mountaineers = { x = 1 y = 2 }

					mountaineers = { x = 2 y = 0 }
					mountaineers = { x = 2 y = 1 }
					mountaineers = { x = 2 y = 2 }
				}
				support = {
					engineer = { x = 0 y = 0 }
				}
			}
			random_owned_controlled_state = {
				prioritize = { 88 }
				limit = { PREV = { has_full_control_of_state = PREV } }
				create_unit = {
					division = "name = \"Dywizja Karpaty\" division_template = \"Dywizja Karpacka\" start_experience_factor = 1.0" 
					owner = PREV
				}
				create_unit = {
					division = "name = \"Dywizja Karpaty\" division_template = \"Dywizja Karpacka\" start_experience_factor = 1.0" 
					owner = PREV
				}
				create_unit = {
					division = "name = \"Dywizja Karpaty\" division_template = \"Dywizja Karpacka\" start_experience_factor = 1.0" 
					owner = PREV
				}
				create_unit = {
					division = "name = \"Dywizja Karpaty\" division_template = \"Dywizja Karpacka\" start_experience_factor = 1.0" 
					owner = PREV
				}
			}
		}
	}

	focus = {
		id = POL_silesia_fortified_area
		icon = GFX_goal_fortify_the_westwall
		prerequisite = { focus = POL_plan_west }
		x = 6
		y = 1
		relative_position_id = POL_plan_west
		cost = 7.16

		available = {
			NOT = { has_completed_focus = POL_complete_plan_west }
			OR = {
				controls_state = 72
				controls_state = 88
				controls_state = 762
			}
		}

		ai_will_do = {
			factor = 10
		}

		
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			custom_effect_tooltip = POL_add_level_one_fort_in_silesia_tt
			if = {
				limit = {
					72 = {
						owns_or_subject_of = yes
					}
				}
				72 = {
					add_building_construction = {
						type = bunker
						level = 2
						instant_build = yes
						province = {
							all_provinces = yes
						}
					}
				}
			}
			if = {
				limit = {
					88 = {
						owns_or_subject_of = yes
					}
				}
				88 = {
					add_building_construction = {
						type = bunker
						level = 1
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
				}
			}
			if = {
				limit = {
					762 = {
						owns_or_subject_of = yes
					}
				}
				762 = {
					add_building_construction = {
						type = bunker
						level = 1
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
				}
			}
		}
	}

	focus = {
		id = POL_complete_plan_west
		icon = GFX_focus_generic_treaty
		x = 0
		y = 1
		relative_position_id = POL_the_prusya_army
		cost = 1
		prerequisite = {
			focus = POL_the_prusya_army
			focus = POL_silesia_fortified_area
			focus = POL_local_western_plans
			focus = POL_sudeten_mountaineers
			focus = POL_invest_anti_air
			focus = POL_the_prusya_line
			focus = POL_expand_poznan_forts
			focus = POL_hel_fortified_area
		}
		
		available = {
			has_completed_focus = POL_plan_west
		}

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY } 
		completion_reward = {
			every_owned_state = {
				limit = {
					has_dynamic_modifier = {
						modifier = POL_plan_modifier
						scope = POL
					}
				}
				remove_dynamic_modifier = {
					modifier = POL_plan_modifier
					scope = POL
				}
			}
			custom_effect_tooltip = POL_complete_plan_west_tt
		}
	}
	
	###############
	###PLAN EAST###
	###############
	focus = {
		id = POL_plan_east
		icon = GFX_focus_POL_plan_east
		prerequisite = { focus = POL_prepare_for_the_next_war }
		x = -2
		y = 0
		relative_position_id = POL_plan_west
		cost = 10

		ai_will_do = {
			factor = 10
		}
		
		available = {
			OR = {
				NOT = { has_completed_focus = POL_plan_west }
				has_completed_focus = POL_complete_plan_west
			}
		}

		
		search_filters = { FOCUS_FILTER_INDUSTRY } 
		completion_reward = {
			every_owned_state = {
				limit = {
					any_neighbor_state = {
						owner = { 
							OR = {
								tag = SOV 
								original_tag = SOV
							}
						}
					}
				}
				add_dynamic_modifier = {
					modifier = POL_plan_modifier
					days = 547
					scope = POL
				}
			}
		}
	}

	focus = {
		id = POL_eastern_conscripts
		icon = GFX_focus_generic_manpower
		prerequisite = { focus = POL_plan_east }
		x = -2
		y = 1
		relative_position_id = POL_plan_east
		cost = 7.16

		ai_will_do = {
			factor = 10
		}

		available = {
			NOT = { has_completed_focus = POL_complete_plan_east }
		}

		
		search_filters = { FOCUS_FILTER_MANPOWER } 
		completion_reward = {
			add_timed_idea = {
				idea = POL_eastern_conscription_idea
				days = 365
			}
		}
	}

	focus = {
		id = POL_belorussian_army
		icon = GFX_focus_POL_belarus_army
		prerequisite = { focus = POL_plan_east }
		x = -1
		y = 1
		relative_position_id = POL_eastern_conscripts
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
			NOT = { has_completed_focus = POL_complete_plan_east }
		}

		
		search_filters = { FOCUS_FILTER_MANPOWER } 
		completion_reward = {
			division_template = {
				name = "Białoruska Dywizja Milicji"
				priority = 1
				division_names_group = POL_INF_01
				regiments = {
					militia = { x = 0 y = 0 }
					militia = { x = 0 y = 1 }
					militia = { x = 0 y = 2 }
					militia = { x = 0 y = 3 }
				}
			}
			random_owned_controlled_state = {
				prioritize = { 95 }
				limit = { PREV = { has_full_control_of_state = PREV } }
				create_unit = {
					division = "name = \"Białoruska Dywizja Milicji\" division_template = \"Białoruska Dywizja Milicji\" start_experience_factor = 0.5" 
					owner = PREV
				}
				create_unit = {
					division = "name = \"Białoruska Dywizja Milicji\" division_template = \"Białoruska Dywizja Milicji\" start_experience_factor = 0.5" 
					owner = PREV
				}
			}
		}
	}

	focus = {
		id = POL_ruthenian_army
		icon = GFX_focus_POL_ukrainian_army
		prerequisite = { focus = POL_plan_east }
		x = 1
		y = 1
		relative_position_id = POL_eastern_conscripts
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
			NOT = { has_completed_focus = POL_complete_plan_east }
		}

		
		search_filters = { FOCUS_FILTER_MANPOWER } 
		completion_reward = {
			division_template = {
				name = "Ukraińska Dywizja Milicji"
				priority = 1
				division_names_group = POL_INF_01
				regiments = {
					militia = { x = 0 y = 0 }
					militia = { x = 0 y = 1 }
					militia = { x = 0 y = 2 }
					militia = { x = 0 y = 3 }
				}
			}
			random_owned_controlled_state = {
				prioritize = { 91 }
				limit = { PREV = { has_full_control_of_state = PREV } }
				create_unit = {
					division = "name = \"Ukraińska Dywizja Milicji\" division_template = \"Ukraińska Dywizja Milicji\" start_experience_factor = 0.5" 
					owner = PREV
				}
				create_unit = {
					division = "name = \"Ukraińska Dywizja Milicji\" division_template = \"Ukraińska Dywizja Milicji\" start_experience_factor = 0.5" 
					owner = PREV
				}
			}
		}
	}

	focus = {
		id = POL_fortification_of_belarus
		icon = GFX_goal_fortify_the_westwall
		prerequisite = { focus = POL_plan_east }
		x = -4
		y = 1
		relative_position_id = POL_plan_east
		cost = 7.16

		ai_will_do = {
			factor = 10
		}

		available = {
			NOT = { has_completed_focus = POL_complete_plan_east }
		}
		
		bypass = {
			94 = {
				owner = {
					NOT = {
						tag = ROOT
						is_subject_of = ROOT
					}
				}
			}
			95 = {
				owner = {
					NOT = {
						tag = ROOT
						is_subject_of = ROOT
					}
				}
			}
			96 = {
				owner = {
					NOT = {
						tag = ROOT
						is_subject_of = ROOT
					}
				}
			}
		}

		
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			custom_effect_tooltip = POL_add_level_one_fort_on_belarussian_border_tt
			if = {
				limit = {
					94 = {
						owns_or_subject_of = yes
					}
				}
				94 = {
					add_building_construction = {
						type = bunker
						level = 1
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
				}
			}
			if = {
				limit = {
					95 = {
						owns_or_subject_of = yes
					}
				}
				95 = {
					add_building_construction = {
						type = bunker
						level = 1
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
				}
			}
			if = {
				limit = {
					96 = {
						owns_or_subject_of = yes
					}
				}
				96 = {
					add_building_construction = {
						type = bunker
						level = 1
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
				}
			}
		}
	}

	focus = {
		id = POL_fortification_of_ukraine
		icon = GFX_goal_fortify_the_westwall
		prerequisite = { focus = POL_plan_east }
		x = -6
		y = 1
		relative_position_id = POL_plan_east
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
			NOT = { has_completed_focus = POL_complete_plan_east }
		}
		
		bypass = {
			91 = {
				owner = {
					NOT = {
						tag = ROOT
						is_subject_of = ROOT
					}
				}
			}
			93 = {
				owner = {
					NOT = {
						tag = ROOT
						is_subject_of = ROOT
					}
				}
			}
		}

		
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			custom_effect_tooltip = POL_add_level_one_fort_on_ukrainian_border_tt
			if = {
				limit = {
					91 = {
						owns_or_subject_of = yes
					}
				}
				91 = {
					add_building_construction = {
						type = bunker
						level = 1
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
				}
			}
			if = {
				limit = {
					93 = {
						owns_or_subject_of = yes
					}
				}
				93 = {
					add_building_construction = {
						type = bunker
						level = 1
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
				}
			}
		}
	}

	focus = {
		id = POL_supply_the_rail_nexus
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = POL_plan_east }
		x = -1
		y = 1
		relative_position_id = POL_fortification_of_belarus
		cost = 5

		ai_will_do = {
			factor = 10
		}
		bypass = {
			OR = {
				NOT = {
					controls_state = 93
				}
				NOT = {	controls_state = 94 }
			}
		}
		available = {
			NOT = { has_completed_focus = POL_complete_plan_east }
		}

		
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			build_railway = {
				#level = 2
				start_province = 560
				target_province = 6557
			}
		}
	}

	focus = {
		id = POL_local_eastern_plans
		icon = GFX_goal_generic_war_with_comintern
		prerequisite = { focus = POL_plan_east }
		x = 0
		y = 1
		relative_position_id = POL_plan_east
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			NOT = { has_completed_focus = POL_complete_plan_east }
		}

		
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_doctrine_cost_reduction = {
				name = POL_local_eastern_plans
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
			unlock_decision_tooltip = POL_defend_in_east_state
		}
	}

	focus = {
		id = POL_complete_plan_east
		icon = GFX_focus_generic_treaty
		x = -3
		y = 3
		relative_position_id = POL_plan_east
		cost = 1
		prerequisite = {
			focus = POL_fortification_of_belarus
			focus = POL_fortification_of_ukraine
			focus = POL_supply_the_rail_nexus
			focus = POL_eastern_conscripts
			focus = POL_belorussian_army
			focus = POL_ruthenian_army
			focus = POL_local_eastern_plans
		}

		ai_will_do = {
			factor = 10
		}

		available = {
			has_completed_focus = POL_plan_east
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY } 
		completion_reward = {
			every_owned_state = {
				limit = {
					has_dynamic_modifier = {
						modifier = POL_plan_modifier
						scope = POL
					}
				}
				remove_dynamic_modifier = {
					modifier = POL_plan_modifier
					scope = POL
				}
			}
			custom_effect_tooltip = POL_complete_plan_east_tt
		}
	}

	focus = {
		id = POL_sabotage_polish_industry
		icon = GFX_goal_generic_major_war
		prerequisite = { focus = POL_plan_east focus = POL_plan_west }
		x = 1
		y = 2
		relative_position_id = POL_plan_east
		cost = 10

		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			custom_effect_tooltip = sabotaged_industry_tt
			#will trigger an event each time a Polish state is occupied by the enemy that sabotages industry
		}
	}

	###############
	###DIPLOMACY###
	###############
	focus = {
		id = POL_align_with_the_west
		icon = GFX_ENG_alliance
		prerequisite = { focus = POL_camp_of_national_unity focus = POL_dissolve_the_bbwr focus = POL_ozon }
		x = 1
		y = 1
		relative_position_id = POL_ozon
		cost = 5
		mutually_exclusive = { focus = POL_Third_Europe focus = POL_baltic_security }
		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = POL_organize_the_peasants_strike
						has_completed_focus = POL_assemble_the_regency_council
						has_completed_focus = POL_radicalize_the_front
						has_completed_focus = POL_rewrite_1935_constitution
					}
				}
			}
		}

		ai_will_do = {
			factor = 10
		}

		
		search_filters = { FOCUS_FILTER_POLITICAL } 
		completion_reward = {
			add_opinion_modifier = { target = ENG modifier = POL_draw_closer_to_britain }
			ENG = { add_opinion_modifier = { target = ROOT modifier = POL_draw_closer_to_britain } }
			add_opinion_modifier = { target = FRA modifier = POL_draw_closer_to_britain }
			FRA = { add_opinion_modifier = { target = ROOT modifier = POL_draw_closer_to_britain } }
		}
	}

	focus = {
		id = POL_join_allies
		icon = GFX_focus_chi_british_cooperation
		prerequisite = { focus = POL_align_with_the_west }
		x = -2
		y = 1
		relative_position_id = POL_align_with_the_west
		cost = 10

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				OR = {
					ENG = {
						has_capitulated = yes
					}
					FRA = {
						has_capitulated = yes
					}
				}
			}
		}
		
		available = {
			any_other_country = {
				NOT = { has_war_with = ROOT }
				is_faction_leader = yes
				is_major = yes
				has_government = democratic
			}
			
			NOT = {
				any_other_country = {
					is_in_faction_with = ENG
					has_war_with = POL
				}
			}
			is_in_faction = no
			OR = {
				threat > 0.4
				has_war_with = GER
				GER = { has_wargoal_against = ROOT }
				has_government = democratic
			}
		}

		bypass = {
			OR = {
				is_in_faction_with = ENG
				AND = {
					is_in_faction = yes
					any_other_country = {
						is_faction_leader = yes
						is_in_faction_with = ROOT
						has_government = democratic
					}
				}
			}
		}

		
		search_filters = { FOCUS_FILTER_POLITICAL } 
		completion_reward = {
			join_allies_effect = yes
		}
	}

	focus = {
		id = POL_romanian_bridgehead_strategy
		icon = GFX_focus_POL_romania_bridgehead_strategy
		prerequisite = { focus = POL_join_allies }
		
		x = 0
		y = 1
		relative_position_id = POL_join_allies
		cost = 10

		ai_will_do = {
			factor = 10
		}
		
		available = {
			is_in_faction = yes
		}

		completion_reward = {
			add_ideas =	POL_Romanian_Bridgehead_Strategy
			add_doctrine_cost_reduction = {
				name = POL_romanian_bridgehead_strategy
				cost_reduction = 0.8
				uses = 1
				category = land_doctrine
			}
			#Brings Romania into the faction if Poland is faction leader
			if = {
				limit = {
					is_faction_leader = yes
					ROM = {
						NOT = {
							is_in_faction = yes
						}
					}
					NOT = { has_war_with = ROM }
					NOT = { any_allied_country = { has_war_with = ROM } }
				}
				ROM = {
					country_event = {
						id = poland.1301
						days = 5
					}
				}
			}
			#Asks faction leader for permission to invite Romania if not faction leader
			else_if = {
				limit = {
					is_in_faction = yes
					ROM = {
						NOT = {
							is_in_faction = yes
						}
					}
					NOT = { has_war_with = ROM }
					NOT = { any_allied_country = { has_war_with = ROM } }
				}
				ROM = { save_event_target_as = faction_invitee_target }
				effect_tooltip = {
					ROM = {
						country_event = {
							id = poland.1301
							days = 5
						}
					}
				}
				hidden_effect = {
					random_country = {
						limit = {
							is_in_faction_with = ROOT
							is_faction_leader = yes
						}
						country_event = {
							id = poland.13
							days = 5
						}
					}
				}
			}
			else = {
				effect_tooltip = {
					ROM = {
						country_event = {
							id = poland.1301
							days = 5
						}
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_POLITICAL FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = POL_Sarny_Fortified_Area
		icon = GFX_goal_generic_construct_military
		prerequisite = { focus = POL_romanian_bridgehead_strategy }
		
		available = {
			91 = {
				owns_or_subject_of = yes
			}
			89 = {
                owns_or_subject_of = yes
            }
		}

		x = 0
		y = 1
		relative_position_id = POL_romanian_bridgehead_strategy
		cost = 2.9

		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 89 }
				limit = {
					free_building_slots = {
						building = anti_air_building
						size > 0
					}
				}
				add_building_construction = {
					type = anti_air_building
					level = 1
					instant_build = yes
				}
			}
			91 = {
				add_building_construction = {
					type = bunker
					province = 11479
					level = 3
					instant_build = yes
				}
			}
			89 = {
				add_building_construction = {
					type = bunker
					province = 11411
					level = 2
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POL_lithuanian_ultimatum
		icon = GFX_goal_LIT_army_crest
		prerequisite = { focus = POL_align_with_the_west }
		mutually_exclusive = { focus = POL_lithuanian_annexation }
		x = 0
		y = 1
		relative_position_id = POL_align_with_the_west
		cost = 5

		ai_will_do = {
			factor = 10
		}
		
		available = {
			LIT = { 
				exists = yes
				has_capitulated = no
			}
			784 = {
				owns_or_subject_of = yes
			}
		}
		
		bypass = {
			NOT = {
				784 = { owns_or_subject_of = yes }
			}
		}

		
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			#Poland asks for peace
			LIT = {
				country_event = {
					id = poland.14
					days = 5
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				diplomatic_relation = {
					country = LIT
					relation = guarantee
					active = yes
				}
				LIT = {
					diplomatic_relation = {
						country = POL
						relation = guarantee
						active = yes
					}
				}
			}
		}
	}

	focus = {
		id = POL_lithuanian_alliance
		icon = GFX_goal_generic_befriend_lithuania
		prerequisite = { focus = POL_lithuanian_ultimatum }
		x = 0
		y = 1
		relative_position_id = POL_lithuanian_ultimatum
		cost = 10

		ai_will_do = {
			factor = 10
		}
		available = {
			is_in_faction = yes
			LIT = { 
				exists = yes
				has_capitulated = no
				NOT = { has_war_with = ROOT }
			}
			NOT = { any_allied_country = { has_war_with = LIT } }
		}

		
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			#Brings Lithuania into the faction if Poland is faction leader
			if = {
				limit = {
					is_faction_leader = yes
					LIT = {
						NOT = {
							is_in_faction = yes
						}
					}
					NOT = { has_war_with = LIT }
					NOT = { any_allied_country = { has_war_with = LIT } }
				}
				LIT = {
					country_event = {
						id = poland.1301
						days = 5
					}
				}
			}
			#Asks faction leader for permission to invite Lithuania if not faction leader
			else_if = {
				limit = {
					is_in_faction = yes
					LIT = {
						NOT = {
							is_in_faction = yes
						}
					}
					NOT = { has_war_with = LIT }
					NOT = { any_allied_country = { has_war_with = LIT } }
				}
				LIT = { save_event_target_as = faction_invitee_target }
				effect_tooltip = {
					LIT = {
						country_event = {
							id = poland.1301
							days = 5
						}
					}
				}
				hidden_effect = {
					random_country = {
						limit = {
							is_in_faction_with = ROOT
							is_faction_leader = yes
						}
						country_event = {
							id = poland.13
							days = 5
						}
					}
				}
			}
			else = {
				effect_tooltip = {
					LIT = {
						country_event = {
							id = poland.1301
							days = 5
						}
					}
				}
			}
		}
	}

	focus = {
		id = POL_lithuanian_annexation
		icon = GFX_goal_generic_attack_lithuania
		prerequisite = { focus = POL_align_with_the_west focus = POL_Third_Europe }
		mutually_exclusive = { focus = POL_lithuanian_ultimatum }
		x = 2
		y = 1
		relative_position_id = POL_align_with_the_west
		cost = 5
		will_lead_to_war_with = LIT

		offset = { #new
			x = -21
			y = 0
			trigger = {
				has_completed_focus = POL_rewrite_1935_constitution
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}

		ai_will_do = {
			factor = 10
		}

		available = {
			LIT = { 
				exists = yes
				has_capitulated = no
				NOT = { has_war_with = ROOT }
			}
			784 = {
				owns_or_subject_of = yes
			}
			has_army_manpower = { size > 399999 }
		}

		bypass = {
			LIT = {
				exists = no
			}
			owns_state = 189
			owns_state = 815
			owns_state = 11
			owns_state = 814
		}

		
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			#Poland demands Lithuanian annexation
			if = {
				limit = {
					LIT = { has_war = no }
				}
				LIT = {
					country_event = {
						id = poland.15
						days = 5
					}
				}
			}
			else = {
				create_wargoal = {
					type = annex_everything
					target = LIT
				}
			}
		}
	}

	focus = {
		id = POL_baltic_ultimatums
		icon = GFX_goal_SOV_baltic_aggression
		prerequisite = { focus = POL_Third_Europe }
		prerequisite = { focus = POL_lithuanian_annexation }
		mutually_exclusive = { focus = POL_The_Baltic_Alliance }
		will_lead_to_war_with = LAT
		will_lead_to_war_with = EST
		
		x = 3
		y = 2
		relative_position_id = POL_align_with_the_west
		offset = { #new
			x = -23
			y = 0
			trigger = {
				has_completed_focus = POL_rewrite_1935_constitution
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			OR = {
				LAT = { 
					exists = yes
					has_capitulated = no
					NOT = { has_war_with = ROOT }
				}
				EST = { 
					exists = yes
					has_capitulated = no
					NOT = { has_war_with = ROOT }
				}
			}
			has_army_manpower = { size > 499999 }
			is_subject = no
		}

		
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			#Poland demands Latvian annexation
			if = {
				limit = {
					LAT = {
						has_war = no
						is_subject = no
					}
				}
				LAT = {
					country_event = {
						id = poland.15
						days = 5
					}
				}
			}
			else = {
				create_wargoal = {
					type = annex_everything
					target = LAT
				}
			}
			#Poland demands Estonian annexation
			if = {
				limit = {
					EST = { has_war = no }
					is_subject = no
				}
				EST = {
					country_event = {
						id = poland.15
						days = 5
					}
				}
			}
			else = {
				create_wargoal = {
					type = annex_everything
					target = EST
				}
			}
		}
	}

	#############################
	###NSB ALT-HISTORY CONTENT###
	#############################

	###############
	###COMMUNIST###
	###############
	focus = {
		id = POL_organize_the_peasants_strike
		icon = GFX_focus_generic_great_peasant_strike
		
		mutually_exclusive = { 
			focus = POL_radicalize_the_front focus = POL_complete_april_constitution 
			focus = POL_rewrite_1935_constitution 
			focus = POL_assemble_the_regency_council
		}

		x = 11
		y = 0
		relative_position_id = POL_rewrite_1935_constitution
		cost = 10
		
		allow_branch = {
			always = no
			has_dlc = "No Step Back"
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = POL_complete_april_constitution
						has_completed_focus = POL_assemble_the_regency_council
						has_completed_focus = POL_radicalize_the_front
						has_completed_focus = POL_rewrite_1935_constitution
					}
				}
			}
		}
		
		offset = {
			x = -33
			y = 0
			trigger = {
				has_completed_focus = POL_organize_the_peasants_strike
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}

		available_if_capitulated = yes
		
		available = {
			OR = {
				has_idea = POL_looming_peasants_strike
				has_idea = POL_great_peasants_strike
			}
			NOT = {
				has_completed_focus = POL_agrarian_reform
			}
		}
		
		bypass = {
			OR = {
				has_government = democratic
				has_government = communism
			}
		}

		ai_will_do = {
			factor = 2.5
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			hidden_effect = { #collapse focus tree
				load_focus_tree = {
					tree = polish_focus
					keep_completed = yes
				}
				mark_focus_tree_layout_dirty = yes
			}
			POL_sanation_left_opposition_remove = yes
			POL_sanation_right_opposition_remove = yes
			hidden_effect = { 88 = { set_state_flag = POL_added_to_strike_flag } } #Krakow is always part of the strike
			custom_effect_tooltip = peasant_strike_organizing_tt
			unlock_decision_category_tooltip = POL_organize_the_peasants_strike
		}
	}

	focus = {
		id = POL_woo_morges_staff
		icon = GFX_goal_FRA_the_front_morges
		prerequisite = { focus = POL_organize_the_peasants_strike }
		relative_position_id = POL_organize_the_peasants_strike

		x = 0
		y = 1
		cost = 10

		available = {
		}

		bypass = {
			OR = {
				has_government = democratic
				has_government = communism
			}
		}

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			set_country_flag = POL_morges_flag
			POL_wladyslaw_sikorski = {
				add_unit_leader_trait = peasant_sympathiser
				if = {
					limit = { has_trait = POL_sanation_left_leader }
					remove_unit_leader_trait = POL_sanation_left_leader
				}
			}
			POL_jozef_haller = {
				add_unit_leader_trait = peasant_sympathiser
				if = {
					limit = { has_trait = POL_sanation_left_leader }
					remove_unit_leader_trait = POL_sanation_left_leader
				}
			}
			random_army_leader = {
				limit = {
					NOT = { has_trait = POL_sanation_right_leader }
					NOT = { has_trait = POL_sanation_left_leader }
					NOT = { has_trait = peasant_sympathiser }
				}
				add_unit_leader_trait = peasant_sympathiser
			}
			unlock_decision_tooltip = POL_woo_military_staff

			# Set next general 
			hidden_effect = {
				if = {
					limit = {
						any_army_leader = {
							NOT = { has_trait = POL_sanation_right_leader }
							NOT = { has_trait = POL_sanation_left_leader }
							NOT = { has_trait = peasant_sympathiser }
						}
					}
					random_army_leader = {
						limit = {
							NOT = { has_trait = POL_sanation_right_leader }
							NOT = { has_trait = POL_sanation_left_leader }
							NOT = { has_trait = peasant_sympathiser }
						}
						set_variable = { ROOT.woo_general_selected = THIS }
					}
				}
				else = { #It should be possible to woo Sanation Left leaders, but less likely.
					random_army_leader = {
						limit = {
							NOT = { has_trait = POL_sanation_right_leader }
							NOT = { has_trait = peasant_sympathiser }
						}
						set_variable = { ROOT.woo_general_selected = THIS }
					}
				}
			}
		}
	}

	focus = {
		id = POL_ease_sanationist_tensions
		icon = GFX_goal_generic_dangerous_deal
		prerequisite = { focus = POL_woo_morges_staff }
		mutually_exclusive = { focus = POL_arm_peasant_militia }
		relative_position_id = POL_woo_morges_staff

		x = -1
		y = 1
		cost = 5

		available = {
			OR = {
				has_active_mission = POL_looming_peasants_strike_mission
				has_active_mission = POL_peasants_strike
			}
		}

		bypass = {
		}

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			if = {
				limit = {
					has_active_mission = POL_looming_peasants_strike_mission
				}
				add_days_mission_timeout  = {
					mission = POL_looming_peasants_strike_mission
					days = 100
				}
			}
			if = {
				limit = {
					has_active_mission = POL_peasants_strike
				}
				add_days_mission_timeout  = {
					mission = POL_peasants_strike
					days = 90
				}
			}
			custom_effect_tooltip = add_dem_civil_war_tt
			hidden_effect = {
				add_to_variable = {
					var = pol_peasant_democracy
					value = 5
				}
			}
		}
	}

	focus = {
		id = POL_arm_peasant_militia
		icon = GFX_focus_ITA_peasants_rise
		prerequisite = { focus = POL_woo_morges_staff }
		mutually_exclusive = { focus = POL_ease_sanationist_tensions }
		relative_position_id = POL_woo_morges_staff

		x = 1
		y = 1
		cost = 5

		available = {
			NOT = {
				has_completed_focus = POL_elect_a_PSL_leader
			}
		}

		bypass = {
			OR = {
				has_government = democratic
				has_government = communism
			}
			has_civil_war = no
		}

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			if = {
				limit = {
					OR = {
						has_government = democratic
						has_government = communism
					}
				}
				POL_peasant_division_effect = yes
				add_popularity = {
					ideology = communism
					popularity = 0.05
				}
			}
			else = {
				custom_effect_tooltip = peasant_militia_civil_war_tt
				custom_effect_tooltip = add_com_civil_war_tt 
				hidden_effect = {
					add_to_variable = {
						var = pol_peasant_communism
						value = 5
					}
				}
			}
		}
	}

	focus = {
		id = POL_state_national_council
		icon = GFX_focus_generic_join_comintern
		prerequisite = { focus = POL_woo_morges_staff }
		relative_position_id = POL_woo_morges_staff

		x = 3
		y = 1
		cost = 5

		available = {
			NOT = {
				has_completed_focus = POL_elect_a_PSL_leader
			}
		}

		bypass = {
			OR = {
				has_government = democratic
				has_government = communism
			}
			has_civil_war = no
		}

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ARMY_XP }
		completion_reward = {
			add_political_power = 120
			army_experience = 25
			if = {
				limit = {
					OR = {
						has_government = democratic
						has_government = communism
					}
				}
				add_popularity = {
					ideology = communism
					popularity = 0.05
				}
			}
			else = {
				custom_effect_tooltip = add_com_civil_war_tt
				hidden_effect = {
					add_to_variable = {
						var = pol_peasant_communism
						value = 5
					}
				}
			}
		}
	}

	focus = {
		id = POL_communal_governance
		icon = GFX_goal_generic_neutrality_focus
		prerequisite = { focus = POL_state_national_council }
		relative_position_id = POL_state_national_council

		x = 1
		y = 1
		cost = 5

		available = {
			OR = {
				has_government = democratic
				has_government = communism
			}
			NOT = {
				has_completed_focus = POL_elect_a_PSL_leader
			}
		}

		bypass = {
		}

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_stability = 0.15
			add_popularity = {
				ideology = communism
				popularity = 0.05
			}
		}
	}

	focus = {
		id = POL_a_leftist_sejm
		icon = GFX_focus_generic_soviet_politics
		prerequisite = { focus = POL_state_national_council }
		relative_position_id = POL_state_national_council

		x = -1
		y = 1
		cost = 5

		available = {
			OR = {
				has_government = democratic
				has_government = communism
			}
			NOT = {
				has_completed_focus = POL_elect_a_PSL_leader
			}
		}

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_wanda_wasilewska
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_boleslaw_bierut
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_edward_osobka_morawski
			add_popularity = {
				ideology = communism
				popularity = 0.05
			}
		}
	}

	focus = {
		id = POL_raise_the_black_madonna
		icon = GFX_focus_generic_support_the_left_right
		prerequisite = { focus = POL_woo_morges_staff }
		relative_position_id = POL_woo_morges_staff

		x = -3
		y = 1
		cost = 5

		available = {
			NOT = {
				has_completed_focus = POL_KPP_focus
			}
		}

		bypass = {
			OR = {
				has_government = democratic
				has_government = communism
			}
			has_civil_war = no
		}

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_stability = 0.05
			add_war_support = 0.15
			if = {
				limit = {
					OR = {
						has_government = democratic
						has_government = communism
					}
				}
				add_popularity = {
					ideology = democratic
					popularity = 0.05
				}
			}
			else = {
				custom_effect_tooltip = add_dem_civil_war_tt
				hidden_effect = {
					add_to_variable = {
						var = pol_peasant_democracy
						value = 5
					}
				}
			}
		}
	}

	focus = {
		id = POL_reassemble_the_sejm
		icon = GFX_goal_generic_multipartism
		prerequisite = { focus = POL_raise_the_black_madonna }
		relative_position_id = POL_raise_the_black_madonna

		x = -1
		y = 1
		cost = 5

		available = {
			OR = {
				has_government = democratic
				has_government = communism
			}
			NOT = {
				has_completed_focus = POL_KPP_focus
			}
		}

		bypass = {
		}

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL }
		completion_reward = {
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_stanislaw_wojciechowski
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_mieczyslaw_michalowicz
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_joachim_stefan_bartoszewicz
			add_popularity = {
				ideology = democratic
				popularity = 0.05
			}
		}
	}

	focus = {
		id = POL_empower_the_morges
		icon = GFX_goal_generic_allies_build_infantry
		prerequisite = { focus = POL_raise_the_black_madonna }
		relative_position_id = POL_raise_the_black_madonna

		x = 1
		y = 1
		cost = 5

		available = {
			OR = {
				has_government = democratic
				has_government = communism
			}
			NOT = {
				has_completed_focus = POL_KPP_focus
			}
		}

		bypass = {
		}

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_MANPOWER }
		
		completion_reward = {
			custom_effect_tooltip = POL_morges_divisions_tt
			hidden_effect = {
				division_template = { 
					name = "Morges Division"
					division_names_group = POL_INF_01
					is_locked = yes
					regiments = { 
						infantry = { x = 0 y = 0 }
						infantry = { x = 1 y = 0 }
						infantry = { x = 2 y = 0 }
						infantry = { x = 3 y = 0 }

						infantry = { x = 0 y = 1 }
						infantry = { x = 1 y = 1 }
						infantry = { x = 2 y = 1 }
						infantry = { x = 3 y = 1 }
					}
					support = {
						artillery = { x = 0 y = 0 }
					}
				}
				random_owned_controlled_state = {
					create_unit = { 
						division = "name = \"1. Morges Division\" division_template = \"Morges Division\" start_experience_factor = 0.75" 
						owner = ROOT
					}
					create_unit = { 
						division = "name = \"2. Morges Division\" division_template = \"Morges Division\" start_experience_factor = 0.75" 
						owner = ROOT
					}
					create_unit = { 
						division = "name = \"3. Morges Division\" division_template = \"Morges Division\" start_experience_factor = 0.75" 
						owner = ROOT
					}
				}
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.05
			}
		}
	}

	
	################
	###DEMOCRATIC###
	################
	focus = {
		id = POL_elect_a_PSL_leader
		icon = GFX_goal_support_democracy
		prerequisite = { focus = POL_raise_the_black_madonna }
		#prerequisite = { focus = POL_reassemble_the_sejm }
		#prerequisite = { focus = POL_empower_the_morges }
		relative_position_id = POL_raise_the_black_madonna
		mutually_exclusive = { focus = POL_KPP_focus }
		allow_branch = {
			always = no
			has_dlc = "No Step Back"
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = POL_complete_april_constitution
						has_completed_focus = POL_assemble_the_regency_council
						has_completed_focus = POL_radicalize_the_front
						has_completed_focus = POL_rewrite_1935_constitution
					}
				}
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = at_least_50_dem_tt
				democratic > 0.49
			}
			custom_trigger_tooltip = {
				tooltip = at_most_35_com_tt
				communism < 0.36
			}
		}

		x = 0
		y = 2
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_ideas = POL_democratic_sejm_idea
			country_event = {
				id = NSB_poland_democratic_events.1
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.1
			}
		}
	}

	focus = {
		id = POL_invest_in_the_peasantry
		icon = GFX_focus_POL_agrarian_reform
		prerequisite = { focus = POL_elect_a_PSL_leader }
		relative_position_id = POL_elect_a_PSL_leader

		x = -1
		y = 1
		cost = 10
		
		available = { has_civil_war = no }

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_stability = 0.1
			every_owned_state = {
				limit = {
					OR = {
						state = 96 
						state = 95 
						state = 94 
						state = 93 
						state = 91 
						state = 89 
						state = 88  
						state = 97
					} 
				}
				add_dynamic_modifier = { modifier = POL_peasant_communities scope = POL }
			}
		}
	}
	
	####################
	###COM/DEM Shared###
	####################

	focus = {
		id = POL_dabrowszczacy
		icon = GFX_goal_generic_spanish_civil_war_soldier
		prerequisite = { focus = POL_KPP_focus focus = POL_elect_a_PSL_leader }
		relative_position_id = POL_elect_a_PSL_leader

		x = 3
		y = 1
		cost = 5

		ai_will_do = {
			factor = 2.5
		}

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			set_rule = { can_send_volunteers = yes }
			add_ideas = POL_dabrowszczacy
		}
	}

	focus = {
		id = POL_leftist_economics
		icon = GFX_focus_prc_agrarian_socialism
		prerequisite = { focus = POL_polish_path_to_socialism focus = POL_surrender_the_east focus = POL_invest_in_the_peasantry }
		x = 1
		y = 1
		relative_position_id = POL_invest_in_the_peasantry

		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_ideas = { POL_leftist_economics }
		}
	}

	focus = {
		id = POL_committee_of_national_liberation
		icon = GFX_focus_eng_liberate_the_home_of_marx
		prerequisite = { focus = POL_leftist_economics }
		relative_position_id = POL_leftist_economics

		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes
		completion_reward = {
			add_ideas = { POL_committee_of_national_liberation_idea }
		}
	}

	focus = {
		id = POL_non_discriminatory_recruitment
		icon = GFX_goal_rhineland
		prerequisite = { focus = POL_leftist_economics }
		relative_position_id = POL_leftist_economics

		x = -1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_ideas = { POL_non_discriminatory_recruitment_idea }
		}
	}

	focus = {
		id = POL_armia_ludowa
		icon = GFX_goal_red_army
		prerequisite = { focus = POL_committee_of_national_liberation }
		prerequisite = { focus = POL_non_discriminatory_recruitment }
		relative_position_id = POL_committee_of_national_liberation

		x = -1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			division_template = {
				name = "Armia Ludowa"
				priority = 2
				division_names_group = POL_INF_01
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
		
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
					infantry = { x = 1 y = 2 }
		
					infantry = { x = 2 y = 0 }
					infantry = { x = 2 y = 1 }
					infantry = { x = 2 y = 2 }
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				prioritize = { 10 }
				create_unit = {
					division = "name = \"1 Armia Ludowa\" division_template = \"Armia Ludowa\" start_experience_factor = 1.0" 
					owner = POL
				}
				create_unit = {
					division = "name = \"2 Armia Ludowa\" division_template = \"Armia Ludowa\" start_experience_factor = 1.0" 
					owner = POL
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				prioritize = { 88 }
				create_unit = {
					division = "name = \"3 Armia Ludowa\" division_template = \"Armia Ludowa\" start_experience_factor = 1.0" 
					owner = POL
				}
			}
		}
	}

	focus = {
		id = POL_lower_class_education
		icon = GFX_focus_generic_socialist_science
		prerequisite = { focus = POL_polish_path_to_socialism focus = POL_surrender_the_east focus = POL_invest_in_the_peasantry }
		x = 4
		y = 1
		relative_position_id = POL_invest_in_the_peasantry
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		available = {
			has_completed_focus = POL_leftist_economics
		}
		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_ideas = { POL_lower_class_education_idea }
		}
	}

	focus = {
		id = POL_press_for_liberia
		icon = GFX_goal_liberia_protection
		prerequisite = { focus = POL_anti_capitalist_revolution focus = POL_morges_pact } #focus = POL_preserve_bougoise_democracy
		#relative_position_id = POL_preserve_bougoise_democracy
		relative_position_id = POL_lower_class_education

		x = 3
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			LIB = {
				country_event = { id = NSB_poland_events.6 days = 1 }
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				puppet = LIB
			}
		}
	}

	focus = {
		id = POL_support_colonial_workers_strikes
		icon = GFX_goal_tfv_saf_anti_colonialist_crusade
		prerequisite = { focus = POL_press_for_liberia }
		prerequisite = { focus = POL_anti_capitalist_revolution }
		relative_position_id = POL_press_for_liberia
		
		available = {
			has_completed_focus = POL_committee_of_national_liberation
		}

		x = 2
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			swap_ideas = {
				add_idea = POL_committee_of_international_liberation
				remove_idea = POL_committee_of_national_liberation_idea
			}
		}
	}

	focus = {
		id = POL_reopen_the_maritime_and_colonial_league
		icon = GFX_focus_POL_colonial_league
		prerequisite = { focus = POL_press_for_liberia }
		prerequisite = { focus = POL_preserve_bougoise_democracy }
		relative_position_id = POL_press_for_liberia

		x = -2
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			unlock_decision_category_tooltip = POL_reopen_the_maritime_and_colonial_league
		}
	}

	focus = {
		id = POL_KPP_focus
		icon = GFX_goal_POL_LWP
		prerequisite = { focus = POL_state_national_council }
		#prerequisite = { focus = POL_a_leftist_sejm }
		#prerequisite = { focus = POL_communal_governance }
		mutually_exclusive = { focus = POL_elect_a_PSL_leader }
		relative_position_id = POL_state_national_council

		x = 0
		y = 2
		cost = 10

		available = {
			custom_trigger_tooltip = {
				tooltip = at_least_50_com_tt
				communism > 0.49
			}
			custom_trigger_tooltip = {
				tooltip = at_most_35_dem_tt
				democratic < 0.36
			}
		}

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_ideas = POL_leftist_sejm_idea
			effect_tooltip = {
				set_politics = {
					ruling_party = communism
					elections_allowed = no
				}
			}
			country_event = NSB_poland_communist_events.1
			add_popularity = {
				ideology = communism
				popularity = 0.1
			}
		}
	}

	############
	###SOVIET###
	############
	focus = {
		id = POL_surrender_the_east
		icon = GFX_goal_POL_lose_the_east 
		prerequisite = { focus = POL_KPP_focus }
		mutually_exclusive = { focus = POL_polish_path_to_socialism }
		relative_position_id = POL_KPP_focus
		x = -1
		y = 1
		
		available = {
			has_war = no
			is_subject = no
			communism > 0.4
			has_country_leader = {
				character = POL_wladyslaw_gomulka
				ruling_only = yes
			}
			SOU = {
				has_civil_war = no 
				has_government = communism
			}
		}

		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			SOU = { country_event = NSB_poland_communist_events.4 }
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				every_owned_state = {
					limit = {
						OR = {
							is_core_of = UKR
							is_core_of = BLR
							AND = {
								NOT = { has_global_flag = LIT_gets_vilnius }
								state = 784 #Vilnius
							}
						}
					}
					add_core_of = SOU
					SOU = { transfer_state = PREV }
				}
				if = {
					limit = {
						owns_state = 784
						has_global_flag = LIT_gets_vilnius
					}
					LIT = {
						transfer_state = 784
					}
				}
				SOU = {
					set_autonomy = {
						target = POL
						autonomy_state = autonomy_puppet
					}
				}
			}
		}
	}

	focus = {
		id = POL_polish_peoples_republic
		icon = GFX_focus_CZE_german_puppet
		prerequisite = { focus = POL_surrender_the_east }
		relative_position_id = POL_surrender_the_east

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		completion_reward = {
			add_ideas = { POL_polish_peoples_republic }
			OVERLORD = {
				set_autonomy = {
					target = ROOT
					autonomy_state = autonomy_colony
					freedom_level = 0.5
					end_wars = no 
					end_civil_wars = no 
				}
			}
		}
	}

	focus = {
		id = POL_soviet_industry
		icon = GFX_goal_generic_soviet_construction
		prerequisite = { focus = POL_polish_peoples_republic }
		relative_position_id = POL_polish_peoples_republic
		dynamic = yes
		x = -2
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 10 }
				limit = {					
					is_in_home_area = yes					
					free_building_slots = {
						building = industrial_complex
						size > 2
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = industrial_complex
					level = 3
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 10 }
				limit = {					
					is_in_home_area = yes					
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = POL_pressure_for_the_west
		icon = GFX_focus_POL_polish_revanchism
		prerequisite = { focus = POL_polish_peoples_republic }
		relative_position_id = POL_polish_peoples_republic

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		bypass = {
			67 = { is_core_of = POL }
			66 = { is_core_of = POL }
			68 = { is_core_of = POL }
			63 = { is_core_of = POL }
			5 = { is_core_of = POL }
			763 = { is_core_of = POL }
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			add_state_core = 67
			add_state_core = 66
			add_state_core = 68
			add_state_core = 63
			add_state_core = 5
			add_state_core = 763
		}
	}

	focus = {
		id = POL_soviet_military_staff
		icon = GFX_focus_SOV_builder_of_the_red_army
		prerequisite = { focus = POL_polish_peoples_republic }
		relative_position_id = POL_polish_peoples_republic

		x = 2
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_ARMY_XP}
		completion_reward = {
			army_experience = 50
			effect_tooltip = {
				create_corps_commander = {
					name = "Vladislav Korchits"
					traits = { JAP_communist_sympathizer old_guard }
					skill = 3
					attack_skill = 2
					defense_skill = 4
					planning_skill = 3
					logistics_skill = 2
				}
			}

			division_template = {
				name = "Czerwona Dywizja"
				priority = 2
				#template_counter = 0
				division_names_group = POL_INF_01
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
		
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
					infantry = { x = 1 y = 2 }
		
					infantry = { x = 2 y = 0 }
					infantry = { x = 2 y = 1 }
					infantry = { x = 2 y = 2 }
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				prioritize = { 10 }
				create_unit = {
					division = "name = \"1 Red Division\" division_template = \"Red Division\" start_experience_factor = 1.0" 
					owner = POL
				}
				create_unit = {
					division = "name = \"2 Red Division\" division_template = \"Red Division\" start_experience_factor = 1.0" 
					owner = POL
				}
				create_unit = {
					division = "name = \"3 Red Division\" division_template = \"Red Division\" start_experience_factor = 1.0" 
					owner = POL
				}
				create_unit = {
					division = "name = \"4 Red Division\" division_template = \"Red Division\" start_experience_factor = 1.0" 
					owner = POL
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				prioritize = { 88 }
				create_unit = {
					division = "name = \"5 Red Division\" division_template = \"Red Division\" start_experience_factor = 1.0" 
					owner = POL
				}
				create_unit = {
					division = "name = \"6 Red Division\" division_template = \"Red Division\" start_experience_factor = 1.0" 
					owner = POL
				}
				create_unit = {
					division = "name = \"7 Red Division\" division_template = \"Red Division\" start_experience_factor = 1.0" 
					owner = POL
				}
			}
		}
	}

	focus = {
		id = POL_com_independence
		icon = GFX_goal_polish_resistance
		prerequisite = { focus = POL_soviet_industry }
		prerequisite = { focus = POL_pressure_for_the_west }
		prerequisite = { focus = POL_soviet_military_staff }
		relative_position_id = POL_soviet_industry
		will_lead_to_war_with = SOV

		x = 1
		y = 1
		cost = 10

		mutually_exclusive = { focus = POL_greater_polish_SSR }

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		completion_reward = {
			custom_effect_tooltip = probably_lead_to_war_with_sov_tt
			overlord = {
				set_autonomy = {
					target = POL
					autonomy_state = autonomy_free
				}
				country_event = NSB_poland_communist_events.5
			}
		}
	}

	focus = {
		id = POL_greater_polish_SSR
		icon = GFX_focus_generic_soviet_politics
		prerequisite = { focus = POL_soviet_industry }
		prerequisite = { focus = POL_pressure_for_the_west }
		prerequisite = { focus = POL_soviet_military_staff }
		relative_position_id = POL_soviet_industry

		x = 3
		y = 1
		cost = 10

		mutually_exclusive = { focus = POL_com_independence }

		ai_will_do = {
			factor = 5
		}
		available = {
			SOU = {
				has_government = Communism
				has_civil_war = no 
			}
		}
		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			overlord = { country_event = NSB_poland_communist_events.6 }
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				96 = { add_core_of = POL }
				95 = { add_core_of = POL }
				94 = { add_core_of = POL }
				93 = { add_core_of = POL }
				91 = { add_core_of = POL }
				89 = { add_core_of = POL }
				97 = { add_core_of = POL }
				if = {
					limit = { SOU = { owns_state = 96 controls_state = 96 } }
					transfer_state = 96
				}
				if = {
					limit = { SOU = { owns_state = 95 controls_state = 95 } }
					transfer_state = 95
				}
				if = {
					limit = { SOU = { owns_state = 94 controls_state = 94 } }
					transfer_state = 94
				}
				if = {
					limit = { SOU = { owns_state = 93 controls_state = 93 } }
					transfer_state = 93
				}
				if = {
					limit = { SOU = { owns_state = 91 controls_state = 91 } }
					transfer_state = 91
				}
				if = {
					limit = { SOU = { owns_state = 89 controls_state = 89 } }
					transfer_state = 89
				}
				if = {
					limit = { SOU = { owns_state = 97 controls_state = 97 } }
					transfer_state = 97
				}
				#Lithuanian states
				if = {
					limit = { SOU = { owns_state = 784 controls_state = 784 } }
					transfer_state = 784
					784 = { add_core_of = POL }
				}
				if = {
					limit = { SOU = { owns_state = 11 controls_state = 11 } }
					transfer_state = 11
				}
				if = {
					limit = { SOU = { owns_state = 188 controls_state = 188 } }
					transfer_state = 188
				}
				if = {
					limit = { SOU = { owns_state = 189 controls_state = 189 } }
					transfer_state = 189
				}
				if = {
					limit = { SOU = { owns_state = 814 controls_state = 814 } }
					transfer_state = 814
				}
				if = {
					limit = { SOU = { owns_state = 815 controls_state = 815 } }
					transfer_state = 815
				}
			}
		}
	}

	#####################
	###INDEPENDENT COM###
	#####################

	focus = {
		id = POL_polish_path_to_socialism
		icon = GFX_focus_generic_join_comintern
		prerequisite = { focus = POL_KPP_focus }
		mutually_exclusive = { focus = POL_surrender_the_east }
		x = 1
		y = 1
		relative_position_id = POL_KPP_focus
		
		available = {
			is_subject = no
			has_war = no
			communism > 0.4
			has_country_leader = {
				character = POL_maria_koszutska
				ruling_only = yes
			}
		}

		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			if = {
				limit = {
					NOT = { has_government = communism }
				}
				set_politics = {
					ruling_party = communism
					elections_allowed = yes
				}
			}
			if = {
				limit = {
					NOT = {
						has_country_leader = {
							character = POL_maria_koszutska
						}
					}
				}
				promote_character = POL_maria_koszutska
			}
			if = {
				limit = {
					SOU = {					
						NOT = {
							focus_progress = { 
								focus = SOV_the_left_opposition
								progress > 0	
							}
							has_completed_focus = SOV_the_left_opposition
						}
					}
				}
				SOU = {
					add_ai_strategy = {
						type = antagonize
						id = POL
						value = 200
					}
				}
			}
			add_ideas = { POL_polish_socialism }
		}
	}

	focus = {
		id = POL_anti_imperialism
		icon = GFX_goal_tfv_saf_anti_colonialist_crusade
		prerequisite = { focus = POL_polish_path_to_socialism }
		relative_position_id = POL_polish_path_to_socialism

		x = 1
		y = 3
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_ideas = { POL_anti_imperialism_idea }
		}
	}

	focus = {
		id = POL_anti_capitalist_revolution
		icon = GFX_goal_generic_forceful_treaty
		prerequisite = { focus = POL_anti_imperialism }
		relative_position_id = POL_anti_imperialism
		
		mutually_exclusive = { focus = POL_morges_pact } #focus = POL_preserve_bougoise_democracy

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_POLITICAL }
		completion_reward = {
			unlock_decision_category_tooltip = POL_anti_capitalist_decisions
		}
	}

	focus = {
		id = POL_morges_pact
		icon = GFX_goal_polish_ukrainian_military_agreement
		prerequisite = { focus = POL_invest_in_the_peasantry }
		mutually_exclusive = { focus = POL_anti_capitalist_revolution } #focus = POL_preserve_bougoise_democracy

		x = -1
		y = 4
		relative_position_id = POL_invest_in_the_peasantry
		

		cost = 10

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 10
				OR = {
					ENG = {
						has_capitulated = yes
					}
					ENG = {
						has_government = fascism
					}
					ENG = {
						has_government = neutrality
					}
					FRA = {
						has_capitulated = no
					}
				}
			}
		}
		
		available = {
			FRA = {
				NOT = { has_war_with = ROOT }
				OR = {
					has_government = democratic
					has_government = communism
				}
			}
			NOT = {
				any_other_country = {
					is_in_faction_with = FRA
					has_war_with = POL
				}
			}
			is_in_faction = no
		}

		bypass = {
			is_in_faction_with = FRA
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			set_rule = {
				can_create_factions = yes
			}
			create_faction_from_template = {
				template = faction_template_defensive_democratic
				name = POL_morges_pact
				icon = GFX_faction_logo_generic_11
			}
			FRA = {
				country_event = NSB_poland_events.7
			}
		}
	}

	focus = {
		id = POL_morges_economic_union
		icon = GFX_goal_FRA_increase_military_spendings
		prerequisite = { focus = POL_morges_pact }
		relative_position_id = POL_morges_pact

		x = 0
		y = 2
		cost = 10

		ai_will_do = {
			factor = 10
		}
		
		available = {
			is_in_faction_with = FRA
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_offsite_building = { type = industrial_complex level = 2 }
			add_ideas = { POL_morges_economic_union }
		}
	}

	focus = {
		id = POL_purchase_madagascar
		icon = GFX_goal_generic_POL_madagascar
		prerequisite = { focus = POL_morges_economic_union }
		relative_position_id = POL_morges_economic_union

		x = -1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 10
		}
		
		available = {
			543 = {
				owner = {
					is_in_faction_with = POL
				}
			}
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			543 = {
				save_event_target_as = POL_colony_purchase
				owner = {
					country_event = { id = NSB_poland_events.4 } #Event where the owner gets to decide if they want to sell Madagascar (and Comoro and Reunion if they are owned)
				}
			}
		}
	}

	focus = {
		id = POL_invite_romania_to_morges
		icon = GFX_ROM_POL_alliance
		prerequisite = { focus = POL_morges_economic_union }
		prerequisite = { focus = POL_preserve_baltic_independence }
		relative_position_id = POL_morges_economic_union

		x = 0
		y = 2
		cost = 10

		ai_will_do = {
			factor = 10
		}
		
		available = {
			is_faction_leader = yes
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			if = {
				limit = {
					ROM = {
						is_in_faction = no
						is_subject = no
						exists = yes
						NOT = { has_war_with = ROOT }
					}
				}
				ROM = {
					country_event = generic.5
				}
			}
			else_if = {
				limit = {
					ROM = { exists = yes }
				}
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROM
				}
			}
		}
	}

	#moved bourgeousie democracy

	focus = {
		id = POL_baltic_socialism
		icon = GFX_focus_LAT_threat_on_our_border
		prerequisite = { focus = POL_anti_capitalist_revolution }
		relative_position_id = POL_anti_capitalist_revolution
		will_lead_to_war_with = LIT
		will_lead_to_war_with = LAT
		will_lead_to_war_with = EST

		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = {
					LIT = {
						exists = yes
						has_government = communism
						is_in_faction = no
					}
				}
				LIT = {
					country_event = { id = NSB_poland_communist_events.2 hours = 12 }
				}
				custom_effect_tooltip = if_they_accept_tt
				effect_tooltip = {
					puppet = LIT
				}
			}
			else_if = {
				limit = {
					LIT = {
						exists = yes
						NOT = { is_ally_with = ROOT }
					}
				}
				create_wargoal = {
					type = topple_government
					target = LIT
				}
			}
			if = {
				limit = {
					LAT = {
						exists = yes
						has_government = communism
						is_in_faction = no
					}
				}
				LAT = {
					country_event = { id = NSB_poland_communist_events.2 hours = 12 }
				}
				custom_effect_tooltip = if_they_accept_tt
				effect_tooltip = {
					puppet = LAT
				}
			}
			else_if = {
				limit = {
					LAT = {
						exists = yes
						NOT = { is_ally_with = ROOT }
					}
				}
				create_wargoal = {
					type = topple_government
					target = LAT
				}
			}
			if = {
				limit = {
					EST = {
						exists = yes
						has_government = communism
						is_in_faction = no
					}
				}
				EST = {
					country_event = { id = NSB_poland_communist_events.2 hours = 12 }
				}
				custom_effect_tooltip = if_they_accept_tt
				effect_tooltip = {
					puppet = EST
				}
			}
			else_if = {
				limit = {
					EST = {
						exists = yes
						NOT = { is_ally_with = ROOT }
					}
				}
				create_wargoal = {
					type = topple_government
					target = EST
				}
			}
		}
	}

	focus = {
		id = POL_dismantle_capitalist_empires
		icon = GFX_goal_tfv_sever_ties_with_uk
		prerequisite = { focus = POL_baltic_socialism }
		relative_position_id = POL_baltic_socialism

		x = 0
		y = 2
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_POLITICAL }
		completion_reward = {
			custom_effect_tooltip = gain_topple_goal_tt
			every_other_country = {
				limit = {
					has_government = democratic
					is_major = yes
				}
				hidden_effect = {
					POL = {
						create_wargoal = {
							type = topple_government
							target = PREV
						}
					}
				}
			}
		}
	}

	focus = {
		id = POL_anti_fascist_military
		icon = GFX_focus_spr_the_anti_fascist_workers_revolution
		prerequisite = { focus = POL_morges_pact }	#focus = POL_preserve_bougoise_democracy
		#relative_position_id = POL_preserve_bougoise_democracy
		relative_position_id = POL_morges_pact

		x = -2
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			unlock_decision_category_tooltip = POL_anti_fascist_revolution_category
			add_ideas = { anti_fascist_army_idea }
		}
	}

	#moved baltic independence

	focus = {
		id = POL_dismantle_fascist_empires
		icon = GFX_focus_generic_anti_fascist_diplomacy
		prerequisite = { focus = POL_dismantle_capitalist_empires }	#focus = POL_preserve_baltic_independence
		relative_position_id = POL_dismantle_capitalist_empires

		x = -3
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_POLITICAL }
		completion_reward = {
			custom_effect_tooltip = gain_topple_goal_tt
			every_other_country = {
				limit = {
					has_government = fascism
					is_major = yes
				}
				hidden_effect = {
					POL = {
						create_wargoal = {
							type = topple_government
							target = PREV
						}
					}
				}
			}
		}
	}

	focus = {
		id = POL_dismantle_soviet_empire
		icon = GFX_focus_attack_soviet
		prerequisite = { focus = POL_dismantle_fascist_empires }
		relative_position_id = POL_dismantle_fascist_empires
		will_lead_to_war_with = SOV

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}


		available = {
			SOU = { 
				has_civil_war = no 
			}
			NOT = {
				has_wargoal_against = {
				    target = SOU
				    type = topple_government
				}
			}
		}
		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_POLITICAL }
		completion_reward = {
			IF = {
				limit = { SOV = { has_civil_war = no } }
				POL = {
					create_wargoal = {
						type = topple_government
						target = SOV
					}
				}
			}
			ELSE = {
				every_country = {
					limit = { original_tag = SOV }
					POL = {
						create_wargoal = {
							type = topple_government
							target = PREV
						}
					}
				}
			}
		}
	}

	focus = {
		id = POL_social_commonwealth
		icon = GFX_focus_prc_agrarian_socialism
		prerequisite = { focus = POL_dismantle_capitalist_empires } #focus = POL_preserve_baltic_independence
		#relative_position_id = POL_preserve_baltic_independence
		relative_position_id = POL_dismantle_capitalist_empires

		x = 2
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes
		
		available = {
			has_government = communism
		}

		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_POLITICAL }
		completion_reward = {
			#Lithuania
			if = {
				limit = {
					LIT = {
						is_subject_of = ROOT
						is_ai = yes
					}
				}
				annex_country = {
					target = LIT
					transfer_troops = yes
				}
			}
			else_if = {
				limit = {
					LIT = {
						OR = {
							is_subject = no
							is_subject_of = POL
						}
						is_in_faction_with = ROOT
					}
				}
				LIT = { country_event = NSB_poland_communist_events.3 } #Asks Lithuania if they feel like getting annexed today
				custom_effect_tooltip = if_they_accept_tt
				annex_country = {
					target = LIT
					transfer_troops = yes
				}
			}
			else_if = {
				limit = {
					LIT = {
						exists = yes
						NOT = { is_in_faction_with = ROOT }
					}
				}
				create_wargoal = {
					type = annex_everything
					target = LIT
				}
			}
			#Latvia
			if = {
				limit = {
					LAT = {
						is_subject_of = ROOT
						is_ai = yes
					}
				}
				annex_country = {
					target = LAT
					transfer_troops = yes
				}
			}
			else_if = {
				limit = {
					LAT = {
						OR = {
							is_subject = no
							is_subject_of = POL
						}
						is_in_faction_with = ROOT
					}
				}
				LAT = { country_event = NSB_poland_communist_events.3 } #Asks Latvia if they feel like getting annexed today
				custom_effect_tooltip = if_they_accept_tt
				annex_country = {
					target = LAT
					transfer_troops = yes
				}
			}
			else_if = {
				limit = {
					LAT = {
						exists = yes
						NOT = { is_in_faction_with = ROOT }
					}
				}
				create_wargoal = {
					type = annex_everything
					target = LAT
				}
			}
			#Estonia
			if = {
				limit = {
					EST = {
						is_subject_of = ROOT
						is_ai = yes
					}
				}
				annex_country = {
					target = EST
					transfer_troops = yes
				}
			}
			else_if = {
				limit = {
					EST = {
						OR = {
							is_subject = no
							is_subject_of = POL
						}
						is_in_faction_with = ROOT
					}
				}
				EST = { country_event = NSB_poland_communist_events.3 } #Asks Estonia if they feel like getting annexed today
				custom_effect_tooltip = if_they_accept_tt
				annex_country = {
					target = EST
					transfer_troops = yes
				}
			}
			else_if = {
				limit = {
					EST = {
						exists = yes
						NOT = { is_in_faction_with = ROOT }
					}
				}
				create_wargoal = {
					type = annex_everything
					target = EST
				}
			}
			hidden_effect = {
				13 = { add_core_of = ROOT }
				191 = { add_core_of = ROOT }
				811 = { add_core_of = ROOT }
				812 = { add_core_of = ROOT }
				813 = { add_core_of = ROOT }
				activate_decision = form_commonwealth
			}
			effect_tooltip = {
				set_cosmetic_tag = PLC_UNIFIED_communism
				custom_effect_tooltip = form_country_poland_coring_states_tt
				custom_effect_tooltip = form_country_lithuania_coring_states_tt
				custom_effect_tooltip = form_country_estonia_coring_states_tt
				custom_effect_tooltip = form_country_latvia_coring_states_tt
			}
		}
	}

	################
	###MONARCHIST###
	################
	focus = {
		id = POL_assemble_the_regency_council
		icon = GFX_focus_generic_monarchy_2
		mutually_exclusive = { 
			focus = POL_radicalize_the_front focus = POL_complete_april_constitution 
			focus = POL_rewrite_1935_constitution focus = POL_organize_the_peasants_strike
		}

		x = 5 # R56
		y = 0
		relative_position_id = POL_organize_the_peasants_strike
		cost = 5

		ai_will_do = {
			factor = 2.5
		}
		allow_branch = {
			has_dlc = "No Step Back"
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = POL_complete_april_constitution
						has_completed_focus = POL_organize_the_peasants_strike
						has_completed_focus = POL_radicalize_the_front
						has_completed_focus = POL_rewrite_1935_constitution
					}
				}
			}
		}
		
		offset = {
			x = -34 #moved further right by ported r56 branches
			y = 0
			trigger = {
				has_completed_focus = POL_assemble_the_regency_council
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			hidden_effect = { #collapse focus tree
				load_focus_tree = {
					tree = polish_focus
					keep_completed = yes
				}
				mark_focus_tree_layout_dirty = yes
			}
#			POL_sanation_left_opposition_remove = yes
#			POL_sanation_right_opposition_remove = yes
			hidden_effect = {
				if = {
					limit = {
						has_character = POL_sejmik_regency
					}
					promote_character = POL_sejmik_regency
				}
			}
			set_cosmetic_tag = POL_KINGDOM
			set_politics = {
				ruling_party = neutrality
				elections_allowed = no
				name = YUG_neutrality_party
				long_name = YUG_neutrality_party
			}
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_aleksander_kakowski #Archbishop of Warsaw. Died in 38, maybe use his successor August Hlond instead 
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_zdzislaw_lubomirski #Polish Prince and prominent member of the regency council
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_stanislaw_wojciechowski #Polish noble and Prime Minister prior to the May Coup
		}
	}
	focus = {
		id = POL_fulfil_fifth_of_november
		icon = GFX_focus_POL_end_the_regency
		prerequisite = { focus = POL_assemble_the_regency_council }

		relative_position_id = POL_assemble_the_regency_council
		
		available = {
			neutrality > 0.2
			democratic < 0.5
		}

		x = 0
		y = 1
		cost = 5

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		select_effect = {
			hidden_effect = { set_country_flag = POL_searching_for_monarch_flag }
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			custom_effect_tooltip = POL_find_a_king_tt
			POL_april_constitution_remove = yes
			if = {
				limit = {
					has_country_flag = POL_searching_for_monarch_flag
				}
				hidden_effect = {
					clr_country_flag = POL_searching_for_monarch_flag
					country_event = { id = NSB_poland_royal_election.1 days = 35 }
				}
			}
		}
	}

	###################
	###HABSBURG DUDE###
	###################
	focus = {
		id = POL_habsburg
		icon = GFX_focus_POL_habsburg
		prerequisite = { focus = POL_fulfil_fifth_of_november }
		relative_position_id = POL_fulfil_fifth_of_november

		mutually_exclusive = { focus = POL_hohenzollern focus = POL_claiming_lithuania focus = POL_cossack_king focus = POL_romanov }

		x = -8
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes
		
		available = {
			custom_trigger_tooltip = {
				tooltip = elect_habsburg_tt		
				always = no
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			effect_tooltip = {
				if = {
					limit = {
						has_character = POL_karl_albrecht
					}
					promote_character = POL_karl_albrecht
				}
			}
		}
	}
	focus = { #r56
		id = POL_levy_liechtenstein_properties
		text = CZE_levy_liechtenstein_properties
		icon = GFX_goal_generic_befriend_liechtenstein
		prerequisite = { focus = POL_habsburg focus = POL_hohenzollern }
		relative_position_id = POL_habsburg

		x = 4
		y = 1
		cost = 10

		ai_will_do = {
			factor = 0.8
		}
		
		available = {
			is_subject = no
			country_exists = LIE
			NOT = {
				has_war_with = LIE
			}
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_ideas = CZE_liechtenstein_properties
			LIE = {
				add_opinion_modifier = { target = ROOT modifier = large_increase }
			}
		}
	}
	focus = {
		id = POL_restore_the_diet_of_galicia
		icon = GFX_focus_generic_home_defense
		prerequisite = { focus = POL_habsburg }
		relative_position_id = POL_habsburg

		x = -1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes
		
		available = {
			has_country_leader = {
				ruling_only = yes 
				character = POL_karl_albrecht
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			if = {
				limit = {
					controls_state = 88
				}
				set_capital = { state = 88 } #Krakow was the seat of Habsburg rule in Poland
			}
			add_ideas = { POL_royal_sejm_idea }
			POL_karl_albrecht = {
				add_country_leader_trait = king_of_galicia_and_lodomeria
			}
			hidden_effect = {
				80 = { add_core_of = ROOT }
			}
			show_unit_leaders_tooltip = POL_stefan_dab_biernacki
		}
	}
	focus = {
		id = POL_support_monarchy_in_CZE
		icon = GFX_annex_bohemia
		prerequisite = { focus = POL_restore_the_diet_of_galicia }
		relative_position_id = POL_restore_the_diet_of_galicia

		x = -1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes
		
		available = {
			has_country_leader = {
				ruling_only = yes 
				character = POL_karl_albrecht
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = {
					CZE = { exists = yes }
				}
				hidden_effect = {
					CZE = {
						country_event = NSB_poland_monarchist_events.1
					}
					save_global_event_target_as = pol_monarchy_claimer_target
				}
				custom_effect_tooltip = POL_support_monarchy_in_CZE_tt
			}
			else = {
				every_state = {
					limit = {
						OR = {
							state = 664
							state = 69
							state = 1078
							state = 70
							state = 71
							state = 72
							state = 73
							state = 996
							state = 74
							state = 75
							state = 9
						}
					}
					add_claim_by = POL
				}
				every_other_country = {
					limit = {
						OR = {
							owns_state = 664
							owns_state = 69
							owns_state = 1078
							owns_state = 70
							owns_state = 71
							owns_state = 72
							owns_state = 73
							owns_state = 996
							owns_state = 74
							owns_state = 75
							owns_state = 9
						}
					}
					custom_effect_tooltip = gain_take_claim_tt
					hidden_effect = {
						PREV = {
							create_wargoal = {
								type = take_state_focus
								target = PREV
								generator = {
									664 69 70 71 72 73 74 75 9 996
								}
							}
						}
					}
				}
			}
		}
	}
	focus = {
		id = POL_royal_hussars
		icon = GFX_focus_HABSBURG_bring_back_royal_and_imperial_hussars
		prerequisite = { focus = POL_restore_the_diet_of_galicia }
		prerequisite = { focus = POL_soldier_king }
		relative_position_id = POL_restore_the_diet_of_galicia

		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available = {
			has_country_leader = {
				ruling_only = yes 
				character = POL_karl_albrecht
			}
		}
		
		bypass = {
			has_capitulated = yes
		}

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_ideas = { POL_royal_hussars_idea }
			division_template = {
				name = "Królewska Dywizja Husarii"
				priority = 2
				division_names_group = POL_CAV_01
				regiments = {
					cavalry = { x = 0 y = 0 }
					cavalry = { x = 0 y = 1 }
					cavalry = { x = 0 y = 2 }
		
					cavalry = { x = 1 y = 0 }
					cavalry = { x = 1 y = 1 }
					cavalry = { x = 1 y = 2 }
		
					cavalry = { x = 2 y = 0 }
					cavalry = { x = 2 y = 1 }
					cavalry = { x = 2 y = 2 }
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				prioritize = { 94 }
				create_unit = {
					division = "name = \"1 Królewska Dywizja Husarii\" division_template = \"Królewska Dywizja Husarii\" start_experience_factor = 1.0" 
					owner = POL
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				prioritize = { 96 }
				create_unit = {
					division = "name = \"2 Królewska Dywizja Husarii\" division_template = \"Królewska Dywizja Husarii\" start_experience_factor = 1.0" 
					owner = POL
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				prioritize = { 88 }
				create_unit = {
					division = "name = \"3 Królewska Dywizja Husarii\" division_template = \"Królewska Dywizja Husarii\" start_experience_factor = 1.0" 
					owner = POL
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				prioritize = { 88 }
				create_unit = {
					division = "name = \"4 Królewska Dywizja Husarii\" division_template = \"Królewska Dywizja Husarii\" start_experience_factor = 1.0" 
					owner = POL
				}
			}
		}
	}
	focus = {
		id = POL_habsburg_monarchist_militants
		icon = GFX_focus_secret_rearmament
		prerequisite = { focus = POL_support_monarchy_in_CZE }
		prerequisite = { focus = POL_royal_hussars }
		relative_position_id = POL_support_monarchy_in_CZE

		x = 0
		y = 1
		cost = 5

		ai_will_do = {
			factor = 2.5
		}

		bypass = {
			CZE = {
				OR = {
					exists = no
					is_subject_of = ROOT
				}
			}
		}

		available_if_capitulated = yes
		available = {
			has_country_leader = {
				ruling_only = yes 
				character = POL_karl_albrecht
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			unlock_decision_tooltip = POL_arm_monarchist_militants
		}
	}

	focus = {
		id = POL_king_of_bohemia
		icon = GFX_full_czech_citizenship
		prerequisite = { focus = POL_support_monarchy_in_CZE }
		prerequisite = { focus = POL_royal_hussars }
		relative_position_id = POL_royal_hussars

		will_lead_to_war_with = CZE

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			has_country_leader = {
				ruling_only = yes 
				character = POL_karl_albrecht
			}
			OR = {
				CZE = {
					is_subject_of = POL
				}
				CZE = {
					custom_trigger_tooltip = {
						tooltip = has_monarchy_support_80_tt
						check_variable = {
							monarchist_support > 79
						}
					}
					has_war = no
				}
			}
		}

		bypass = {
			CZE = {
				OR = {
					is_subject_of = ROOT
					exists = no
				}
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION }

		completion_reward = {
			IF = {
				limit = {
					CZE = {
						is_subject = yes
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
				create_wargoal = {
					type = puppet_wargoal_focus
					target = CZE
				}	
			}
			ELSE = {
				CZE = { country_event = { id = NSB_poland_monarchist_events.5 hours = 8 } }
				custom_effect_tooltip = if_they_accept_tt
				effect_tooltip = {
					POL = {
						set_autonomy = {
							target = CZE
							autonomy_state = autonomy_personal_union
						}
					}
					CZE = {
						release = SLO
						release = RUT
					}
					POL = {
						country_event = { id = NSB_poland_monarchist_events.7 }
					}
				}
			}

		}
	}

	focus = {
		id = POL_unite_west_slavia
		icon = GFX_goal_generic_more_territorial_claims
		prerequisite = { focus = POL_king_of_bohemia }
		prerequisite = { focus = POL_habsburg_monarchist_militants }
		relative_position_id = POL_king_of_bohemia

		x = -1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			OR = {
				CZE = { is_subject_of = ROOT }
				AND = {
					all_state = {
						OR = {
							NOT = { is_core_of = CZE }
							is_owned_by = ROOT
						}
					}
					core_compliance = {
						occupied_country_tag = CZE
						value > 50
					}
				}
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = {
					CZE = {
						exists = yes
						is_ai = yes
					}
				}
				CZE = {
					every_character = {
						limit = {
							OR = {
								is_corps_commander = yes 
								is_navy_leader = yes
								is_field_marshal = yes
							}
							has_unit_leader_flag = POL_monarchy_sympathies_flag	
						}
						set_nationality = ROOT
					}
				}				
				annex_country = {
					target = CZE
					transfer_troops = yes
				}
			}
			else_if = {
				limit = {
					CZE = {
						exists = yes
						is_ai = no
					}
				}
				CZE = {
					country_event = {
						id = poland.15
						days = 1
					}
				}
			}
			#set_cosmetic_tag = POL_west_slavia #Wait for flags TODO
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							is_core_of = CZE
							is_core_of = SLO
						}
					}
					add_core_of = POL
				}
			}
			custom_effect_tooltip = form_country_czechoslovakia_coring_states_tt
		}
	}

	focus = { #r56
		id = POL_demand_slovakia_monarchy
		icon = GFX_goal_SLO_map_revolt
		prerequisite = { focus = POL_unite_west_slavia }
		relative_position_id = POL_unite_west_slavia
		text = POL_demand_slovakia_pavel
		x = -1
		y = 1
		cost = 5

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes
		
		available = {
			is_subject = no
			has_army_manpower = { size > 499999 }	
			OR = {
				AND = {
					SLO = {
						exists = yes
						is_subject = no
						has_war = no
						NOT = {
							is_in_faction_with = ROOT
						}
					}
				}
				AND = {
					CZE = {
						exists = yes
						is_subject = no
						has_war = no
						NOT = {
							is_in_faction_with = ROOT
						}
						OR = {
							owns_state = 73
							owns_state = 996
							owns_state = 664
							owns_state = 71
							owns_state = 70
							owns_state = 72
						}
					}
				}
			}
		}
		
		bypass = {
			SLO = { exists = no }
			CZE = { exists = no }
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = {
					SLO = { exists = yes }
				}
				SLO = {
					country_event = NSB_poland_events.1
				}
			}
			else_if = {
				limit = {
					CZE = { exists = yes }
				}
				CZE = {
					country_event = NSB_poland_events.1
				}
			}
		}
	}

	focus = {
		id = POL_soldier_king
		icon = GFX_focus_ger_return_of_the_kaiser
		prerequisite = { focus = POL_habsburg }
		relative_position_id = POL_habsburg

		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			has_country_leader = {
				ruling_only = yes 
				character = POL_karl_albrecht
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_POLITICAL }
		completion_reward = {
			POL_karl_albrecht = {
				add_country_leader_trait = POL_soldier_king
			}
			add_field_marshal_role = {
				character = "POL_karl_albrecht"
				traits={ infantry_officer war_hero }
				skill=3
				attack_skill=4
				defense_skill=3
				planning_skill=2
				logistics_skill=2
				legacy_id=-1
			}
		}
	}

	focus = {
		id = POL_kings_guard
		icon = GFX_goal_generic_allies_build_infantry
		prerequisite = { focus = POL_soldier_king }
		relative_position_id = POL_soldier_king

		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available = {
			has_country_leader = {
				ruling_only = yes 
				character = POL_karl_albrecht
			}
		}
		
		bypass = {
			has_capitulated = yes
		}

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_ideas = { POL_royal_guard }
			division_template = {
				name = "Oddział Gwardii Królewskiej"
				priority = 2
				division_names_group = POL_INF_01
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
		
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
					infantry = { x = 1 y = 2 }
		
					infantry = { x = 2 y = 0 }
					artillery_brigade = { x = 3 y = 0 }
					artillery_brigade = { x = 3 y = 1 }
				}
				support = {
					engineer = { x = 0 y = 0 }
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				prioritize = { 88 } #Krakow
				create_unit = {
					division = "name = \"Oddział Gwardii Królewskiej\" division_template = \"Oddział Gwardii Królewskiej\" start_experience_factor = 1.0" 
					owner = POL
				}
				create_unit = {
					division = "name = \"Oddział Gwardii Królewskiej\" division_template = \"Oddział Gwardii Królewskiej\" start_experience_factor = 1.0" 
					owner = POL
				}
			}
		}
	}

	focus = {
		id = POL_press_the_habsburg_claim
		icon = GFX_goal_AUS_otto_von_habsburg
		prerequisite = { focus = POL_kings_guard }
		relative_position_id = POL_kings_guard

		x = 2
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			has_country_leader = {
				ruling_only = yes 
				character = POL_karl_albrecht
			}
			if = { #Tooltip purposes (Vojvodina takes over Hungary and we don't want it to be shown here)
				limit = {
					HUN = {
						exists = yes
						NOT = { has_cosmetic_tag = vojvodina } #Vojvodina is created as a dynamic country with original tag HUN when YUG releases it via focus.
					}
				}
				HUN = {
					exists = yes
					NOT = { has_cosmetic_tag = vojvodina } #Vojvodina is created as a dynamic country with original tag HUN when YUG releases it via focus.
					NOT = {
						has_country_leader = {
							character = HUN_otto_von_habsburg
							ruling_only = yes
						}
					}
					
				}
			}
			else = {
				custom_trigger_tooltip = {
					tooltip = POL_hungary_exists_no_vojvodina_tt
					any_other_country = {
						NOT = { has_cosmetic_tag = vojvodina } #Vojvodina is created as a dynamic country with original tag HUN when YUG releases it via focus.
						tag = HUN
						exists = yes
						NOT = {
							has_country_leader = {
								character = HUN_otto_von_habsburg
								ruling_only = yes
							}
						}
					}
				}
			}
		}
		
		bypass = {
			HUN = {
				has_country_leader = {
					character = HUN_otto_von_habsburg
					ruling_only = yes
				}
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			if = { #Tooltip purposes (Vojvodina takes over Hungary and we don't want it to be shown here)
				limit = {
					HUN = {
						exists = yes
						NOT = { has_cosmetic_tag = vojvodina } #Vojvodina is created as a dynamic country with original tag HUN when YUG releases it via focus.
					}
				}
				HUN = {
					country_event = { id = POL_habsburg_events.1 hours = 3 } 
				}
			}
			else = {
				custom_effect_tooltip = POL_hungary_scope_no_vojvodina_tt
				effect_tooltip = {
					country_event = { id = POL_habsburg_events.1 hours = 3 } 
				}
			}
		}
	}

	focus = {
		id = POL_royal_officer_corps
		icon = GFX_focus_generic_military_academy
		prerequisite = { focus = POL_kings_guard }
		relative_position_id = POL_kings_guard

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			has_country_leader = {
				ruling_only = yes 
				character = POL_karl_albrecht
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ARMY_XP }
		completion_reward = {
			army_experience = 50
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = { POL_royal_officer_corps }
		}
	}

	focus = {
		id = POL_trust_in_the_west
		icon = GFX_focus_chi_british_cooperation
		prerequisite = { focus = POL_royal_officer_corps }
		relative_position_id = POL_royal_officer_corps
		
		mutually_exclusive = { focus = POL_align_with_habsburgs }

		x = -1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available = {
			is_subject = no
			any_other_country = {
				NOT = { has_war_with = ROOT }
				is_faction_leader = yes
				is_major = yes
				has_government = democratic
			}
			
			NOT = {
				any_other_country = {
					is_in_faction_with = ENG
					has_war_with = POL
				}
			}
			is_in_faction = no
			OR = {
				threat > 0.4
				has_war_with = GER
				GER = { has_wargoal_against = ROOT }
				has_government = democratic
				democratic > 0.4
			}
		}

		bypass = {
			OR = {
				is_in_faction_with = ENG
				AND = {
					is_in_faction = yes
					any_other_country = {
						is_faction_leader = yes
						is_in_faction_with = ROOT
						has_government = democratic
					}
				}
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			join_allies_effect = yes
		}
	}

	focus = {
		id = POL_align_with_habsburgs
		icon = GFX_focus_proclaim_the_restauration_of_Austria_Hungary
		prerequisite = { focus = POL_royal_officer_corps }
		relative_position_id = POL_royal_officer_corps
		
		mutually_exclusive = { focus = POL_trust_in_the_west }

		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available = {
			has_country_leader = {
				ruling_only = yes 
				character = POL_karl_albrecht
			}
			HUN = {
				exists = yes
				OR = {
					is_in_faction = no
					is_faction_leader = yes
				}
				NOT = { has_war_with = ROOT }
				OR = {
					has_country_leader = {
						character = HUN_otto_von_habsburg
						ruling_only = yes
					}
					has_country_leader = {
						character = HUN_joseph_august_von_habsburg
						ruling_only = yes
					}
				}
			}
			NOT = {
				any_allied_country = { has_war_with = HUN }
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			set_rule = { can_create_factions = yes }
			if = {
				limit = {
					HUN = { is_faction_leader = yes }
				}
				HUN = { country_event = generic.2 }
			}
			else = {
				create_faction_from_template = {
					template = faction_template_habsburg_alliance
					name = POL_habsburg_pact
				}
				HUN = { country_event = POL_habsburg_events.2 }
				if = {
					limit = {
						UKR = {
							exists = yes 
							is_subject = no
							has_country_leader = {
								character = UKR_vasyl_vyshyvanyi ruling_only = yes
							}
						}
					}
					UKR = { country_event = POL_habsburg_events.2 }
				}
			}
		}
	}

	focus = {
		id = POL_reclaim_west_slavia
		icon = GFX_goal_generic_territory_or_war
		prerequisite = { focus = POL_align_with_habsburgs focus = POL_trust_in_the_west }
		prerequisite = { focus = POL_unite_west_slavia }
		relative_position_id = POL_trust_in_the_west
		will_lead_to_war_with = GER	#56

		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available = {
			is_subject = no 
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			66 = { add_core_of = ROOT }
			67 = { add_core_of = ROOT }
			68 = { add_core_of = ROOT }
			63 = { add_core_of = ROOT }
			5 = { add_core_of = ROOT }
			763 = { add_core_of = ROOT }
			every_other_country = {
				limit = {
					OR = {
						owns_state = 66
						owns_state = 67
						owns_state = 68
						owns_state = 63
						owns_state = 5
						owns_state = 763
					}
				}
				custom_effect_tooltip = gain_regain_core_tt
				hidden_effect = {
					PREV = {
						create_wargoal = {
							type = take_core_state
							target = PREV
							generator = {
								66 67 68 63 5 763
							}
						}
					}
				}
			}
		}
	}

	focus = {
		id = POL_join_CZE_rails
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = POL_unite_west_slavia }
		relative_position_id = POL_unite_west_slavia

		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			build_railway = {
				path = { 3410 3581 }
			}
			build_railway = {
				path = { 6483 6460 9563 11536 11691 13301 }
			}

			random_state = {
				limit = {
					has_state_flag = POL_join_CZE_rails_1
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}

			random_state = {
				limit = {
					has_state_flag = POL_join_CZE_rails_2
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}

		completion_reward = {
			build_railway = {
				path = { 3410 3581 }
			}
			build_railway = {
				path = { 6483 6460 9563 11536 11691 13301 }
			}

			random_core_state = {
				prioritize = { 88 }
				limit = {
					is_controlled_by_ROOT_or_ally = yes
					is_in_home_area = yes					
					free_building_slots = {
						building = infrastructure
						size > 1
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_join_CZE_rails_1
			}

			random_core_state = {
				prioritize = { 89 }
				limit = {
					is_controlled_by_ROOT_or_ally = yes
					is_in_home_area = yes					
					free_building_slots = {
						building = infrastructure
						size > 1
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
				set_state_flag = POL_join_CZE_rails_2
			}
		}
	}

	focus = {
		id = POL_join_CZE_industry
		icon = GFX_goal_generic_state_economy
		prerequisite = { focus = POL_unite_west_slavia }
		relative_position_id = POL_unite_west_slavia

		x = 0
		y = 2
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			random_owned_state = {
				prioritize = { 9 }
				limit = {
					is_controlled_by = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			random_owned_state = {
				prioritize = { 88 }
				limit = {
					is_controlled_by = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = POL_join_CZE_military
		icon = GFX_goal_CZE_coa_army
		prerequisite = { focus = POL_join_CZE_industry }
		prerequisite = { focus = POL_join_CZE_rails }
		relative_position_id = POL_join_CZE_industry

		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			random_owned_state = {
				prioritize = { 9 }
				limit = {
					is_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			random_owned_state = {
				prioritize = { 88 }
				limit = {
					is_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	##################
	###KING MICHAEL###
	##################
	focus = {
		id = POL_hohenzollern
		icon = GFX_goal_ROM_institute_royal_dictatorship
		prerequisite = { focus = POL_fulfil_fifth_of_november }
		relative_position_id = POL_fulfil_fifth_of_november

		mutually_exclusive = { focus = POL_habsburg focus = POL_claiming_lithuania focus = POL_cossack_king focus = POL_romanov }

		x = -2
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes
		
		available = {
			custom_trigger_tooltip = {
				tooltip = elect_michael_tt		
				always = no
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			effect_tooltip = {
				ROM = {
					ROM_king_michael = {
						set_nationality = ROOT
						promote_character = constitutional_monarchy
					}
				}
			}
		}
	}

	#############
	###COSSACK###
	#############
	focus = {
		id = POL_cossack_king
		icon = GFX_focus_POL_cossack_king
		prerequisite = { focus = POL_fulfil_fifth_of_november }
		relative_position_id = POL_fulfil_fifth_of_november

		mutually_exclusive = { focus = POL_habsburg focus = POL_hohenzollern focus = POL_claiming_lithuania focus = POL_romanov }

		x = 7
		y = 1
		cost = 10
		offset = {
			x = 2
			y = 0
			trigger = {
				has_country_flag = romanov_enabled
			}
		}

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes
		
		available = {
			custom_trigger_tooltip = {
				tooltip = elect_pavel_tt		
				always = no
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			effect_tooltip = {
				add_ruling_to_fas = yes
				set_politics = {
					ruling_party = fascism
					elections_allowed = no
				}
				set_party_name = { 
					ideology = fascism 
					long_name = bermontian_party
					name = bermontian_party 
				}
				promote_character = POL_pavel_bermondt_avalov
				set_cosmetic_tag = POL_KINGDOM_RUS_fascism
			}
		}
	}

	focus = {
		id = POL_restore_bermontians
		icon = GFX_goal_generic_small_arms
		prerequisite = { focus = POL_cossack_king }
		relative_position_id = POL_cossack_king

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes
		
		available = {
			is_subject = no
			has_government = fascism
		}

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			show_unit_leaders_tooltip = POL_rudinger_von_der_goltz
			add_field_marshal_role = {
				character = "POL_pavel_bermondt_avalov"
				traits={ cavalry_officer trait_reckless }
				skill=3
				attack_skill=4
				defense_skill=1
				planning_skill=2
				logistics_skill=4
				legacy_id=-1
			}
			division_template = {
				name = "Oddział im. Bermonta"
				priority = 2
				#template_counter = 0
				division_names_group = POL_INF_01
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
		
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
					infantry = { x = 1 y = 2 }
		
					infantry = { x = 2 y = 0 }
					infantry = { x = 2 y = 1 }
					infantry = { x = 2 y = 2 }
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				prioritize = { 91 }
				create_unit = {
					division = "name = \"1 Oddział im. Bermonta\" division_template = \"Oddział im. Bermonta\" start_experience_factor = 1.0" 
					owner = POL
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				prioritize = { 95 }
				create_unit = {
					division = "name = \"2 Oddział im. Bermonta\" division_template = \"Oddział im. Bermonta\" start_experience_factor = 1.0" 
					owner = POL
				}
			}
			division_template = {
				name = "Kozacy Bermontowie"
				priority = 2
				division_names_group = POL_INF_01
				regiments = {
					cavalry = { x = 0 y = 0 }
					cavalry = { x = 0 y = 1 }
					cavalry = { x = 0 y = 2 }
		
					cavalry = { x = 1 y = 0 }
					cavalry = { x = 1 y = 1 }
					cavalry = { x = 1 y = 2 }
		
					cavalry = { x = 2 y = 0 }
					cavalry = { x = 2 y = 1 }
					cavalry = { x = 2 y = 2 }
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				prioritize = { 94 }
				create_unit = {
					division = "name = \"1 Kozacy Bermontowie\" division_template = \"Kozacy Bermontowie\" start_experience_factor = 1.0" 
					owner = POL
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				prioritize = { 96 }
				create_unit = {
					division = "name = \"2 Kozacy Bermontowie\" division_template = \"Kozacy Bermontowie\" start_experience_factor = 1.0" 
					owner = POL
				}
			}
		}
	}

	focus = {
		id = POL_demand_LIT_pavel
		icon = GFX_goal_LIT_restore_the_gdl
		prerequisite = { focus = POL_restore_bermontians focus = POL_invite_exiled_nobility }
		relative_position_id = POL_restore_bermontians
		will_lead_to_war_with = LIT

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		allow_branch = {
			has_dlc = "No Step Back"
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = POL_organize_the_peasants_strike
						has_completed_focus = POL_complete_april_constitution
						has_completed_focus = POL_radicalize_the_front
						has_completed_focus = POL_rewrite_1935_constitution
					}
				}
			}
		}
		
		available = {
			is_subject = no 
			IF = {
				limit = { has_completed_focus = POL_romanov }
				has_government = neutrality
			}
			ELSE = {
				has_government = fascism
			}
			LIT = { 
				exists = yes
				has_capitulated = no
				is_subject = no
				NOT = { has_war_with = ROOT }
				NOT = { is_in_faction_with = ROOT }
			}
			784 = {
				owns_or_subject_of = yes
			}
			has_army_manpower = { size > 399999 }
		}
		
		bypass = {
			OR = {
				LIT = {
					OR = {
						exists = no
						has_capitulated = yes
						is_subject = yes
						has_war_with = ROOT
						is_in_faction_with = ROOT
					}
				}
				784 = {
					owns_or_subject_of = no
				}
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			#Poland demands Lithuanian annexation
			if = {
				limit = {
					LIT = { has_war = no }
				}
				LIT = {
					country_event = {
						id = poland.15
						days = 5
					}
				}
			}
			else = {
				11 = {
					add_claim_by = POL
				}
				814 = {
					add_claim_by = POL
				}
				815 = {
					add_claim_by = POL
				}
				189 = {
					add_claim_by = POL
				}
				create_wargoal = {
					type = annex_everything
					target = LIT
				}
			}
		}
	}

	focus = {
		id = POL_demand_slovakia_pavel
		icon = GFX_goal_SLO_map_revolt
		prerequisite = { focus = POL_demand_LIT_pavel }
		relative_position_id = POL_demand_LIT_pavel

		x = -1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes
		
		available = {
			is_subject = no
			IF = {
				limit = { has_completed_focus = POL_romanov }
				has_government = neutrality
			}
			ELSE = {
				has_government = fascism
			}
			has_army_manpower = { size > 499999 }	
			OR = {
				AND = {
					SLO = {
						exists = yes
						is_subject = no
						has_war = no
						NOT = {
							is_in_faction_with = ROOT
						}
					}
				}
				AND = {
					CZE = {
						exists = yes
						is_subject = no
						has_war = no
						NOT = {
							is_in_faction_with = ROOT
						}
						OR = {
							owns_state = 73
							owns_state = 996
							owns_state = 664
							owns_state = 71
							owns_state = 70
							owns_state = 72
						}
					}
				}
			}
		}
		
		bypass = {
			OR = {
				AND = {
					SLO = { exists = no }
					CZE = { exists = no }
				}
				AND = {
					controls_state = 73
					controls_state = 996
					controls_state = 664
					controls_state = 71
					controls_state = 70
					controls_state = 72
				}
			}
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			73 = {
				add_claim_by = POL
			}
			996 = {
				add_claim_by = POL
			}
			664 = {
				add_claim_by = POL
			}
			71 = {
				add_claim_by = POL
			}
			70 = {
				add_claim_by = POL
			}
			72 = {
				add_claim_by = POL
			}
			if = {
				limit = {
					SLO = { exists = yes }
				}
				SLO = {
					country_event = NSB_poland_events.1
				}
			}
			else_if = {
				limit = {
					CZE = { exists = yes }
				}
				CZE = {
					country_event = NSB_poland_events.1
				}
			}
		}
	}

	focus = {
		id = POL_governorate_livonia
		icon = GFX_focus_LIT_reclaim_courland
		prerequisite = { focus = POL_demand_LIT_pavel }
		relative_position_id = POL_demand_LIT_pavel

		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes
		
		available = {
			is_subject = no
			IF = {
				limit = { has_completed_focus = POL_romanov }
				has_government = neutrality
			}
			ELSE = {
				has_government = fascism
			}
			has_army_manpower = { size > 549999 }	
			OR = {
				EST = {
					exists = yes
					is_subject = no
					has_war = no
					NOT = {
						is_in_faction_with = ROOT
					}
				}
				LAT = {
					exists = yes
					is_subject = no
					has_war = no
					NOT = {
						is_in_faction_with = ROOT
					}
				}
			}
		}
		
		bypass = {
			LAT = { exists = no }
			EST = { exists = no }
		}

		will_lead_to_war_with = LAT	#56
		will_lead_to_war_with = EST	#56

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = {
					EST = {
						exists = yes
						is_subject = no
						has_war = no
						NOT = {
							is_in_faction_with = ROOT
						}
					}
				}
				create_wargoal = {
					type = annex_everything
					target = EST
				}
			}
			if = {
				limit = {
					LAT = {
						exists = yes
						is_subject = no
						has_war = no
						NOT = {
							is_in_faction_with = ROOT
						}
					}
				}
				create_wargoal = {
					type = annex_everything
					target = LAT
				}
			}
			#Also triggers NSB_poland_pavel_events.1
		}
	}

	focus = {
		id = POL_seek_german_alignment
		icon = GFX_focus_generic_seek_accomodation_with_germany
		prerequisite = { focus = POL_demand_slovakia_pavel }
		prerequisite = { focus = POL_governorate_livonia }
		relative_position_id = POL_demand_LIT_pavel
		mutually_exclusive = { focus = POL_assert_western_claims focus = POL_claim_russia }

		x = 1
		y = 2
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes
		
		available = {
			is_subject = no
			has_government = fascism
			GER = {
				NOT = { has_war_with = ROOT }
				has_government = fascism
				has_capitulated = no
				is_faction_leader = yes
			}
			NOT = {
				any_other_country = {
					is_in_faction_with = GER
					has_war_with = POL
				}
			}
		}

		bypass = {
			is_in_faction_with = GER
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			GER = { country_event = NSB_polish_fascist_events.1 }
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				POL_become_german_puppet_effect = yes
			}
		}
	}

	focus = {
		id = POL_assert_eastern_claims_pavel
		icon = GFX_focus_attack_soviet
		prerequisite = { focus = POL_seek_german_alignment }
		relative_position_id = POL_seek_german_alignment

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes
		available = { has_government = fascism }

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			claim_greater_LIT_effect = yes
		}
	}

	focus = {
		id = POL_assert_western_claims
		icon = GFX_focus_attack_germany
		prerequisite = { focus = POL_demand_slovakia_pavel }
		prerequisite = { focus = POL_governorate_livonia }
		relative_position_id = POL_demand_LIT_pavel
		mutually_exclusive = { focus = POL_seek_german_alignment focus = POL_claim_russia }

		x = -1
		y = 2
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			NOT = {
				is_in_faction_with = GER
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			5 = {
				add_claim_by = POL
			}
			763 = {
				add_claim_by = POL
			}
			63 = {
				add_claim_by = POL
			}
			68 = {
				add_claim_by = POL
			}
		}
	}

	focus = {
		id = POL_demand_pomerania
		icon = GFX_goal_generic_territory_or_war
		prerequisite = { focus = POL_assert_western_claims focus = POL_claim_russia }
		relative_position_id = POL_assert_western_claims
		
		allow_branch = {
			has_dlc = "No Step Back"
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = POL_organize_the_peasants_strike
						has_completed_focus = POL_complete_april_constitution
						has_completed_focus = POL_radicalize_the_front
						has_completed_focus = POL_rewrite_1935_constitution
					}
				}
			}
		}

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes
		
		available = {
			NOT = {
				is_in_faction_with = GER
			}
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			GER = { country_event = pavel_events.3 }
		}
	}

	focus = {
		id = POL_complete_the_bermontian_mission
		icon = GFX_focus_SOV_restore_cossack_units
		prerequisite = { focus = POL_demand_pomerania focus = POL_assert_eastern_claims_pavel }
		relative_position_id = POL_demand_LIT_pavel

		x = 0
		y = 4
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			is_subject = no
			has_government = fascism
			SOU = {
				NOT = {
					has_government = neutrality
					has_government = fascism
				}
				exists = yes
				is_subject = no
				NOT = { is_in_faction_with = ROOT }
			}
		}

		will_lead_to_war_with = SOV	#56

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			create_wargoal = {
				type = topple_government
				target = SOU
			}
			unlock_decision_category_tooltip = POL_cossack_republic_decisions
		}
	}
	############
	###EASTER###
	############
	focus = {
		id = POL_romanov
		icon = GFX_focus_generic_home_defense
		prerequisite = { focus = POL_fulfil_fifth_of_november }
		relative_position_id = POL_fulfil_fifth_of_november

		mutually_exclusive = { focus = POL_habsburg focus = POL_hohenzollern focus = POL_claiming_lithuania focus = POL_cossack_king }
		
		allow_branch = { has_country_flag = romanov_enabled }

		x = 6
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = elect_anastasia_tt		
				always = no
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			effect_tooltip = {
				promote_character = POL_anna_andersson
				set_cosmetic_tag = POL_KINGDOM_RUS
			}
		}
	}

	focus = {
		id = POL_invite_exiled_nobility
		icon = GFX_focus_rom_royal_dictatorship
		prerequisite = { focus = POL_romanov }
		relative_position_id = POL_romanov

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_ideas = POL_royal_sejm_idea
			swap_ruler_traits = {
				remove = the_last_romanov_maybe
				add = the_last_romanov_probably
			}
		}
	}

	focus = {
		id = POL_pan_slavism
		icon = GFX_goal_generic_more_territorial_claims
		prerequisite = { focus = POL_invite_exiled_nobility }
		relative_position_id = POL_invite_exiled_nobility

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_ideas = POL_slavic_revanchism
		}
	}

	focus = {
		id = POL_demand_yugoslav_subjugation
		icon = GFX_goal_generic_territory_or_war
		prerequisite = { focus = POL_pan_slavism }
		prerequisite = { focus = POL_demand_LIT_pavel }
		relative_position_id = POL_pan_slavism

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			YUG = { exists = yes }
		}
		
		bypass = {
			all_state = {
				OR = {
					NOT = { is_core_of = YUG }
					owner = { tag = ROOT }
					controller = { tag = ROOT }
				}
			}
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = {
					YUG = {
						is_subject = no
						exists = yes
						has_capitulated = no
					}
				}
				YUG = { country_event = NSB_poland_monarchist_events.6 }
			}
			else = {
				every_state = {
					limit = {
						is_core_of = YUG
					}
					add_claim_by = ROOT
				}
			}
		}
	}

	focus = {
		id = POL_claim_russia
		icon = GFX_focus_attack_soviet
		prerequisite = { focus = POL_governorate_livonia }
		prerequisite = { focus = POL_demand_slovakia_pavel }
		prerequisite = { focus = POL_demand_yugoslav_subjugation }
		relative_position_id = POL_demand_yugoslav_subjugation
		mutually_exclusive = { focus = POL_assert_western_claims focus = POL_seek_german_alignment }

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			SOV = {
				exists = yes
				NOT = { is_ally_with = ROOT }
			}
		}
				
		bypass = {
			custom_trigger_tooltip = {
				tooltip = controls_all_russian_states_tt
				all_state = {
					OR = { 
						NOT = { is_core_of = SOV }
						is_core_of = AZR
						is_core_of = GEO
						is_core_of = ARM
						is_core_of = TMS
						is_core_of = UZB
						is_core_of = KAZ
						is_core_of = TAJ
						is_core_of = KYR
						controller = { tag = ROOT }
					}
				}
			}
		}

		will_lead_to_war_with = SOV	#56
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			create_wargoal = {
				type = annex_everything
				target = SOV
			}
			swap_ruler_traits = {
				remove = the_last_romanov_probably
				add = the_last_romanov_definitely
			}
		}
	}

	focus = {
		id = POL_proclaim_slavic_unity
		icon = GFX_goal_generic_national_unity
		prerequisite = { focus = POL_claim_russia }
		prerequisite = { focus = POL_demand_pomerania }
		relative_position_id = POL_claim_russia

		x = 0
		y = 2
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			OR = {
				controls_state = 219
				controls_state = 195
			}
			OR = {
				controls_state = 137
				controls_state = 202
			}
			OR = {
				controls_state = 217
				controls_state = 408
			}
			SOV = {
				OR = {
					surrender_progress > 0.5
					exists = no
					is_subject = yes
				}
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			set_cosmetic_tag = SLAVIC_UNIFIED
			every_state = {
				limit = {
					OR = {
						is_core_of = POL
						is_core_of = SIL
						is_core_of = KSH
						is_core_of = UKR
						is_core_of = BLR
						AND = {
							is_core_of = SOV
							NOT = {
								is_core_of = AZR
								is_core_of = GEO
								is_core_of = ARM
								is_core_of = TMS
								is_core_of = UZB
								is_core_of = KAZ
								is_core_of = TAJ
								is_core_of = KYR
							}
						}
						is_core_of = YUG
						is_core_of = BUL
						is_core_of = CZE
						is_core_of = SLO
						state = 5
						state = 763
					}
				}
				add_core_of = POL
			}
		}
	}

	#############
	###POL-LIT###
	#############
	focus = {
		id = POL_claiming_lithuania
		icon = GFX_focus_generic_monarchy_1
		prerequisite = { focus = POL_fulfil_fifth_of_november }
		relative_position_id = POL_fulfil_fifth_of_november

		mutually_exclusive = { focus = POL_habsburg focus = POL_hohenzollern focus = POL_cossack_king focus = POL_romanov }

		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = elect_friedrich_tt		
				always = no
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			effect_tooltip = {
				promote_character = POL_friedrich_christian
			}
		}
	}

	focus = {
		id = POL_restoration_of_the_royal_sejm
		icon = GFX_focus_rom_royal_dictatorship
		prerequisite = { focus = POL_claiming_lithuania focus = POL_hohenzollern }
		relative_position_id = POL_claiming_lithuania

		x = -1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_ideas = {
				POL_royal_sejm_idea
			}
		}
	}

	focus = {
		id = POL_institute_royal_guards
		icon = GFX_goal_generic_small_arms
		prerequisite = { focus = POL_restoration_of_the_royal_sejm }
		relative_position_id = POL_restoration_of_the_royal_sejm

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			division_template = {
				name = "Oddział Gwardii Królewskiej"
				priority = 2
				division_names_group = POL_INF_01
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
					infantry = { x = 0 y = 3 }
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
					infantry = { x = 1 y = 2 }
					infantry = { x = 1 y = 3 }
					artillery_brigade = { x = 2 y = 0 }
					artillery_brigade = { x = 2 y = 1 }
				}
				support = {
					engineer = { x = 0 y = 0 }
				}
			}
			random_owned_controlled_state = {
				limit = { ROOT = { has_full_control_of_state = PREV } }
				prioritize = { 10 } #Warsaw
				create_unit = {
					division = "name = \"Oddział Gwardii Królewskiej\" division_template = \"Oddział Gwardii Królewskiej\" start_experience_factor = 1.0" 
					owner = POL
				}
				create_unit = {
					division = "name = \"Oddział Gwardii Królewskiej\" division_template = \"Oddział Gwardii Królewskiej\" start_experience_factor = 1.0" 
					owner = POL
				}
			}
		}
	}

	focus = {
		id = POL_support_monarchism_in_LIT
		icon = GFX_goal_LIT_restore_the_monarchy
		prerequisite = { focus = POL_restoration_of_the_royal_sejm }
		prerequisite = { focus = POL_claiming_lithuania }
		relative_position_id = POL_restoration_of_the_royal_sejm

		x = 2
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		available = {
			is_subject = no 
			has_government = neutrality
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			hidden_effect = {
				if = {
					limit = {
						LIT = { has_completed_focus = LIT_support_monarchism_in_POL }
					}
					LIT = { set_country_flag = POL_banned_monarchy_flag }
					set_country_flag = POL_banned_monarchy_flag
					hidden_effect = {
						if = {
							limit = { is_ai = yes }
							save_event_target_as = POL_or_LIT_target
							LIT = {country_event = LIT_monarchy_events.1 }
						}
						else = {
							LIT = { save_event_target_as = POL_or_LIT_target }
							country_event = LIT_monarchy_events.1
						}
					}
				}
				else = {
					LIT = {
						country_event = NSB_poland_monarchist_events.1
					}
					save_global_event_target_as = pol_monarchy_claimer_target
				}
			}
			custom_effect_tooltip = POL_support_monarchy_in_LIT_tt
			show_unit_leaders_tooltip = POL_stefan_dab_biernacki
		}
	}

	focus = {
		id = POL_arm_monarchist_militants
		icon = GFX_goal_generic_military_deal
		prerequisite = { focus = POL_support_monarchism_in_LIT focus = POL_internal_romanian_support }
		relative_position_id = POL_institute_royal_guards

		x = 0
		y = 1
		cost = 5

		ai_will_do = {
			factor = 2.5
		}
		available = {
			is_subject = no 
			has_government = neutrality
		}

		bypass = {
			OR = {
				AND = {
					has_completed_focus = POL_claiming_lithuania
					LIT = {
						OR = {
							exists = no
							is_subject_of = ROOT
							has_country_flag = POL_banned_monarchy_flag
						}
					}
				}
				AND = {
					has_completed_focus = POL_hohenzollern
					ROM = {
						OR = {
							exists = no
							is_subject_of = ROOT
							has_country_flag = POL_banned_monarchy_flag
						}
					}
				}
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			unlock_decision_tooltip = POL_arm_monarchist_militants
		}
	}

	focus = {
		id = POL_king_of_lithuania
		icon = GFX_goal_tfv_strengthen_commonwealth_ties
		prerequisite = { focus = POL_support_monarchism_in_LIT }
		prerequisite = { focus = POL_institute_royal_guards }
		relative_position_id = POL_institute_royal_guards

		x = 2
		y = 1
		cost = 5

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			is_subject = no 
			has_government = neutrality
			OR = {
				LIT = {
					is_subject_of = POL
				}
				LIT = {
					has_country_flag = POL_banned_monarchy_flag
				}
				LIT = {
					custom_trigger_tooltip = {
						tooltip = has_monarchy_support_80_tt
						check_variable = {
							monarchist_support > 79
						}
					}
					has_war = no
				}
			}
		}

		bypass = {
			LIT = {
				OR = {
					is_subject_of = ROOT
					exists = no
				}
			}
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = {
					NOT = { has_country_flag = POL_banned_monarchy_flag }
					LIT = { is_ai = yes } #RT56 RP
				}
				LIT = { country_event = NSB_poland_monarchist_events.5 }
				custom_effect_tooltip = if_they_accept_tt
				effect_tooltip = {
					POL = {
						set_autonomy = {
							target = LIT
							autonomy_state = autonomy_personal_union
						}
					}
				}
			}
			else = {
				create_wargoal = {
					target = LIT
					type = puppet_wargoal_focus
				}
			}
		}
	}

	focus = {
		id = POL_LIT_union
		icon = GFX_goal_generic_national_unity
		prerequisite = { focus = POL_king_of_lithuania focus = POL_demand_LIT_pavel }
		relative_position_id = POL_king_of_lithuania

		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			OR = {
				LIT = { is_subject_of = ROOT }
				AND = {
					all_state = {
						OR = {
							NOT = { is_core_of = LIT }
							is_owned_by = ROOT
						}
					}
					core_compliance = {
						occupied_country_tag = LIT
						value > 50
					}
				}
			}
		}
		
		bypass = {
			has_global_flag = form_commonwealth_flag
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = {
					LIT = {
						exists = yes
						is_ai = yes
					}
				}
				random_other_country = {
					limit = {
						is_subject_of = ROOT 
						original_tag = LIT 
					}
					every_character = {
						limit = {
							OR = {
								is_corps_commander = yes 
								is_navy_leader = yes
								is_field_marshal = yes
							}
							has_unit_leader_flag = POL_monarchy_sympathies_flag
						}
						set_nationality = ROOT 
					}					
				}
				annex_country = {
					target = LIT
					transfer_troops = yes
				}
			}
			else_if = {
				limit = {
					LIT = {
						exists = yes
						is_ai = no
					}
				}
				LIT = {
					country_event = {
						id = poland.15
						days = 1
					}
				}
			}
			hidden_effect = {
				activate_decision = form_commonwealth
				5 = { remove_core_of = POL }
				763 = { remove_core_of = POL }
			}
			if = {
				limit = { NOT = { has_cosmetic_tag = POL_KINGDOM_RUS } }
				effect_tooltip = {
					set_cosmetic_tag = PLC_UNIFIED
				}
			}
			custom_effect_tooltip = form_country_lithuania_coring_states_tt
			custom_effect_tooltip = form_country_poland_coring_states_tt
			custom_effect_tooltip = form_country_latvia_coring_states_tt
		}
	}

	focus = {
		id = POL_expand_lithuanian_shipyards
		icon = GFX_goal_generic_construct_naval_dockyard
		prerequisite = { focus = POL_LIT_union }
		relative_position_id = POL_LIT_union

		x = -1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			any_owned_state = {
				is_controlled_by = ROOT
				is_core_of = LIT
				is_coastal = yes
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			random_owned_state = {
				limit = {
					is_controlled_by = ROOT
					is_core_of = LIT
					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
				}
			}
		}
	}

	focus = {
		id = POL_lithuanian_rail
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = POL_LIT_union }
		relative_position_id = POL_LIT_union

		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			815 = {
				controls_or_subject_of = yes
			}
			784 = {
				controls_or_subject_of = yes
			}
			11 = {
				controls_or_subject_of = yes
			}
			814 = {
				controls_or_subject_of = yes
			}
			97 = {
				controls_or_subject_of = yes
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			build_railway = {
				#level = 3
				path = { 11342 11226 9246 9374 530 6376 9483 }
			}
			build_railway = {
				#level = 3
				path = { 11357 400 3254 11312 }
			}
			build_railway = {
				#level = 3
				path = { 6296 9357 9438 9374 }
			}

			random_core_state = {
				limit = {
					is_in_home_area = yes					
					free_building_slots = {
						building = infrastructure
						size > 1
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}

			random_core_state = {
				limit = {
					is_in_home_area = yes					
					free_building_slots = {
						building = infrastructure
						size > 1
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = POL_merge_the_arms_industries
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = POL_lithuanian_rail }
		relative_position_id = POL_lithuanian_rail

		x = -1
		y = 2
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			random_owned_state = {
				limit = {
					is_controlled_by = ROOT
					is_core_of = LIT
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			random_owned_state = {
				limit = {
					is_controlled_by = ROOT
					is_core_of = LIT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = POL_merge_civilian_industries
		icon = GFX_goal_generic_construct_civ_factory
		prerequisite = { focus = POL_merge_the_arms_industries }
		relative_position_id = POL_merge_the_arms_industries

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = LIT
					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
				}
			}
			random_owned_controlled_state = {
				limit = {
					is_core_of = LIT
					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 = POL_push_for_ruthenia
		icon = GFX_focus_generic_public_works_A
		prerequisite = { focus = POL_lithuanian_rail }
		relative_position_id = POL_lithuanian_rail

		x = 0
		y = 1
		cost = 5

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			94 = {
				controls_or_subject_of = yes
			}
			93 = {
				controls_or_subject_of = yes
			}
			201 = {
				controls_or_subject_of = yes
			}
			202 = {
				controls_or_subject_of = yes
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			build_railway = {
				#level = 2
				path = { 3392 11528 6415 560 11503 6435 11543 3470 6593 441 3543 525 }
			}

			random_owned_controlled_state = {
				prioritize = {93} 
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}

		}
	}

	focus = {
		id = POL_warsaw_to_crimea_railway
		icon = GFX_cold_railway_2
		prerequisite = { focus = POL_push_for_ruthenia }
		relative_position_id = POL_push_for_ruthenia

		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			137 = { controls_or_subject_of = yes }
			custom_trigger_tooltip = {
				tooltip = control_all_ukrainian_states_tt
				all_state = {
					OR = {
						NOT = { is_core_of = UKR }
						controls_or_subject_of = yes 
						state = 766
					}
				}
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			build_railway = {
				#level = 2
				path = { 525 504 9456 11438 458 3452 6451 11561 11715 737 568 3722 705 3686 }
			}
			build_railway = {
				#level = 2
				path = { 11670 3738 11703 11546 11683 3755 737 568 3722 705 3686 }
			}
			random_core_state = {
				prioritize = {93} 
				limit = {
					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 = POL_claim_livonia
		icon = GFX_focus_LIT_reclaim_courland
		prerequisite = { focus = POL_LIT_union }
		prerequisite = { focus = POL_king_of_lithuania }
		prerequisite = { focus = POL_arm_monarchist_militants }
		relative_position_id = POL_LIT_union

		x = -3
		y = 1
		cost = 10

		ai_will_do = {
			base = 0 #56 Anti AI Crash-Into-Wall
			modifier = {
				add = 2.5
				has_war = no
				has_army_manpower = { size > 449999 }
			}
		}
		
		available = {
			is_subject = no 
			has_government = neutrality
		}

		will_lead_to_war_with = LAT	#56
		will_lead_to_war_with = EST	#56
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = {
					EST = {
						exists = yes
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
				create_wargoal = {
					target = EST
					type = annex_everything
				}
			}
			if = {
				limit = {
					LAT = {
						exists = yes
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
				create_wargoal = {
					target = LAT
					type = annex_everything
				}
			}
		}
	}
	
	focus = {
		id = POL_claim_prussia
		icon = GFX_focus_POL_prussia_line
		prerequisite = { focus = POL_claim_livonia }
		relative_position_id = POL_claim_livonia

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
		}
		
		bypass = {
			5 = { is_core_of = ROOT }
			763 = { is_core_of = ROOT }
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			5 = {
				add_core_of = POL
			}
			763 = {
				add_core_of = POL
			}
		}
	}
	
	focus = {
		id = POL_claim_greater_lithuania
		icon = GFX_focus_LIT_restore_the_grand_duchy
		prerequisite = { focus = POL_claim_livonia }
		relative_position_id = POL_claim_livonia

		x = 2
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
		}

		will_lead_to_war_with = SOV
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			claim_greater_LIT_effect = yes
			create_wargoal = {
				type = take_state_focus
				target = SOV
				generator = { 96 95 94 207 206 204 241 93 199 201 198 202 203 259 193 225 221 226 197 192 242 243 224 205 223 222 220 240 194 }
			}
		}
	}

	focus = {
		id = POL_greater_commonwealth
		icon = GFX_goal_generic_propaganda
		prerequisite = { focus = POL_claim_greater_lithuania }
		prerequisite = { focus = POL_claim_prussia }
		relative_position_id = POL_claim_prussia

		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			controls_state = 96
			controls_state = 95
			controls_state = 94
			controls_state = 207
			controls_state = 206
			controls_state = 204
			controls_state = 241
			controls_state = 93
			controls_state = 199
			controls_state = 201
			controls_state = 198
			controls_state = 202
			controls_state = 203
			controls_state = 259
			controls_state = 193
			controls_state = 225
			controls_state = 221
			controls_state = 226
			controls_state = 197
			controls_state = 192
			controls_state = 242
			controls_state = 243
			controls_state = 224
			controls_state = 205
			controls_state = 223
			controls_state = 222
			controls_state = 220
			controls_state = 240
			controls_state = 194
			controls_state = 137
			controls_state = 5
			controls_state = 763
			controls_state = 67
			controls_state = 66
			controls_state = 68
			controls_state = 63
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			every_state = {
				limit = {
					OR = {
						is_core_of = LIT
						is_core_of = KSH
						is_core_of = UKR
						state = 96
						state = 95
						state = 94
						state = 207
						state = 206
						state = 204
						state = 241
						state = 93
						state = 199
						state = 201
						state = 198
						state = 202
						state = 203
						state = 259
						state = 193
						state = 225
						state = 221
						state = 226
						state = 197
						state = 192
						state = 242
						state = 243
						state = 224
						state = 205
						state = 223
						state = 222
						state = 220
						state = 240
						state = 194
						state = 137
						state = 5
						state = 763
						state = 67
						state = 66
						state = 68
						state = 63
					}
				}
				add_core_of = ROOT
			}
		}
	}

	#ROM#
	focus = {
		id = POL_internal_romanian_support
		icon = GFX_focus_invite_romania
		prerequisite = { focus = POL_hohenzollern }
		prerequisite = { focus = POL_restoration_of_the_royal_sejm }
		relative_position_id = POL_hohenzollern

		x = 0
		y = 2
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		available = {
			is_subject = no 
			has_government = neutrality
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			hidden_effect = {
				ROM = {
					country_event = NSB_poland_monarchist_events.1
					ROM_ioan_mihail_racovita = {
						set_unit_leader_flag = POL_monarchy_sympathies_flag
					}					
				}
				save_global_event_target_as = pol_monarchy_claimer_target
			}
			custom_effect_tooltip = POL_support_monarchy_in_ROM_tt
		}
	}

	focus = {
		id = POL_king_michaels_coup
		icon = GFX_focus_rom_coup
		prerequisite = { focus = POL_internal_romanian_support }
		prerequisite = { focus = POL_arm_monarchist_militants }
		relative_position_id = POL_internal_romanian_support

		x = -1
		y = 2
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			ROM = { is_ai = yes } #RT56 RP
			is_subject = no 
			has_government = neutrality
			OR = {
				ROM = {
					is_subject_of = POL
				}
				ROM = {
					has_country_flag = POL_banned_monarchy_flag
				}
				ROM = {
					custom_trigger_tooltip = {
						tooltip = has_monarchy_support_80_tt
						check_variable = {
							monarchist_support > 79
						}
					}
					has_war = no
				}
			}
		}
		
		bypass = {
			ROM = {
				OR = {
					is_subject_of = ROOT
					exists = no
				}
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = { NOT = { has_country_flag = POL_banned_monarchy_flag } }
				ROM = { country_event = NSB_poland_monarchist_events.5 }
				custom_effect_tooltip = if_they_accept_tt
				effect_tooltip = {
					POL = {
						set_autonomy = {
							target = ROM
							autonomy_state = autonomy_personal_union
						}
					}
				}
			}
			else = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROM
				}
			}
		}
	}

	focus = {
		id = POL_merge_internal_governments
		icon = GFX_ROM_POL_alliance
		prerequisite = { focus = POL_king_michaels_coup }
		relative_position_id = POL_king_michaels_coup

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			has_government = neutrality
			ROM = {
				OR = {
					is_subject_of = ROOT
					exists = no
				}
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = {
					ROM = {
						exists = yes
						is_ai = yes
					}
				}
				random_country = { #Transfers generals, admirals and field marshals from Romania to Poland.
					limit = {
						original_tag = ROM 
						has_government = neutrality
					}
					every_character = {
						limit = {
							OR = {
								is_corps_commander = yes 
								is_navy_leader = yes
								is_field_marshal = yes
							}
							has_unit_leader_flag = POL_monarchy_sympathies_flag							
						}
						set_nationality = ROOT 
					}
				}
				annex_country = {
					target = ROM
					transfer_troops = yes
				}
			}
			else_if = {
				limit = {
					ROM = {
						exists = yes
						is_ai = no
					}
				}
				ROM = {
					country_event = {
						id = poland.15
						days = 1
					}
				}
			}
			every_state = {
				limit = {
					is_core_of = ROM
				}
				add_core_of = POL
			}
			set_cosmetic_tag = POL_ROM_UNION
            add_ideas = generic_recent_political_unification
            add_ideas = generic_recent_army_unification
            add_ideas = generic_recent_economic_unification			
		}
	}

	focus = {
		id = POL_pro_allied_government
		icon = GFX_goal_support_democracy
		prerequisite = { focus = POL_merge_internal_governments focus = POL_claim_livonia }
		relative_position_id = POL_merge_internal_governments

		mutually_exclusive = { focus = POL_royal_dictatorship }

		x = 1
		y = 1
		cost = 10
		
		available = {
			any_other_country = {
				NOT = { has_war_with = ROOT }
				is_faction_leader = yes
				is_major = yes
				has_government = democratic
			}
			
			NOT = {
				any_other_country = {
					is_in_faction_with = ENG
					has_war_with = POL
				}
			}
			is_in_faction = no
			is_subject = no
		}

		bypass = {
			OR = {
				is_in_faction_with = ENG
				AND = {
					is_in_faction = yes
					any_other_country = {
						is_faction_leader = yes
						is_in_faction_with = ROOT
						has_government = democratic
					}
				}
			}
		}

		ai_will_do = {
			factor = 2.5
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			#add_ideas = { ROM_flexible_foreign_policy_2	}
			add_popularity = {
				popularity = 0.15
				ideology = democratic
			}
			add_stability = -0.05
			if = {
				limit = {
					ENG = {
						NOT = { has_war_with = ROOT }
						is_faction_leader = yes
						has_government = democratic
					}
				}
				add_opinion_modifier = { modifier = ROM_appoint_allied_friendly_government target = ENG }
				ENG = { add_opinion_modifier = { modifier = ROM_appoint_allied_friendly_government target = ROOT } }
			}
			else = {
				get_best_alliance_match_democratic_effect = yes
				var:best_leader = {
					add_opinion_modifier = {
						modifier = ROM_appoint_allied_friendly_government
						target = PREV
					}
					reverse_add_opinion_modifier = {
						modifier = ROM_appoint_allied_friendly_government
						target = PREV
					}
				}
			}
		}
	}

	focus = {
		id = POL_ROM_join_allies
		icon = GFX_focus_chi_british_cooperation
		prerequisite = { focus = POL_pro_allied_government }
		relative_position_id = POL_pro_allied_government

		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available = {
			any_other_country = {
				NOT = { has_war_with = ROOT }
				is_faction_leader = yes
				is_major = yes
				has_government = democratic
			}
			
			NOT = {
				any_other_country = {
					is_in_faction_with = ENG
					has_war_with = POL
				}
			}
			is_subject = no 
			is_in_faction = no
			OR = {
				threat > 0.4
				has_war_with = GER
				GER = { has_wargoal_against = ROOT }
				has_government = democratic
				democratic > 0.4
			}
		}

		bypass = {
			OR = {
				is_in_faction_with = ENG
				AND = {
					is_in_faction = yes
					any_other_country = {
						is_faction_leader = yes
						is_in_faction_with = ROOT
						has_government = democratic
					}
				}
			}
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL } 
		completion_reward = {
			join_allies_effect = yes
		}
	}

	focus = {
		id = POL_royal_dictatorship
		icon = GFX_focus_generic_monarchy_1
		prerequisite = { focus = POL_merge_internal_governments }
		relative_position_id = POL_merge_internal_governments

		x = -1
		y = 1
		cost = 10

		mutually_exclusive = { focus = POL_pro_allied_government }

		ai_will_do = {
			factor = 2.5
		}
		available = {
			has_government = neutrality
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_country_leader_trait = royal_dictator
		}
	}

	focus = {
		id = POL_demand_slovakia
		icon = GFX_goal_SLO_map_revolt
		prerequisite = { focus = POL_royal_dictatorship }
		relative_position_id = POL_royal_dictatorship

		x = -1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			is_subject = no
			has_army_manpower = { size > 499999 }	
			OR = {
				AND = {
					SLO = {
						exists = yes
						is_subject = no
						has_war = no
						NOT = {
							is_in_faction_with = ROOT
						}
					}
				}
				AND = {
					CZE = {
						exists = yes
						is_subject = no
						has_war = no
						NOT = {
							is_in_faction_with = ROOT
						}
						OR = {
							owns_state = 73
							owns_state = 996
							owns_state = 664
							owns_state = 71
							owns_state = 70
							owns_state = 72
						}
					}
				}
			}
		}
		
		bypass = {
			OR = {
				AND = {
					SLO = { exists = no }
					CZE = { exists = no }
				}
				
				AND = {
					controls_state = 73
					controls_state = 996
					controls_state = 664
					controls_state = 71
					controls_state = 70
					controls_state = 72
				}
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			73 = {
				add_claim_by = POL
			}
			996 = {
				add_claim_by = POL
			}
			664 = {
				add_claim_by = POL
			}
			71 = {
				add_claim_by = POL
			}
			70 = {
				add_claim_by = POL
			}
			72 = {
				add_claim_by = POL
			}
			if = {
				limit = {
					SLO = { exists = yes }
				}
				SLO = {
					country_event = NSB_poland_events.1
				}
			}
			else_if = {
				limit = {
					CZE = { exists = yes }
				}
				CZE = {
					country_event = NSB_poland_events.1
				}
			}
		}
	}

	focus = {
		id = POL_restore_poland_hungary
		icon = GFX_focus_hun_elect_a_king
		prerequisite = { focus = POL_demand_slovakia }
		relative_position_id = POL_demand_slovakia

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		available = {
			is_subject = no
			has_government = neutrality
			has_army_manpower = { size > 749999 }	
			OR = {
				HUN = {
					exists = yes
					is_subject = no
					has_war = no
					NOT = {
						is_in_faction_with = ROOT
					}
				}
				HUN = {
					exists = no
				}
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = {
					HUN = { exists = yes }
				}
				HUN = { country_event = NSB_poland_events.2 }
				custom_effect_tooltip = POL_restore_poland_hungary_tt
				every_state = {
					limit = {
						is_core_of = TRA
						NOT = { is_core_of = YUG }
					}
					add_claim_by = POL
				}
			}
			else = {
				every_state = {
					limit = {
						OR = {
							is_core_of = HUN
							is_core_of = TRA
						}
						NOT = { is_core_of = CZE }
						NOT = { is_core_of = YUG }
						NOT = { is_core_of = AUS }
					}
					add_claim_by = POL
				}
			}
		}
	}

	focus = {
		id = POL_seek_an_alliance_with_kaiser
		icon = GFX_focus_ger_revive_kaiserreich
		prerequisite = { focus = POL_assemble_the_regency_council }
		relative_position_id = POL_assemble_the_regency_council

		x = 2
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			GER = {
				OR = {
					has_country_leader = {
						character = GER_wilhelm_ii
						ruling_only = yes
					}
					has_country_leader = {
						character = GER_wilhelm_iii
						ruling_only = yes
					}
					has_country_leader = {
						character = GER_victoria
						ruling_only = yes
					}
					has_idea = GER_wilhelm_iii_idea #if constitutional monarch
				}
				OR = {
					is_in_faction = no
					is_faction_leader = yes
				}
			}
			NOT = {
				has_country_leader = {
					character = POL_sejmik_regency
					ruling_only = yes
				}
			}
			NOT = {
				has_war_with = GER
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			if = {
				limit = {
					GER = {
						is_faction_leader = yes
					}
				}
				GER = { country_event = generic.2 }
			}
			else = {
				GER = { country_event = NSB_poland_events.3 }
			}
		}
	}

	################
	###RESISTANCE###
	################

	focus = {
		id = POL_prepare_for_the_inevitable
		icon = GFX_focus_POL_prepare_for_the_inevitable
		available = {
			OR = {
				has_capitulated = yes
				AND = {
					OR = {
						has_war_with = GER
						has_war_with = SOV
					}
					is_in_faction = yes
					surrender_progress > 0.6
				}
			}
		}

		x = 14
		y = 0
		relative_position_id = POL_assemble_the_regency_council
		offset = {
			x = 2
			y = 0
			trigger = {
				has_country_flag = romanov_enabled
			}
		}
		offset = {
			x = -22 # R56
			y = 0
			trigger = {
				NOT = { has_dlc = "No Step Back" }
			}
		}
		
		offset = {
			x = -28 # R56
			y = 0
			trigger = {
				has_dlc = "No Step Back"
				has_completed_focus = POL_complete_april_constitution
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}

		offset = {	#new, 2
			x = -8 # R56
			y = 0
			trigger = {
				NOT = {
					has_dlc = "No Step Back"
				}
				has_completed_focus = POL_complete_april_constitution
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}
		
		offset = {
			x = -19
			y = 0
			trigger = {
				has_completed_focus = POL_organize_the_peasants_strike
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}

		offset = { #new
			x = -43
			y = 0
			trigger = {
				has_completed_focus = POL_radicalize_the_front
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_dlc = "No Step Back"
			}
		}

		offset = { #new, 2
			x = -22
			y = 0
			trigger = {
				has_completed_focus = POL_radicalize_the_front
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				NOT = {
					has_dlc = "No Step Back"
				}
			}
		}

		offset = { #new
			x = -20
			y = 0
			trigger = {
				has_dlc = "No Step Back"
				has_completed_focus = POL_rewrite_1935_constitution
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}
		cost = 10

		ai_will_do = {
			factor = 10
		}
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_ESPIONAGE FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			#Should maybe also purge all Sanation spirits/effects.
			#Historically, when Poland surrendered, the Sanation became deeply irrelevant and most of the military just operated from France before fleeing to Britain.
			#Mosciki himself just waited the war out in Romania while Sikorski focussed on retaking the homeland.
			if = {
				limit = {
					has_dlc = "La Resistance"
					NOT = {
						has_intelligence_agency = yes
					}
				}
				create_intelligence_agency = yes
			}			
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				gain_random_agency_upgrade = yes
			}
			if = {
				limit = {
					any_allied_country = {
						is_hosting_exile = ROOT
						has_government = democratic
					}
					OR = {
						has_government = neutrality
						has_government = fascism
					}
					has_completed_focus = POL_complete_april_constitution
				}
				effect_tooltip = {
					retire_country_leader = yes
				}
				hidden_effect = {
					random_country = {
						limit = {
							is_hosting_exile = ROOT
						}
						save_event_target_as = hosting_country_target
					}
					country_event = poland.25
				}
			}
			else_if = {
				limit = {
					has_country_leader = {
						character = POL_karl_albrecht
						ruling_only = yes
					}
				}
				add_country_leader_trait = exile_king
			}
			else = {
				add_ideas = POL_influx_of_exiles
			}
			add_offsite_building = { type = industrial_complex level = 3 }
			add_offsite_building = { type = arms_factory level = 2 }
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 10000
				producer = POL
			}
			add_equipment_to_stockpile = {
				type = convoy
				amount = 100
				producer = POL
			}
		}
	}

	focus = {
		id = POL_foreign_air_support
		icon = GFX_goal_polish_military_aviation_exports
		prerequisite = { focus = POL_prepare_for_the_inevitable }
		available = {
			OR = {
				has_capitulated = yes
				AND = {
					OR = {
						has_war_with = GER
						has_war_with = SOV
					}
					is_in_faction = yes
					surrender_progress > 0.6
				}
			}
		}

		x = -3
		y = 1
		relative_position_id = POL_prepare_for_the_inevitable
		cost = 10

		ai_will_do = {
			factor = 10
		}
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			air_experience = 50
			# 19400 Poles served in the exile airforce, 100 manpower per plane making it around 200 planes total.
			if = {
				limit = {
					NOT = {
						has_dlc = "By Blood Alone"
					}
				}
				add_equipment_to_stockpile = {
					type = fighter_equipment_1
					amount = 100
					producer = POL
				}
				add_equipment_to_stockpile = {
					type = tac_bomber_equipment_1
					amount = 50
					producer = POL
				}
			}
			else = {
				add_equipment_to_stockpile = {
					type = small_plane_airframe_0
					amount = 100
					producer = POL
					variant_name = "PZL P.11"
				}
				add_equipment_to_stockpile = {
					type = small_plane_cas_airframe_1
					amount = 50
					producer = POL
					variant_name = "PZL P.23"
				}
			}
			add_offsite_building = { type = arms_factory level = 2 }
		}
	}

	focus = {
		id = POL_foreign_army_support
		icon = GFX_focus_generic_manpower
		prerequisite = { focus = POL_foreign_air_support }
		available = {
			OR = {
				has_capitulated = yes
				AND = {
					OR = {
						has_war_with = GER
						has_war_with = SOV
					}
					is_in_faction = yes
					surrender_progress > 0.7
				}
			}
		}

		x = 0
		y = 1
		relative_position_id = POL_foreign_air_support
		cost = 10

		ai_will_do = {
			factor = 10
		}
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MANPOWER FOCUS_FILTER_ARMY_XP }
		completion_reward = {
			army_experience = 75
			add_manpower = 9700
			add_offsite_building = { type = arms_factory level = 2 }
		}
	}

	focus = {
		id = POL_aces_in_exile
		icon = GFX_goal_italy_further_pilots_training
		prerequisite = { focus = POL_foreign_air_support }
		available = {
			OR = {
				has_capitulated = yes
				AND = {
					OR = {
						has_war_with = GER
						has_war_with = SOV
					}
					is_in_faction = yes
					surrender_progress > 0.8
				}
			}
		}

		x = 2
		y = 1
		relative_position_id = POL_foreign_air_support
		cost = 10

		ai_will_do = {
			factor = 10
		}
		available_if_capitulated = yes
		completion_reward = {
			add_ideas = POL_aces_in_exile
			air_experience = 75
			add_manpower = 9700
			# 19400 Poles served in the exile airforce, 100 manpower per plane making it around 200 planes total. Ported over from Vanilla.
			if = {
				limit = {
					NOT = {
						has_dlc = "By Blood Alone"
					}
				}
				add_equipment_to_stockpile = {
					type = fighter_equipment_1
					amount = 100
					producer = POL
				}
				add_equipment_to_stockpile = {
					type = tac_bomber_equipment_1
					amount = 50
					producer = POL
				}
			}
			else = {
				add_equipment_to_stockpile = {
					type = small_plane_airframe_0
					amount = 100
					producer = POL
					variant_name = "PZL P.11"
				}
				add_equipment_to_stockpile = {
					type = small_plane_cas_airframe_1
					amount = 50
					producer = POL
					variant_name = "PZL P.23"
				}
			}
			#commanded the squadron at some point and survived the war, many didn't. 
			add_ace = {
				name = "Witold"
				surname = "Urbanowicz"
				callsign = "Kosciuszko"
				type = fighter_genius
			}
			#picked because of his long career
			add_ace = {
				name = "Jan"
				surname = "Zumbach"
				callsign = "Donald Duck"
				type = fighter_genius
			}	
			if = {
				limit = {
					is_in_faction = yes
					is_faction_leader = no
				}
				faction_leader = {
					country_event = poland.212
				}
			}
			
		}
	}

	focus = {
		id = POL_foreign_naval_support
		icon = GFX_focus_naval_defense_fund
		prerequisite = { focus = POL_prepare_for_the_inevitable }
		available = {
			OR = {
				has_capitulated = yes
				AND = {
					OR = {
						has_war_with = GER
						has_war_with = SOV
					}
					is_in_faction = yes
					surrender_progress > 0.6
				}
			}
		}

		x = -1
		y = 1
		relative_position_id = POL_prepare_for_the_inevitable
		cost = 10

		ai_will_do = {
			factor = 10
		}
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_offsite_building = { type = dockyard level = 5 }
		}
	}

	focus = {
		id = POL_Evacuate_Polands_Gold_Reserves
		icon = GFX_focus_usa_reestablish_the_gold_standard
		prerequisite = {
			focus = POL_prepare_for_the_inevitable
		}
		x = 1
		y = 1
		relative_position_id = POL_prepare_for_the_inevitable

		cost = 7.2

		ai_will_do = {
			factor = 100
		}

		available_if_capitulated = yes
		
		available = {
			has_capitulated = yes
			is_in_faction = yes
			if = {
				limit = {
					is_in_faction = yes
				}
				faction_leader = {
					has_government = democratic
				}
			}
		}

		completion_reward = {
			if = {
				limit = {
					owns_state = 10
					10 = {
						arms_factory > 0
					}
				}
				10 = {
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
			}
			if = {
				limit = {
					owns_state = 92
					92 = {
						arms_factory > 0
					}
				}
				92 = {
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
			}
			add_offsite_building = { type = arms_factory level = 4 }
			add_offsite_building = { type = industrial_complex level = 1 }
			add_offsite_building = { type = dockyard level = 2 }
			add_equipment_to_stockpile = {
				type = convoy_1
				amount = 50
				producer = POL
			}
			add_manpower = 125000
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = POL_resistance_industries
		icon = GFX_goal_generic_underground_factories
		prerequisite = { focus = POL_Evacuate_Polands_Gold_Reserves }
		available = {
			OR = {
				has_capitulated = yes
				AND = {
					OR = {
						has_war_with = GER
						has_war_with = SOV
					}
					is_in_faction = yes
					surrender_progress > 0.6
				}
			}
		}

		x = 0
		y = 1
		relative_position_id = POL_Evacuate_Polands_Gold_Reserves
		cost = 10

		ai_will_do = {
			factor = 10
		}
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_offsite_building = { type = industrial_complex level = 5 }
		}
	}

	focus = {
		id = POL_exile_industries
		icon = GFX_goal_generic_light_industry
		prerequisite = { focus = POL_resistance_industries }
		available = {
			OR = {
				has_capitulated = yes
				AND = {
					OR = {
						has_war_with = GER
						has_war_with = SOV
					}
					is_in_faction = yes
					surrender_progress > 0.7
				}
			}
		}

		x = 0
		y = 1
		offset = {
			x = -1
			trigger = {
				has_dlc = "La Resistance"
			}
		}
		relative_position_id = POL_resistance_industries
		cost = 10

		ai_will_do = {
			factor = 10
		}
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_offsite_building = { type = industrial_complex level = 3 }
			add_offsite_building = { type = arms_factory level = 3 }
		}
	}

	focus = {
		id = POL_expand_polish_intelligence
		icon = GFX_focus_POL_expand_polish_intelligence
		prerequisite = { focus = POL_prepare_for_the_inevitable }
		available = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				has_intelligence_agency = yes
				else = {
					GER = {
						OR = {
							exists = no 
							has_idea = GER_enigma_machine1
							has_idea = GER_enigma_machine2
							has_idea = GER_enigma_machine3
							has_tech = computing_machine
						}
					}
				}
			}
		}

		x = 3
		y = 1
		relative_position_id = POL_prepare_for_the_inevitable
		cost = 10

		ai_will_do = {
			factor = 10
		}
		available_if_capitulated = yes
		completion_reward = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				add_ideas = { POL_expand_intelligence_idea }
				if = {
					limit = {
						has_dlc = "No Step Back"
					}
					custom_effect_tooltip = available_political_advisor
					show_ideas_tooltip = POL_marian_rejewski_advisor
				}
				else = {
					custom_effect_tooltip = available_theorist
					show_ideas_tooltip = POL_marian_rejewski_theorist
				}
				create_operative_leader = {
					bypass_recruitment = yes
					name = "Witold Pilecki"
					GFX = "GFX_operative_portrait_POL_witold_pilecki"
					traits = {
						operative_escape_artist operative_infiltrator operative_commando
					}
					nationalities = { POL GER PRE DNZ KSH SIL }
				}
				else = {
					add_tech_bonus = {
						name = POL_Polish_Cipher_Bureau_Focus0
						bonus = 1.0
						ahead_reduction = 1.0
						uses = 1
						category = computing_tech
					}
					swap_ideas = {
						remove_idea = POL_Polish_Cipher_Bureau_Focus0
						add_idea = POL_Polish_Cipher_Bureau_Focus1
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_ESPIONAGE }
	}

	focus = {
		id = POL_niech_zyje_opor
		icon = GFX_focus_POL_resistance
		prerequisite = { focus = POL_expand_polish_intelligence }
		available = {
			has_intelligence_agency = yes
			has_capitulated = yes
		}

		x = -1
		y = 2
		relative_position_id = POL_expand_polish_intelligence
		cost = 10
		allow_branch = { has_dlc = "La Resistance" }
		ai_will_do = {
			factor = 10
		}
		available_if_capitulated = yes
		completion_reward = {
			gain_random_agency_upgrade = yes
			custom_effect_tooltip = unlock_warsaw_uprising_tt
			hidden_effect = {
				every_enemy_country = { #Alert Germany/Sov that the Warsaw Uprising may happen
					limit = {
						core_resistance = {
							occupied_country_tag = POL
							value > 0
						}
					}
					country_event = poland.26
				}
			}
		}
	}

	focus = {
		id = POL_the_long_push_home
		icon = GFX_focus_pol_military_buildup
		prerequisite = { focus = POL_expand_polish_intelligence }
		available = {
			OR = {
				has_capitulated = yes
				AND = {
					OR = {
						has_war_with = GER
						has_war_with = SOV
					}
					is_in_faction = yes
					surrender_progress > 0.6
				}
			}
		}
		allow_branch = { has_dlc = "La Resistance" }

		x = 0
		y = 1
		relative_position_id = POL_expand_polish_intelligence
		cost = 10

		ai_will_do = {
			factor = 10
		}
		available_if_capitulated = yes
		completion_reward = {
			add_timed_idea = {
				idea = POL_push_home_idea
				days = 365
			}
		}
	}

	focus = {
		id = POL_the_cyclometer
		icon = GFX_goal_generic_engineering
		prerequisite = { focus = POL_expand_polish_intelligence }
		available = {
			if = {
				limit = {
					NOT = {
						has_dlc = "La Resistance"
					}
					GER = {
						OR = {
							exists = no
							has_idea = GER_enigma_machine2
							has_idea = GER_enigma_machine3
							has_tech = improved_computing_machine
						}
					}
				}
			}
		}

		x = 2
		y = 1
		relative_position_id = POL_expand_polish_intelligence
		offset = {
			x = -2
			trigger = {
				NOT = {
					has_dlc = "La Resistance"
				}
			}
		}
		cost = 10

		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_ESPIONAGE FOCUS_FILTER_RESEARCH }
		completion_reward = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				hidden_effect = {
					set_technology = { lar_decryption_bonus_tech = 1 }
				}
				custom_effect_tooltip = lar_decryption_bonus_tt
				if = {
					limit = {
						NOT = {
							has_done_agency_upgrade = upgrade_form_department
						}
					}
					upgrade_intelligence_agency = upgrade_form_department
				}
				else_if = {
					limit = {
						NOT = {
							has_done_agency_upgrade = upgrade_decryption_boost
						}
					}
					upgrade_intelligence_agency = upgrade_decryption_boost
				}
				else_if = {
					limit = {
						NOT = {
							has_done_agency_upgrade = upgrade_decryption_boost_2
						}
					}
					upgrade_intelligence_agency = upgrade_decryption_boost_2
				}
				else = {
					add_tech_bonus = {
						name = POL_the_cyclometer
						bonus = 1.0
						uses = 1
						category = encryption_tech
						category = decryption_tech
					}
					swap_ideas = {
						remove_idea = POL_Polish_Cipher_Bureau_Focus1
						add_idea = POL_Polish_Cipher_Bureau_Focus2
					}
				}
			}
		}
	}
	
	focus = {
		id = POL_the_bombe
		icon = GFX_focus_generic_cryptologic_bomb
		prerequisite = { focus = POL_the_cyclometer }
		available = {
			if = {
				limit = {
					NOT = {
						has_dlc = "La Resistance"
					}
				}
				GER = {
					OR = {
						exists = no
						has_idea = GER_enigma_machine3
						has_tech = advanced_computing_machine
					}
				}
			}
		}
		x = 0
		y = 1
		relative_position_id = POL_the_cyclometer
		cost = 10

		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_ESPIONAGE FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_tech_bonus = {
				name = POL_the_bombe
				bonus = 1.0
				uses = 1
				category = computing_tech
			}
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				if = {
					limit = {
						NOT = {
							has_done_agency_upgrade = upgrade_form_department
						}
					}
					upgrade_intelligence_agency = upgrade_form_department
				}
				else_if = {
					limit = {
						NOT = {
							has_done_agency_upgrade = upgrade_decryption_boost
						}
					}
					upgrade_intelligence_agency = upgrade_decryption_boost
				}
				else_if = {
					limit = {
						NOT = {
							has_done_agency_upgrade = upgrade_decryption_boost_2
						}
					}
					upgrade_intelligence_agency = upgrade_decryption_boost_2
				}
				else = {
					custom_effect_tooltip =POL_Encryption_Decryption_tooltip
					hidden_effect = {
						add_tech_bonus = {
							name = POL_the_cyclometer
							bonus = 1.0
							uses = 1
							category = encryption_tech
							category = decryption_tech
						}
					}
					swap_ideas = {
						remove_idea = POL_Polish_Cipher_Bureau_Focus2
						add_idea = POL_Polish_Cipher_Bureau_Focus3
					}
					custom_effect_tooltip = available_theorist
					show_ideas_tooltip = POL_marian_rejewski_theorist	
				}
			}
		}
	}

	focus = {
		id = POL_atomic_physics_institute
		icon = GFX_goal_generic_nuclear_energy
		prerequisite = { focus = POL_ideological_fanaticism focus = POL_abolish_segregated_seating }
		x = 1
		y = 1
		relative_position_id = POL_ideological_fanaticism
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			IF = {
				limit = {
					NOT = {
						has_tech = atomic_research
					}
				}
				add_tech_bonus = {
					name = POL_atomic_physics_institute
					bonus = 1.0
					uses = 1
					category = nuclear
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				add_breakthrough_progress = {
					specialization = specialization_nuclear
					value = 0.5
				}
			}
			ELSE = {
				add_breakthrough_progress = {
					specialization = specialization_nuclear
					value = 0.8
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = available_theorist
			show_ideas_tooltip = POL_Stanislaw_Ulam
		}
	}

	focus = {
		id = POL_accept_border_realignment
		icon = GFX_focus_CZE_german_puppet
		prerequisite = { focus = POL_prepare_for_the_inevitable }
		x = 5
		y = 1
		relative_position_id = POL_prepare_for_the_inevitable
		cost = 10

		ai_will_do = {
			factor = 100
		}

		available_if_capitulated = yes

		available = {
			has_capitulated = yes
			has_war_with = GER
			SOV = {
				has_war_with = GER
			}
			ENG = {
				has_war_with = GER
			}
			NOT = {
				has_war_with = SOV
			}
		}

		completion_reward = {
			every_core_state = {
				limit = {
					OR = {
						state = 784
						state = 96
						state = 95
						state = 935
						state = 936
						state = 94
						state = 93
						state = 91
						state = 89
					}
				}
				remove_core_of = POL
				add_core_of = SOV
			}
			every_state = {
				limit = {
					OR = {
						state = 5
						state = 63
						state = 68
						state = 66
						state = 67
						state = 85
					}
				}
				add_core_of = POL
			}
			if = {
				limit = {
					has_war_with = SOV
				}
				every_owned_state = {
					limit = {
						is_controlled_by = SOV
					}
					SOV = {
						transfer_state = PREV
					}
				}
				SOV = { 
					white_peace = {
						tag = ROOT 
						message = "Diplomatic solution regarding the Eastern Polish territories was found" 
					} 
				}
			}
			if = {
				limit = {
					is_government_in_exile = yes
				}
				add_legitimacy = 10
				add_manpower = 10000
			}
		}
	}

	####################
	### NAVY SECTION ###
	####################

	focus = {
		id = POL_develop_polish_ship_building
		icon = GFX_focus_POL_develop_polish_shipbuilding
		mutually_exclusive = { focus = POL_clamp_down_on_danzig }
		x = 16
		y = 0
		cost = 10

		ai_will_do = {
			factor = 2
		}
		
		available = {
			any_owned_state = {
				NOT = { state = 85 }
				is_controlled_by = ROOT
				is_coastal = yes
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			random_state = {
				limit = { has_state_flag = POL_develop_polish_ship_building_1 }
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 807 }
				limit = {
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
					NOT = { state = 85 }
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				set_state_flag = POL_develop_polish_ship_building_1
			}
			#Add 2 Dockyards at Gdynia
			custom_effect_tooltip = available_designer
			show_ideas_tooltip = POL_huta_zgoda
		}
	}

	focus = {
		id = POL_clamp_down_on_danzig
		icon = GFX_focus_POL_clamp_down_on_danzig
		mutually_exclusive = { focus = POL_develop_polish_ship_building }
		x = 2
		y = 0
		relative_position_id = POL_develop_polish_ship_building
		cost = 5

		ai_will_do = {
			factor = 2
		}
		
		available = {
			is_subject = no
			has_army_manpower = { size > 499999 }
			DNZ = { is_subject_of = POL	}
			NOT = { has_idea = POL_Neutral_Foreign_Policy }
			NOT = { 
				is_in_faction_with = GER
				has_war_with = GER
			}
		}
		
		bypass = {
			NOT = {
				has_idea = uncontrolled_exports
			}
			has_civil_war = no
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL }

		completion_reward = {
			add_named_threat = { threat = 1 name = POL_Pressure_Gdansk }

			unlock_decision_category_tooltip = POL_danzig_decisions
			add_political_power = 25
			add_command_power = 10
			add_stability = -0.03

			DNZ = { country_event = poland.30 }

			every_other_country = {
				limit = {
					original_tag = GER
				}
				add_opinion_modifier = { target = ROOT modifier = POL_Pressure_Gdansk }
			}

			hidden_effect = {
				news_event = {
					id = nsb_news.4
					days = 1
				}
			}
		}
	}
	
	focus = { #r56
		id = POL_Seek_Accommodation_With_Germany
		icon = GFX_focus_generic_seek_accomodation_with_germany
		prerequisite = { focus = POL_develop_polish_ship_building }
		x = -3
		y = 1
		relative_position_id = POL_develop_polish_ship_building
		cost = 5

		available = {
			OR = {
				NOT = { has_completed_focus = POL_Nationalist_Rhetoric }
				NOT = { has_completed_focus = POL_Silesia_Or_War }
			}
			GER = {
				exists = yes
	 			is_subject = no
	 			NOT = { has_war_with = POL }
	 		}
			NOT = { owns_state = 5 }
			NOT = { owns_state = 67 }
			NOT = { has_global_flag = POL_Is_Intervening_in_German_Civil_War }
		}
		
		ai_will_do = {
			factor = 5
		}

		completion_reward = {
			add_named_threat = { threat = -2 name = POL_Seek_Accommodation_With_Germany }
			POL = { diplomatic_relation = { country = FRA relation = guarantee active = no} }
			
			add_political_power = 50
			add_opinion_modifier = { target = GER modifier = POL_Seek_Accommodation_With_Germany_modifer }
			
			GER = { 
				add_political_power = 50
				add_opinion_modifier = { target = ROOT modifier = POL_Seek_Accommodation_With_Germany_modifer }
			}
			hidden_effect = {
				country_event = poland.74
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = { #r56
		id = POL_German_Berlinka_Highway_Project
		icon = GFX_goal_generic_construct_civilian
		prerequisite = { focus = POL_Seek_Accommodation_With_Germany }
		available = {
			controls_state = 807
			OR = {
				has_country_flag = anti_comintern_member
				has_non_aggression_pact_with = GER
				is_ally_with = GER
			}
			GER = {
				exists = yes
	 			is_subject = no
	 			NOT = { has_war_with = POL }
				controls_state = 63 
				controls_state = 5
			}
		}
		
		x = -1
		y = 1
		relative_position_id = POL_Seek_Accommodation_With_Germany
		cost = 7.2

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			#navy_experience = 50
			#add_doctrine_cost_reduction = {
			#	name = POL_Naval_Officers_School
			#	cost_reduction = 0.5
			#	uses = 1
			#	category = naval_doctrine
			#}
			#create_navy_leader = {
			#	name = "Bolesław Romanowski"
			#	picture = GFX_Portrait_POL_Boleslaw_Romanowski
			#	traits = { seawolf lone_wolf }
			#	skill = 3
			#	attack_skill = 4
			#	defense_skill = 2
			#	maneuvering_skill = 3
			#	coordination_skill = 1			
			GER = { 
				country_event = poland.38
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				random_country = {
					limit = { 
						tag = POL 
					}
					add_named_threat = { threat = -2 name = POL_German_Berlinka_Highway_Project }
					add_tech_bonus = {
						name = POL_German_Berlinka_Highway_Project
						bonus = 1.0
						category = construction_tech
					}
					807 = {
						add_building_construction = {
						type = infrastructure
						level = 2
						instant_build = yes
						}
					}
				}
				GER = {
					add_political_power = 25
					63 = {
						add_building_construction = {
						type = infrastructure
						level = 2
						instant_build = yes
						}
					}
					5 = {
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
						type = infrastructure
						level = 2
						instant_build = yes
						}
					}
				}
			}
			custom_effect_tooltip = if_they_refuse_tt
			effect_tooltip = {
				random_country = {
					limit = { 
						tag = POL 
					}
					add_tech_bonus = {
						name = POL_German_Berlinka_Highway_Project
						bonus = 1.0
						category = construction_tech
					}
					10 = {
						add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
						}
					}
					98 = {
						add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
						}
					}
					85 = {
						add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
						}
					}					
				#	10 = {
				#		add_building_construction = {
				#		type = infrastructure
				#		level = 1
				#		instant_build = yes
				#		}
				#	}
				#	98 = {
				#		add_building_construction = {
				#		type = infrastructure
				#		level = 1
				#		instant_build = yes
				#		}
				#	}
				#	85 = {
				#		add_building_construction = {
				#		type = infrastructure
				#		level = 1
				#		instant_build = yes
				#		}
				#	}
				}
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL }
	}
	
	focus = { #r56
		id = POL_Ribbentrop_Beck_Pact
		icon = GFX_focus_CZE_german_puppet
		prerequisite = { focus = POL_Seek_Accommodation_With_Germany }
		x = 1
		y = 1
		relative_position_id = POL_Seek_Accommodation_With_Germany
		cost = 10
		available = {
			is_subject = no
			is_in_faction = no
			OR = {
				has_government = fascism
				has_government = neutrality
			}
			NOT = {
				has_completed_focus = POL_Nationalist_Rhetoric
			}
			has_country_flag = anti_comintern_member
			strength_ratio = {
				tag = GER
				ratio < 0.7
			}
			GER = {
				exists = yes
	 			is_subject = no
	 			has_government = fascism
	 			NOT = { has_war_with = POL }
				NOT = { has_completed_focus = GER_molotov_ribbentrop_pact }
	 		}
			hidden_trigger = {
				is_ai = no
			}
		}
		bypass = {
			is_subject_of = GER
			OR = {
				has_autonomy_state = autonomy_satellite
				has_autonomy_state = autonomy_dominion
			}
		}

		ai_will_do = {
			factor = 0
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		
		completion_reward = {
			effect_tooltip = {
				GER = { country_event = poland.77 }
			}
			hidden_effect = {
				country_event = poland.76
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = { POL = { diplomatic_relation = { country = SOV relation = non_aggression_pact active = no } } }
			custom_effect_tooltip = POL_Ribbentrop_Beck_tooltip_DOD
			effect_tooltip = {
				add_ideas = POL_Ribbentrop_Beck_Pact
			}
			custom_effect_tooltip = Ribbentrop_Beck_Tooltip
			
		}
	}
	
	focus = { #r56
		id = POL_Break_Away_From_Germany
		icon = GFX_focus_generic_provoke_border_clashes
		prerequisite = { focus = POL_Ribbentrop_Beck_Pact }
		available = {
			OR = {
				GER = { surrender_progress > 0.25 }
				GER = { has_civil_war = yes }
				strength_ratio = {
					tag = GER
					ratio > 0.9
				}
			}
			surrender_progress < 0.15
			has_civil_war = no
			is_subject_of = GER
			OR = {
				has_autonomy_state = autonomy_satellite
				has_autonomy_state = autonomy_dominion
			}
		}
		
		x = -1
		y = 1
		relative_position_id = POL_Ribbentrop_Beck_Pact
		cost = 10

		ai_will_do = {
			factor = 0
		}

		completion_reward = {
			if = {
				limit = {
					is_subject = no
					NOT = { is_in_faction_with = GER }
				}
				effect_tooltip = {
					set_autonomy = {
						target = POL
						autonomy_state = autonomy_free
					}
				}
			}
			
			#Sikorski becomes leader
			if = {
				limit = {
					NOT = { has_completed_focus = POL_the_castle }
				}
				create_country_leader = {
					name = "Władysław Sikorski"
					picture = "Portrait_Poland_Wladyslaw_Sikorski.dds"
					expire = "1965.1.1"
					ideology = liberalism
				}
				add_ideas = POL_Democratic_Influence
			}
			
			#Wieniawa-Długoszowski easter egg
			if = {
				limit = {
					has_completed_focus = POL_the_castle
				}
				promote_character = {
					character = POL_boleslaw_wieniawa_glugoszowski
					ideology = controlled_democracy
				}
				hidden_effect = {
					G01 = {
						set_politics = {
							ruling_party = neutrality
							elections_allowed = no
						}
					}
				}
			}
			
			if = {
				limit = {
					is_subject_of = GER
				}
				random_other_country = {
					limit = {
						is_in_faction_with = POL
						is_faction_leader = yes
					}
					remove_from_faction = POL
					set_autonomy = {
						target = POL
						autonomy_state = autonomy_free
					}
				}
			}
			hidden_effect = {
				remove_ideas = POL_Ribbentrop_Beck_Pact
				###This will stop all wars###
				G01 = {
					puppet = POL
					set_autonomy = {
						target = POL
						autonomy_state = autonomy_free
					}
				}
			}
			if = {
				limit = {
					NOT = { GER = { has_war_with = POL } }
				}
				GER = { country_event = poland.149 }
			}
		}
		search_filters = { FOCUS_FILTER_TFV_AUTONOMY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = POL_attract_poles_to_gdynia
		icon = GFX_focus_generic_the_giant_wakes
		prerequisite = { focus = POL_develop_polish_ship_building }
		x = -1
		y = 1
		relative_position_id = POL_develop_polish_ship_building
		cost = 7.2

		ai_will_do = {
			factor = 10
		}

		available = {
			any_owned_state = {
				is_coastal = yes 
				NOT = { state = 85 }
				is_controlled_by = ROOT
			}
		}

		available_if_capitulated = yes

		completion_reward = {
			if = {
				limit = {
					owns_state = 85
				}
				85 = { add_manpower = -15000 }
				random_owned_controlled_state = {
					limit = {
						is_coastal = yes
					}
					prioritize = { 807 }
					add_manpower = 15000
				}
			}
			random_owned_controlled_state = {
				prioritize = { 807 }
				limit = {
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			#Add 2 Dockyards at Gdynia	
			add_victory_points = {
				province = 9263
				value = 5
			}
		}
	}

	focus = {
		id = POL_study_foreign_built_ships
		icon = GFX_focus_ger_accept_british_naval_dominance
		prerequisite = { focus = POL_develop_polish_ship_building focus = POL_clamp_down_on_danzig }
		x = 1
		y = 1
		cost = 5
		relative_position_id = POL_develop_polish_ship_building
		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_tech_bonus = {
				name = POL_study_foreign_built_ships
				bonus = 0.75
				uses = 2
				category = dd_tech
			}
			#2x 50% research bonus for Destroyers
		}
	}

	focus = {
		id = POL_ban_the_nazi_party
		icon = GFX_focus_POL_ban_nazi_party
		prerequisite = { focus = POL_clamp_down_on_danzig }
		x = 1
		y = 1
		relative_position_id = POL_clamp_down_on_danzig
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
			85 = {
				is_owned_and_controlled_by = ROOT
				if = {
					limit = {
						NOT = { is_core_of = ROOT }
					}
					compliance > 70
					resistance < 30
				}
			}
		}
		
		bypass = {
			85 = {
				is_core_of = ROOT
				has_resistance = no	#forced resistance is not disabled by coring by formable
			}
			has_civil_war = no
		}

		available_if_capitulated = yes
		completion_reward = {
			add_state_core = 85
			set_province_name = {
				id = 362
				name = "Gdańsk"
			}
			add_popularity = {
				ideology = fascism
				popularity = -0.08
			}
		}
	}

	focus = {
		id = POL_develop_gdansk_ship_building
		icon = GFX_goal_generic_blue_navy
		prerequisite = { focus = POL_ban_the_nazi_party }
		available = {
			has_full_control_of_state = 85
		}
		x = 1
		y = 1
		cost = 10
		
		relative_position_id = POL_ban_the_nazi_party

		ai_will_do = {
			factor = 2
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
			85 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
		}

		completion_reward = {
			85 = {
				if = {
					limit = {
						free_building_slots = {
							building = dockyard
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = dockyard
						level = 2
						instant_build = yes
					}
				}
			}
			#Add 2 Dockyards at Gdansk			
		}
	}

	focus = {
		id = POL_expand_gdynia_seaport
		icon = GFX_goal_generic_construct_naval_dockyard
		prerequisite = { focus = POL_attract_poles_to_gdynia }
		prerequisite = { focus = POL_study_foreign_built_ships }
		x = 1
		y = 1
		relative_position_id = POL_attract_poles_to_gdynia
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			any_owned_state = {
				is_coastal = yes 
				NOT = { state = 85 }
				is_controlled_by = ROOT
			}
		}

		available_if_capitulated = yes

		complete_tooltip = {
			random_state = {
				limit = {
					has_state_flag = POL_expand_gdynia_seaport_1
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			if = {
				limit = {
					has_country_flag = POL_expand_gdynia_seaport_2
				}
				807 = {
					add_building_construction = { type = bunker province = 9263 level = 2 instant_build = yes }
					add_building_construction = { type = bunker province = 334 level = 2 instant_build = yes }
					add_building_construction = { type = bunker province = 389 level = 2 instant_build = yes }
				}
			}
			random_state = {
				limit = {
					has_state_flag = POL_expand_gdynia_seaport_3
				}
				add_building_construction = { type = bunker province = 362 level = 2 instant_build = yes }
			}
		}

		completion_reward = {
			if = {
				limit = {
					has_idea = uncontrolled_exports
				}
				swap_ideas = {
					remove_idea = uncontrolled_exports
					add_idea = export_focus
				}
			}
			random_owned_controlled_state = {
				prioritize = { 807 }
				limit = {
					is_coastal = yes
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				set_state_flag = POL_expand_gdynia_seaport_1
			}

			if = {
				limit = {
					controls_state = 807
				}
				807 = {
					add_building_construction = { type = bunker province = 9263 level = 2 instant_build = yes }
					add_building_construction = { type = bunker province = 334 level = 2 instant_build = yes }
					add_building_construction = { type = bunker province = 389 level = 2 instant_build = yes }
				}
				set_country_flag = POL_expand_gdynia_seaport_2
			}

			if = {
				limit = {
					controls_state = 85
				}
				85 = {
					add_building_construction = { type = bunker province = 362 level = 2 instant_build = yes }
					set_state_flag = POL_expand_gdynia_seaport_3
				}
			}
			#Add 2 Dockyards at Gdansk			
		}
	}

	focus = {
		id = POL_integrate_gdansk_industries
		icon = GFX_goal_generic_expand_the_naval_industry
		available = {
			any_owned_state = {
				is_coastal = yes 
				is_controlled_by = ROOT
			}
		}	
		prerequisite = { focus = POL_ban_the_nazi_party }
		x = -1
		y = 1
		relative_position_id = POL_ban_the_nazi_party
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes

		completion_reward = {
			if = {
				limit = {
					has_idea = uncontrolled_exports
				}
				swap_ideas = {
					remove_idea = uncontrolled_exports
					add_idea = export_focus
				}
			}
			random_owned_controlled_state = {
				prioritize = { 85 }
				limit = {
					is_coastal = yes
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}			
		}
	}

	focus = {
		id = POL_Maritime_Defense_Fund #r56 renamed
		icon = GFX_focus_naval_defense_fund
		prerequisite = { focus = POL_integrate_gdansk_industries focus = POL_expand_gdynia_seaport }
		x = 1
		y = 1
		relative_position_id = POL_expand_gdynia_seaport
		cost = 10

		ai_will_do = {
			factor = 10
		}

		bypass = {
			85 = { controls_or_subject_of = no }
			807 = { controls_or_subject_of = no }
		}

		available = {
			any_owned_state = {
				is_coastal = yes
			}
		}

		available_if_capitulated = yes

		completion_reward = {
			if = {
				limit = {
					has_completed_focus = POL_clamp_down_on_danzig
					controls_state = 85
				}
				build_railway = {
					#level = 3
					path = { 6321 3295 3324 389 362 }
				}
			}
			else_if = {
				limit = {
					controls_state = 807
				}
				build_railway = {
					#level = 3
					path = { 279 3324 389 9263 }
				}
			}
			#extra effect from the focus
			hidden_effect = {
				set_technology = { basic_ship_hull_submarine = 1 }
			}
			custom_effect_tooltip = Maritime_Defense_Fund_tt
			create_equipment_variant = {
				name = "Orzel Class"
				type = ship_hull_submarine_2
				name_group = POL_SS_HISTORICAL
				parent_version = 0
				modules = {
					fixed_ship_torpedo_slot = ship_torpedo_sub_2
					fixed_ship_engine_slot = sub_ship_engine_2
					rear_1_custom_slot = ship_torpedo_sub_2
				}
			}
			custom_effect_tooltip = POL_Maritime_Defense_Fund_Tooltip
			hidden_effect = {	
				division_template = {
					name = "Morska Brygada Obrony Narodowej"
					priority = 1
		
					regiments = {
						marine = { x = 0 y = 0 }
						marine = { x = 0 y = 1 }
						marine = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }
						infantry = { x = 0 y = 4 }
					}
					support = 	{
						engineer = { x = 0 y = 0 }
						anti_air = { x = 0 y = 1}
					}
				}
				random_owned_controlled_state = {
					prioritize = { 807 }
					create_unit = {
						division = "name = \"ON Brygada Gdynia\" division_template = \"Morska Brygada Obrony Narodowej\" start_experience_factor = 0.1 start_equipment_factor = 0.85 force_equipment_variants = { infantry_equipment_0 = { owner = POL } }" 
						owner = POL
					}	
				}
			}
			random_owned_controlled_state = {
				prioritize = { 807 }
				limit = {
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
				if = {
					limit = { 807 = { is_controlled_by = ROOT } }
					807 = {
						add_building_construction = {
						type = naval_base
						province = 9263
						level = 1
						instant_build = yes
						}
					}
				}
			}
			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:POL_stocznia_gdynia_organization = {
					add_mio_funds = 1500
				}
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MANPOWER }
	}

	focus = { #Oficerska Szkoła Marynarki Wojennej
		id = POL_Naval_Officers_School #r56 renamed
		icon = GFX_goal_generic_navy_doctrines_tactics
		prerequisite = { focus = POL_integrate_gdansk_industries focus = POL_expand_gdynia_seaport }
		
		x = -1
		y = 1
		relative_position_id = POL_expand_gdynia_seaport
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			navy_experience = 10
			add_doctrine_cost_reduction = {
				name = POL_Naval_Officers_School
				cost_reduction = 0.5
				uses = 1
				category = naval_doctrine
			}
			#1x50% bonus to Naval Doctrine Research
			create_equipment_variant = {
				name = "D'Entrecasteaux Class"
				type = ship_hull_cruiser_1
				name_group = POL_CL_HISTORICAL
				parent_version = 0
				modules = {
					fixed_ship_battery_slot = ship_light_battery_2
					fixed_ship_anti_air_slot = ship_anti_air_2
					fixed_ship_fire_control_system_slot = ship_fire_control_system_0
					fixed_ship_radar_slot = empty
					fixed_ship_engine_slot = cruiser_ship_engine_1
					fixed_ship_armor_slot = empty
					fixed_ship_secondaries_slot = ship_secondaries_1
					mid_1_custom_slot = ship_torpedo_2
					mid_2_custom_slot = ship_light_battery_2
					rear_1_custom_slot = ship_light_battery_2
				}
			}
			create_navy_leader = {
				name = "Bolesław Romanowski"
				picture = GFX_Portrait_POL_Boleslaw_Romanowski
				traits = { seawolf lone_wolf }
				skill = 3
				attack_skill = 4
				defense_skill = 2
				maneuvering_skill = 3
				coordination_skill = 1
			}
			create_navy_leader = {
				name = "Jan Grudziński"
				picture = GFX_Portrait_POL_Jan_Grudzinski
				traits = { cuts_corners seawolf arctic_water_expert }
				skill = 3
				attack_skill = 5
				defense_skill = 1
				maneuvering_skill = 2
				coordination_skill = 2
			}
		}
	}
	
	focus = { #r56
		id = POL_High_Frequency_Radio_Detection
		icon = GFX_goal_generic_control_the_radio
		prerequisite = { focus = POL_Naval_Officers_School }
		x = 0
		y = 2
		relative_position_id = POL_Naval_Officers_School
		cost = 10

		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			set_technology = { Seaborne_High_Frequency_Directional_Radar = 1 }
			custom_effect_tooltip = High_Frequency_Radar_Tooltip
			add_tech_bonus = {
				name = POL_High_Frequency_Radio_Detection
				bonus = 1.0
				uses = 1
				category = radar_tech
			}
			custom_effect_tooltip = generic_skip_one_line_tt
            add_ideas = r56_generic_radar_idea
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POL_a_cruiser_navy
		icon = GFX_goal_generic_navy_anti_submarine
		prerequisite = { focus = POL_Naval_Officers_School }
		
		x = -1
		y = 1
		relative_position_id = POL_Naval_Officers_School
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_tech_bonus = {
				name = POL_a_cruiser_navy
				bonus = 1.0
				uses = 1
				category = cl_tech
			}

			add_tech_bonus = {
				name = SPR_navy_modernization
				bonus = 1
				uses = 1
				category = naval_gunnery_tech
				category = naval_shell_tech
			}

			add_tech_bonus = {
				name = SPR_navy_modernization
				bonus = 1
				uses = 1
				category = asw_tech
				category = torpedo_equipment
			}
		}
	}

	focus = { #r56
		id = POL_Maritime_and_Colonial_League
		icon = GFX_goal_colonial_league
		prerequisite = { focus = POL_a_cruiser_navy }
		available = { 
			is_subject = no
			any_owned_state = {
				is_coastal = yes
			}
		}
		
		x = 0
		y = 2
		relative_position_id = POL_a_cruiser_navy
		cost = 10

		ai_will_do = {
			factor = 2
		}

		completion_reward = {
			#add_ideas = POL_Maritime_and_Colonial_League
			custom_effect_tooltip = POL_Maritime_and_Colonial_League_tt
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_Janusz_Radziwill
			custom_effect_tooltip = available_chief_of_navy
			show_ideas_tooltip = POL_Mariusz_Zaruski
		}
	}

	focus = {
		id = POL_import_submarine_technology
		icon = GFX_goal_navy_schematics
		prerequisite = { focus = POL_integrate_gdansk_industries focus = POL_expand_gdynia_seaport }
		x = 1
		y = 1
		relative_position_id = POL_integrate_gdansk_industries
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_tech_bonus = {
				name = POL_import_submarine_technology
				bonus = 1.0
				uses = 1
				category = ss_tech
			}
			#1 x50% research bonus for Submarines
		}
	}

	focus = {
		id = POL_commerce_attack
		icon = GFX_goal_generic_navy_submarine
		prerequisite = { focus = POL_import_submarine_technology }
		x = 1
		y = 1
		relative_position_id = POL_import_submarine_technology
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_doctrine_cost_reduction = {
				name = POL_commerce_attack
				cost_reduction = 0.5
				uses = 1
				category = submarine_doctrine
			}
			#1x50% research bonus to Submarine Doctrine
		}
	}

	focus = {
		id = POL_coastal_defense
		icon = GFX_goal_generic_navy_cruiser
		prerequisite = { focus = POL_Naval_Officers_School }
		prerequisite = { focus = POL_import_submarine_technology }
		mutually_exclusive = { focus = POL_strike_force }
		x = 1
		y = 1
		relative_position_id = POL_Naval_Officers_School
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_tech_bonus = {
				name = POL_coastal_defense
				bonus = 1.0
				uses = 1
				category = ss_tech
			}
			add_tech_bonus = {
				name = POL_coastal_defense
				bonus = 1.0
				uses = 1
				category = dd_tech
			}
			#1x50% research bonus to destroyers & 1 x50% bonus to Submarines
		}
	}
	
	focus = { #r56
		id = POL_River_Flotillas
		icon = GFX_focus_hol_prepare_the_inundation_lines
		prerequisite = { focus = POL_coastal_defense }

		x = 0
		y = 2
		relative_position_id = POL_coastal_defense
		cost = 7.2

		ai_will_do = {
			factor = 12
		}

		completion_reward = {
			set_technology = { POL_River_Flotillas = 1 }
			custom_effect_tooltip = POL_River_Flotillas_tt

			add_tech_bonus = {
				name = POL_River_Flotillas
				bonus = 2.0
				technology = improved_light_battery
				technology = advanced_light_battery
				technology = basic_light_shell
				technology = improved_light_shell
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = POL_strike_force
		icon = GFX_goal_generic_occupy_states_coastal
		prerequisite = { focus = POL_Naval_Officers_School }
		prerequisite = { focus = POL_import_submarine_technology }
		mutually_exclusive = { focus = POL_coastal_defense }
		x = 3
		y = 1
		relative_position_id = POL_Naval_Officers_School
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_tech_bonus = {
				name = POL_strike_force
				bonus = 1.0
				uses = 2
				category = cl_tech
			}
			#1x50% research bonus to Light Cruisers & 1x50% bonus to Heavy Cruisers
		}
	}

	focus = {
		id = POL_baltic_navy
		icon = GFX_goal_generic_navy_battleship
		prerequisite = { focus = POL_strike_force focus = POL_coastal_defense }
		
		x = -1
		y = 1
		relative_position_id = POL_strike_force
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_doctrine_cost_reduction = {
				name = POL_baltic_navy
				cost_reduction = 0.5
				uses = 1
				category = naval_doctrine
			}
			#1x50% bonus to Naval Doctrine research
		}
	}

	##########################
	### ROAD TO 56 CONTENT ###
	##########################

	focus = {
		id = POL_Nationalist_Rhetoric
		icon = GFX_focus_generic_polish_deal
		prerequisite = { focus = POL_rewrite_1935_constitution }
		available = { 
			has_government = neutrality
		}
		bypass = {
			OR = {
				has_government = democratic
				has_government = fascism
			}
			is_subject = no
		}

		x = 0
		y = 1
		relative_position_id = POL_rewrite_1935_constitution
		cost = 2.9

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}

		completion_reward = {
			POL = { diplomatic_relation = { country = GER relation = non_aggression_pact active = no } }
			add_stability = -0.03
			add_war_support = 0.05
			add_popularity = {
				ideology = fascism
				popularity = 0.05
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.03
			}
			if = {
				limit = { 
					NOT = { 
						has_government = fascism
					}
				}
				country_event = { id = poland.53 }
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }
	}
	
	focus = {
		id = POL_The_National_Radical_Camp
		icon = GFX_goal_ONR
		
		mutually_exclusive = { focus = POL_The_Endecja_Movement }
		prerequisite = { focus = POL_Nationalist_Rhetoric }
		available = { 
			is_subject = no
			NOT = { has_government = democratic }
		}
		
		x = 2
		y = 1
		relative_position_id = POL_Nationalist_Rhetoric
		cost = 5

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			if = {
				limit = { 
					has_idea = POL_jozef_beck
				}
				hidden_effect = {
					remove_ideas = POL_jozef_beck
					add_ideas = POL_Adam_Poszwinski
				}
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.05
			}
			add_ideas = POL_Falangist_Influence
#			POL_sanation_left_opposition_remove = yes
#			POL_sanation_right_opposition_remove = yes
			POL = { diplomatic_relation = { country = FRA relation = guarantee active = no} }
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				custom_effect_tooltip = available_political_advisor
				show_ideas_tooltip = POL_jan_mosdorf
			}
			custom_effect_tooltip = POL_Gain_Ministers_Tooltip
			hidden_effect = {
				GER = {
					add_ai_strategy = {
						type = protect
						id = "POL"
						value = -50
					}
				}
			}
			effect_tooltip = {
				create_field_marshal = {
					name = "Władysław Jung"
					picture = "r56_portrait_POL_Wladyslaw_Jung.dds"
					traits = { old_guard thorough_planner logistics_wizard }
					id = 3152
					skill = 2
					attack_skill = 2
					defense_skill = 1
					planning_skill = 3
					logistics_skill = 3
				}
				create_field_marshal = {
					name = "Radosław Dzierżykraj-Stokalski"
					picture = "r56_portrait_POL_Radoslaw_Dzierzykraj_Stokalski.dds"
					traits = { old_guard career_officer organisational_leader defensive_doctrine }
					id = 3153
					skill = 2
					attack_skill = 1
					defense_skill = 2
					planning_skill = 3
					logistics_skill = 2
				}
				if = { limit = { has_unit_leader = 3128 } random_unit_leader = { limit = { has_id = 3128 } retire = yes } }
				if = { limit = { has_unit_leader =  3130 } random_unit_leader = { limit = { has_id = 3130 } retire = yes } }
			}
			unlock_decision_category_tooltip = POL_National_Syndicalism_Autarky
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_The_Endecja_Movement
		icon = GFX_goal_ND
		prerequisite = { focus = POL_Nationalist_Rhetoric }
		x = -2
		y = 1
		relative_position_id = POL_Nationalist_Rhetoric
		
		mutually_exclusive = { focus = POL_The_National_Radical_Camp }
		available = { 
			is_subject = no
			NOT = { has_government = fascism }
		}
		
		cost = 5

		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			add_political_power = 25
			add_popularity = {
				ideology = democratic
				popularity = 0.05
			}
			if = {
				limit = { has_idea = POL_jozef_beck } 
				hidden_effect = {
					remove_ideas = POL_jozef_beck
					add_ideas = POL_Eustachy_Sapieha
				}
			}
			custom_effect_tooltip = POL_Same_Ideology_War_Tooltip
			hidden_effect = {
				set_rule = { can_declare_war_on_same_ideology = yes }
			}
			custom_effect_tooltip = POL_Polish_Revanchism_tt
			add_ideas = POL_Nationalist_Influence
			set_party_name = { ideology = democratic long_name = POL_ND_party_long name = POL_ND_party }
			if = {
				limit = {
					NOT = {
						has_character = POL_roman_dmowski
					}
				}
				create_country_leader = {
					name = "Tadeusz Bielecki"
					picture = "GFX_portrait_POL_tadeusz_bielecki"
					expire = "1965.1.1"
					ideology = conservatism
					traits = {
						polish_nationalist
						political_pragmatist
						dislikes_germany
					}
				}
				else = {
					create_country_leader = {
						name = "Roman Dmowski"
						picture = "r56_portrait_POL_Roman_Dmowski.dds"
						expire = "1965.1.1"
						ideology = conservatism
						traits = {
							polish_nationalist
							political_pragmatist
							dislikes_germany
						}
					}
				}
			}
#			POL_sanation_left_opposition_remove = yes
#			POL_sanation_right_opposition_remove = yes
			custom_effect_tooltip = POL_Gain_Ministers_Tooltip
			effect_tooltip = {
				create_field_marshal = {
					name = "Franciszek Latinik"
					picture = "r56_portrait_POL_Franciszek_Latinik.dds"
					traits = { old_guard harsh_leader trait_reckless unyielding_defender defensive_doctrine }
					id = 3151
					skill = 2
					attack_skill = 1
					defense_skill = 4
					planning_skill = 2
					logistics_skill = 1
				}
				create_field_marshal = {
					name = "Władysław Jung"
					picture = "r56_portrait_POL_Wladyslaw_Jung.dds"
					traits = { old_guard thorough_planner logistics_wizard }
					id = 3152
					skill = 2
					attack_skill = 2
					defense_skill = 1
					planning_skill = 3
					logistics_skill = 3
				}
				create_field_marshal = {
					name = "Radosław Dzierżykraj-Stokalski"
					picture = "r56_portrait_POL_Radoslaw_Dzierzykraj_Stokalski.dds"
					traits = { old_guard career_officer organisational_leader defensive_doctrine }
					id = 3153
					skill = 2
					attack_skill = 1
					defense_skill = 2
					planning_skill = 3
					logistics_skill = 2
				}
				if = { limit = { has_unit_leader = 3128 } random_unit_leader = { limit = { has_id = 3128 } retire = yes } }
				if = { limit = { NOT = { has_unit_leader = 3163 } }
					create_corps_commander = {
						name = "Stanisław Haller"
						picture = "r56_portrait_POL_Stanislaw_Haller.dds"
						traits = { old_guard career_officer organizer }
						id = 3163
						skill = 3
						attack_skill = 1
						defense_skill = 1
						planning_skill = 5
						logistics_skill = 4
					}
				}
			}
			unlock_decision_category_tooltip = POL_Endecja_Social_Reform
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	
	focus = {
		id = POL_Consolidate_The_Nationalist_Wing
		icon = GFX_goal_generic_military_deal
		prerequisite = { focus = POL_The_Endecja_Movement focus = POL_consolidate_sanation_government }
		available = {
			OR = { 
				has_government = neutrality
				AND = {
					has_completed_focus = POL_The_Endecja_Movement
					has_government = democratic
				}
			}
		}
		
		x = -2
		y = 1
		relative_position_id = POL_The_Endecja_Movement
		cost = 5

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 15
				GER = {
					OR = {
						has_completed_focus = GER_kill_hitler
						has_completed_focus = GER_rally_the_monarchists
						has_completed_focus = GER_die_letzte_verschwoerung
					}
				}
				has_war = no
			}
		}

		completion_reward = {
			add_war_support = 0.05
			if = {
				limit = { 
					has_completed_focus = POL_The_Endecja_Movement
				}
				add_popularity = { 
					ideology = democratic
					popularity = 0.02
				}
			}
			if = {
				limit = {
					NOT = {
						has_completed_focus = POL_complete_april_constitution
					}
				}
				custom_effect_tooltip = available_political_advisor
				show_ideas_tooltip = POL_joachim_stefan_bartoszewicz
			}
			custom_effect_tooltip = available_theorist
			show_ideas_tooltip = POL_jerzy_rutkowski_theorist
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
	}
	
	focus = {
		id = POL_Polish_Revanchism
		icon = GFX_focus_POL_polish_revanchism
		#icon = GFX_goal_generic_political_pressure
		prerequisite = { focus = POL_Consolidate_The_Nationalist_Wing }
		available = {
			OR = { 
				has_government = neutrality
				has_government = democratic
			}
			NOT = {
				has_completed_focus = POL_Kasprzycki_Gamelin_Convention
			}
		}
		
		x = 0
		y = 3
		relative_position_id = POL_Consolidate_The_Nationalist_Wing
		cost = 5	#R56: Shortened 01/26 because AI is more aggressive in the German civil war 

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 15
				GER = {
					OR = {
						has_completed_focus = GER_kill_hitler
						has_completed_focus = GER_rally_the_monarchists
						has_completed_focus = GER_die_letzte_verschwoerung
					}
				}
				GER = { has_civil_war = yes }
				has_war = no
			}
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				has_completed_focus = POL_the_sanation_right
				FRA = { has_government = democratic }
			}
		}

		completion_reward = {
			add_named_threat = { threat = 1 name = POL_Polish_Revanchism }
			add_ideas = POL_polish_revanchism_focus
			if = {
				limit = { 
					NOT = { has_completed_focus = POL_The_Endecja_Movement }
				}
				custom_effect_tooltip = POL_Polish_Revanchism_tt
			}
			if = {
				limit = { has_completed_focus = POL_The_Endecja_Movement }
				custom_effect_tooltip = POL_Polish_Revanchism_tt_tt
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	
	focus = {
		id = POL_Third_Europe
		icon = GFX_goal_generic_alliance
		prerequisite = { focus = POL_Polish_Czechoslovakian_Alliance focus = POL_camp_of_national_unity focus = POL_ozon }
		prerequisite = { focus = POL_Polish_Revanchism focus = POL_Polish_Czechoslovakian_Alliance }
		mutually_exclusive = { focus = POL_align_with_the_west focus = POL_baltic_security }
		available = {
			threat > 0.25
			is_subject = no
			# OR = {
			# 	has_completed_focus = POL_rewrite_1935_constitution
			# 	has_completed_focus = POL_camp_of_national_unity
			# 	has_completed_focus = POL_ozon
			# }
			OR = {
				is_in_faction = no
				AND = {
					is_faction_leader = yes
					NOT = { 
						CZE = {
							OR = {
								is_in_faction = yes
								is_puppet = yes
							} 
							 
						} 
					}
					has_war = no
					CZE = {
						exists = yes
						owns_state = 69
					}
				}
			}
		}
		
		bypass = {
			is_in_faction = yes
		}

		x = 2
		y = 2
		relative_position_id = POL_Polish_Revanchism
		cost = 5

		ai_will_do = {
			factor = 9
			modifier = {
				factor = 0
				threat < 0.27
			}
			modifier = {
				add = 1
				threat > 0.90
			}
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				OR = {
					AND = {
						NOT = { has_completed_focus = POL_Kasprzycki_Gamelin_Convention }
						FRA = {
							has_government = democratic
							is_subject = no
							is_faction_leader = yes
						}
					}
					AND = {
						NOT = { has_completed_focus = POL_Kasprzycki_Gamelin_Convention }
						ENG = {
							is_faction_leader = yes
							is_in_faction_with = FRA
							is_subject = no
							has_government = democratic
						}
					}
				}
			}
		}
		completion_reward = {
			POL = { diplomatic_relation = { country = FRA relation = guarantee active = no} }
			set_rule = { can_create_factions = yes }
			create_faction_from_template = faction_template_miedzymorze_faction
			hidden_effect = {
				news_event = { hours = 6 id = news.214 }
			}
			POL = { set_country_flag = POL_Third_Europe_Faction_Selected }
			custom_effect_tooltip = POL_diplomatic_mission_to_FROM_tt
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = POL_pan_slavic_revanchism
		icon = GFX_goal_generic_more_territorial_claims
		prerequisite = { focus = POL_Third_Europe }
		
		x = 0
		y = 1
		relative_position_id = POL_Third_Europe
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
		}

		
		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL }
		completion_reward = {
			swap_ideas = {
				remove_idea = POL_polish_revanchism_focus
				add_idea = POL_slavic_revanchism
			}
		}
	}

	focus = {
		id = POL_the_old_borders
		icon = GFX_goal_prometheism
		prerequisite = { focus = POL_pan_slavic_revanchism }
		
		x = 0
		y = 1
		relative_position_id = POL_pan_slavic_revanchism
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			is_subject = no
		}

		
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			add_state_claim = 67
			add_state_claim = 66
			add_state_claim = 68
			add_state_claim = 63
			add_state_claim = 5
			add_state_claim = 763
		}
	}

	# focus = {
	# 	id = POL_annex_czech
	# 	icon = GFX_goal_generic_attack_czech
	# 	prerequisite = { focus = POL_pan_slavic_revanchism }
	# 	mutually_exclusive = { focus = POL_Pressure_Czechoslovakia }
	# 	will_lead_to_war_with = CZE
		
	# 	x = -2
	# 	y = 0
	# 	relative_position_id = POL_Pressure_Czechoslovakia
	# 	cost = 10

	# 	ai_will_do = {
	# 		base = 0	#56 Anti AI Poland Start WW2
	# 		modifier = {
	# 			add = 15
	# 			has_war = no
	# 			has_army_manpower = { size > 449999 }
	# 			any_other_country = {
	# 				NOT = {
	# 					has_guaranteed = CZE
	# 					is_ally_with = CZE
	# 				}
	# 			}
	# 		}
	# 	}

	# 	available = {
	# 		is_subject = no
	# 		NOT = { is_ally_with = CZE }	#56
	# 	}

	# 	search_filters = { FOCUS_FILTER_ANNEXATION }
	# 	completion_reward = {
	# 		create_wargoal = {
	# 			target = CZE
	# 			type = annex_everything
	# 		}
	# 	}
	# }

	focus = {
		id = POL_sea_to_sea
		icon = GFX_focus_generic_strike_at_democracy1
		prerequisite = { focus = POL_baltic_ultimatums }
		prerequisite = { focus = POL_the_old_borders }
		
		x = 1
		y = 1
		relative_position_id = POL_baltic_ultimatums
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			add_state_claim =  207
			add_state_claim =  242
			add_state_claim =  206
			add_state_claim =  241
			add_state_claim =  243
			add_state_claim =  204
			add_state_claim =  194
			add_state_claim =  201
			add_state_claim =  199
			add_state_claim =  198
			add_state_claim =  202
			add_state_claim =  203
			add_state_claim =  193
			add_state_claim =  259
			add_state_claim =  137
			add_state_claim =  196
			add_state_claim =  197
			add_state_claim =  192
			add_state_claim =  834
		}
	}

###TODO, alternative for silesia or war	
#	focus = {
#		id = POL_silesian_question
#		icon = GFX_focus_generic_court
#		prerequisite = { focus = POL_Third_Europe }
#		mutually_exclusive = { focus = POL_Silesia_Or_War }
#		available = {
#			is_subject = no
#		}
#	bypass = {
#		SIL = {
#		exists = yes
#		}
#	}
#	x = -1
#	y = 1
#	relative_position_id = POL_Third_Europe
#	cost = 5
#	ai_will_do = {
#		factor = 2
#	}
#	completion_reward = {
#		66 = {
#			add_claim_by = POL
#		}
#		67 = {
#			add_claim_by = POL
#		}
#	}
#	search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_POLITICAL }
#	}
	
	focus = {
		id = POL_The_Baltic_Alliance
		icon = GFX_focus_generic_baltic_entente
		prerequisite = { focus = POL_Third_Europe }
		mutually_exclusive = { focus = POL_baltic_ultimatums }
		available = {
			NOT = {
				has_completed_focus = POL_The_Endecja_Movement
			}
			is_faction_leader = yes
			NOT = { has_government = communism }
			OR = {
				LAT = {
					exists = yes
					is_subject = no
					NOT = { has_war_with = POL }
				}
				EST = {
					exists = yes
					is_subject = no
					NOT = { has_war_with = POL }
				}
			}
		}
		bypass = {
			OR = {
				AND = {
					LAT = { exists = no }
					EST = { exists = no }
				}
				AND = {
					LAT = { is_ally_with = POL }
					EST = { is_ally_with = POL }
				}
			}
		}

		x = 2
		relative_position_id = POL_baltic_ultimatums
		cost = 5

		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			add_opinion_modifier = { 
				target = EST modifier = POL_The_Baltic_Allianc 
			}
			EST = { 
				add_opinion_modifier = { target = ROOT modifier = POL_The_Baltic_Allianc } 
			}
			hidden_effect = {
				if = {
					limit = {
						EST = {
							is_in_faction = no
							is_subject = no
							NOT = { has_war_with = POL }
						}
					}
					EST = {
						country_event = { id = baltic.7 days = 1 }
					}
				}
			}
			add_opinion_modifier = { target = LAT modifier = POL_The_Baltic_Allianc }
			LAT = { 
				add_opinion_modifier = { target = ROOT modifier = POL_The_Baltic_Allianc }
			}
			hidden_effect = {
				if = {
					limit = {
						LAT = {
							is_in_faction = no
							is_subject = no
							NOT = { has_war_with = POL }
						}
					}
					LAT = {
						country_event = { id = baltic.7 days = 1 }
					}
				}
			}
			if = {
				limit = {
					EST = {
						is_in_faction = no
						is_subject = no
						NOT = { has_war_with = POL }
					}
				}
				EST = {
					custom_effect_tooltip = POL_invite_to_faction_tooltip
				}
			}
			if = {
				limit = {
					LAT = {
						is_in_faction = no
						is_subject = no
						NOT = { has_war_with = POL }
					}
				}
				LAT = {
					custom_effect_tooltip = POL_invite_to_faction_tooltip
				}
			}
			if = {
				limit = {
					EST = {
						is_faction_leader = yes
						is_ai = yes
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = EST
							is_in_faction_with = EST
						}
					}
					
					add_to_faction = POL
					add_opinion_modifier = { target = POL modifier = huge_increase }
				}
				hidden_effect = {
					save_event_target_as = alliance_inviter					
					set_country_flag = alliance_inviter@ROOT
					EST = { 
						set_country_flag = alliance_applicant@ROOT 
						save_event_target_as = alliance_applicant
					}
					news_event = { id = r56i.event.16 hours = 12 }
				}
			}
			if = {
				limit = {
					LAT = {
						is_faction_leader = yes
						is_ai = yes
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = LAT
							is_in_faction_with = LAT
						}
					}
					add_to_faction = POL
					add_opinion_modifier = { target = POL modifier = huge_increase }			
				}
				hidden_effect = {
					save_event_target_as = alliance_inviter					
					set_country_flag = alliance_inviter@ROOT
					LAT = { 
						set_country_flag = alliance_applicant@ROOT 
						save_event_target_as = alliance_applicant
					}
					
					news_event = { id = r56i.event.16 hours = 12 }
				}					
			}			
			if = {
				limit = {
					LIT = {
						is_faction_leader = yes
						is_ai = yes
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = LIT
							is_in_faction_with = LIT
						}
					}
					
					add_to_faction = POL
					add_opinion_modifier = { target = POL modifier = huge_increase }
				}
				hidden_effect = {
					save_event_target_as = alliance_inviter					
					set_country_flag = alliance_inviter@ROOT
					LIT = { 
						set_country_flag = alliance_applicant@ROOT 
						save_event_target_as = alliance_applicant
					}
					news_event = { id = r56i.event.16 hours = 12 }
				}					
				
			}						
		}
	}

	focus = {
		id = POL_the_neighbours_protection
		icon = GFX_goal_generic_befriend_poland
		prerequisite = { focus = POL_Third_Europe }
		x = -2
		y = 1
		relative_position_id = POL_Third_Europe

		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			is_faction_leader = yes
			is_subject = no
			OR = {
				UKR = {
					exists = yes
					is_subject = no
					NOT = { has_war_with = POL }
					NOT = {
					   has_government = communism
				   } 
				}
				AND = {
					NOT = {
						has_completed_focus = POL_The_Endecja_Movement
					}
					if = {
						limit = {
							is_in_faction_with = BUL
							BUL = {
								NOT = {
									has_government = democratic
								}
							}
						}
						BUL = {
							is_subject = yes
						}

					}
					NOT = { 
						is_in_faction_with = BUL 
						BUL = {
							is_subject = no
							NOT = {
								has_government = democratic
							}
						}
					}
					ROM = {
						AND = {
							exists = yes
							is_subject = no
							NOT = { has_war_with = POL }
						}
						NOT = {
							has_government = communism
						} 
					}
				}
			}		
		}
		completion_reward = {
			UKR = {
				if = {
					limit = { is_in_faction = no }
					country_event = generic.5
				}
			}
			ROM = { 
				country_event = poland_r56.16
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_The_Great_Peasant_Strike
		icon = GFX_focus_generic_great_peasant_strike
		prerequisite = { focus = POL_radicalize_the_front }
		available = { 
			has_government = neutrality
		}
		bypass = {
			OR = {
				has_government = democratic
				has_government = communism
			}
		}

		x = 0
		y = 1
		relative_position_id = POL_radicalize_the_front
		cost = 2.9

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}

		completion_reward = {
			add_popularity = { ideology = communism popularity = 0.05 }
			if = {
				limit = { has_idea = POL_great_peasants_strike }
				remove_ideas = POL_great_peasants_strike
			}
			else = {
				remove_ideas = POL_looming_peasants_strike
			}
			add_timed_idea = {
				idea = POL_Peasant_Strike
				days = 60
			}
			if = {
				limit = { NOT = { POL = { has_government = communism } } }
				hidden_effect = { POL = { country_event = poland.54 } }
			}
		}
		
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_The_Polish_Socialist_Party
		icon = GFX_goal_generic_polish_socialist_party
		prerequisite = { focus = POL_The_Great_Peasant_Strike }
		mutually_exclusive = { focus = POL_The_Front_Morges }
		available = { 
			is_subject = no
			has_government = neutrality
		}

		x = -2
		y = 1
		relative_position_id = POL_The_Great_Peasant_Strike
		cost = 5

		ai_will_do = {
			factor = 10
		}

		

		completion_reward = {
			add_ideas = POL_Socialist_Influence
#			POL_sanation_left_opposition_remove = yes
#			POL_sanation_right_opposition_remove = yes
			hidden_effect = {
				add_popularity = {
					ideology = democratic
					popularity = -0.15
				}
			}
			custom_effect_tooltip = POL_Gain_Ministers_Tooltip
			effect_tooltip = {
				if = {
					limit = { NOT = { has_unit_leader = 3156 } }
					create_field_marshal = {
						name = "Michał Rola-Żymierski"
						picture = "r56_portrait_POL_Michal_Rola_Zymierski.dds"
						traits = { politically_connected career_officer logistics_wizard aggressive_assaulter }
						id = 3156
						skill = 3
						attack_skill = 3
						defense_skill = 2
						planning_skill = 3
						logistics_skill = 2
					}
				}
				if = {
					limit = { NOT = { has_unit_leader = 3157 } }
					create_field_marshal = {
						name = "Zygmunt Berling"
						picture = "r56_portrait_POL_Zygmunt_Berling.dds"
						traits = { politically_connected career_officer infantry_officer inspirational_leader }
						id = 3157
						skill = 1
						attack_skill = 2
						defense_skill = 1
						planning_skill = 1
						logistics_skill = 1
					}
				}
				if = { limit = { has_unit_leader = 3128 } random_unit_leader = { limit = { has_id = 3128 } retire = yes } }
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_Seek_Accommodation_With_The_USSR
		icon = GFX_goal_generic_attack_allies
		prerequisite = { focus = POL_The_Polish_Socialist_Party	}
		available = {
			is_subject = no
			NOT = { is_in_faction_with = GER }
			NOT = { 
				ENG = {
					has_war_with = SOV
					has_government = democratic
				}
			}
			NOT = {
				date > 1941.01.01
			}
			OR = {
				has_government = communism
				POL = { has_defensive_war = yes }
				GER = { is_justifying_wargoal_against = POL }
				GER = { has_wargoal_against = POL }
				AND  = {
					85 = { is_owned_by = GER }
					NOT = { GER = { has_completed_focus = GER_danzig_for_guarantees } }
				}
			}
			SOV = {
				exists = yes
	 			is_subject = no
	 			NOT = { has_idea = SOV_molotov_ribbentrop_pact }
	 			NOT = { has_war_with = POL }
				NOT = { is_in_faction_with = GER }
	 		}
		}
		bypass = {
			is_ally_with = SOV
		}
		
		x = -3
		y = 1
		relative_position_id = POL_The_Polish_Socialist_Party
		cost = 10

		ai_will_do = {
			factor = 10
		}
		
		completion_reward = {
			add_political_power = 50
			add_opinion_modifier = { target = SOV modifier = POL_Seek_Accommodation_With_The_USSR }
			SOV = { add_political_power = 25 }
			SOV = { add_opinion_modifier = { target = ROOT modifier = POL_Seek_Accommodation_With_The_USSR } }
			if = {
				limit = { NOT = { FRA = { is_in_faction_with = SOV } } }
				POL = { diplomatic_relation = { country = FRA relation = guarantee active = no} }
			}
			if = {
				limit = { NOT = { ROM = { is_in_faction_with = SOV } } }
				POL = { diplomatic_relation = { country = ROM relation = guarantee active = no} }
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_Beck_Molotov_Pact
		icon = GFX_focus_generic_strike_at_democracy2
		prerequisite = { focus = POL_Seek_Accommodation_With_The_USSR }
		available = {
			is_subject = no
			NOT = { has_completed_focus = POL_Fund_The_Promethean_Program }
			SOV = {
				exists = yes
	 			is_subject = no
	 			NOT = { has_idea = SOV_molotov_ribbentrop_pact }
	 			NOT = { has_war_with = POL }
				NOT = { is_in_faction_with = POL }
	 		}
			hidden_trigger = {
				OR = {
					is_ai = no
					has_country_flag = POL_AI_RANDOM_COMMUNIST
				#	has_game_rule = {
				#		rule = POL_ai_behavior
				#		option = COMMUNIST
				#	}
				}
			}
		}
		bypass = {
			is_subject_of = SOV
		}
		
		x = 0
		y = 1
		relative_position_id = POL_Seek_Accommodation_With_The_USSR
		cost = 10

		ai_will_do = {
			factor = 0
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		
		completion_reward = {
			custom_effect_tooltip = POL_Beck_Molotov_tooltip_TFV
			SOV = { country_event = poland.115 }
		}
	}
	
	focus = {
		id = POL_Draw_Closer_To_The_USSR
		icon = GFX_focus_chi_mission_to_the_soviet_union
		prerequisite = { focus = POL_Beck_Molotov_Pact }
		mutually_exclusive = { focus = POL_Seek_Autonomy }
		available = {
			is_subject_of = SOV
			has_government = communism
			SOV = {
				exists = yes
	 			is_subject = no
	 		}
		}
		
		x = -1
		y = 1
		relative_position_id = POL_Beck_Molotov_Pact
		cost = 5

		ai_will_do = {
			factor = 10
		}

		

		completion_reward = {
			set_party_name = { ideology = communism long_name = POL_PZPR_party_long name = POL_PZPR_party }
			add_country_leader_role = {
				character = POL_boleslaw_bierut
				country_leader = {
					ideology=stalinism
					traits = { prince_of_terror }
					expire="1965.1.1"
				}
				promote_leader = yes
			}
			custom_effect_tooltip = POL_Gain_Ministers_Tooltip
			if = {
				limit = { NOT = { has_unit_leader = 3156 } }
				create_field_marshal = {
					name = "Michał Rola-Żymierski"
					picture = "r56_portrait_POL_Michal_Rola_Zymierski.dds"
					traits = { politically_connected career_officer logistics_wizard aggressive_assaulter }
					id = 3156
					skill = 3
					attack_skill = 3
					defense_skill = 2
					planning_skill = 3
					logistics_skill = 2
				}
			}
			if = {
				limit = { NOT = { has_unit_leader = 3157 } }
				create_field_marshal = {
					name = "Zygmunt Berling"
					picture = "r56_portrait_POL_Zygmunt_Berling.dds"
					traits = { politically_connected career_officer infantry_officer inspirational_leader }
					id = 3157
					skill = 1
					attack_skill = 2
					defense_skill = 1
					planning_skill = 1
					logistics_skill = 1
				}
			}
			if = {
				limit = { NOT = { has_unit_leader = 3177 } }
				create_corps_commander = {
					name = "Stanisław Popławski"
					picture = "r56_portrait_POL_Stanislav_Poplavsky.dds"
					traits = { trait_reckless harsh_leader skilled_staffer }
					id = 3177
					skill = 3
					attack_skill = 4
					defense_skill = 2
					planning_skill = 2
					logistics_skill = 2
				}
			}
			if = {
				limit = { NOT = { has_unit_leader = 3178 } }
				create_corps_commander = {
					name = "Karol Świerczewski"
					picture = "r56_portrait_POL_Karol_Swierczewski.dds"
					traits = { substance_abuser harsh_leader }
					id = 3178
					skill = 1
					attack_skill = 1
					defense_skill = 1
					planning_skill = 1
					logistics_skill = 1
				}
			}
			if = { limit = { has_unit_leader = 3128 } random_unit_leader = { limit = { has_id = 3128 } retire = yes } }
			if = { limit = { has_unit_leader = 3129 } random_unit_leader = { limit = { has_id = 3129 } retire = yes } }
			if = { limit = { has_unit_leader = 3130 } random_unit_leader = { limit = { has_id = 3130 } retire = yes } }
			if = { limit = { has_unit_leader = 3131 } random_unit_leader = { limit = { has_id = 3131 } retire = yes } }
			if = { limit = { has_unit_leader = 3132 } random_unit_leader = { limit = { has_id = 3132 } retire = yes } }
			if = { limit = { has_unit_leader = 3133 } random_unit_leader = { limit = { has_id = 3133 } retire = yes } }
			if = { limit = { has_unit_leader = 3134 } random_unit_leader = { limit = { has_id = 3134 } retire = yes } }
			if = { limit = { has_unit_leader = 3135 } random_unit_leader = { limit = { has_id = 3135 } retire = yes } }
			if = { limit = { has_unit_leader = 3136 } random_unit_leader = { limit = { has_id = 3136 } retire = yes } }
			if = { limit = { has_unit_leader = 3151 } random_unit_leader = { limit = { has_id = 3151 } retire = yes } }
			if = { limit = { has_unit_leader = 3152 } random_unit_leader = { limit = { has_id = 3152 } retire = yes } }
			if = { limit = { has_unit_leader = 3153 } random_unit_leader = { limit = { has_id = 3153 } retire = yes } }
			if = { limit = { has_unit_leader = 3154 } random_unit_leader = { limit = { has_id = 3154 } retire = yes } }
			if = { limit = { has_unit_leader = 3155 } random_unit_leader = { limit = { has_id = 3155 } retire = yes } }
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_Baltic_Naval_Vanguard
		icon = GFX_focus_generic_destroyer
		prerequisite = { focus = POL_Draw_Closer_To_The_USSR }
		x = 0
		y = 1
		relative_position_id = POL_Draw_Closer_To_The_USSR
		cost = 10

		available_if_capitulated = yes

		available = {
			has_government = communism
			OR = {
				has_completed_focus = POL_Draw_Closer_To_The_USSR
				has_country_flag = PPS_Revolutionary_Path
			}
			any_owned_state = {
				is_coastal = yes
			}
		}

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

		completion_reward = {
			add_tech_bonus = {
				name = POL_Baltic_Naval_Vanguard
				bonus = 1.0
				uses = 2
				category = naval_equipment
				category = marine_tech
			}
			random_owned_controlled_state = {
				prioritize = { 63 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = POL_License_Soviet_Equipment
		icon = GFX_focus_generic_license_production
		prerequisite = { focus = POL_Draw_Closer_To_The_USSR }
		x = -1
		y = 2
		relative_position_id = POL_Draw_Closer_To_The_USSR
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
			is_ally_with = SOV
		}

		completion_reward = {
			add_relation_modifier = {
				target = SOV
				modifier = ROM_license_german_equipment
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_Seek_Autonomy
		icon = GFX_goal_generic_forceful_treaty
		prerequisite = { focus = POL_Beck_Molotov_Pact }
		mutually_exclusive = { focus = POL_Draw_Closer_To_The_USSR }
		available = {
			is_subject_of = SOV
			has_government = communism
			SOV = {
				exists = yes
	 			is_subject = no
	 		}
		}

		x = 1
		y = 1
		relative_position_id = POL_Beck_Molotov_Pact
		cost = 5

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			if = {
				limit = {
					is_subject = yes
				}
				add_autonomy_ratio = {
					value = 0.15
				}
			}
			set_party_name = { ideology = communism long_name = POL_PPR_party_long name = POL_PPR_party }
			create_country_leader = {
				name = "Władysław Gomułka"
				picture = "Portrait_Poland_Wladyslaw_Gomulka.dds"
				expire = "1965.1.1"
				ideology = anti_revisionism
				traits = {
					introspective
				}
			}
			custom_effect_tooltip = POL_Gain_Ministers_Tooltip
			if = {
				limit = {
					NOT = { has_unit_leader = 3179 }
					SOV = { NOT = { has_country_flag = purge_1_group_b } }
				}
				create_field_marshal = {
					name = "Konstanty Rokossowski"
					picture = "r56_portrait_POL_Konstanty_Rokossowski.dds"
					traits = { politically_connected panzer_leader panzer_expert offensive_doctrine thorough_planner aggressive_assaulter }
					id = 3179
					skill = 5
					attack_skill = 5
					defense_skill = 2
					planning_skill = 5
					logistics_skill = 4
				}
			}
			if = {
				limit = { NOT = { has_unit_leader = 3156 } }
				create_field_marshal = {
					name = "Michał Rola-Żymierski"
					picture = "r56_portrait_POL_Michal_Rola_Zymierski.dds"
					traits = { politically_connected career_officer logistics_wizard aggressive_assaulter }
					id = 3156
					skill = 3
					attack_skill = 3
					defense_skill = 2
					planning_skill = 3
					logistics_skill = 2
				}
			}
			if = {
				limit = { NOT = { has_unit_leader = 3157 } }
				create_field_marshal = {
					name = "Zygmunt Berling"
					picture = "r56_portrait_POL_Zygmunt_Berling.dds"
					traits = { politically_connected career_officer infantry_officer inspirational_leader }
					id = 3157
					skill = 1
					attack_skill = 2
					defense_skill = 1
					planning_skill = 1
					logistics_skill = 1
				}
			}
			if = {
				limit = { NOT = { has_unit_leader = 3177 } }
				create_corps_commander = {
					name = "Stanisław Popławski"
					picture = "r56_portrait_POL_Stanislav_Poplavsky.dds"
					traits = { trait_reckless harsh_leader skilled_staffer }
					id = 3177
					skill = 3
					attack_skill = 4
					defense_skill = 2
					planning_skill = 2
					logistics_skill = 2
				}
			}
			if = {
				limit = { NOT = { has_unit_leader = 3178 } }
				create_corps_commander = {
					name = "Karol Świerczewski"
					picture = "r56_portrait_POL_Karol_Swierczewski.dds"
					traits = { substance_abuser harsh_leader }
					id = 3178
					skill = 1
					attack_skill = 1
					defense_skill = 1
					planning_skill = 1
					logistics_skill = 1
				}
			}
			if = { limit = { has_unit_leader = 3128 } random_unit_leader = { limit = { has_id = 3128 } retire = yes } }
			if = { limit = { has_unit_leader = 3129 } random_unit_leader = { limit = { has_id = 3129 } retire = yes } }
			if = { limit = { has_unit_leader = 3130 } random_unit_leader = { limit = { has_id = 3130 } retire = yes } }
			if = { limit = { has_unit_leader = 3131 } random_unit_leader = { limit = { has_id = 3131 } retire = yes } }
			if = { limit = { has_unit_leader = 3132 } random_unit_leader = { limit = { has_id = 3132 } retire = yes } }
			if = { limit = { has_unit_leader = 3133 } random_unit_leader = { limit = { has_id = 3133 } retire = yes } }
			if = { limit = { has_unit_leader = 3134 } random_unit_leader = { limit = { has_id = 3134 } retire = yes } }
			if = { limit = { has_unit_leader = 3135 } random_unit_leader = { limit = { has_id = 3135 } retire = yes } }
			if = { limit = { has_unit_leader = 3136 } random_unit_leader = { limit = { has_id = 3136 } retire = yes } }
			if = { limit = { has_unit_leader = 3151 } random_unit_leader = { limit = { has_id = 3151 } retire = yes } }
			if = { limit = { has_unit_leader = 3152 } random_unit_leader = { limit = { has_id = 3152 } retire = yes } }
			if = { limit = { has_unit_leader = 3153 } random_unit_leader = { limit = { has_id = 3153 } retire = yes } }
			if = { limit = { has_unit_leader = 3154 } random_unit_leader = { limit = { has_id = 3154 } retire = yes } }
			if = { limit = { has_unit_leader = 3155 } random_unit_leader = { limit = { has_id = 3155 } retire = yes } }
		}
		search_filters = { FOCUS_FILTER_TFV_AUTONOMY FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_Political_Commissars
		icon = GFX_goal_generic_war_with_comintern
		prerequisite = { focus = POL_Draw_Closer_To_The_USSR focus = POL_Seek_Autonomy }
		available = {
			OR = {
				has_government = communism
				AND = {
					has_government = democratic
					has_completed_focus = POL_The_Polish_Socialist_Party
				}
			}
		}

		x = 0
		y = 1
		relative_position_id = POL_Seek_Autonomy
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			custom_effect_tooltip = POL_Universal_Research_Bonus
			hidden_effect = {
				add_tech_bonus = {
					name = POL_Subsidized_Universal_Education
					bonus = 0.25
					ahead_reduction = 0.5
					uses = 1
					category = light_air
					category = medium_air
					category = heavy_air
					category = armor
					category = cat_light_armor
					category = cat_medium_armor
					category = cat_heavy_armor
					category = artillery
					category = cat_anti_tank
					category = naval_air
					category = infantry_weapons
					category = motorized_equipment
					category = cat_mechanized_equipment
					category = naval_equipment
					category = rocketry
					category = nuclear
					category = industry
					category = electronics
					#category = land_doctrine
					#category = air_doctrine
					#category = naval_doctrine
					#category = strategic_destruction_tree
					#category = battlefield_support_tree
					#category = operational_integrity_tree
					category = jet_technology
					#category = trade_interdiction_tree
					#category = convoy_defense_tree
					category = light_fighter
					category = cat_heavy_fighter
					category = tactical_bomber
					category = cat_strategic_bomber
					category = naval_bomber
					category = cas_bomber
					category = dd_tech
					category = cl_tech
					category = ca_tech
					category = cv_tech
					category = bc_tech
					category = bb_tech
					category = shbb_tech
					category = ss_tech
					category = tp_tech
					category = synth_resources
					category = fleet_in_being_tree
					category = encryption_tech
					category = decryption_tech
					category = computing_tech
					category = radar_tech
					category = infantry_tech
					category = marine_tech
					category = construction_tech
					category = excavation_tech
					#category = submarine_doctrine
					category = air_equipment
					#category = cat_mobile_warfare
					#category = cat_superior_firepower
					#category = cat_grand_battle_plan
					#category = cat_mass_assault
					#category = cat_base_strike
					#category = cat_trade_interdiction
					#category = cat_fleet_in_being
					#category = cat_strategic_destruction
					#category = cat_battlefield_support
					#category = cat_operational_integrity
					category = night_vision
					category = base_strike_main
					category = mot_rockets
					category = support_tech
					category = para_tech
					category = engineers_tech
					category = recon_tech
					category = mountaineers_tech
					category = military_police_tech
					category = hospital_tech
					category = logistics_tech
					category = signal_company_tech
					category = maintenance_company_tech
					category = naval_mines
					category = concentrated_industry_category
					category = dispersed_industry_category
					category = asw_tech
					category = naval_minesweeping
					category = naval_minelaying
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = POL_political_commissars
			custom_effect_tooltip = generic_skip_one_line_tt
			add_breakthrough_progress = {
				specialization = specialization_land
				value = 0.25
			}
			add_breakthrough_progress = {
				specialization = specialization_naval
				value = 0.25
			}
			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.25
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = POL_Align_With_Italy
		icon = GFX_focus_generic_italy_first
		prerequisite = { focus = POL_The_Endecja_Movement focus = POL_The_National_Radical_Camp }
		available = {
			is_subject = no
			is_in_faction = no
			ITA = {
				exists = yes
	 			is_subject = no
	 			NOT = { has_war_with = POL }
				is_faction_leader = yes
				NOT = { is_in_faction_with = GER }
	 		}
		}
		bypass = {
			is_ally_with = ITA
		}
		
		x = -1
		y = 2
		relative_position_id = POL_The_National_Radical_Camp
		cost = 10
		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			if = {
				limit = { NOT = { FRA = { is_in_faction_with = ITA } } }
				POL = { diplomatic_relation = { country = FRA relation = guarantee active = no} }
			}
			if = {
				limit = { NOT = { ROM = { is_in_faction_with = ITA } } }
				POL = { diplomatic_relation = { country = ROM relation = guarantee active = no} }
			}
			ITA = { country_event = poland.118 }
		}
	}
	
	focus = {
		id = POL_Align_With_Russia
		icon = GFX_focus_ger_strike_at_the_source
		prerequisite = { focus = POL_The_Endecja_Movement focus = POL_The_National_Radical_Camp }
		available = {
			is_subject = no
			is_in_faction = no
			custom_trigger_tooltip = {
				tooltip = POL_Align_With_Russia_trigger
				OR = {
					AND = {
						POL = { has_government = democratic }
						SOV = { has_government = democratic }
					}
					AND = {
						POL = { has_government = fascism }
						SOV = { has_government = fascism }
					}
				}
			}
			SOV = {
				exists = yes
	 			NOT = { has_war_with = POL }
				is_faction_leader = yes
				NOT = { is_in_faction_with = GER }
			}
		}
		bypass = {
			is_ally_with = SOV
			NOT = { SOV = { has_government = communism } }
		}
		
		x = -1
		y = 2
		relative_position_id = POL_The_Endecja_Movement
		cost = 10
		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			if = {
				limit = { NOT = { FRA = { is_in_faction_with = SOV } } }
				POL = { diplomatic_relation = { country = FRA relation = guarantee active = no} }
			}
			if = {
				limit = { NOT = { ROM = { is_in_faction_with = SOV } } }
				POL = { diplomatic_relation = { country = ROM relation = guarantee active = no} }
			}
			SOV = { country_event = poland.173 }
		}
	}
	
	focus = {
		id = POL_Invest_In_The_Middle_Class
		icon = GFX_focus_pol_invest_middle_class
		prerequisite = { focus = POL_The_Endecja_Movement }
		available = {
			has_government = democratic
		}

		x = 0
		y = 1
		relative_position_id = POL_The_Endecja_Movement
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_popularity = { ideology = democratic popularity = 0.05 }
			add_ideas = POL_Family_Subsidies
			if = {
				limit = { 
					10 = {
						controls_or_subject_of = yes
					}
				}
				10 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			country_event = poland.167
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = POL_Mend_Ties_With_Czechoslovakia
		icon = GFX_goal_generic_befriend_czech
		prerequisite = { focus = POL_The_Endecja_Movement focus = POL_The_National_Radical_Camp }
		available = {
			is_subject = no
			NOT = {
				has_completed_focus = POL_Pressure_Czechoslovakia
			}
			OR = {
				AND = {
					POL = { has_government = democratic }
					CZE = { has_government = democratic }
				}
				AND = {
					POL = { has_government = fascism }
					CZE = { has_government = fascism }
				}
			}
			CZE = {
				exists = yes
	 			NOT = { has_war_with = POL }
				OR = {
					is_subject = no
					is_subject_of = POL
				}
	 		}
		}
		
		x = 1
		y = 2
		relative_position_id = POL_The_Endecja_Movement
		cost = 7.2
		ai_will_do = {
			factor = 10
		}

		

		completion_reward = {
			add_political_power = 25
			if = {
				limit = {
					NOT = { CZE = { is_ally_with = POL } }
				}
				CZE = { country_event = poland.150 }
				custom_effect_tooltip = if_they_accept_tt
				effect_tooltip = {
					random_country = {
						limit = { 
							tag = POL 
						}
						add_timed_idea = {
							idea = POL_Arms_Deal
							days = 500
						}
						air_experience = 10
					}
					CZE = {
						add_political_power = 25
						add_timed_idea = {
							idea = POL_CZE_Arms_Deal
							days = 500
						}
						army_experience = 10
					}
				}
				custom_effect_tooltip = if_they_refuse_tt
				effect_tooltip = {
					random_country = {
						limit = { 
							tag = POL 
						}
						add_timed_idea = {
							idea = POL_Arms_Imports
							days = 500
						}
					}
				}
			}
			if = {
				limit = {
					CZE = { is_ally_with = POL }
				}
				random_country = {
					limit = { 
						tag = POL 
					}
					add_timed_idea = {
						idea = POL_Arms_Deal
						days = 500
					}
					air_experience = 10
				}
				CZE = {
					add_political_power = 25
					add_timed_idea = {
						idea = POL_CZE_Arms_Deal
						days = 500
					}
					army_experience = 10
				}
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_Polish_Czechoslovakian_Alliance
		icon = GFX_goal_CZE_revive_the_little_entente
		prerequisite = { focus = POL_Mend_Ties_With_Czechoslovakia }
		available = {
			is_subject = no
			NOT = {
				has_completed_focus = POL_Pressure_Czechoslovakia
			}
			NOT = { is_in_faction_with = HUN }
			CZE = {
				exists = yes
	 			is_subject = no
	 			NOT = { has_war_with = POL }
				NOT = { has_government = communism }
	 		}
		}
		
		x = 0
		y = 2
		relative_position_id = POL_Mend_Ties_With_Czechoslovakia
		cost = 10
		ai_will_do = {
			factor = 10
		}

		

		completion_reward = {
			set_rule = { can_create_factions = yes }
			CZE = { country_event = poland.112 }
		}
	}
	
	focus = {
		id = POL_Beyond_The_Proletariat
		icon = GFX_focus_eng_concessions_to_the_trade_unions
		prerequisite = { focus = POL_The_National_Radical_Camp }
		available = {
			has_government = fascism
		}
		
		x = 0
		y = 1
		relative_position_id = POL_The_National_Radical_Camp
		cost = 10
		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_ideas = POL_National_Syndicalism
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = POL_Autarky
		icon = GFX_focus_GER_autarky_ambitions
		prerequisite = { focus = POL_Beyond_The_Proletariat }
		
		x = 0
		y = 2
		relative_position_id = POL_Beyond_The_Proletariat
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_tech_bonus = {
				name = POL_Autarky
				bonus = 1.0
				uses = 2
				technology = excavation1
				technology = excavation2
				technology = excavation3
				technology = excavation4
				technology = excavation5
			}
			custom_effect_tooltip = POL_Autarky_tt
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = POL_All_Polish_Youth
		icon = GFX_focus_all_polish_youth
		prerequisite = { focus = POL_The_Endecja_Movement focus = POL_The_National_Radical_Camp }
		available = {
			OR = {
				has_government = democratic
				has_government = fascism
			}
		}

		x = 2
		y = 1
		relative_position_id = POL_The_Endecja_Movement
		cost = 10

		ai_will_do = {
			factor = 10
		}

		

		completion_reward = {
			add_ideas = POL_Military_Youth_Focus
			custom_effect_tooltip = POL_Create_Units_Academic_Legion
			hidden_effect = { POL = { country_event = poland.52 } }
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}
		
	focus = {
		id = POL_The_Student_Movement
		icon = GFX_goal_pol_student_movement
		prerequisite = { focus = POL_All_Polish_Youth }
		available = {
			OR = {
				has_government = democratic
				has_government = fascism
			}
		}
		
		x = 0
		y = 2
		relative_position_id = POL_All_Polish_Youth
		cost = 7.2
		ai_will_do = {
			factor = 1
		}

		

		completion_reward = {
			if = {
				limit = { NOT = { has_government = fascism } }
				add_popularity = { ideology = democratic popularity = 0.05 }
			}
			add_ideas = POL_The_Catholic_Student_Movement
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = POL_Propaganda_Corps
		icon = GFX_goal_generic_propaganda
		prerequisite = { focus = POL_The_National_Radical_Camp }
		available = {
			POL = { has_government = fascism }
		}

		x = 1
		y = 2
		relative_position_id = POL_The_National_Radical_Camp
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_political_power = 50
			add_ideas = POL_indoctrination_focus
			hidden_effect = {
				set_rule = {
					can_use_kamikaze_pilots = yes
				}
			}
			custom_effect_tooltip = kamikaze_focus_tooltip
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				add_war_support = 0.05
				custom_effect_tooltip = POL_can_boost_in_latin_america_tt
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
	}
	
	focus = {
		id = POL_Universalism
		icon = GFX_focus_mex_restore_the_army_of_christ
		available = {
			has_government = fascism
			is_subject = no
			is_in_faction = no
		}
		prerequisite = { focus = POL_Propaganda_Corps }
		
		x = 0
		y = 4
		relative_position_id = POL_Propaganda_Corps
		cost = 5

		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			set_rule = { can_create_factions = yes }
			create_faction_from_template = {
				template = faction_template_anti_communist
				name = Falangist_Poland_Faction
				icon = GFX_faction_logo_generic_fascist
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = POL_konfederacja_narodu
		icon = GFX_focus_generic_polish_deal
		prerequisite = { focus = POL_Propaganda_Corps }

		x = 1
		y = 1
		relative_position_id = POL_Propaganda_Corps
		cost = 7.16

		ai_will_do = {
			factor = 2.5
		}

		allow_branch = {
			has_dlc = "No Step Back"
			NOT = {	#visibility check
				OR = {
					has_completed_focus = POL_complete_april_constitution
					has_completed_focus = POL_assemble_the_regency_council
					has_completed_focus = POL_radicalize_the_front
					has_completed_focus = POL_organize_the_peasants_strike
				}
			}
		}

		available = {
			has_government = fascism
			NOT = {
				is_subject_of = GER
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_ideas = POL_konfederacja_narodu
		}
	}

	focus = {
		id = POL_polish_shock_battallions
		icon = GFX_goal_generic_special_forces
		prerequisite = { focus = POL_konfederacja_narodu }
		relative_position_id = POL_konfederacja_narodu

		x = 0
		y = 1
		cost = 7.16

		ai_will_do = {
			factor = 2.5
		}

		allow_branch = {
			has_dlc = "No Step Back"
			NOT = {	#visibility check
				OR = {
					has_completed_focus = POL_complete_april_constitution
					has_completed_focus = POL_assemble_the_regency_council
					has_completed_focus = POL_radicalize_the_front
					has_completed_focus = POL_organize_the_peasants_strike
				}
			}
		}

		available = {
			has_government = fascism
			NOT = {
				is_subject_of = GER
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_ideas = POL_polish_shock_battallions
		}
	}

	focus = {
		id = POL_Silesia_Or_War
		icon = GFX_focus_POL_reassert_silesian_claims
		prerequisite = { focus = POL_Third_Europe focus = POL_Universalism }
		will_lead_to_war_with = GER
###		mutually_exclusive = { focus = POL_silesian_question }
		available = {
			has_civil_war = no
			is_subject = no
			OR = {
				NOT = { is_in_faction_with = ENG }
				NOT = { is_in_faction_with = FRA }
			}
			CZE = { has_government = democratic }
			OR = {
				has_army_manpower = { size > 999999 }
				is_in_faction_with = CZE
				67 = { owner = { has_war = yes } }
			}
			67 = { 
				NOT = { is_owned_by = ROOT }
				owner = { is_owner_neighbor_of = POL }
				NOT = { owner = { is_ally_with = ROOT  } }
				NOT = { owner = { has_war_with = ROOT } }
			}
		}
		
		x = 3
		y = 1
		relative_position_id = POL_Third_Europe
		cost = 10
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				67 = { owner = { has_war = yes } }
			}
			modifier = {
				factor = 0
				85 = { owner = { original_tag = GER } }
				NOT = { is_in_faction_with = SOV }
			}
		}

		completion_reward = {
			add_named_threat = { threat = 4 name = POL_Silesia_Or_War }
			POL = { diplomatic_relation = { country = GER relation = non_aggression_pact active = no } }
			country_event = poland.121
		}
	}
	
	focus = {
		id = POL_Invite_Nationalist_Spain
		icon = GFX_goal_generic_befriend_spain_nationalist
		available = {
			has_government = fascism
			is_subject = no
			is_faction_leader = yes
			any_other_country = {
				original_tag = SPR
				has_government = fascism
				has_civil_war = no
				NOT = { has_war_with = ROOT }
				is_in_faction = no
				is_subject = no
			}
		}
		prerequisite = { focus = POL_Universalism }
		
		x = 0
		y = 1
		relative_position_id = POL_Universalism
		cost = 10

		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			#hidden_effect = {
			#	news_event = { hours = 6 id = news.214 }
			#}
			effect_tooltip = {
				SPR = { country_event = poland.60 }
			}
			hidden_effect = {
				random_other_country = {
					limit = {
						original_tag = SPR
						has_government = fascism
						has_civil_war = no
						NOT = { has_war_with = ROOT }
						is_in_faction = no
						is_subject = no
					}
					country_event = poland.60
				}
			}
		}
	}
	

	focus = {
		id = POL_support_falangists_in_the_americas
		icon = GFX_focus_por_recover_latin_america
		prerequisite = { focus = POL_Universalism }
		relative_position_id = POL_Universalism

		x = 1
		y = 2
		cost = 10

		ai_will_do = {
			factor = 2.5
		}

		allow_branch = {
			has_dlc = "No Step Back"
			NOT = {	#visibility check
				OR = {
					has_completed_focus = POL_complete_april_constitution
					has_completed_focus = POL_assemble_the_regency_council
					has_completed_focus = POL_radicalize_the_front
					has_completed_focus = POL_organize_the_peasants_strike
				}
			}
		}
		
		select_effect = { #Determine countries to be valid when the focus starts. Avoid fustration with Belgium dipping to 19 fascist support or something.
			every_other_country = {
				limit = {
					is_latin_american_country = yes
					OR = {
						has_government = fascism
						fascism > 0.4
					}
				}
				set_country_flag = POL_valid_fascist_invitee
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			custom_effect_tooltip = every_latin_american_nation_40_fascism_tt
			effect_tooltip = {
				country_event = NSB_polish_fascist_events.5
			}
			hidden_effect = {
				every_other_country = {
					limit = {
						has_country_flag = POL_valid_fascist_invitee
					}
					country_event = NSB_polish_fascist_events.5 #Event to invite them to the faction and flip them fascist.
					clr_country_flag = POL_valid_fascist_invitee
				}
			}
		}
	}
	
	focus = {
		id = POL_Folk_High_Schools
		icon = GFX_focus_research
		prerequisite = { focus = POL_Invest_In_The_Middle_Class }
		available = {
			has_government = democratic
			amount_research_slots < 6
		}
		
		x = 0
		y = 2
		relative_position_id = POL_Invest_In_The_Middle_Class
		cost = 10
		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_research_slot = 1
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = POL_The_Front_Morges
		icon = GFX_goal_FRA_the_front_morges
		prerequisite = { focus = POL_The_Great_Peasant_Strike }
		mutually_exclusive = { focus = POL_The_Polish_Socialist_Party }
		available = { 
			is_subject = no
			NOT = { has_government = communism }
		}

		x = 2
		y = 1
		relative_position_id = POL_The_Great_Peasant_Strike
		cost = 5

		ai_will_do = {
			factor = 10
		}

		

		completion_reward = {
			add_political_power = 25
			add_ideas = POL_Democratic_Influence
#			POL_sanation_left_opposition_remove = yes
#			POL_sanation_right_opposition_remove = yes
			hidden_effect = {
				add_popularity = {
					ideology = democratic
					popularity = -0.08
				}
			}
			custom_effect_tooltip = POL_Gain_Ministers_Tooltip
			effect_tooltip = {
				create_field_marshal = {
					name = "Władysław Sikorski"
					picture = "Portrait_Poland_Wladyslaw_Sikorski.dds"
					traits = { politically_connected career_officer media_personality offensive_doctrine  }
					id = 3154
					skill = 3
					attack_skill = 3
					defense_skill = 3
					planning_skill = 2
					logistics_skill = 3
				}
				create_field_marshal = {
					name = "Bolesław Roja"
					picture = "r56_portrait_POL_Boleslaw_Roja.dds"
					traits = { old_guard war_hero infantry_officer infantry_leader offensive_doctrine }
					id = 3155
					skill = 2
					attack_skill = 1
					defense_skill = 2
					planning_skill = 3
					logistics_skill = 2
				}
				if = { limit = { has_unit_leader = 3128 } random_unit_leader = { limit = { has_id = 3128 } retire = yes } }
			}
			hidden_effect = { POL = { country_event = poland.59 } }
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_Civil_Service_Reform
		icon = GFX_focus_generic_treaty
		prerequisite = { focus = POL_The_Front_Morges }
		available = {
			has_government = democratic
		}
		
		x = 0
		y = 1
		relative_position_id = POL_The_Front_Morges
		cost = 10

		ai_will_do = {
			factor = 10
		}

		

		completion_reward = {
			add_political_power = 160
			
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_mieczyslaw_michalowicz

			unlock_decision_tooltip = POL_Handle_Danzig
			unlock_decision_tooltip = POL_Collective_Farms
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_Interventionist_Foreign_Policy
		icon = GFX_focus_hol_war_on_pacifism
		prerequisite = { focus = POL_Civil_Service_Reform }
		available = { has_government = democratic }

		x = 0
		y = 2
		relative_position_id = POL_Civil_Service_Reform
		cost = 5

		ai_will_do = {
			factor = 10
		}

		

		completion_reward = {
			set_rule = { can_send_volunteers = yes }
			add_ideas = POL_Active_Foreign_Policy
		}
		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_The_Leviathan_Group
		icon = GFX_goal_generic_intelligence_exchange
		prerequisite = { focus = POL_Civil_Service_Reform }
		available = { has_government = democratic }

		x = -1
		y = 1
		relative_position_id = POL_Civil_Service_Reform
		cost = 10

		ai_will_do = {
			factor = 10
		}

		

		completion_reward = {
			add_ideas = POL_The_Leviathan_Group
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_Henryk_Strasburger
			custom_effect_tooltip = generic_skip_one_line_tt
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				unlock_military_industrial_organization_tooltip = mio:POL_polbryt_organization
				mio:POL_polbryt_organization = {
					add_mio_size = 1
				}
			}
			else = {
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = POL_Polbryt
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_Attract_Foreign_Investment
		icon = GFX_focus_mex_privatisation
		
		prerequisite = { focus = POL_The_Leviathan_Group }
		available = {
			democratic > 0.5
			any_other_country = {
				is_major = yes
				democratic > 0.5
				OR = {
					has_opinion = {
						target = ROOT
						value > 19
					}
					AND = {
						is_faction_leader = yes
						is_in_faction_with = ROOT
					}
				}
			}
		}
		
		x = -1
		y = 1
		relative_position_id = POL_The_Leviathan_Group
		cost = 10
		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_stability = -0.1
			custom_effect_tooltip = generic_skip_one_line_tt
			add_timed_idea = { idea = POL_Shock_Therapy days = 180 }
			custom_effect_tooltip = generic_skip_one_line_tt
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				unlock_military_industrial_organization_tooltip = mio:POL_LWS_organization
				mio:POL_LWS_organization = {
					add_mio_size = 1
				}
				if = {
					limit = { NOT = { has_war_with = USA } }
					custom_effect_tooltip = generic_skip_one_line_tt
					unlock_military_industrial_organization_tooltip = mio:POL_Ford_Polska_organization
				}
				#there's no point in converting Fiat, Poland already starts with a car and armored car MIO and gains a second of the former with Ford
			}
			else = {
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = POL_Plage_i_Laskiewicz
				if = {
					limit = { NOT = { has_war_with = ITA } }
					custom_effect_tooltip = available_designer
					show_ideas_tooltip = POL_Polski_Fiat
				}
				if = {
					limit = { NOT = { has_war_with = USA } }
					custom_effect_tooltip = available_designer
					show_ideas_tooltip = POL_Ford_Polska
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY }
	}
	
	focus = {
		id = POL_Defensive_Focus
		icon = GFX_goal_generic_defence
		prerequisite = { focus = POL_The_Front_Morges focus = POL_the_sanation_left }
		available = {
			OR = { 
				has_government = neutrality
				has_government = democratic
			}
			10 = {
				owns_or_subject_of = yes
			}
			97 = {
				owns_or_subject_of = yes
			}
		}
		
		x = 1
		y = 2
		relative_position_id = POL_The_Front_Morges
		cost = 10

		offset = { #new, edit 2
			x = -9
			y = 0
			trigger = {
				has_completed_focus = POL_complete_april_constitution
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_ideas = POL_Fortification_Effort
			random_owned_controlled_state = {
				prioritize = { 10 }
				limit = {
					free_building_slots = {
						building = anti_air_building
						size > 0
					}
				}
				add_building_construction = {
					type = anti_air_building
					level = 1
					instant_build = yes
				}
			}
			10 = {
				add_building_construction = {
					type = bunker
					province = 12562
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					province = 402
					level = 2
					instant_build = yes
				}
			}
			if = {
				limit = { 97 = { is_controlled_by = POL } }
				random_owned_controlled_state = {
					prioritize = { 97 }
					limit = {
						free_building_slots = {
							building = anti_air_building
							size > 0
						}
					}
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
				}
				97 = {
					add_building_construction = {
						type = bunker
						province = 290
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						province = 11301
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						province = 347
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						province = 400
						level = 1
						instant_build = yes
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POL_preserve_bougoise_democracy
		icon = GFX_focus_chi_british_cooperation
		#prerequisite = { focus = POL_anti_imperialism focus = POL_com_independence focus = POL_invest_in_the_peasantry }
		#relative_position_id = POL_anti_imperialism
		
		#mutually_exclusive = { focus = POL_anti_capitalist_revolution focus = POL_morges_pact }

		#x = -6
		#y = 1
		prerequisite = { focus = POL_Defensive_Focus }
		prerequisite = { focus = POL_Interventionist_Foreign_Policy }
		relative_position_id = POL_Defensive_Focus
		x = 0
		y = 2
		cost = 10

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0.5
				OR = {
					ENG = {
						has_capitulated = yes
					}
					ENG = {
						has_government = fascism
					}
					ENG = {
						has_government = neutrality
					} #This is about preserving Bourgoise Democracy, Britain should probably be Democratic
					FRA = {
						has_capitulated = yes
					}
				}
			}
		}
		
		available = {
			any_other_country = {
				NOT = { has_war_with = ROOT }
				is_faction_leader = yes
				is_major = yes
				has_government = democratic
			}
			
			NOT = {
				any_other_country = {
					is_in_faction_with = ENG
					has_war_with = POL
				}
			}
			is_in_faction = no
			OR = {
				threat > 0.4
				has_war_with = GER
				GER = { has_wargoal_against = ROOT }
				has_government = democratic
			}
		}

		bypass = {
			OR = {
				is_in_faction_with = ENG
				AND = {
					is_in_faction = yes
					any_other_country = {
						is_faction_leader = yes
						is_in_faction_with = ROOT
						has_government = democratic
					}
				}
			}
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			join_allies_effect = yes
		}
	}

	focus = {	#moved
		id = POL_preserve_baltic_independence
		icon = GFX_goal_baltic_cooperation
		#prerequisite = { focus = POL_anti_fascist_military }
		#relative_position_id = POL_anti_fascist_military

		#x = 0
		#y = 2
		prerequisite = { focus = POL_preserve_bougoise_democracy }
		relative_position_id = POL_preserve_bougoise_democracy

		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 2.5
		}
		
		available = {
			ROOT = { is_in_faction = yes }
			OR = {
				LIT = {
					AND = {
						exists = yes
						is_in_faction = no
						is_subject = no
						NOT = { has_war_with = ROOT }
						NOT = { has_government = fascism }
					}
				}
				LAT = {
					AND = {
						exists = yes
						is_in_faction = no
						is_subject = no
						NOT = { has_war_with = ROOT }
						NOT = { has_government = fascism }
					}
				}
				EST = {
					AND = {
						exists = yes
						is_in_faction = no
						is_subject = no
						NOT = { has_war_with = ROOT }
						NOT = { has_government = fascism }	
					}
				}
			}
		}
		
		bypass = {
			NOT = {
				OR = {
					LIT = {
						AND = {
							exists = yes
							is_in_faction = no
							is_subject = no
							NOT = { has_war_with = ROOT }
						}
					}
					LAT = {
						AND = {
							exists = yes
							is_in_faction = no
							is_subject = no
							NOT = { has_war_with = ROOT }
						}
					}
					EST = {
						AND = {
							exists = yes
							is_in_faction = no
							is_subject = no
							NOT = { has_war_with = ROOT }
						}
					}
				}
			}
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			if = {
				limit = {
					LIT = {
						exists = yes
						is_in_faction = no
						is_subject = no
						NOT = { has_war_with = ROOT }
						NOT = { has_government = fascism }
					}
				}
				hidden_effect = {
					LIT = { country_event = generic.5 }
				}
				LIT = { custom_effect_tooltip = POL_invite_to_faction_tooltip }
			}
			else_if = {
				limit = {
					LIT = {
						is_subject = no
						exists = yes
						has_government = fascism
						NOT = { has_war_with = ROOT }
					}
				}
				create_wargoal = {
					type = topple_government
					target = LIT
				}
			}
			if = {
				limit = {
					LAT = {
						exists = yes
						is_in_faction = no
						is_subject = no
						NOT = { has_war_with = ROOT }
						NOT = { has_government = fascism }
					}
				}
				hidden_effect = {
					LAT = { country_event = generic.5 }
				}
				LAT = { custom_effect_tooltip = POL_invite_to_faction_tooltip }
			}
			else_if = {
				limit = {
					LAT = {
						is_subject = no
						exists = yes
						has_government = fascism
						NOT = { has_war_with = ROOT }
					}
				}
				create_wargoal = {
					type = topple_government
					target = LAT
				}
			}
			if = {
				limit = {
					EST = {
						exists = yes
						is_in_faction = no
						is_subject = no
						NOT = { has_war_with = ROOT }
						NOT = { has_government = fascism }
					}
				}
				hidden_effect = {
					EST = { country_event = generic.5 }
				}
				EST = { custom_effect_tooltip = POL_invite_to_faction_tooltip }
			}
			else_if = {
				limit = {
					EST = {
						is_subject = no
						exists = yes
						has_government = fascism
						NOT = { has_war_with = ROOT }
					}
				}
				create_wargoal = {
					type = topple_government
					target = EST
				}
			}
		}
	}
	
	focus = {
		id = POL_Draw_Closer_To_France
		icon = GFX_focus_chi_reach_out_to_france
		prerequisite = { focus = POL_Interventionist_Foreign_Policy }
		available = {
			is_subject = no
			has_government = democratic
			FRA = {
				exists = yes
				is_subject = no
				NOT = { has_war_with = POL }
				has_government = democratic
			}
		}

		x = -1
		y = 1
		relative_position_id = POL_Interventionist_Foreign_Policy
		cost = 5

		ai_will_do = {
			factor = 10
		}

		

		completion_reward = {
			POL = { diplomatic_relation = { country = GER relation = non_aggression_pact active = no } }
			add_opinion_modifier = { target = FRA modifier = POL_Draw_Closer_To_France_opinion }
			FRA = { add_opinion_modifier = { target = ROOT modifier = POL_Draw_Closer_To_France_opinion } }
			POL = { country_event = poland.63 }
			custom_effect_tooltip = POL_Draw_Closer_To_France_Tooltip
		}
	}
	
	focus = {
		id = POL_Preemptive_Strike
		icon = GFX_focus_generic_anti_fascist_diplomacy
		prerequisite = { focus = POL_Draw_Closer_To_France }
		will_lead_to_war_with = GER
		available = {
			has_government = democratic
			FRA = {
				is_in_faction_with = POL
			}
			NOT = { has_non_aggression_pact_with = GER }
			GER = {
				exists = yes
				is_subject = no
				NOT = { has_war_with = POL }
				NOT = { is_in_faction_with = FRA }
				OR = {
					has_government = fascism
					has_government = communism
				}
			}
			OR = {
				threat > 0.3
				GER = { num_of_factories > 130 }
			}
		}
		bypass = {
			GER = { has_war_with = FRA }
		}
		
		x = 0
		y = 1
		relative_position_id = POL_Draw_Closer_To_France
		cost = 10
		ai_will_do = {
			factor = 8
		}

		completion_reward = {
			if = {
				limit = { GER = { has_war_with = FRA } }
				custom_effect_tooltip = POL_Preemptive_tooltip2
				hidden_effect = {
					POL = { country_event = poland.81 }
				}
				else = {
					custom_effect_tooltip = POL_Preemptive_tooltip
					hidden_effect = {
						POL = { country_event = poland.80 }
					}
				}
			}
		}
	}
	
	focus = {
		id = POL_the_Agrarian_Reform
		icon = GFX_focus_POL_agrarian_reform
		#icon = GFX_goal_generic_trade
		prerequisite = { focus = POL_The_Polish_Socialist_Party focus = POL_The_Front_Morges }
		available = {
			OR = {
				has_government = democratic
				has_government = communism
			}
		}
		
		x = 2
		y = 1
		relative_position_id = POL_The_Polish_Socialist_Party
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_stability = 0.05
			if = { 
				limit = { has_government = democratic }
				add_popularity = { ideology = democratic popularity = 0.05 }
			}
			if = { 
				limit = { has_government = communism }
				add_popularity = { ideology = communism popularity = 0.05 }
			}
			add_timed_idea = {
				idea = POL_the_Agrarian_Reform_Focus
				days = 365
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_The_Three_Year_Plan
		icon = GFX_goal_POL_three_year_plan
		prerequisite = { focus = POL_Draw_Closer_To_The_USSR focus = POL_Seek_Autonomy }
		available = {
			has_government = communism
		}
		
		x = 1
		y = 2
		relative_position_id = POL_Draw_Closer_To_The_USSR
		cost = 10
		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_timed_idea = {
				idea = POL_The_Three_Year_Plan
				days = 1000
			}
		}
	}
	
	focus = {
		id = POL_Socialist_Realism
		icon = GFX_focus_prc_agrarian_socialism
		prerequisite = { focus = POL_The_Three_Year_Plan }
		available = {
			has_government = communism
		}
		
		x = 1
		y = 1
		relative_position_id = POL_The_Three_Year_Plan
		cost = 10
		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_political_power = 120
			custom_effect_tooltip = POL_presitge_toolip
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_Vladimir_Lenin_Steelworks
		icon = GFX_focus_generic_steel
		prerequisite = { focus = POL_The_Three_Year_Plan }
		available = {
			has_government = communism
			OR = {
				controls_state = 88
				any_other_country = {
					is_subject_of = ROOT
					controls_state = 88
				}
			}
		}
		
		x = -1
		y = 1
		relative_position_id = POL_The_Three_Year_Plan
		cost = 10
		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_resource = {
				type = steel
				amount = 17
				state = 88
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESOURCES}
	}
	
	focus = {
		id = POL_Austerity_Measures
		icon = GFX_focus_eng_crush_the_dream
		prerequisite = { focus = POL_The_Polish_Socialist_Party }
		available = {
			has_government = communism
			OR = {
				has_completed_focus = POL_Seek_Autonomy
				has_country_flag = PPS_Revolutionary_Path
			}
		}
		
		x = -1
		y = 2
		relative_position_id = POL_The_Polish_Socialist_Party
		cost = 10
		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_ideas = collective_austerity_idea
			
			custom_effect_tooltip = available_industrial_concern
			show_ideas_tooltip = POL_Ursus
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = POL_Polish_Peoples_Army
		icon = GFX_goal_POL_LWP
		prerequisite = { focus = POL_Austerity_Measures  }
		prerequisite = { focus = POL_Political_Commissars focus = POL_Mandatory_Firearm_Ownership }
		available = {
			OR = {
				has_government = communism
				AND = {
					has_government = democratic
					has_completed_focus = POL_The_Polish_Socialist_Party
				}
			}
		}
		
		x = 0
		y = 3
		relative_position_id = POL_Austerity_Measures
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			swap_ideas = {
				add_idea = POL_political_commissars2
				remove_idea = POL_political_commissars
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	focus = {
		id = POL_State_Capitalism
		icon = GFX_goal_generic_state_economy
		prerequisite = { focus = POL_The_Polish_Socialist_Party }
		available = {
			OR = {
				has_government = democratic
				AND = {
					has_government = communism
					NOT = {
						is_in_faction_with = SOV
					}
				}
			}
		}

		x = 0
		y = 1
		relative_position_id = POL_The_Polish_Socialist_Party
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_ideas = state_capitalism_idea
			
			custom_effect_tooltip = available_industrial_concern
			show_ideas_tooltip = POL_Ursus
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = POL_Workers_Brigades
		icon = GFX_focus_generic_socialist_action
		prerequisite = { focus = POL_State_Capitalism }
		available = {
			is_subject = no
			OR = {
				has_government = democratic
				AND = {
					has_government = communism
					NOT = {
						is_in_faction_with = SOV
					}
				}
			}
		}
		
		x = 1
		y = 1
		relative_position_id = POL_State_Capitalism
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_war_support = 0.03
			add_ideas = POL_Workers_Brigades
			hidden_effect = {
				country_event = poland.168
			}
			custom_effect_tooltip = POL_Workers_Brigades_tt
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_WAR_SUPPORT }
	}
	
	focus = {
		id = POL_Mandatory_Firearm_Ownership
		icon = GFX_focus_generic_collective_defense
		prerequisite = { focus = POL_Workers_Brigades }
		available = {
			is_subject = no
			OR = {
				has_government = democratic
				AND = {
					has_government = communism
					NOT = {
						is_in_faction_with = SOV
					}
				}
			}
		}
		
		x = 0
		y = 2
		relative_position_id = POL_Workers_Brigades
		cost = 10

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			set_rule = {
				can_generate_female_aces = yes
			}
			add_ideas = POL_Mandatory_Firearm_Ownership
		}
	}
	
	focus = {
		id = POL_Subsidized_Universal_Education
		icon = GFX_focus_generic_socialist_science
		prerequisite = { focus = POL_State_Capitalism }
		available = {
			OR = {
				has_government = democratic
				AND = {
					has_government = communism
					NOT = {
						is_in_faction_with = SOV
					}
				}
			}
		}

		x = 0
		y = 2
		relative_position_id = POL_State_Capitalism
		cost = 5

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			custom_effect_tooltip = POL_Universal_Research_Bonus
			hidden_effect = {
				add_tech_bonus = {
					name = POL_Subsidized_Universal_Education
					bonus = 0.25
					ahead_reduction = 0.5
					uses = 1
					category = light_air
					category = medium_air
					category = heavy_air
					category = armor
					category = cat_light_armor
					category = cat_medium_armor
					category = cat_heavy_armor
					category = artillery
					category = cat_anti_tank
					category = naval_air
					category = infantry_weapons
					category = motorized_equipment
					category = cat_mechanized_equipment
					category = naval_equipment
					category = rocketry
					category = nuclear
					category = industry
					category = electronics
					#category = land_doctrine
					#category = air_doctrine
					#category = naval_doctrine
					#category = strategic_destruction_tree
					#category = battlefield_support_tree
					#category = operational_integrity_tree
					category = jet_technology
					#category = trade_interdiction_tree
					#category = convoy_defense_tree
					category = light_fighter
					category = cat_heavy_fighter
					category = tactical_bomber
					category = cat_strategic_bomber
					category = naval_bomber
					category = cas_bomber
					category = dd_tech
					category = cl_tech
					category = ca_tech
					category = cv_tech
					category = bc_tech
					category = bb_tech
					category = shbb_tech
					category = ss_tech
					category = tp_tech
					category = synth_resources
					category = fleet_in_being_tree
					category = encryption_tech
					category = decryption_tech
					category = computing_tech
					category = radar_tech
					category = infantry_tech
					category = marine_tech
					category = construction_tech
					category = excavation_tech
					#category = submarine_doctrine
					category = air_equipment
					#category = cat_mobile_warfare
					#category = cat_superior_firepower
					#category = cat_grand_battle_plan
					#category = cat_mass_assault
					#category = cat_base_strike
					#category = cat_trade_interdiction
					#category = cat_fleet_in_being
					#category = cat_strategic_destruction
					#category = cat_battlefield_support
					#category = cat_operational_integrity
					category = night_vision
					category = base_strike_main
					category = mot_rockets
					category = support_tech
					category = para_tech
					category = engineers_tech
					category = recon_tech
					category = mountaineers_tech
					category = military_police_tech
					category = hospital_tech
					category = logistics_tech
					category = signal_company_tech
					category = maintenance_company_tech
					category = naval_mines
					category = concentrated_industry_category
					category = dispersed_industry_category
					category = asw_tech
					category = naval_minesweeping
					category = naval_minelaying
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_breakthrough_progress = {
				specialization = specialization_land
				value = 0.25
			}
			add_breakthrough_progress = {
				specialization = specialization_naval
				value = 0.25
			}
			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.25
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = POL_The_Intermarium
		icon = GFX_goal_anschluss
		available = {
			OR = {
				threat > 0.25
				has_completed_focus = POL_Re_Expand_The_Military
			}
			is_subject = no
			is_in_faction = no
		}
		prerequisite = { focus = POL_dissolve_the_bbwr focus = POL_Interventionist_Foreign_Policy  }
		mutually_exclusive = { focus = POL_Align_With_Kaiserreich }
		
		x = 0
		y = 3

		offset = { #new, edit 3
			x = -9
			y = 0
			trigger = {
				has_completed_focus = POL_complete_april_constitution #previous relative position ceases to exist
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}
		relative_position_id = POL_Interventionist_Foreign_Policy
		cost = 5

		ai_will_do = {
			factor = 9
			modifier = {
				factor = 0
				threat < 0.27
			}
			modifier = {
				add = 1
				threat > 0.90
			}
		}
		completion_reward = {
			if = {
				limit = { NOT = { has_government = democratic } }
				POL = { diplomatic_relation = { country = FRA relation = guarantee active = no} }
			}
			set_rule = { can_create_factions = yes }
			create_faction_from_template = faction_template_miedzymorze_faction
			hidden_effect = {
				news_event = { hours = 6 id = news.214 }
			}
			POL = { set_country_flag = POL_Intermarium_Faction_Selected }
			custom_effect_tooltip = POL_diplomatic_mission_to_FROM_tt
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = POL_Invite_Yugoslavia
		icon = GFX_focus_invite_yugoslavia
		prerequisite = { focus = POL_The_Intermarium focus = POL_Found_Our_Own_Faction }
		available = {
			is_faction_leader = yes
			YUG = {
				exists = yes
	 			is_subject = no
	 			NOT = { has_war_with = POL }
	 		}
			YUG = {
				OR = {
					is_owner_neighbor_of = POL
					any_neighbor_country = {
						is_in_faction_with = POL
					}
				}
			}
			OR = {
				AND = {
					POL = { has_government = neutrality }
					YUG = { 
						OR = { 
							has_government = neutrality
							has_government = democratic
						}
					}
				}
				AND = {
					POL = { has_government = communism }
					YUG = { has_government = communism }
				}
			}
	 	}
		x = -1
		y = 1
		relative_position_id = POL_The_Intermarium
		cost = 10
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				NOT = {
					YUG = {
						OR = {
							is_owner_neighbor_of = POL
							any_neighbor_country = {
								is_in_faction_with = POL
							}
						}
					}
				}
				NOT = { POL = { has_government = communism } }
			}
		}

		completion_reward = {
			YUG = { country_event = poland_r56.13 }
		}
	}
	
	focus = {
		id = POL_invite_ukraine
		icon = GFX_focus_generic_ukrainian_deal
		prerequisite = { focus = POL_The_Intermarium }
		x = 1
		y = 1
		relative_position_id = POL_The_Intermarium

		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			is_faction_leader = yes
			is_subject = no
			UKR = {
				exists = yes
				is_subject = no
				is_in_faction = no
				NOT = { has_war_with = POL }
				NOT = {
				   has_government = communism
			   } 
			}			
		}
		completion_reward = {
			UKR = {
				country_event = generic.5
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}	
	focus = {
		id = POL_Found_Our_Own_Faction
		icon = GFX_focus_ger_great_red_menace
		available = {
			threat > 0.2
			is_subject = no
			is_in_faction = no
			OR = {
				has_government = communism
				has_government = democratic
			}
		}
		prerequisite = { focus = POL_Polish_Peoples_Army focus = POL_Mandatory_Firearm_Ownership }
		
		x = 3
		y = 1
		relative_position_id = POL_Polish_Peoples_Army
		cost = 5

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				threat < 0.22
			}
		}
		completion_reward = {
			POL = { diplomatic_relation = { country = FRA relation = guarantee active = no} }
			set_rule = { can_create_factions = yes }
			create_faction_from_template = {
				template = faction_template_POR_popular_front_bloc
				name = PPS_Faction
				icon = GFX_faction_logo_generic_11
			}
			
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = POL_wanda_wasilewska
			custom_effect_tooltip = POL_diplomatic_mission_to_FROM_tt
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_Invite_Hungary
		icon = GFX_goal_generic_befriend_hungary
		prerequisite = { focus = POL_Third_Europe focus = POL_Universalism }
		available = {
			is_faction_leader = yes
	 		NOT = { is_in_faction_with = CZE }
			HUN = {
	 			exists = yes
	 			is_subject = no
	 			NOT = {
					OR = {
						has_war_with = POL
						is_in_faction = yes
						has_government = communism
					} 
				}
	 		}
	 	}
		bypass = {
			HUN = {
				OR = {
					is_ally_with = POL
					exists = no
				}
			}
		}
		
		x = -1
		y = 2
		relative_position_id = POL_Universalism
		cost = 5
		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			HUN = { country_event = poland_r56.17 }
		}
	}
	
	focus = {
		id = POL_Align_With_Japan
		icon = GFX_focus_jap_pacific_guardian
		prerequisite = { focus = POL_Polish_Peoples_Army focus = POL_Mandatory_Firearm_Ownership }
		bypass = {
			is_in_faction_with = JAP
			is_subject = no
		}
		available = {
			is_subject = no
			NOT = { has_government = communism }
			JAP = { 
				is_subject = no
				NOT = { has_government = communism }
				has_war_with = SOV
			}
			OR = {
				AND = {
					JAP = { is_faction_leader = yes }
					POL = { is_in_faction = no }
				}
				AND = {
					POL = { is_faction_leader = yes }
					JAP = { is_in_faction = no }
				}
			}
			SOV = { is_subject = no }
			all_other_country = {
				OR = {
					NOT = { has_war_with = POL }
					has_war_with = JAP
					is_in_faction_with = SOV
					tag = SOV
				}
			}
	 	}
		x = -2
		y = 0
		relative_position_id = POL_Found_Our_Own_Faction
		cost = 5
		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			if = {
				limit = { POL = { is_faction_leader = yes } }
				JAP = { country_event = poland.99 }
				else = { 
					if = {
						limit = { JAP = { is_faction_leader = yes } }
						JAP = { country_event = poland.97 }
					}
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				if = {
					limit = { POL = { is_faction_leader = yes } }
					POL = { add_to_faction = JAP }
					else = { 
						JAP = { add_to_faction = POL }
					}
				}
				JAP = { add_ideas = POL_Polish_Military_Mission }
				POL = {
					declare_war_on = {
						target = SOV
						type = take_state_focus
						generator = { 206 } 
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	focus = {
		id = POL_Pressure_Czechoslovakia
		icon = GFX_goal_ger_fate_of_czech
		prerequisite = { focus = POL_pan_slavic_revanchism focus = POL_Universalism }
		available = {
			is_subject = no
			is_owner_neighbor_of = CZE
			NOT = { is_in_faction_with = CZE }
			OR = {
				has_army_manpower = { size > 749999 }
				CZE = { has_war = yes }
				is_in_faction_with = HUN
			}
			CZE = {
				OR = {
					controls_state = 72
					controls_state = 71
					controls_state = 70
				}
			}
		}
		bypass = {
			OR = { 
				HUN = { is_owner_neighbor_of = POL }
				CZE = { 
					is_ally_with = POL
					is_owner_neighbor_of = HUN
				}
				CZE = { 
					is_ally_with = HUN
					is_owner_neighbor_of = POL
				}
			}
		}
		
		x = -3
		y = 2
		relative_position_id = POL_Universalism
		cost = 10
		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_named_threat = { threat = 3 name = POL_demanded_zaolzie }
			country_event = poland.104
		}
	}
	
	focus = {
		id = POL_Invite_Sweden
		icon = GFX_goal_generic_befriend_sweden
		prerequisite = { focus = POL_Found_Our_Own_Faction }
		available = {
			is_subject = no
			is_faction_leader = yes
			SWE = {
	 			is_subject = no
				is_in_faction = no				#faction betrayal, again?!
				NOT = { has_war_with = POL }
	 		}
			OR = {
				SWE = { NOT = { has_idea = neutrality_idea } }
				threat > 0.9
			}
			OR = {
				AND = {
					POL = { has_government = democratic }
					SWE = { has_government = democratic }
				}
				AND = {
					POL = { has_government = communism }
					SWE = { has_government = communism }
				}
			}
		}
		
		x = 0
		y = 2
		relative_position_id = POL_Found_Our_Own_Faction
		cost = 10
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				SWE = { NOT = { has_idea = neutrality_idea } }
				threat < 0.92
			}
		}

		

		completion_reward = {
			SWE = { country_event = poland.199 }
		}
	}

	
	focus = {
		id = POL_Finnish_Guarantee
		icon = GFX_goal_generic_befriend_finland
		available = {
			is_subject = no
			NOT = { has_war_with = FIN }
			FIN = { 
				exists = yes
				is_subject = no
				NOT = { has_government = communism }
				NOT = { is_in_faction_with = SOV }
			}
		}
	 	prerequisite = { focus = POL_Invite_Sweden focus = POL_romanian_alliance focus = POL_The_Intermarium }
		x = 0
		y = 3
		relative_position_id = POL_The_Intermarium
		cost = 5
		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			give_guarantee = FIN
		}
	}
	
	focus = {
		id = POL_Fund_The_Promethean_Program
		icon = GFX_goal_prometheism
		prerequisite = { focus = POL_The_Intermarium focus = POL_Found_Our_Own_Faction focus = POL_Align_With_Japan }

		available = {
			NOT = { has_non_aggression_pact_with = SOV }
			NOT = { has_government = communism }
			NOT = { is_ally_with = SOV }
			OR = {
				is_faction_leader = yes
				is_in_faction_with = JAP
			}
		}
		bypass = {
			SOV = { 
				OR = { 
					exists = no
					is_subject = yes
					has_capitulated = yes
				}
			}
		}
		
		x = -2
		y = 1
		relative_position_id = POL_Found_Our_Own_Faction
		cost = 10
		ai_will_do = {
			factor = 10
		}

		offset = { #new, edit 2
			x = -8
			y = 0
			trigger = {
				has_completed_focus = POL_complete_april_constitution
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
			}
		}

		completion_reward = {
			add_political_power = -100
			set_rule = { can_send_volunteers = yes }
			add_ideas = POL_Prometheism
			custom_effect_tooltip = POL_Promethean_Sabotage_tooltip
		}
		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = POL_Minsk_Or_War
		icon = GFX_focus_attack_soviet
		prerequisite = { focus = POL_Fund_The_Promethean_Program }
		will_lead_to_war_with = SOV
		available = {
			is_subject = no
			206 = {
				NOT = { is_owned_by = POL }
				owner = { controls_state = 206 }
				NOT = { owner = { is_in_faction_with = POL } }
				NOT = { owner = { has_war_with = POL } }
			}
			OR = {
				controls_state = 95
				controls_state = 96
			}
			OR = {
				has_army_manpower = { size > 999999 }
				206 = { owner = { has_war = yes } }
				206 = { 
					owner = { 
						is_subject = yes
						OVERLORD = { has_war = yes }
					}
				}
				AND = {
					206 = {
						owner = {
							strength_ratio = {
								tag = POL
								ratio < 1
							}
						}
					}
					NOT = {
						206 = {
							owner = {
								OVERLORD = {
									strength_ratio = {
										tag = POL
										ratio > 1
									}
								}
							}
						}
					}
				}
			}
		}
		
		x = 0
		y = 1
		relative_position_id = POL_Fund_The_Promethean_Program
		cost = 10
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				is_in_faction = yes
				is_faction_leader = no
			}
			modifier = {
				factor = 0
				strength_ratio = {
					tag = SOV
					ratio < 0.7
				}
				is_faction_leader = no
			}
		}

		

		completion_reward = {
			add_named_threat = { threat = 4 name = POL_Minsk_Or_War }
			POL = { diplomatic_relation = { country = SOV relation = non_aggression_pact active = no } }
			if = {
				limit = { 206 = { owner = { is_subject = yes } } }
				206 = { owner = { OVERLORD = { country_event = poland.138 } } }
				else = {
					206 = { owner = { country_event = poland.138 } }
				}
			}
		}
	}
}
