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


focus_tree = {
	id = iranian_focus
	
	country = {
		factor = 0
		
		modifier = {
			add = 10
			tag = PER
		}
	}
	
	default = no
	
	continuous_focus_position = {x = 50 y = 1300}


	################################################################
	################ industrial and resources focus ################
	################################################################

	focus = {
	
		id = per_urban_infrastructure_expansion
		icon = GFX_goal_generic_construction
		x = 2
		y = 0
		cost = 5
		ai_will_do = {
			factor = 12
		}

		available = { 
			PER = {
				controls_state = 412
				controls_state = 411
				controls_state = 419
				controls_state = 266
			}
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		mutually_exclusive = { focus = per_wasteland_revitalisation }
		
		completion_reward = {
			
			411 = {		#Isfahan
				add_extra_state_shared_building_slots = 1	
				
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			
			419 = {		#Tabriz
				add_extra_state_shared_building_slots = 1	
				
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}

			412 = {		#Fars
				add_extra_state_shared_building_slots = 1	
				
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}

			266 = {		#Tehran
				add_extra_state_shared_building_slots = 1

				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}
	
	focus = {
	
		id = per_wasteland_revitalisation
		icon = GFX_goal_continuous_non_factory_construct
		x = 4
		y = 0
		cost = 5
		ai_will_do = {
			factor = 12
		}
		available = {
			PER = {
				controls_state = 418
				controls_state = 417
				controls_state = 414
				controls_state = 421
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		#prerequisite = { focus = per_urban_infrastructure_expansion }
		relative_position_id = per_urban_infrastructure_expansion
		mutually_exclusive = { focus = per_urban_infrastructure_expansion }
		
		completion_reward = {
			414 = {		#Kerman
				add_extra_state_shared_building_slots = 1
				
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			
			418 = {		#Semnan
				add_extra_state_shared_building_slots = 1	
				
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}

			417 = {		#Hamedan
				add_extra_state_shared_building_slots = 1	
				
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}

			421 = { 	#Kurdistan
				add_extra_state_shared_building_slots = 1

				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}
	
	focus = {
	
		id = per_prepare_for_long_term_expansion
		icon = GFX_goal_generic_construct_civ_factory
		x = 1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		available = {
			PER = {
				controls_state = 418
				controls_state = 413
				controls_state = 414
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_wasteland_revitalisation }
		relative_position_id = per_wasteland_revitalisation
		#mutually_exclusive = { focus = per_urban_infrastructure_expansion }
		
		completion_reward = {
			418 = {	#semnan
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			
			414 = {	#kerman	
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}

			413 = {	#khuzestan
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
	}
	
	focus = {
	
		id = per_desert_mines
		icon = GFX_focus_generic_steel
		x = 0
		y = 1
		cost = 10
		ai_will_do = {
			factor = 12
		}
		available = {
			PER = {
				controls_state = 418
				controls_state = 414
				controls_state = 417
			}
			has_tech = excavation2
			num_of_factories > 60
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_prepare_for_long_term_expansion }
		relative_position_id = per_prepare_for_long_term_expansion
		
		
		completion_reward = {
			418 = {		#Semnan				
				add_resource = {
					type = steel
					amount = 5
				}
				add_resource = {
					type = rubber
					amount = 3
				}
			}
			414 = {		#Kerman				
				add_resource = {
					type = steel
					amount = 3
				}
				
				add_resource = {
					type = tungsten
					amount = 5
				}
			}
			417 = {		#Hamedan				
				add_resource = {
					type = chromium
					amount = 3
				}
				
				add_resource = {
					type = aluminium
					amount = 5
				}
			}
		}
	}
	
	focus = {
	
		id = per_khuzestan_oil_field_expansion
		icon = GFX_goal_desert_oil
		x = -1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		available = {
			PER = {
				controls_state = 413
			}
			has_tech = excavation3
			has_idea = per_NIORDC
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_desert_mines }
		relative_position_id = per_desert_mines
		mutually_exclusive = { focus = per_develop_the_mines }
		
		completion_reward = {
			413 = {		#Khuzestan
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
				add_resource = {
					type = oil
					amount = 25
				}
				
				add_resource = {
					type = rubber
					amount = 8
				}
			}
		}
	}

	focus = {
	
		id = per_develop_the_mines
		icon = GFX_goal_generic_mining_iron
		x = 1
		y = 1
		cost = 10

		ai_will_do = {
			factor = 12
		}

		available = {
			PER = {
				controls_state = 411
				controls_state = 419
			}
			num_of_factories > 100
			has_tech = excavation3 
			has_tech = advanced_machine_tools 
		}
		
		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_desert_mines }
		relative_position_id = per_desert_mines
		mutually_exclusive = { focus = per_khuzestan_oil_field_expansion }
		
		completion_reward = {
			411 = {		#isfahan					
				add_resource = {
					type = steel
					amount = 8
				}
				add_resource = {
					type = tungsten
					amount = 3
				}
			}
			419 = {		#Tabriz					
				add_resource = {
					type = steel
					amount = 7
				}
				add_resource = {
					type = tungsten
					amount = 5
				}
			}
		}
	}
	
	focus = {
	
		id = per_urbanise_the_nation
		icon = GFX_goal_generic_road
		x = -1
		y = 2
		cost = 5

		ai_will_do = {
			factor = 12
		}

		available = {
			has_tech = construction4
			
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_develop_the_mines focus = per_khuzestan_oil_field_expansion }
		relative_position_id = per_desert_mines
		mutually_exclusive = { focus = per_railway_expansion }
		
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}						
				add_extra_state_shared_building_slots = 2
			}
			random_owned_controlled_state = {						
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}						
				add_extra_state_shared_building_slots = 2
			}
			random_owned_controlled_state = {						
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}						
				add_extra_state_shared_building_slots = 2
			}
		}
	}

	focus = {
	
		id = per_railway_expansion
		icon = GFX_goal_generic_construct_infrastructure
		x = 1
		y = 2
		cost = 10

		ai_will_do = {
			factor = 12
		}

		available = {
			has_tech = construction4
			NOT = {
				has_idea = quick_factory_construction
			}
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_develop_the_mines focus = per_khuzestan_oil_field_expansion }
		relative_position_id = per_desert_mines
		mutually_exclusive = { focus = per_urbanise_the_nation }
		
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 1
						include_locked = yes
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 1
						include_locked = yes
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 1
						include_locked = yes
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			
			add_timed_idea = { idea = quick_factory_construction days = 90 } 
		}
	}
	
	focus = {
		id = per_modern_industry
		icon = GFX_goal_generic_construct_infrastructure
		cost = 10
		x = -1
		y = 1
		ai_will_do = {
			factor = 12
		}
		search_filters = {
			FOCUS_FILTER_INDUSTRY
		}

		prerequisite = {
			focus = per_railway_expansion focus = per_urbanise_the_nation
		}
		relative_position_id = per_railway_expansion

		completion_reward = { 
			add_ideas = modern_industry
		}
	}
	
	focus = {
	
		id = per_gradual_expansion
		icon = GFX_goal_generic_construction2
		x = 2
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_urban_infrastructure_expansion focus = per_wasteland_revitalisation }
		relative_position_id = per_urban_infrastructure_expansion
		
		completion_reward = {
			random_owned_controlled_state = {	
				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 = {	
				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_ideas = gradual_industry_expansion_1
		}
	}
	
	focus = {
	
		id = per_public_bonds
		icon = GFX_focus_generic_industry_1
		x = 0
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_gradual_expansion }
		relative_position_id = per_gradual_expansion
		
		completion_reward = {
			random_owned_controlled_state = {	
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
			}
			random_owned_controlled_state = {	
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
			}
			swap_ideas = { 
				remove_idea = gradual_industry_expansion_1 
				add_idea = gradual_industry_expansion_2 
			}
		}
	}
	
	focus = {
	
		id = per_government_bonds
		icon = GFX_focus_generic_industry_2
		x = 0
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_public_bonds }
		relative_position_id = per_public_bonds
		
		completion_reward = {
			random_owned_controlled_state = {	
				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
				}
			}
			random_owned_controlled_state = {
				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
				}
			}
			swap_ideas = { 
				remove_idea = gradual_industry_expansion_2 
				add_idea = gradual_industry_expansion_3 
			}	
			
		}
	}
	
	focus = {
	
		id = per_the_economic_scheme
		icon = GFX_focus_generic_industry_3
		x = 0
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}

		available = {
			num_of_factories > 60
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_government_bonds }
		relative_position_id = per_government_bonds
		
		completion_reward = {
			random_owned_controlled_state = {	
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
			}
			
			random_owned_controlled_state = {	
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
			}
			
			swap_ideas = { 
				remove_idea = gradual_industry_expansion_3
				add_idea = gradual_industry_expansion_4
			}	
			
			add_tech_bonus = {
				name = industrial_bonus
				bonus = 0.5
				uses = 3
				category = industry
			}
		}
	}

	focus = {
		id = per_modern_economy
		icon = GFX_focus_generic_the_giant_wakes
		cost = 10
		x = 0
		y = 1

		ai_will_do = {
			factor = 12
		}

		available = {
			num_of_factories > 70
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		prerequisite = { focus = per_the_economic_scheme }
		relative_position_id = per_the_economic_scheme
		completion_reward = { 
			swap_ideas = { 
				remove_idea = gradual_industry_expansion_4 
				add_idea = gradual_industry_expansion_5 
			}
		}
	}
	
	focus = {
	
		id = per_rapid_exapansion
		icon = GFX_goal_generic_construct_civ_factory
		x = -1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}

		available = {
			PER = {
				controls_state = 411
				controls_state = 412
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_urban_infrastructure_expansion }
		relative_position_id = per_urban_infrastructure_expansion
		
		completion_reward = {

			411 = {		#isfahan
				add_extra_state_shared_building_slots = 1
				
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			
			412 = {		#Fars
				add_extra_state_shared_building_slots = 1
				
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}
	
	focus = {
	
		id = per_civilian_works
		icon = GFX_goal_generic_construct_civilian
		x = -1
		y = 1
		cost = 5

		ai_will_do = {
			factor = 12
		}

		available = {
			has_tech = construction2
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_rapid_exapansion }
		mutually_exclusive = { focus = per_connect_railways }
		relative_position_id = per_rapid_exapansion
		
		completion_reward = {
			random_owned_controlled_state = {	
				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 = {
				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 = per_military_industry
		icon = GFX_goal_generic_construct_mil_factory
		x = 0
		y = 1
		cost = 5

		ai_will_do = {
			factor = 12
		}

		available = {
			has_tech = construction3
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_civilian_works focus = per_connect_railways }
		relative_position_id = per_civilian_works
		mutually_exclusive = { focus = per_agrarian_land_rework }
		
		completion_reward = {
			random_owned_controlled_state = {	
				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 = {
				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
				}
			}
		}
	}
	
	focus = {
	
		id = per_connect_railways
		icon = GFX_goal_generic_construct_infrastructure
		x = 1
		y = 1
		cost = 5

		ai_will_do = {
			factor = 12
		}

		available = {
			has_tech = construction2
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_rapid_exapansion }
		mutually_exclusive = { focus = per_civilian_works }
		relative_position_id = per_rapid_exapansion
		
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size < 4
						include_locked = yes
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size < 4
						include_locked = yes
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}
	
	focus = {
	
		id = per_agrarian_land_rework
		icon = GFX_goal_generic_road
		x = 0
		y = 1
		cost = 5

		ai_will_do = {
			factor = 12
		}

		available = {
			has_tech = construction3
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_connect_railways focus = per_civilian_works }
		relative_position_id = per_connect_railways
		mutually_exclusive = { focus = per_military_industry }
		
		completion_reward = {
			random_owned_controlled_state = {	
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
			}
		}
	}
	
	focus = {
	
		id = per_invest_civilian_industry
		icon = GFX_goal_generic_construct_civ_factory
		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 12
		}

		available = {
			has_tech = construction4
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_agrarian_land_rework focus = per_military_industry }
		relative_position_id = per_military_industry
		mutually_exclusive = { focus = per_invest_military_industry }
		
		completion_reward = {
			random_owned_controlled_state = {	
				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
				}
			}
			
			random_owned_controlled_state = {
				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
				}
			}
		}
	}
	
	focus = {
	
		id = per_invest_military_industry
		icon = GFX_goal_generic_construct_mil_factory
		x = 0
		y = 1
		cost = 10

		ai_will_do = {
			factor = 12
		}

		available = {
			has_tech = construction4
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_agrarian_land_rework focus = per_military_industry }
		relative_position_id = per_agrarian_land_rework
		mutually_exclusive = { focus = per_invest_civilian_industry }
		
		completion_reward = {
			random_owned_controlled_state = {
				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
				}
			}
			
			random_owned_controlled_state = {
				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
				}
			}
		}
	}
	
	focus = {
		id = per_modern_production
		icon = GFX_goal_generic_construct_mil_factory

		cost = 10
		x = -1
		y = 1
		ai_will_do = {
			factor = 12
		}
		search_filters = {
			FOCUS_FILTER_INDUSTRY
		}
		prerequisite = {
			focus = per_invest_civilian_industry focus = per_invest_military_industry
		}
		relative_position_id = per_invest_military_industry

		completion_reward = { 
			add_ideas = modern_production
		}
	}

	focus = {
	
		id = per_technology_expansion
		icon = GFX_focus_research
		x = 0
		y = 2
		cost = 10
		ai_will_do = {
			factor = 12
		}
		available = {
			num_of_factories > 70
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_modern_economy }
		prerequisite = { focus = per_modern_industry focus = per_modern_production }
		relative_position_id = per_the_economic_scheme
		
		completion_reward = {
			add_research_slot = 1
		}
	}

	##################################################
	################# Military focus #################
	##################################################

	focus = {
		id = per_united_military_research
		icon = GFX_goal_generic_army_doctrines
		x = 15
		y = 0
		cost = 5
		ai_will_do = {
			factor = 12
		}

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_ARMY_XP }

		mutually_exclusive = { focus = per_modernise_tools }
		#prerequisite = { focus = per_invest_military_industry focus = per_invest_civilian_industry focus = per_the_economic_scheme focus = per_urbanise_the_nation focus = per_railway_expansion }
		#relative_position_id = per_invest_military_industry
		
		completion_reward = {

			hidden_effect = {
				add_ideas = per_IIA
			}

			custom_effect_tooltip = per_army_tt

			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 0.5
				uses = 3
				category = land_doctrine
			}
		}
	}
	
	focus = {
	
		id = per_modernise_tools
		icon = GFX_goal_generic_per_construction
		x = 2
		y = 0
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		mutually_exclusive = { focus = per_united_military_research }
		#prerequisite = { focus = per_united_military_research }
		relative_position_id = per_united_military_research
		
		completion_reward = {

			add_tech_bonus = {
				name = construction_bonus
				bonus = 1.0
				uses = 4
				category = construction_tech
			}
		}
	}
	
	focus = {
	
		id = per_new_factories
		icon = GFX_goal_generic_construct_mil_factory
		x = -1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}

		available = {
			NOT = {
				has_idea = quick_factory_construction
			}
			PER = {
				controls_state = 266
				controls_state = 416
				controls_state = 412
			}
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_modernise_tools focus = per_united_military_research }
		relative_position_id = per_modernise_tools
		
		completion_reward = {
			266 = {		#Tehran
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			416 = {		#Mashahd
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			419 = {		#Tabriz
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}

		}
	}
	
	focus = {
	
		id = per_naval_expansion
		icon = GFX_goal_generic_per_naval_treaty
		x = 6
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}

		available = {
			NOT = {
				has_idea = quick_factory_construction
			}
			PER = {
				controls_state = 412
				controls_state = 914
			}
		}

		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_NAVY_XP }
		
		prerequisite = { focus = per_new_factories }
		#prerequisite = { focus = per_united_military_research }
		relative_position_id = per_new_factories
		
		completion_reward = {

			hidden_effect = {
				add_ideas = per_IIN
			}

			custom_effect_tooltip = per_naval_tt

			add_doctrine_cost_reduction = {
				name = naval_doc_bonus
				cost_reduction = 0.5
				uses = 3
				category = naval_doctrine
			}

			412 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			914 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
	}
	
	focus = {
	
		id = per_naval_theories
		icon = GFX_goal_generic_navy_doctrines_tactics
		x = -1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_naval_expansion }
		mutually_exclusive = { focus = per_ship_armement_research }
		#prerequisite = { focus = per_united_military_research }
		relative_position_id = per_naval_expansion
		
		completion_reward = {
			add_doctrine_cost_reduction = {
				name = naval_doc_bonus
				cost_reduction = 0.5
				uses = 3
				category = naval_doctrine
			}
		}
	}
	

	
	focus = {
	
		id = per_ship_armement_research
		icon = GFX_goal_generic_per_large_fleet
		x = 1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_naval_expansion}
		mutually_exclusive = { focus = per_naval_theories }
		#prerequisite = { focus = per_united_military_research }
		relative_position_id = per_naval_expansion
		
		completion_reward = {
			add_tech_bonus = {
				name = ship_madules_bonus
				bonus = 0.5
				uses = 3
				category = ship_modules_tech
			}
		}
	}
	
	focus = {
	
		id = per_ship_development
		icon = GFX_goal_generic_construct_naval_dockyard
		x = -1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}

		available = {
			NOT = {
				has_idea = quick_factory_construction
			}
			PER = {
				controls_state = 410
				controls_state = 413
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_ship_armement_research focus = per_naval_theories }
		
		#prerequisite = { focus = per_united_military_research }
		relative_position_id = per_ship_armement_research
		
		completion_reward = {

			add_tech_bonus = {
				name = ship_bonus
				bonus = 0.5
				uses = 3
				category = naval_equipment
			}
			
			410 = {
				add_building_construction = {
					type = naval_base
					level = 3
					province = 4891
					instant_build = yes
				}
			}
			413 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
	
		id = per_grand_fleet
		icon = GFX_focus_generic_navy_battleship2
		x = -1
		y = 1
		cost = 10
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_ship_development }
		mutually_exclusive = { focus = per_agile_fleet }
		relative_position_id = per_ship_development
		
		completion_reward = {
			add_ideas = grand_fleet
		}
	}
	
	focus = {
	
		id = per_agile_fleet
		icon = GFX_focus_generic_destroyer
		x = 1
		y = 1
		cost = 10
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_ship_development }
		mutually_exclusive = { focus = per_grand_fleet }
		relative_position_id = per_ship_development
		
		completion_reward = {
			add_ideas = agile_fleet
		}
	}
	
	focus = {
	
		id = per_coastal_expansion
		icon = GFX_goal_generic_expand_the_naval_industry
		x = -1
		y = 1
		cost = 10
		ai_will_do = {
			factor = 12
		}

		available = {
			PER = {
				controls_state = 413
				controls_state = 412
				controls_state = 410
				controls_state = 914
			}
			NOT = {
				has_idea = quick_factory_construction
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_agile_fleet focus = per_grand_fleet }
		relative_position_id = per_agile_fleet
		
		completion_reward = {

			413 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			412 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			410 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			914 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			add_timed_idea = { idea = quick_factory_construction days = 90 }  
		}
	}
	
	focus = {
		id = per_naval_production
		icon = GFX_goal_continuous_naval_production
		cost = 10
		x = 0
		y = 1
		ai_will_do = {
			factor = 12
		}
		
		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_coastal_expansion }
		relative_position_id = per_coastal_expansion

		completion_reward = { 
			add_ideas = continuous_naval_production
		}
	}

	focus = {
	
		id = per_electronics
		icon = GFX_goal_generic_radio_development_2
		x = 4
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_new_factories }
		mutually_exclusive = { focus = per_machine_tools }
		relative_position_id = per_new_factories	
		
		completion_reward = {
			add_ideas = per_SAIRAN
			add_tech_bonus = {
				name = electronics_bonus
				bonus = 1.0
				uses = 3
				category = electronics
			}
		}
	}
	
	focus = {
	
		id = per_machine_tools
		icon = GFX_goal_generic_production
		x = 2
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_new_factories }
		mutually_exclusive = { focus = per_electronics }
		relative_position_id = per_new_factories	
		
		completion_reward = {
			add_ideas = per_MAPNA
			add_tech_bonus = {
				name = industrial_bonus
				bonus = 1.0
				uses = 3
				category = industry
			}
		}
	}
	
	focus = {
	
		id = per_fuel_the_beast
		icon = GFX_goal_generic_more_oil
		x = 1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL }
		
		prerequisite = { focus = per_machine_tools focus = per_electronics }
		#prerequisite = { focus = per_united_military_research }
		relative_position_id = per_machine_tools
		
		completion_reward = {

			swap_ideas ={
				remove_idea = per_anglo_iranian_oil_company
				add_idea = per_anglo_iranian_oil_company_2
			}

			ENG = {
				add_opinion_modifier = { target = PER modifier = PER_put_pressure_apoc }
			}
		}
	}

	focus = {
	
		id = per_rubber_extraction
		icon = GFX_focus_generic_rubber
		x = 0
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_fuel_the_beast }
		#prerequisite = { focus = per_united_military_research }
		relative_position_id = per_fuel_the_beast
		
		completion_reward = {
			modify_building_resources = {
        	   building = synthetic_refinery
        	   resource = rubber
        	   amount = 3
        	}
		}
	}
	
	focus = {
	
		id = per_military_universities
		icon = GFX_focus_generic_military_academy
		x = 0
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_ARMY_XP FOCUS_FILTER_NAVY_XP }
		
		prerequisite = { focus = per_rubber_extraction }
		relative_position_id = per_rubber_extraction
		
		completion_reward = {
			army_experience = 50
			navy_experience = 50
			add_doctrine_cost_reduction = {
				name = naval_doc_bonus
				cost_reduction = 0.5
				uses = 2
				category = naval_doctrine
			}
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 0.5
				uses = 2
				category = land_doctrine
			}
		}
	}

	focus = {
		id = per_radar
		icon = GFX_goal_generic_radar
		cost = 10
		x = 1
		y = 1

		available = {
			has_tech = improved_decimetric_radar
		}

		prerequisite = { focus = per_military_universities}
		relative_position_id = per_military_universities

		completion_reward = { 
			if = {

				limit = { 787 = { is_controlled_by_ROOT_or_ally = yes } }

				787 = {

					add_building_construction = {
						type = radar_station
						level = 3
						instant_build = yes
					}

				}
			}
			if = {

				limit = { 659 = { is_controlled_by_ROOT_or_ally = yes } }

				659 = {

					add_building_construction = {
						type = radar_station
						level = 3
						instant_build = yes
					}

				}
			}
			if = {

				limit = { 341 = { is_controlled_by_ROOT_or_ally = yes } }

				341 = {

					add_building_construction = {
						type = radar_station
						level = 3
						instant_build = yes
					}

				}
			}
			if = {

				limit = { 453 = { is_controlled_by_ROOT_or_ally = yes } }

				453 = {

					add_building_construction = {
						type = radar_station
						level = 3
						instant_build = yes
					}

				}
			}
			else = {
				419 = {

					add_building_construction = {
						type = radar_station
						level = 3
						instant_build = yes
					}

				}
				410 = {

					add_building_construction = {
						type = radar_station
						level = 3
						instant_build = yes
					}

				}
			}
		}
	}

	focus = {
		id = per_radar_2
		icon = GFX_goal_generic_radar2
		cost = 10
		x = 0
		y = 1

		available = {
			has_tech = advanced_centimetric_radar
		}

		prerequisite = { focus = per_radar}
		relative_position_id = per_radar

		completion_reward = { 

			if = {

				limit = { 787 = { is_controlled_by_ROOT_or_ally = yes } }

				787 = {

					add_building_construction = {
						type = radar_station
						level = 3
						instant_build = yes
					}

				}
			}
			if = {

				limit = { 659 = { is_controlled_by_ROOT_or_ally = yes } }

				659 = {

					add_building_construction = {
						type = radar_station
						level = 3
						instant_build = yes
					}

				}
			}
			if = {

				limit = { 341 = { is_controlled_by_ROOT_or_ally = yes } }

				341 = {

					add_building_construction = {
						type = radar_station
						level = 3
						instant_build = yes
					}

				}
			}
			if = {

				limit = { 453 = { is_controlled_by_ROOT_or_ally = yes } }

				453 = {

					add_building_construction = {
						type = radar_station
						level = 3
						instant_build = yes
					}

				}
			}
			else = {
				419 = {

					add_building_construction = {
						type = radar_station
						level = 3
						instant_build = yes
					}

				}
				410 = {

					add_building_construction = {
						type = radar_station
						level = 3
						instant_build = yes
					}

				}
			}

			every_core_state = {
				add_building_construction = {
					type = anti_air_building
					level = 3
					instant_build = yes
				}
			}
		}
	}
	
	focus = {
	
		id = per_nuclear_research
		icon = GFX_focus_wonderweapons
		x = -1
		y = 1
		cost = 10
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_military_universities}
		prerequisite = { focus = per_combined_arms_doctrine }
		relative_position_id = per_military_universities
		
		completion_reward = {
			add_tech_bonus = {
				name = nuclear_bonus
				bonus = 1.0
				uses = 2
				category = nuclear
			}
		}
	}
	
	focus = {
	
		id = per_plane_factories
		icon = GFX_focus_generic_aircraft_production
		x = 0
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_AIR_XP }
		
		prerequisite = { focus = per_new_factories }
		#prerequisite = { focus = per_united_military_research }
		relative_position_id = per_new_factories
		
		completion_reward = {

			hidden_effect = {
				add_ideas = per_IIAF
			}

			custom_effect_tooltip = per_air_tt
			
			add_doctrine_cost_reduction = {
				name = air_doc_bonus
				cost_reduction = 0.50
				uses = 3
				category = air_doctrine
			}
			266 = {
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}
			411 = {
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}
		}
	}
	
	focus = {
	
		id = per_aviation_research
		icon = GFX_goal_generic_air_bomber
		x = -1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH  }
		
		prerequisite = { focus = per_plane_factories }
		mutually_exclusive = { focus = per_cas }
		relative_position_id = per_plane_factories
		
		completion_reward = {
			if = {
				limit = { has_dlc = "By Blood Alone" }

				add_tech_bonus = {
					name = dd_bonus
					ahead_reduction = 1.0
					uses = 2
					category = air_equipment
					category = cat_air_guns
				}
				else = {
					add_tech_bonus = {
						name = dd_bonus
						ahead_reduction = 2.0
						uses = 1
						category = heavy_air
						category = medium_air
					}
				}
			}
			
		}
	}
	
	
	focus = {
	
		id = per_cas
		icon = GFX_goal_generic_air_fighter
		x = 1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH  }
		
		prerequisite = { focus = per_plane_factories }
		mutually_exclusive = { focus = per_aviation_research }
		relative_position_id = per_plane_factories
		
		completion_reward = {
			if = {
				limit = { has_dlc = "By Blood Alone" }

				add_tech_bonus = {
					name = dd_bonus
					ahead_reduction = 1.0
					uses = 2
					category = air_equipment
					category = cat_air_bombs
				}
				else = {
					add_tech_bonus = {
						name = dd_bonus
						ahead_reduction = 2.0
						uses = 1
						category = naval_air
						category = light_air
					}
				}
			}
		}
	}

	focus = {
	
		id = per_industrial_military
		icon = GFX_goal_polish_wartime_industry
		x = -1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }

		available = {
			NOT = {
				has_idea = quick_factory_construction
			}
		}
		
		prerequisite = { focus = per_cas focus = per_aviation_research }
		relative_position_id = per_cas
		
		completion_reward = {
			random_owned_controlled_state = {
				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 = {
				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 = {
				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_timed_idea = { idea = quick_factory_construction days = 90 }

			custom_effect_tooltip = per_industrial_military_tt
		}
	}
	
	focus = {
	
		id = per_combined_arms_doctrine
		icon = GFX_focus_generic_license_production
		x = 0
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_ARMY_XP FOCUS_FILTER_AIR_XP }
		
		prerequisite = { focus = per_industrial_military }
		relative_position_id = per_industrial_military
		
		completion_reward = {
			army_experience = 50
			air_experience = 50

			add_doctrine_cost_reduction = {
				name = air_doc_bonus
				cost_reduction = 0.5
				uses = 2
				category = air_doctrine
			}
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 0.5
				uses = 2
				category = land_doctrine
			}
		}
	}
	
	focus = {
	
		id = per_develop_new_guns
		icon = GFX_goal_generic_small_arms
		x = -4
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_new_factories }
		relative_position_id = per_new_factories
		mutually_exclusive = { focus = per_improved_support_weapons }
		
		completion_reward = {
			add_tech_bonus = {
				name = infantry_weapons_bonus
				bonus = 0.5
				uses = 2
				category = infantry_weapons
			}
		}
	}
	
	focus = {
	
		id = per_improved_support_weapons
		icon = GFX_goal_generic_army_artillery2
		x = -2
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_new_factories }
		relative_position_id = per_new_factories
		mutually_exclusive = { focus = per_develop_new_guns }
		
		completion_reward = {
			add_tech_bonus = {
				name = arty_bonus
				bonus = 0.5
				uses = 2
				category = artillery
			}
		}
	}
	
	focus = {
	
		id = per_support_companies
		icon = GFX_goal_generic_army_artillery
		x = -1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_improved_support_weapons focus = per_develop_new_guns }
		relative_position_id = per_improved_support_weapons
		
		completion_reward = {
			hidden_effect = {
				add_equipment_to_stockpile = {
					type = support_equipment_1
					amount = 500
				}
			}
			
			add_tech_bonus = {
				name = support_bonus
				bonus = 0.5
				uses = 2
				category = support_tech
			}
		}
	}

	focus = {
		id = per_special_forces
		icon = GFX_goal_generic_special_forces
		cost = 5
		x = -1
		y = 1

		ai_will_do = {
			factor = 12
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_support_companies }
		relative_position_id = per_support_companies

		completion_reward = { 
			hidden_effect = {

				if = {
					limit = { 
						has_tech = marines 
						has_tech = tech_mountaineers 
						has_tech = tech_maintenance_company 
						has_tech = tech_logistics_company  
					}

					division_template = {
						name = "Piyade Momtaz Brigade"		# Infantry Division
						division_names_group = PER_INF_01
						priority = 1
						template_counter = 0
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							artillery_brigade = { x = 0 y = 3 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							artillery_brigade = { x = 1 y = 3 }
							marine = { x = 2 y = 0 }
							marine = { x = 2 y = 1 }
							mountaineers = { x = 2 y = 2 }
							artillery_brigade = { x = 2 y = 3 }
						}
						
						support = {
							engineer = { x = 0 y = 0 }
							anti_air = { x = 0 y = 1 }
							artillery = { x = 0 y = 2 }
							logistics_company = { x = 0 y = 3 }
							maintenance_company = { x = 0 y = 4 }
						}
					}
				}

				else_if = {
					limit = { 
						has_tech = marines 
						has_tech = tech_mountaineers
						has_tech = tech_maintenance_company
					}

					division_template = {
						name = "Piyade Momtaz Brigade"		# Infantry Division
						division_names_group = PER_INF_01
						priority = 1
						template_counter = 0
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							artillery_brigade = { x = 0 y = 3 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							artillery_brigade = { x = 1 y = 3 }
							marine = { x = 2 y = 0 }
							marine = { x = 2 y = 1 }
							mountaineers = { x = 2 y = 2 }
							artillery_brigade = { x = 2 y = 3 }
						}
						
						support = {
							engineer = { x = 0 y = 0 }
							anti_air = { x = 0 y = 1 }
							artillery = { x = 0 y = 2 }
							maintenance_company = { x = 0 y = 3 }
						}
					}
				}

				else_if = {
					limit = { 
						has_tech = marines 
						has_tech = tech_mountaineers
						has_tech = tech_logistics_company
					}

					division_template = {
						name = "Piyade Momtaz Brigade"		# Infantry Division
						division_names_group = PER_INF_01
						priority = 1
						template_counter = 0
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							artillery_brigade = { x = 0 y = 3 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							artillery_brigade = { x = 1 y = 3 }
							marine = { x = 2 y = 0 }
							marine = { x = 2 y = 1 }
							mountaineers = { x = 2 y = 2 }
							artillery_brigade = { x = 2 y = 3 }
						}
						
						support = {
							engineer = { x = 0 y = 0 }
							anti_air = { x = 0 y = 1 }
							artillery = { x = 0 y = 2 }
							logistics_company = { x = 0 y = 3 }
						}
					}
				}

				else_if = {
					limit = { 
						has_tech = marines 
						has_tech = tech_mountaineers
					}

					division_template = {
						name = "Piyade Momtaz Brigade"		# Infantry Division
						division_names_group = PER_INF_01
						priority = 1
						template_counter = 0
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							artillery_brigade = { x = 0 y = 3 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							artillery_brigade = { x = 1 y = 3 }
							marine = { x = 2 y = 0 }
							marine = { x = 2 y = 1 }
							mountaineers = { x = 2 y = 2 }
							artillery_brigade = { x = 2 y = 3 }
						}
						
						support = {
							engineer = { x = 0 y = 0 }
							anti_air = { x = 0 y = 1 }
							artillery = { x = 0 y = 2 }
						}
					}
				}

				else = {
					set_technology = {
						marines = 1
						tech_mountaineers = 1
					}

					army_experience = 50
				}
			}
			
			add_tech_bonus = {
				name = special_forces_bonus
				bonus = 0.5
				uses = 1
				category = mountaineers_tech
				category = marine_tech
				category = para_tech
			}

			custom_effect_tooltip = UNLOCK_DIVISION_TEMPLATE
		}
	}
	
	focus = {
		id = per_red_crescent
		icon = GFX_goal_per_supply_brigades
		cost = 5
		x = 0
		y = 1

		search_filters = { FOCUS_FILTER_INDUSTRY }

		prerequisite = { focus = per_special_forces }
		relative_position_id = per_special_forces

		completion_reward = { 
			add_ideas = SOV_the_road_of_life_ns
		}
	}

	focus = {
	
		id = per_logistics
		icon = GFX_goal_generic_army_motorized
		x = 0
		y = 1
		cost = 10
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_ARMY_IMPROVEMENT }

		available = {
			has_idea = per_NIORDC
			has_tech = tech_logistics_company3
		}
		
		prerequisite = { focus = per_red_crescent }
		relative_position_id = per_red_crescent
		
		completion_reward = {
			hidden_effect = {
				add_equipment_to_stockpile = {
					type = motorized_equipment_1
					amount = 500
				}
			}
			
			add_ideas = per_logistics_magic
		}
	}
	
	focus = {
	
		id = per_field_testing
		icon = GFX_goal_tfv_generic_tech_sharing
		x = 3
		y = 1
		cost = 10
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_logistics }
		prerequisite = { focus = per_technology_expansion }
		prerequisite = { focus = per_railgun }
		#prerequisite = { focus = per_modern_industry focus = per_modern_production }
		relative_position_id = per_technology_expansion
		
		completion_reward = {
			add_ideas = field_testing
		}
	}

	focus = {
	
		id = per_armoured_warfare
		icon = GFX_focus_generic_tank_production
		x = 1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_support_companies }
		relative_position_id = per_support_companies
		
		completion_reward = {
			
			add_tech_bonus = {
				name = armor_bonus
				ahead_reduction = 2.0
				uses = 1
				category = cat_medium_armor
				category = cat_heavy_armor
			}

			if = {
				limit = { has_tech = advanced_medium_tank }

				create_equipment_variant = {
					name = "Sorena III" #medium tank
					type = medium_tank_chassis_3
					parent_version = 0
					modules = {
						main_armament_slot = tank_medium_cannon_2
						turret_type_slot = tank_medium_three_man_tank_turret
						suspension_type_slot = tank_torsion_bar_suspension
						armor_type_slot = tank_welded_armor
						engine_type_slot = tank_gasoline_engine
						special_type_slot_1 = sloped_armor
						special_type_slot_2 = tank_radio_3
						special_type_slot_3 = armor_skirts
						special_type_slot_4 = empty
					}
					upgrades = {
						tank_nsb_engine_upgrade = 7
						tank_nsb_armor_upgrade = 4
					}
				}
			}

			else_if = {
				limit = { has_tech = improved_medium_tank }

				create_equipment_variant = {
					name = "Sorena II" #medium tank
					type = medium_tank_chassis_2
					parent_version = 0
					modules = {
						main_armament_slot = tank_medium_cannon
						turret_type_slot = tank_medium_three_man_tank_turret
						suspension_type_slot = tank_torsion_bar_suspension
						armor_type_slot = tank_welded_armor
						engine_type_slot = tank_gasoline_engine
						special_type_slot_1 = sloped_armor
						special_type_slot_2 = tank_radio_2
						special_type_slot_3 = armor_skirts
						special_type_slot_4 = empty
					}
					upgrades = {
						tank_nsb_engine_upgrade = 7
						tank_nsb_armor_upgrade = 4
					}
				}
			}

			else = {

				create_equipment_variant = {
					name = "Sorena I" #medium tank
					type = medium_tank_chassis_1
					parent_version = 0
					modules = {
						main_armament_slot = tank_medium_cannon
						turret_type_slot = tank_medium_three_man_tank_turret
						suspension_type_slot = tank_torsion_bar_suspension
						armor_type_slot = tank_welded_armor
						engine_type_slot = tank_gasoline_engine
						special_type_slot_1 = sloped_armor
						special_type_slot_2 = tank_radio_1
						special_type_slot_3 = empty
						special_type_slot_4 = empty
					}
					upgrades = {
						tank_nsb_engine_upgrade = 7
						tank_nsb_armor_upgrade = 4
					}
				}
			}
			
		}
	}

	focus = {
		id = per_mechanised_warfare
		icon = GFX_goal_per_mechanised_warfare
		cost = 5
		x = 0
		y = 1
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_armoured_warfare }
		relative_position_id = per_armoured_warfare

		completion_reward = { 
			
			hidden_effect = {

				if = {
					limit = { 
						NOT = { has_tech = mechanised_infantry } 
					}

					set_technology = { mechanised_infantry = 1 }
				}

				else = {
					add_tech_bonus = {
						name = mech_army_bonus
						bonus = 0.5
						uses = 1
						category = cat_mechanized_equipment
					}
				}

				division_template = {
					name = "Mekanizeh Brigade"					# Mechanized Division
					division_names_group = PER_MEC_01
					#template_counter = GFX_unit_mechanized_icon_medium
					regiments = {
						motorized = { x = 0 y = 0 }
						motorized = { x = 0 y = 1 }
						motorized = { x = 0 y = 2 }
						mot_artillery_brigade = { x = 0 y = 3 }
						mot_anti_air_brigade = { x = 0 y = 4 }
						mechanized = { x = 1 y = 0 }
						mechanized = { x = 1 y = 1 }
						mechanized = { x = 1 y = 2 }
						mot_artillery_brigade = { x = 1 y = 3 }
						medium_sp_artillery_brigade = { x = 2 y = 0 }
						medium_sp_artillery_brigade = { x = 2 y = 1 }
						light_armor = { x = 2 y = 2 }
					}
					
					support = {
						engineer = { x = 0 y = 0 }
						anti_air = { x = 0 y = 1 }
						artillery = { x = 0 y = 2 }
					}
				}
			}

			custom_effect_tooltip = UNLOCK_DIVISION_TEMPLATE
			
		}
	}
	
	focus = {
	
		id = per_battle_theories
		icon = GFX_goal_generic_air_doctrine
		x = 0
		y = 1
		cost = 10
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_ARMY_XP FOCUS_FILTER_AIR_XP FOCUS_FILTER_NAVY_XP }
		
		prerequisite = { focus = per_mechanised_warfare }
		relative_position_id = per_mechanised_warfare
		
		completion_reward = {
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
			add_doctrine_cost_reduction = {
				name = naval_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = naval_doctrine
			}
			add_doctrine_cost_reduction = {
				name = air_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
		}
	}
	
	focus = {
	
		id = per_rocket_theories
		icon = GFX_goal_focus_rocketry
		x = 2
		y = 1
		cost = 10
		ai_will_do = {
			factor = 12
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_battle_theories }
		prerequisite = { focus = per_nuclear_research }
		relative_position_id = per_battle_theories
		
		completion_reward = {
			add_tech_bonus = {
				name = jet_rocket_bonus
				bonus = 1.0
				uses = 2
				category = rocketry
			}
		}
	}

	
	focus = {
	
		id = per_railway_expansion_1
		icon = GFX_goal_per_railroad
		x = -6
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}

		available = {
			has_completed_focus = per_public_bonds
			has_tech = construction2
			NOT = {
				has_idea = quick_factory_construction
			}
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_new_factories }
		relative_position_id = per_new_factories
		
		completion_reward = {

			add_timed_idea = {
				idea = quick_factory_construction
				days = 90
			}
			
			hidden_effect = {
				build_railway = {
					level = 1
					path = { 10837 7969 4609 4901 12793 1896 4755 7604 }
				}
				
				build_railway = {
					level = 1
					path = { 10837 12818 4983 1963 10828 11249 10913 1986 2039 13082 4891 }
				}
				
				build_railway = {
					level = 1
					path = { 10913 12863 7982 1889 }
				}
				
				build_railway = {
					level = 1
					path = { 1963 8031 4966 8117 12832 }
				}
	
				build_railway = {
					level = 1
					path = { 
						7604 1822 4943 5098 829 5050 2065 12756 2026 1963 10873 10890 7990 10806 2000 5029 1521 10351 7602 
					}
				}
				
				build_railway = {
					level = 1
					path = { 5005 5089 8117 }
				}
				
				419 = {
					add_building_construction = {
						type = supply_node
						level = 1
						province = 1896
						instant_build = yes
					}
				}
				
				411 = {
					add_building_construction = {
						type = supply_node
						level = 1
						province = 1963
						instant_build = yes
					}
				}
			}

			custom_effect_tooltip = per_railway_expansion_tt
		}
	}
	
	focus = {
	
		id = per_railway_expansion_2
		icon = GFX_goal_per_railway
		x = 0
		y = 2
		cost = 10
		
		available = {
			has_completed_focus = per_government_bonds
			has_tech = construction3
			NOT = {
				has_idea = quick_factory_construction
			}
		}
		
		ai_will_do = {
			factor = 10
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_railway_expansion_1 }
		relative_position_id = per_railway_expansion_1
		
		completion_reward = {

			add_timed_idea = {
				idea = quick_factory_construction
				days = 90
			}

			hidden_effect = {
				
				build_railway = {
					level = 2
					path = { 10837 7969 4609 4901 12793 1896 4755 7604 }
				}
				
				build_railway = {
					level = 2
					path = { 10837 12818 4983 1963 10828 11249 10913 1986 2039 13082 4891 }
				}
				
				build_railway = {
					level = 2
					path = { 10913 12863 7982 1889 }
				}
				
				build_railway = {
					level = 2
					path = { 1963 8031 4966 8117 12832 }
				}
	
				build_railway = {
					level = 2
					path = { 
						7604 1822 4943 5098 829 5050 2065 12756 2026 1963 10873 10890 7990 10806 2000 5029 1521 10351 7602 
					}
				}
				
				build_railway = {
					level = 2
					path = { 5005 5089 8117 }
				}
				
				416 = {
					add_building_construction = {
						type = supply_node
						level = 1
						province = 7990
						instant_build = yes
					}
				}
				
				414 = {
					add_building_construction = {
						type = supply_node
						level = 1
						province = 10913
						instant_build = yes
					}
				}
				
				412 = {
					add_building_construction = {
						type = supply_node
						level = 1
						province = 8117
						instant_build = yes
					}
				}
			}

			custom_effect_tooltip = per_railway_upgrade_tt
		}
	}

	focus = {
		id = per_railgun
		icon = GFX_goal_per_railgun
		cost = 10
		x = 0
		y = 2

		available = {
			has_tech = railway_gun
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		prerequisite = { focus = per_railway_expansion_2 }
		relative_position_id = per_railway_expansion_2

		completion_reward = { 

			add_equipment_production = {
				equipment = {
					type = railway_gun_equipment_1
					creator = "PER"
				}
				name = "Shahab I"
				requested_factories = 1
				progress = 0.99
				amount = 5
			}

	#		equipment_bonus = {
	#			railway_gun_equipment = {
	#				build_cost_ic = -0.4 reliability = -0.2
	#			}
	#			instant = yes
	#		}

	#		create_unit = { division = railway_gun owner = PER } 
			
	#		add_equipment_to_stockpile = { type = railway_gun_equipment_1 amount = 5 }
		}
	}

	######################################################
	############ Political & Expansion focus  ############
	######################################################

	focus = {
		id = per_national_referendum
		icon = GFX_focus_generic_monarchy_2
		x = 30
		y = 0
		cost = 2
		
		ai_will_do = {
			factor = 12
		}
		
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		
		#prerequisite = { focus = per_military_special_forces focus = per_military_support_equipment }
		#relative_position_id = per_military_special_forces
		
		completion_reward = {
			add_political_power = 50
			country_event = iran.1
		}
	}

	focus = {
		id = per_consolodate_political_power
		icon = GFX_focus_rom_royal_dictatorship
		x = 0
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 12
		}
		
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		
		#prerequisite = { focus = per_secular }
		#mutually_exclusive = { focus = per_become_democratic }
		#relative_position_id = per_secular
		
		prerequisite = { focus = per_national_referendum }
		#mutually_exclusive = { focus = per_become_democratic }
		relative_position_id = per_national_referendum

		completion_reward = {
			
			swap_ideas = {
				remove_idea = political_shambles
				add_idea = political_shambles_1
			}

			custom_effect_tooltip = per_consolodate_political_power_tt

			add_political_power = 50
			
		}
	}

	focus = {
		id = per_revive_national_identity
		icon = GFX_goal_generic_national_unity
		x = -4
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 12
		}
		
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		
		prerequisite = { focus = per_consolodate_political_power }
		relative_position_id = per_consolodate_political_power
		
		completion_reward = {
			add_stability = 0.05
			add_political_power = 25
		}
	}
	
	focus = {
		id = per_regain_the_peoples_will
		icon = GFX_goal_tfv_strengthen_commonwealth_ties
		x = 1
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 12
		}
		
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }
		
		prerequisite = { focus = per_revive_national_identity }
		relative_position_id = per_revive_national_identity
		
		completion_reward = {
			add_stability = 0.05
			add_political_power = 50
			add_command_power = 10
		}
	}
	
	focus = {
		id = per_reform_work_pay
		icon = GFX_focus_mex_privatisation
		x = -1
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 12
		}
		
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		
		prerequisite = { focus = per_revive_national_identity }
		relative_position_id = per_revive_national_identity
		
		completion_reward = {
			add_timed_idea = {
				idea = work_pay_reform
				days = 1825
			}
		}
	}
	
	focus = {
		id = per_military_service
		icon = GFX_goal_generic_army_mobilization
		x = 1
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}

		available = {
			has_war_support > 0.50
		}
		
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_STABILITY }
		
		prerequisite = { focus = per_reform_work_pay }
		prerequisite = { focus = per_regain_the_peoples_will }
		relative_position_id = per_reform_work_pay
		
		completion_reward = {
			add_manpower = 25000
			add_command_power = 10
			add_stability = -0.05
			
			
			add_ideas = trained_civilians0
		}
	}
	
	focus = {
		id = per_establish_emergancy_services
		icon = GFX_focus_generic_manpower
		x = 0
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}

		available = {
			has_war_support > 0.75
		}
		
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_STABILITY }
		
		prerequisite = { focus = per_military_service }
		#prerequisite = { focus = per_regain_the_peoples_will }
		relative_position_id = per_military_service
		
		completion_reward = {
			add_manpower = 50000
			army_experience = 30
			navy_experience = 30
			air_experience = 30
			add_stability = -0.1

			swap_ideas = {
				remove_idea = trained_civilians0
				add_idea = trained_civilians
			}
			
		}
	}
	
	focus = {
		id = per_emergancy_services_to_conquered_states
		icon = GFX_focus_SOV_penal_battalions
		x = 0
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}

		available = {
			has_war_support > 0.95
		}
		
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_STABILITY  }
		
		prerequisite = { focus = per_establish_emergancy_services }
		relative_position_id = per_establish_emergancy_services
		
		completion_reward = {
			add_manpower = 75000
			add_stability = -0.15

			swap_ideas = {
				remove_idea = trained_civilians
				add_idea = emergancy_services
			}
			
		}
	}
	

	focus = {
		id = per_political_power
		icon = GFX_goal_per_peaceful_diplomacy
		cost = 5
		x = 0
		y = 1

		ai_will_do = {
			factor = 12
		}

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }

		prerequisite = { focus = per_consolodate_political_power }
		relative_position_id = per_consolodate_political_power

		completion_reward = { 
			add_political_power = 50
			add_ideas = PER_mohammadali_forughi
		}
	}
	
	focus = {
		id = per_recover_political_integrity
		icon = GFX_focus_generic_self_management
		x = 0
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 12
		}
		
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		
		prerequisite = { focus = per_political_power }
		relative_position_id = per_political_power
		
		completion_reward = {
			add_stability = 0.05
			
			swap_ideas = {
				remove_idea = political_shambles_1
				add_idea = political_shambles_2
			}
		}
	}
	
	focus = {
		id = per_the_leader_and_his_people
		icon = GFX_persian_restoration
		x = 1
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
			has_government = neutrality
		}
		
		bypass = {
			NOT = { has_government = neutrality }
		}
		bypass_if_unavailable = yes
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		
		prerequisite = { focus = per_recover_political_integrity }
		prerequisite = { focus = per_regain_the_peoples_will }
		relative_position_id = per_regain_the_peoples_will
		
		completion_reward = {
			add_political_power = 50
			add_ideas = the_leaders_popularity
		}
	}
	
	focus = {
		id = per_expand_tehran_university
		icon = GFX_goal_per_university
		x = 0
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
	
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_the_leader_and_his_people }
		relative_position_id = per_the_leader_and_his_people
		
		completion_reward = {
			add_ideas = per_tehran_university
			add_research_slot = 1
		}
	}

	focus = {
		id = per_nationalize_oil_industry
		icon = GFX_goal_refining
		x = 0
		y = 1
		cost = 10
		
		available = {
			has_completed_focus = per_fuel_the_beast
		}

		ai_will_do = {
			factor = 12
		}
		
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		
		prerequisite = { focus = per_expand_tehran_university }
		relative_position_id = per_expand_tehran_university
		
		completion_reward = {
			
			add_political_power = -50
			add_stability = 0.1
			
			ENG = {
				remove_resource_rights = 413
			}
			swap_ideas = { 
				remove_idea = per_anglo_iranian_oil_company_2
				add_idea = per_NIORDC
			}
			ENG = {
				add_opinion_modifier = { target = PER modifier = medium_decrease }
			}
		}
	}
	
	focus = {
		id = per_a_new_bureaucracy
		icon = GFX_focus_POL_sanation_right
		x = 0
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}
		
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		
		prerequisite = { focus = per_recover_political_integrity }
		relative_position_id = per_recover_political_integrity
		
		
		completion_reward = {
			add_political_power = 50
			swap_ideas = {
				remove_idea = political_shambles_2
				add_idea = a_new_bureaucracy
			}
		}
	}
	
	focus = {
		id = per_adjusting_the_sails
		icon = GFX_goal_generic_aristocratic_cooperation
		x = 0
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}
		
		search_filters = { FOCUS_FILTER_POLITICAL }
		
		prerequisite = { focus = per_a_new_bureaucracy }
		relative_position_id = per_a_new_bureaucracy
		
		completion_reward = {
			
			country_event = iran.4
		}
	}
	
	
	focus = {
		id = per_prepare_for_conflict
		icon = GFX_aswan
		x = 4
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 12
		}
		
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_ARMY_XP FOCUS_FILTER_NAVY_XP FOCUS_FILTER_AIR_XP }
		
		prerequisite = { focus = per_consolodate_political_power }
		relative_position_id = per_consolodate_political_power
		
		completion_reward = {
			army_experience = 50
			add_command_power = 50
			add_war_support = 0.05
			add_stability = -0.05
		}
	}
	
	focus = {
		id = per_recruitment_campaign
		icon = GFX_focus_generic_little_entente
		x = 0
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 12
		}
		
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_STABILITY }
		
		prerequisite = { focus = per_prepare_for_conflict }
		relative_position_id = per_prepare_for_conflict
		
		completion_reward = {
			add_stability = -0.05
			swap_ideas = {
				remove_idea = per_agrarian_society
				add_idea = per_agrarian_society2
			}
		}
	}
	
	focus = {
		id = per_propoganda_campaign
		icon = GFX_goal_generic_propaganda
		x = 0
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 12
		}
		
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_PROPAGANDA }
		
		prerequisite = { focus = per_recruitment_campaign }
		relative_position_id = per_recruitment_campaign
		
		completion_reward = {
			add_war_support = 0.05
			add_stability = -0.05
			swap_ideas = {
				remove_idea = per_agrarian_society2
				add_idea = per_agrarian_society3
			}
		}
	}
	
	focus = {
		id = per_prepare_for_afghanistan
		icon = GFX_goal_plan
		x = 2
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 12
		}
		
		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_PROPAGANDA }
		
		prerequisite = { focus = per_prepare_for_conflict }
		relative_position_id = per_prepare_for_conflict
		
		completion_reward = {

			add_war_support = 0.05
			
			add_ideas = afghanistan_plan

			AFG = {
				add_opinion_modifier = { target = PER modifier = PER_claimed_afghanistan }
			}
		}
	}
	
	focus = {
		id = per_march_east
		icon = GFX_goal_PER_retake_afghanistan
		x = 0
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 12
		}

		available = {
			country_exists = AFG
			has_war = no
		}

		bypass = {
			NOT = { country_exists = AFG }
			OR = {
				has_war_with = AFG
				is_in_faction_with = AFG
			}
		}
		
		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_STABILITY }
		
		prerequisite = { focus = per_prepare_for_afghanistan }
		relative_position_id = per_prepare_for_afghanistan
		
		completion_reward = {
			#add_stability = -0.05

			#create_wargoal = { type = annex_everything target = AFG }

			AFG = { 
				country_event = { id = iran.37 hours = 6 }
			}

			effect_tooltip = {
				custom_effect_tooltip = if_they_accept_tt
				annex_country = { target = AFG transfer_troops = yes }

				custom_effect_tooltip = if_they_refuse_tt
				create_wargoal = {
					target = AFG
					type = annex_everything
				}
			}
		}
	}
	
	focus = {
		id = per_prepare_for_iraq
		icon = GFX_goal_plan
		x = -2
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 12
		}
		
		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_PROPAGANDA }
		
		prerequisite = { focus = per_prepare_for_conflict }
		relative_position_id = per_prepare_for_conflict
		
		completion_reward = {
			add_war_support = 0.05
			add_ideas = iraq_plan

			IRQ = {
				add_opinion_modifier = { target = PER modifier = PER_claimed_iraq }
			}

		}
	}
	
	focus = {
		id = per_march_west
		icon = GFX_goal_ENG_attack_iraq
		x = 0
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
			country_exists = IRQ
			has_war = no
		}
		
		bypass = {
			NOT = { country_exists = IRQ }
			OR = {
				has_war_with = IRQ
				is_in_faction_with = IRQ
			}
		}

		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_STABILITY }
		
		prerequisite = { focus = per_prepare_for_iraq }
		relative_position_id = per_prepare_for_iraq
		
		completion_reward = {
			#add_stability = -0.05
			#create_wargoal = { type = annex_everything target = IRQ }
			IRQ = { 
				country_event = { id = iran.40 hours = 6 }
			}

			effect_tooltip = {
				custom_effect_tooltip = if_they_accept_tt
				annex_country = { target = IRQ transfer_troops = yes }

				custom_effect_tooltip = if_they_refuse_tt
				create_wargoal = {
					target = IRQ
					type = annex_everything
				}
			}
		}
	}
	
	focus = {
		id = per_integrate_iraq
		icon = GFX_goal_generic_befriend_iraq
		x = 1
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 12
		}
		available = {
			NOT = { 
				country_exists = IRQ
				has_idea = per_integration_costs
			}

		}
		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_INDUSTRY FOCUS_FILTER_PROPAGANDA FOCUS_FILTER_STABILITY }
		
		prerequisite = { focus = per_march_west }
		prerequisite = { focus = per_propoganda_campaign }
		relative_position_id = per_march_west
		#mutually_exclusive = { focus = per_integrate_afghanistan }
		
		completion_reward = {
			country_event = iran.3
		}
	}
	
	focus = {
		id = per_integrate_afghanistan
		icon = GFX_goal_generic_befriend_afghanistan
		x = -1
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
			NOT = { 
				country_exists = AFG
				has_idea = per_integration_costs
			}
		}
		
		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_INDUSTRY FOCUS_FILTER_PROPAGANDA FOCUS_FILTER_STABILITY }
		
		prerequisite = { focus = per_march_east }
		prerequisite = { focus = per_propoganda_campaign }
		relative_position_id = per_march_east
		#mutually_exclusive = { focus = per_integrate_iraq }
		
		completion_reward = {
			country_event = iran.2
		}
	}
	
	focus = {
		id = per_claim_pakistan
		icon = GFX_focus_RAJ_two_nation_theory
		x = -1
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 6
		}
		
		available = {
			NOT = {
				country_exists = AFG
			}
			
			controls_state = 267
			controls_state = 415
			controls_state = 410
		}
		
		search_filters = { FOCUS_FILTER_ANNEXATION }
		
		prerequisite = { focus = per_integrate_afghanistan }
		prerequisite = { focus = per_integrate_iraq }
		relative_position_id = per_integrate_afghanistan
		
		completion_reward = {
			
			hidden_effect = {
				add_state_claim = 444
				add_state_claim = 445
				add_state_claim = 442
				add_state_claim = 443
				add_state_claim = 787
			}

			custom_effect_tooltip = per_claim_pakistan_tt

		}
	}

	focus = {
		id = per_pupet_pakistan
		icon = GFX_goal_integrate_pakistan
		x = -1
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 6
		}
		
		available = {
			NOT = {
				country_exists = AFG
				country_exists = PAK
			}

			has_army_manpower = {
				size > 399999
			}
			
			controls_state = 267
			controls_state = 415
			controls_state = 410

			has_completed_focus = per_new_order
		}
		
		search_filters = { FOCUS_FILTER_ANNEXATION }
		
		prerequisite = { focus = per_claim_pakistan }
		mutually_exclusive = { focus = per_attack_raj }
		relative_position_id = per_claim_pakistan
		
		completion_reward = {

			RAJ = {
				if = {
					limit = {
						has_full_control_of_state = 444
						has_full_control_of_state = 443
						has_full_control_of_state = 445
						has_full_control_of_state = 440
						has_full_control_of_state = 442
						has_full_control_of_state = 787	
					}
					effect_tooltip = {
						release = PAK
						PER = { set_autonomy = { target = PAK autonomy_state = autonomy_integrated_puppet } }
						PAK = {
							add_timed_idea = {
								idea = per_puppet
								days = 365
							}
						}
					}
					hidden_effect = {
						country_event = { id = iran.33 hours = 6 }
						set_politics = {
							ruling_party = neutrality
							last_election = "1935.11.14"
							election_frequency = 48
							elections_allowed = no
						}
						set_popularities = {
							democratic = 7
							fascism = 2
							communism = 1
							neutrality = 90
						}
						every_other_country = {
							limit = {
								has_war_with = PER
							}
							PAK = {
								add_to_war = { targeted_alliance = PER enemy = PREV hostility_reason = asked_to_join }
							}
						}
					}
				}
			}
		}
	}

	focus = {
		id = per_attack_raj
		icon = GFX_focus_attack_india
		x = 1
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 6
		}
		
		available = {
			NOT = {
				country_exists = AFG
				country_exists = PAK
			}

			has_army_manpower = {
				size > 499999
			}

			controls_state = 267
			controls_state = 415
			controls_state = 410

			has_completed_focus = per_new_order
		}
		
		search_filters = { FOCUS_FILTER_ANNEXATION }
		
		prerequisite = { focus = per_claim_pakistan }
		mutually_exclusive = { focus = per_pupet_pakistan }
		relative_position_id = per_claim_pakistan
		
		completion_reward = {
			create_wargoal = { type = puppet_wargoal_focus target = RAJ }
		}
	}

	focus = {
		id = per_new_order
		icon = GFX_focus_eng_imperial_federation
		cost = 10
		x = 0
		y = 1

		available = {
			NOT = { 
				country_exists = IRQ
				country_exists = AFG
				has_idea = per_integration_costs
			}
		}

		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_STABILITY FOCUS_FILTER_PROPAGANDA }

		prerequisite = { focus = per_adjusting_the_sails }
		prerequisite = { focus = per_integrate_afghanistan }
		prerequisite = { focus = per_integrate_iraq }
		relative_position_id = per_adjusting_the_sails

		completion_reward = { 
			add_stability = 0.1

			hidden_effect = {
				add_state_core = 267
				add_state_core = 415
				add_state_core = 291
				add_state_core = 675
				add_state_core = 676
			}

			custom_effect_tooltip = per_new_order_tt
			
			add_timed_idea = {
				idea = per_integration_costs
				days = 120
			}
		}
	}

	focus = {
		id = per_complete_persian_rejuvination
		icon = GFX_pahlavi_kingdom
		x = 0
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}

		available = {
			has_stability > 0.8
			has_war_support > 0.6
			has_army_manpower = {
				size > 399999
			}
		}

		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_PROPAGANDA }
		
		prerequisite = { focus = per_new_order }
		relative_position_id = per_new_order
		
		completion_reward = {
			remove_ideas = per_unwilling_populace
			country_event = iran.5
		}
	}
	
	focus = {
		id = per_recover_the_empires_embers
		icon = GFX_focus_hol_united_netherlands
		x = 1
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
			NOT = {
				has_idea = quick_factory_construction
			}
		}

		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_STABILITY FOCUS_FILTER_INDUSTRY FOCUS_FILTER_ARMY_XP FOCUS_FILTER_NAVY_XP FOCUS_FILTER_AIR_XP }
		
		prerequisite = { focus = per_complete_persian_rejuvination }
		relative_position_id = per_complete_persian_rejuvination
		
		completion_reward = {
			add_stability = 0.1
			add_war_support = 0.1
			army_experience = 100
			navy_experience = 100
			air_experience = 100

			hidden_effect = {
				add_offsite_building = {
					type = arms_factory
					level = 5
				}
				add_offsite_building = {
					type = dockyard
					level = 5
				}
			}

			add_timed_idea = {
				idea = quick_factory_construction
				days = 90
			}

			custom_effect_tooltip = per_recover_the_empires_embers_tt
		}
	}

	focus = {
		id = per_turkish_friendship
		icon = GFX_focus_TUR_treaty_of_saadabad
		cost = 10
		x = -1
		y = 1

		available = {
			PER = {
				has_rule = can_create_factions
				has_country_flag = TUR_saadabad_pact_member
			}
			TUR = {
				exists = yes
				NOT = { has_war_with = ROOT }
			}
		}

		bypass = {
			custom_trigger_tooltip = { 
				tooltip = TUR_no_faction_members_tt
				NOT = {
					has_global_flag = TUR_saadabad_pact
				}
			}
			TUR = {
				OR = {
					exists = no
					is_in_faction_with = root
					has_war_with = root
				}
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL }

		prerequisite = { focus = per_recover_the_empires_embers }
		mutually_exclusive = { focus = per_prepare_for_turkey }
		relative_position_id = per_recover_the_empires_embers

		completion_reward = { 
			
			TUR = { 
				give_guarantee = PER
				add_opinion_modifier = { target = PER modifier = huge_increase } 
			}
			PER = { 
				give_guarantee = TUR
				add_opinion_modifier = { target = TUR modifier = huge_increase }
			}
		}
	}

	focus = {
		id = per_turk_allaince
		icon = GFX_focus_generic_befriend_turkey
		cost = 10
		x = 0
		y = 1

		available = {
			TUR = {
				exists = yes
				NOT = { has_war_with = ROOT }
			}
		}

		bypass = {
			custom_trigger_tooltip = { 
				tooltip = TUR_no_faction_members_tt
				NOT = {
					has_global_flag = TUR_saadabad_pact
				}
			}
			TUR = {
				OR = {
					exists = no
					is_in_faction_with = root
					has_war_with = root
				}
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL }

		prerequisite = { focus = per_turkish_friendship }
		relative_position_id = per_turkish_friendship

		completion_reward = { 
			create_faction = the_saadabad_concordat
			TUR = { country_event = { id = iran.30 } }
		}
	}

	focus = {
		id = per_subject_turkey
		icon = GFX_goal_anschluss
		cost = 10
		x = -1
		y = 1

		available = {
			is_in_faction_with = TUR
		}

		prerequisite = { focus = per_turk_allaince }
		relative_position_id = per_turk_allaince

		completion_reward = { 
			ROOT = { set_autonomy = { target = TUR autonomy_state = autonomy_integrated_puppet } }
		}
	}
	
	focus = {
		id = per_prepare_for_turkey
		icon = GFX_focus_TUR_misak_i_milli
		x = 1
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
			country_exists = TUR
		}
		
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_ANNEXATION }
		
		prerequisite = { focus = per_recover_the_empires_embers }
		mutually_exclusive = { focus = per_turkish_friendship }
		relative_position_id = per_recover_the_empires_embers

		
		completion_reward = {
			add_ideas = turkey_plan
			add_war_support = 0.05
			
			TUR = {
				add_opinion_modifier = { target = PER modifier = PER_claimed_turkey }
			}
		}
	}
	
	focus = {
		id = per_stage_diplomatic_incident
		icon = GFX_focus_generic_attack_turkey
		x = 0
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
			country_exists = TUR
			has_war = no
			TUR = { NOT = { is_in_faction_with = ROOT } }
		}
		
		search_filters = { FOCUS_FILTER_ANNEXATION }
		
		
		prerequisite = { focus = per_prepare_for_turkey }
		relative_position_id = per_prepare_for_turkey
		
		completion_reward = {
			TUR = {
				declare_war_on = { target = PER type = puppet_wargoal_focus }
			}
		}
	}
	
	focus = {
		id = per_every_man_will_do_his_duty
		icon = GFX_focus_SOV_mobilization_plan
		x = -4
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
			has_completed_focus = per_propoganda_campaign
			PER = { has_war = yes }
		}
		
		search_filters = { FOCUS_FILTER_MANPOWER }
		
		prerequisite = { focus = per_complete_persian_rejuvination }
		#prerequisite = { focus = per_emergancy_services_to_conquered_states }
		mutually_exclusive = { focus = per_persian_mountaineer_training }
		relative_position_id = per_complete_persian_rejuvination
		
		completion_reward = {
			add_manpower = 80000
			remove_ideas = per_agrarian_society3
		}
	}
	
	focus = {
		id = per_the_empires_industry
		icon = GFX_focus_generic_the_giant_wakes
		x = 0
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
			has_idea = gradual_industry_expansion_5
		}
		
		search_filters = { FOCUS_FILTER_INDUSTRY }
		
		prerequisite = { focus = per_every_man_will_do_his_duty }
		relative_position_id = per_every_man_will_do_his_duty
		
		completion_reward = {
			random_core_state = {	
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 3
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = industrial_complex
					level = 3
					instant_build = yes
				}
			}
			
			random_core_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 3
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 3
				
				add_building_construction = {
					type = arms_factory
					level = 3
					instant_build = yes
				}
			}
			
			add_timed_idea = {
				idea = quick_factory_construction
				days = 90
			}
		}
	}
	
	focus = {
		id = per_avenge_the_battle_of_issus
		icon = GFX_focus_generic_attack_greece
		x = 0
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
			country_exists = GRE
		}
		
		bypass = {
			NOT = { country_exists = GRE }
			OR = {
				has_war_with = GRE
				is_in_faction_with = GRE
			}
		}
		bypass_if_unavailable = yes

		search_filters = { FOCUS_FILTER_ANNEXATION }
		
		prerequisite = { focus = per_the_empires_industry }
		relative_position_id = per_the_empires_industry
		
		completion_reward = {
			add_state_claim = 187
			add_state_claim = 184
			create_wargoal = { type = annex_everything target = GRE }
		}
	}
	
	focus = {
		id = per_persian_mountaineer_training
		icon = GFX_goal_generic_mountain_warfare
		x = -2
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
			
		}
		
		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_complete_persian_rejuvination }
		mutually_exclusive = { focus = per_every_man_will_do_his_duty }
		relative_position_id = per_complete_persian_rejuvination
		
		completion_reward = {
			custom_effect_tooltip = GRE_mountain_training_effect
			hidden_effect = { set_technology = { mountain_warfare = 1 } }
		}
	}
	
	focus = {
		id = per_persian_desert_warfare
		icon = GFX_goal_generic_desert_warfare
		x = 0
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
			
		}
		
		search_filters = { FOCUS_FILTER_RESEARCH }
		
		prerequisite = { focus = per_persian_mountaineer_training }
		relative_position_id = per_persian_mountaineer_training
		
		completion_reward = {
			
			custom_effect_tooltip = TUR_unlock_camelry_effect_tt
			
			hidden_effect = { 
				set_technology = { 
					camelry = 1
					ETH_improved_irregular_infantry_tech = 1
				} 
			}
		}
	}
	
	focus = {
		id = per_persian_resilience
		icon = GFX_focus_chi_army_reform
		x = 0
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
			
		}
		
		search_filters = { FOCUS_FILTER_POLITICAL }
		
		prerequisite = { focus = per_persian_desert_warfare }
		relative_position_id = per_persian_desert_warfare
		
		completion_reward = {
			swap_ideas = {
				remove_idea = per_agrarian_society3
				add_idea = persian_resilience
			}
		}
	}
	
	focus = {
		id = per_cairo_dispute
		icon = GFX_focus_generic_the_suez
		x = -1
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
			PER = { controls_state = 453 }
			#446 = { is_owned_by = ENG }
			OR = {
				ENG = { controls_state = 446 }
				ITA = { controls_state = 446 }
			}
		}
		
		bypass = {
			PER = { controls_state = 446 }
			if = {
				limit = {
					ENG = { controls_state = 446 }
				}
				OR = {
					has_war_with = ENG
					is_in_faction_with = ENG
				}
			}
			if = {
				limit = {
					ITA = { controls_state = 446 }
				}
				OR = {
					has_war_with = ITA
					is_in_faction_with = ITA
				}
			}
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		
		prerequisite = { focus = per_persian_resilience focus = per_avenge_the_battle_of_issus }
		relative_position_id = per_persian_resilience
		
		completion_reward = {
			start_border_war = {
				change_state_after_war = yes

				attacker = {
					state = 453
					num_provinces = 7
				}
				
				defender = {
					state = 446
					num_provinces = 4
				}
			}
		}
	}

	focus = {
		id = per_soviet_buffer
		icon = GFX_focus_ger_bulwark_against_bolshevism
		x = 5
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 6
		}
		
		available = {
			has_army_manpower = { size > 499999 }
			SOV = {
				AND = {
					exists = yes
					NOT = { is_in_faction_with = root }
					NOT = { has_war_with = ROOT }
				}
			}
			
		}
		
		bypass = {
			SOV = { 
				OR = {
					exists = no
					has_capitulated = yes
					has_war_with = ROOT
					is_in_faction_with = ROOT
					is_subject = yes #MM: Soviets being a subject of anyone (not only PER) should bypass the focus to prevent the entire branch from becoming locked.
				}
			}
		}


	    search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ANNEXATION FOCUS_FILTER_PROPAGANDA }
		
		prerequisite = { focus = per_complete_persian_rejuvination }
		relative_position_id = per_complete_persian_rejuvination


		completion_reward = {
			add_ideas = soviet_plan

			hidden_effect = {
				add_state_claim = 229
				add_state_claim = 230
				add_state_claim = 231
				add_state_claim = 584
				add_state_claim = 830
				add_state_claim = 742
			}
			
			SOV = {
				add_opinion_modifier = { target = PER modifier = small_decrease }
			}
		}
		
	}
	
	focus = {
		id = per_buy_azerbayjan
		icon = GFX_azerbaijan
		x = -1
		y = 1
		cost = 5 
		
		ai_will_do = {
			factor = 6
		}
		
		available = {
			SOV = {
				AND = {
					exists = yes
					has_war = yes
					NOT = { is_in_faction_with = root }
					NOT = { has_war_with = ROOT }
					controls_state = 229
				}
			}
			has_army_manpower = { size > 599999 }
			
		}

		bypass = {
			SOV = { 
				OR = {
					exists = no
					has_capitulated = yes
					has_war_with = ROOT
					is_in_faction_with = ROOT
					is_subject = yes #MM: Soviets being a subject of anyone (not only PER) should bypass the focus to prevent the entire branch from becoming locked.
				}
			}
		}

		#bypass_if_unavailable = yes

	    search_filters = { FOCUS_FILTER_ANNEXATION }
		
		prerequisite = { focus = per_soviet_buffer }
		mutually_exclusive = { focus = per_buy_ashkhabad }
		relative_position_id = per_soviet_buffer


		completion_reward = {
			SOV = { 
				country_event = { id = persov.2 hours = 6 }
			}

			effect_tooltip = {
				custom_effect_tooltip = if_they_accept_tt
				ROOT = {
					transfer_state = 229
				}

				custom_effect_tooltip = if_they_refuse_tt
				ROOT = {
					start_border_war = {
						change_state_after_war = yes
			
						attacker = {
							state = 419
							num_provinces = 12
						}
						
						defender = {
							state = 229
							num_provinces = 17
						}
					}
				}
			}
			
		}
	}
	
	focus = {
		id = per_buy_armenia
		icon = GFX_armenia
		x = 0
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 6
		}
		
		available = {
			SOV = {
				AND = {
					exists = yes
					has_war = yes
					NOT = { is_in_faction_with = root }
					NOT = { has_war_with = ROOT }
					controls_state = 230
					controls_state = 231
				}
			}

			has_army_manpower = { size > 699999 }
		}

		bypass = {

			SOV = { 
				OR = {
					exists = no
					has_capitulated = yes
					has_war_with = ROOT
					is_in_faction_with = ROOT
					is_subject = yes #MM: Soviets being a subject of anyone (not only PER) should bypass the focus to prevent the entire branch from becoming locked.
				}
			}
		}

		#bypass_if_unavailable = yes

	    search_filters = { FOCUS_FILTER_ANNEXATION }
		
		prerequisite = { focus = per_buy_azerbayjan }
		#mutually_exclusive = { focus = per_buy_bukhara }
		relative_position_id = per_buy_azerbayjan

		completion_reward = {
			SOV = { 
				country_event = { id = persov.3 hours = 6 }
			}

			effect_tooltip = {
				custom_effect_tooltip = if_they_accept_tt
				ROOT = {
					transfer_state = 230
					transfer_state = 231
				}

				custom_effect_tooltip = if_they_refuse_tt
				ROOT = {
					start_border_war = {
						change_state_after_war = yes
			
						attacker = {
							state = 419
							num_provinces = 12
						}
						
						defender = {
							state = 230
							num_provinces = 10
						}
					}
				}
			}
		}

	}
	
	focus = {
		id = per_buy_ashkhabad
		icon = GFX_focus_generic_treaty
		x = 1
		y = 1
		cost = 5
		
		ai_will_do = {
			factor = 6
		}
		
		available = {
			SOV = {
				AND = {
					exists = yes
					NOT = { is_in_faction_with = root }
					NOT = { has_war_with = root }
				}
			}
		}
		
		bypass = {
			SOV = { 
				OR = {
					exists = no
					has_capitulated = yes
					has_war_with = ROOT
					is_in_faction_with = ROOT
					is_subject = yes #MM: Soviets being a subject of anyone (not only PER) should bypass the focus to prevent the entire branch from becoming locked.
				}
			}
		}
		

		#bypass_if_unavailable = yes

	    search_filters = { FOCUS_FILTER_ANNEXATION }
		
		prerequisite = { focus = per_soviet_buffer }
		mutually_exclusive = { focus = per_buy_azerbayjan }
		relative_position_id = per_soviet_buffer


		completion_reward = {
			SOV = { 
				country_event = { id = persov.1 hours = 6 }
			}

			effect_tooltip = {
				custom_effect_tooltip = if_they_accept_tt
				ROOT = {
					transfer_state = 584
				}

				custom_effect_tooltip = if_they_refuse_tt
				ROOT = {
					create_wargoal = {
						type = take_state
						target = SOV
						generator = { 584 }
					}
				}
			}
		}
	}
	
	focus = {
		id = per_buy_bukhara
		icon = GFX_goal_per_diplomacy
		x = 0
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 6
		}
		
		available = {
			SOV = {
				AND = {
					exists = yes
					NOT = { is_in_faction_with = root }
					NOT = { has_war_with = root }
				}
			}
		}
		
		bypass = {
			SOV = { 
				OR = {
					exists = no
					has_capitulated = yes
					has_war_with = ROOT
					is_in_faction_with = ROOT
					is_subject = yes #MM: Soviets being a subject of anyone (not only PER) should bypass the focus to prevent the entire branch from becoming locked.
				}
			}
		}

		#bypass_if_unavailable = yes

	    search_filters = { FOCUS_FILTER_ANNEXATION }
		
		prerequisite = { focus = per_buy_ashkhabad }
		#mutually_exclusive = { focus = per_buy_armenia }
		relative_position_id = per_buy_ashkhabad


		completion_reward = {
			SOV = { 
				country_event = { id = persov.4 hours = 6 }
			}

			effect_tooltip = {
				custom_effect_tooltip = if_they_accept_tt
				transfer_state = 742
				transfer_state = 830

				custom_effect_tooltip = if_they_refuse_tt
				ROOT = {
					create_wargoal = {
						type = take_state
						target = SOV
						generator = { 742 830 }
					}
				}
			}
		}
	}

	focus = {
		id = per_rebuild_north
		icon = GFX_goal_generic_construct_military
		cost = 10
		x = 0
		y = 3

		available = {
			has_war = no
			#root = { controls_state = 584 controls_state = 742 controls_state = 830 controls_state = 229 controls_state = 230 controls_state = 231 }
			OR = {
				PER = { controls_state = 229 controls_state = 230 controls_state = 231 }
				PER = { controls_state = 584 controls_state = 742 controls_state = 830 }
			}

			NOT = { has_idea = per_integration_costs }
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		prerequisite = { focus = per_buy_armenia focus = per_buy_bukhara }
		#prerequisite = { focus = per_buy_armenia }
		#prerequisite = { focus = per_buy_bukhara }
		relative_position_id = per_soviet_buffer

		completion_reward = {

			if = {
				limit = { PER = { controls_state = 229 controls_state = 230 } }

				229 = {		#Baku
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
					hidden_effect = {
						add_building_construction = {
							type = bunker 
							level = 5
							province = 4458
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 4545
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 11645
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 6763
							instant_build = yes
						}
					}
					
				}
			
				230 = {		#Yeravan	
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}

				add_timed_idea = {
					idea = per_integration_costs
					days = 180
				}
			}
			else_if = {
				limit = { PER = { controls_state = 584 controls_state = 742 controls_state = 830 } }
			
				584 = {		#Ashkhabad
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
					hidden_effect = {
						add_building_construction = {
							type = bunker 
							level = 5
							province = 4563
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 10406
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 7635
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 12491
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 8099
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 10414
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 7924
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 9605
							instant_build = yes
						}
					}
				}

				830 = {		#Bukhara
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
					hidden_effect = {
						add_building_construction = {
							type = bunker 
							level = 5
							province = 12161
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 10470
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 1632
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 7775
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 10671
							instant_build = yes
						}
					}
				}

				742 = {		#Stalinabad	
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
					hidden_effect = {
						add_building_construction = {
							type = bunker 
							level = 5
							province = 1919
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 12430
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 10187
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 12250
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 4542
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 8027
							instant_build = yes
						}
						add_building_construction = {
							type = bunker 
							level = 5
							province = 12805
							instant_build = yes
						}
					}
				}

				add_timed_idea = {
					idea = per_integration_costs
					days = 180
				}
			}
		}
	}

	focus = {
		id = per_confront_the_bear
		icon = GFX_focus_eng_expose_the_belly_of_the_bear
		cost = 10
		x = 0
		y = 1

		ai_will_do = {
			factor = 12
		}
		
		available = {
			country_exists = SOV
			has_idea = communist_influence_weak
			NOT = {
				SOV = { is_in_faction_with = ROOT }
				has_government = communism
			}
		}

		will_lead_to_war_with = SOV

		search_filters = { FOCUS_FILTER_ANNEXATION }

		prerequisite = { focus = per_rebuild_north }
		relative_position_id = per_rebuild_north

		completion_reward = { 

			add_war_support = 0.2
			
			create_wargoal = {
				target = SOV
				type = topple_government
			}
		}
	}

	focus = {
		id = per_avenge_the_battle_of_qadisiyyah
		icon = GFX_goal_generic_seize_arabia
		x = -1
		y = 1
		cost = 10
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
			country_exists = SAU
		}
		
		bypass = {
			SAU = {
				OR = {
					exists = no
					has_war_with = root
					is_in_faction_with = root
				}
			}
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		
		#prerequisite = { focus = per_buy_armenia focus = per_buy_bukhara }
		prerequisite = { focus = per_stage_diplomatic_incident focus = per_turk_allaince }
		relative_position_id = per_stage_diplomatic_incident
		
		completion_reward = {
			SAU = {
				country_event = { id = iran.34 hours = 6 } 
			}

			effect_tooltip = {
				custom_effect_tooltip = if_they_accept_tt
				PER = { set_autonomy = { target = SAU autonomy_state = autonomy_integrated_puppet } }

				custom_effect_tooltip = if_they_refuse_tt
				ROOT = {
					create_wargoal = {
						target = SAU
						type = puppet_wargoal_focus
					}
				}
			}
		}
	}

	focus = {
		id = per_mediterranean_islands
		icon = GFX_goal_per_foreign_diplomacy2
		x = 2
		y = 1
		cost = 15
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
			has_global_flag = form_persian_empire_flag 
			#AND = {
			#	183 = { is_core_of = PER }
			#	164 = { is_core_of = PER }
			#}
		}
		
		bypass = {
			PER = {
				controls_state = 183
				controls_state = 164
			}
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		
		prerequisite = { focus = per_avenge_the_battle_of_qadisiyyah focus = per_cairo_dispute }
		#prerequisite = { focus = per_cairo_dispute }
		#mutually_exclusive = { focus = per_unite_arabia }
		relative_position_id = per_cairo_dispute
		
		completion_reward = {
			transfer_state = 183
			transfer_state = 164
		}
	}

	focus = {
		id = per_unite_the_nile
		icon = GFX_goal_per_unite_the_nile
		#icon = GFX_goal_per_cairo_dispute
		x = -1
		y = 1
		cost = 26
		
		ai_will_do = {
			factor = 12
		}
		
		available = {

			has_war = no

			NOT = { country_exists = EGY }
			
			AND = {
				446 = { is_fully_controlled_by = root }
				has_global_flag = form_persian_empire_flag 
				#456 = { is_core_of = PER }
				#457 = { is_core_of = PER }
				#447 = { is_core_of = PER }
				#452 = { is_core_of = PER }
				#450 = { is_core_of = PER }
				#451 = { is_core_of = PER }
				#663 = { is_core_of = PER }
			}

			NOT = {
				has_idea = per_integration_costs
			}

		}
		
		bypass = {
			
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		
		prerequisite = { focus = per_mediterranean_islands }
		mutually_exclusive = { focus = per_unite_arabia }
		relative_position_id = per_mediterranean_islands
		
		completion_reward = {
			hidden_effect = {
				transfer_state = 456
				transfer_state = 457
				transfer_state = 447
				transfer_state = 452
				transfer_state = 450
				transfer_state = 451
				transfer_state = 663
				transfer_state = 907
			}

			custom_effect_tooltip = per_unite_the_nile_tt
			
            add_timed_idea = { idea = per_integration_costs days = 365 }

		}
	}

	focus = {
		id = per_unite_arabia
		icon = GFX_goal_per_unite_arabia
		x = 1
		y = 1
		cost = 26
		
		ai_will_do = {
			factor = 12
		}
		
		available = {
			NOT = { country_exists = SAU }
			has_global_flag = form_persian_empire_flag 
			NOT = {
				has_idea = per_integration_costs
			}
		}
		
		bypass = {
		
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		
		prerequisite = { focus = per_mediterranean_islands }
		mutually_exclusive = { focus = per_unite_the_nile }
		relative_position_id = per_mediterranean_islands
		
		completion_reward = {
			hidden_effect = {
				add_state_core = 292
				add_state_core = 679
				add_state_core = 678
				add_state_core = 765
				add_state_core = 658
				add_state_core = 294
				add_state_core = 659
				add_state_core = 293
				add_state_core = 859
				add_state_core = 858
				add_state_core = 857
				add_state_core = 856
				add_state_core = 855
				add_state_core = 854
			}
			
			custom_effect_tooltip = per_unite_arabia_tt

			add_timed_idea = { idea = per_integration_costs days = 365 }
		}
	}
}
