focus_tree = {
	id = persian_focus
	
	country = {
		factor = 0
		
		modifier = {
			add = 10
			tag = PEM
		}
	}

	initial_show_position = {
		x = 0
	}
	
	default = no

	focus = {
		id = PEM_an_empire_of_the_ages
		icon = GFX_focus_PER_proclaim_greater_iran
		x = 18
		y = 0
		
		cost = 10

		completion_reward = {
			add_political_power = 50
			add_stability = 0.05

			country_event = pm.1 
		}
	}

	focus = {
		id = PEM_topple_the_old_order
		icon = GFX_SOV_claims_on_poland_ccp_2d_sov_compatibility
		relative_position_id = PEM_an_empire_of_the_ages
		x = 3
		y = 1
		prerequisite = { focus = PEM_an_empire_of_the_ages }
		mutually_exclusive = { focus = PEM_reassert_shahanshah }
		cost = 5

		completion_reward = {
			custom_effect_tooltip = tooltipwhitelinelol
			custom_effect_tooltip = workinprogress_tt
		}
	}

	focus = {
		id = PEM_heirs_of_alexander
		icon = GFX_focus_GRE_hellenic_armed_forces
		relative_position_id = PEM_topple_the_old_order
		x = 0
		y = 1
		prerequisite = { focus = PEM_topple_the_old_order }
		cost = 5

		completion_reward = {
		}
	}

	focus = {
		id = PEM_reassert_shahanshah
		icon = GFX_focus_PER_third_persian_empire
		relative_position_id = PEM_an_empire_of_the_ages
		x = -3
		y = 1
		prerequisite = { focus = PEM_an_empire_of_the_ages }
		mutually_exclusive = { focus = PEM_topple_the_old_order }
		cost = 5

		completion_reward = {
			add_political_power = 50
			add_stability = 0.05

			add_popularity = {
				ideology = monarchism
				popularity = 0.10
			}
		}
	}

	focus = {
		id = PEM_iranic_dominance
		icon = GFX_goal_generic_army_doctrines
		relative_position_id = PEM_reassert_shahanshah
		x = 0
		y = 1
		prerequisite = { focus = PEM_reassert_shahanshah }
		cost = 5

		completion_reward = {
			add_ideas = PEM_iranic_domination
		}
	}

	focus = {
		id = PEM_consolidate_the_frontier
		icon = GFX_focus_PER_first_iranian_empire
		relative_position_id = PEM_iranic_dominance
		x = -2
		y = 1
		prerequisite = { focus = PEM_iranic_dominance }
		mutually_exclusive = { focus = PEM_pan_iranism }
		cost = 5

		completion_reward = {
			add_stability = -0.05
			add_political_power = 15

			add_popularity = {
				ideology = monarchism
				popularity = 0.05
			}
		}
	}

	focus = {
		id = PEM_integrate_afghanistan
		icon = GFX_focus_PER_usurp_afghanistan
		relative_position_id = PEM_consolidate_the_frontier
		x = -1
		y = 1
		prerequisite = { focus = PEM_consolidate_the_frontier }
		cost = 5

		completion_reward = {
			annex_country = {
                target = AKS
                transfer_troops = yes
            }
		}
	}

	focus = {
		id = PEM_integrate_tajikistan
		icon = GFX_focus_AFG_develop_tajikistan
		relative_position_id = PEM_consolidate_the_frontier
		x = 1
		y = 1
		prerequisite = { focus = PEM_consolidate_the_frontier }
		cost = 5

		completion_reward = {
			annex_country = {
                target = TJK
                transfer_troops = yes
            }
		}
	}

	focus = {
		id = PEM_the_true_empire_of_persia
		icon = GFX_focus_PER_revive_old_ways
		relative_position_id = PEM_integrate_tajikistan
		x = -1
		y = 1
		prerequisite = { focus = PEM_integrate_tajikistan }
		prerequisite = { focus = PEM_integrate_afghanistan }
		cost = 5

		completion_reward = {
			country_event = pm.2 ### proclaim the eranshahr or not
		}
	}

	focus = {
		id = PEM_pan_iranism
		icon = GFX_focus_PER_pan_iranianism
		relative_position_id = PEM_iranic_dominance
		x = 2
		y = 1
		prerequisite = { focus = PEM_iranic_dominance }
		mutually_exclusive = { focus = PEM_consolidate_the_frontier  }
		cost = 5

		completion_reward = {
			swap_ideas = {
				remove_idea = PEM_iranic_domination
				add_idea = PEM_iranic_domination_2
			}
		}
	}

	focus = {
		id = PEM_afghan_border_forces
		icon = GFX_focus_PER_demand_afghan_territory
		relative_position_id = PEM_pan_iranism
		x = 0
		y = 1
		prerequisite = { focus = PEM_pan_iranism }
		cost = 5

		completion_reward = {
		291 = {
            create_unit = {
            division = "name = \"Afgan Border Forces\" division_template = \"Infantry Division\" start_experience_factor = 0.5"
            owner = PEM
            count = 5
            }
        }
		}
	}

	focus = {
		id = PEM_tajikistani_army
		icon = GFX_focus_NOR_rikstanken
		relative_position_id = PEM_afghan_border_forces
		x = 0
		y = 1
		prerequisite = { focus = PEM_afghan_border_forces }
		cost = 5

		completion_reward = {
		410 = {
            create_unit = {
            division = "name = \"Tajik Border Forces\" division_template = \"Persian Rifles\" start_experience_factor = 0.5"
            owner = PEM
            count = 3
            }
        }
		}
	}

	focus = {
		id = PEM_mobilise_strapies
		icon = GFX_focus_RAJ_forge_the_kshatriya_army
		relative_position_id = PEM_the_true_empire_of_persia
		x = 2
		y = 1
		prerequisite = { focus = PEM_the_true_empire_of_persia focus = PEM_tajikistani_army }
		cost = 5

		completion_reward = {
			add_timed_idea = { idea = strapiesmobilisation days = 180 } ### recruitable pop
		}
	}

	focus = {
		id = PEM_finish_what_we_started
		icon = GFX_focus_PER_state_atheism
		relative_position_id = PEM_mobilise_strapies
		available = {
			country_exists = AAC
		}
		bypass = {
			NOT = { country_exists = AAC }
		}
		x = 0
		y = 1
		prerequisite = { focus = PEM_mobilise_strapies }
		cost = 5

		completion_reward = {
			AAC = { country_event = { id = pm.3 days = 1}}
		}
	}

	focus = {
		id = PEM_restart_the_milennium_long_rivalry
		icon = GFX_focus_SOV_my_brothers_keeper
		relative_position_id = PEM_finish_what_we_started
		mutually_exclusive = { focus = PEM_help_constantinople_once_again }
		available = {
			PEM = { NOT = { is_in_faction_with = ERE }}
		}
		x = -1
		y = 1
		prerequisite = { focus = PEM_finish_what_we_started }
		cost = 5

		completion_reward = {
			create_wargoal = {
				type = puppet_wargoal_focus
				target = ERE
			}
		}
	}

	focus = {
		id = PEM_reconquer_the_north
		icon = GFX_SOV_keep_commissars_organization_ccp_2d_sov_compatibility
		relative_position_id = PEM_restart_the_milennium_long_rivalry
		available = {
			country_exists = RSF
		}
		x = 0
		y = 1
		prerequisite = { focus = PEM_restart_the_milennium_long_rivalry }
		cost = 5

		completion_reward = {
			create_wargoal = {
				type = puppet_wargoal_focus
				target = RSF
			}
		}
	}

	focus = {
		id = PEM_help_constantinople_once_again
		icon = GFX_strikewest
		relative_position_id = PEM_finish_what_we_started
		mutually_exclusive = { focus = PEM_restart_the_milennium_long_rivalry }
		available = {
			ERE = { is_in_faction = yes }
			PEM = { NOT = {
				is_in_faction = yes
			}}
		}
		x = 1
		y = 1
		prerequisite = { focus = PEM_finish_what_we_started }
		cost = 5

		completion_reward = {
			ERE = { country_event = pm.6 }
		}
	}

	focus = {
		id = PEM_invade_ethiopia
		icon = GFX_focus_generic_attack_ethiopia
		relative_position_id = PEM_finish_what_we_started
		available = {
			country_exists = ETE
		}
		x = 3
		y = 1
		prerequisite = { focus = PEM_finish_what_we_started }
		cost = 5

		completion_reward = {
			create_wargoal = {
				type = annex_everything
				target = ETE
			}
		}
	}

	focus = {
		id = PEM_restore_the_achaemenid_empire
		icon = GFX_focus_PER_glory_of_cyrus
		relative_position_id = PEM_finish_what_we_started
		available = {
			NOT = { 
				country_exists = ERE
			}
			NOT = { 
				country_exists = AAC
			}
			NOT = { 
				country_exists = RGY
			}
			NOT = { 
				country_exists = LVM
			}
		}
		x = -3
		y = 1
		prerequisite = { focus = PEM_finish_what_we_started }
		cost = 5

		completion_reward = {
			set_cosmetic_tag = ACHAEMENID

			news_event = pm.100
		}
	}

	focus = {
		id = PEM_persian_army_office
		icon = GFX_focus_ETH_the_emperor_stays
		x = 33
		y = 0
		
		cost = 10

		completion_reward = {
			army_experience = 20
		}
	}

	focus = {
		id = PEM_reform_the_persian_army
		icon = GFX_focus_PER_fund_imperial_excellency
		relative_position_id = PEM_persian_army_office
		x = 0
		y = 1
		prerequisite = { focus = PEM_persian_army_office }
		cost = 5

		completion_reward = {
			add_doctrine_cost_reduction = {
				cost_reduction = 0.5
				uses = 3
				category = land_doctrine
			}
		}
	}

	focus = {
		id = PEM_aswaran
		icon = GFX_focus_generic_heavy_tank
		relative_position_id = PEM_reform_the_persian_army
		mutually_exclusive = { focus = PEM_immortals }
		x = -3
		y = 1
		prerequisite = { focus = PEM_reform_the_persian_army }
		cost = 5

		completion_reward = {
			remove_ideas = PEM_army_in_chaos
		}
	}

	focus = {
		id = PEM_immortals
		icon = GFX_focus_PER_modern_cataphract
		relative_position_id = PEM_reform_the_persian_army
		mutually_exclusive = { focus = PEM_aswaran }
		x = 3
		y = 1
		prerequisite = { focus = PEM_reform_the_persian_army }
		cost = 5

		completion_reward = {
			army_experience = 50
			remove_ideas = PEM_army_in_chaos
		}
	}


	focus = {
		id = PEM_motorization
		icon = GFX_goal_generic_army_motorized
		relative_position_id = PEM_aswaran
		x = -2
		y = 1
		prerequisite = { focus = PEM_aswaran }
		cost = 5

		completion_reward = {
			add_ideas = persian_speed_doctrine
		}
	}
	focus = {
		id = PEM_modern_steel_cavalry
		icon = GFX_focus_PER_iranian_gendarmerie
		relative_position_id = PEM_aswaran
		x = 0
		y = 1
		prerequisite = { focus = PEM_aswaran }
		cost = 5

		completion_reward = {
		291 = {
            create_unit = {
            division = "name = \"Gendarmerie\" division_template = \"Persian Gendarmerie\" start_experience_factor = 0.5"
            owner = PEM
            count = 3
            }
        }
		}
	}
	focus = {
		id = PEM_sasanian_army_council
		icon = GFX_focus_PER_march_to_nile
		relative_position_id = PEM_aswaran
		x = 2
		y = 1
		prerequisite = { focus = PEM_aswaran focus = PEM_immortals }
		cost = 5

		completion_reward = {
			army_experience = 25
			navy_experience = 25
			air_experience = 25
			add_ideas = sasanian_army_reform
		}
	}
	focus = {
		id = PEM_mercenary_free_army
		icon = GFX_focus_PER_form_savak
		relative_position_id = PEM_aswaran
		x = 4
		y = 1
		prerequisite = { focus = PEM_aswaran focus = PEM_immortals }
		cost = 5

		completion_reward = {
			add_manpower = -20000
			remove_ideas = PEM_mercenary_army
		}
	}

	focus = {
		id = PEM_daylamites
		icon = GFX_focus_PER_expand_unique_unit
		relative_position_id = PEM_aswaran
		x = 6
		y = 1
		prerequisite = {  focus = PEM_immortals }
		cost = 5

		completion_reward = {
			add_ideas = PEM_daylamites_army
		}
	}

	focus = {
		id = PEM_planning_mobilisation
		icon = GFX_focus_PER_clash_of_titans
		relative_position_id = PEM_aswaran
		x = 8
		y = 1
		prerequisite = {  focus = PEM_immortals }
		cost = 5

		completion_reward = {
			add_ideas = PEM_mobilisation_plan
		}
	}

	focus = {
		id = PEM_bombard_our_foes
		icon = GFX_focus_eng_imperial_federation
		relative_position_id = PEM_modern_steel_cavalry
		x = 1
		y = 1
		prerequisite = { focus = PEM_aswaran }
		cost = 5

		completion_reward = {
			add_doctrine_cost_reduction = {
				cost_reduction = 0.5
				uses = 3
				category = cat_superior_firepower
			}
		}
	}

	focus = {
		id = PEM_traditional_warfare
		icon = GFX_focus_generic_whispers
		relative_position_id = PEM_mercenary_free_army
		x = 1
		y = 1
		prerequisite = { focus = PEM_immortals }
		cost = 5

		completion_reward = {
			add_doctrine_cost_reduction = {
				cost_reduction = 0.5
				uses = 3
				category = cat_grand_battle_plan
			}
		}
	}

	focus = {
		id = PEM_savaran_e_asman
		icon = GFX_focus_PER_perfect_iranian_airforce
		relative_position_id = PEM_persian_army_office
		x = -7
		y = 1
		prerequisite = { focus = PEM_persian_army_office }
		cost = 5

		completion_reward = {
			air_experience = 200
		}
	}

	focus = {
		id = PEM_develop_the_imperial_airforce
		icon = GFX_SOV_modernize_aircraft_facilities_ccp_2d_sov_compatibility
		relative_position_id = PEM_savaran_e_asman
		x = 0
		y = 1
		prerequisite = { focus = PEM_savaran_e_asman }
		cost = 5

		completion_reward = {
			add_ideas = PEM_savaran_e_asman_development
		}
	}

	focus = {
		id = PEM_modernised_airforce
		icon = GFX_focus_PER_establish_airforce
		relative_position_id = PEM_develop_the_imperial_airforce
		x = 0
		y = 1
		prerequisite = { focus = PEM_develop_the_imperial_airforce }
		cost = 5

		completion_reward = {
			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = light_fighter
			}
		}
	}

	focus = {
		id = PEM_imperial_navy
		icon = GFX_focus_PER_stand_with_giants
		relative_position_id = PEM_persian_army_office
		x = 7
		y = 1
		prerequisite = { focus = PEM_persian_army_office }
		cost = 5

		completion_reward = {
				add_tech_bonus = {
				bonus = 0.5
				uses = 2
				category = ss_tech
				category = dd_tech
				name = PEM_imperial_navy_bonus
			}
		}
	}

	focus = {
		id = PEM_gulf_sea_bases
		icon = GFX_focus_PER_persian_gulf_fleet
		relative_position_id = PEM_imperial_navy
		x = 0
		y = 1
		prerequisite = { focus = PEM_imperial_navy }
		cost = 5

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

	focus = {
		id = PEM_kuwait_oil
		icon = GFX_focus_PER_oil_baron
		relative_position_id = PEM_gulf_sea_bases
		x = 0
		y = 1
		prerequisite = { focus = PEM_gulf_sea_bases }
		cost = 5

		completion_reward = {
			659 = {
				add_resource = {
				type = oil
				amount = 15
				}
			}
			add_stability = -0.10
		}
	}


### INDUSTRIAL TREE ###
	focus = {
		id = PEM_persian_industrial_planning
		icon = GFX_focus_PER_modernizing_iran
		cost = 4
		x = 5
		y = 0
		completion_reward = {
			add_stability = 0.05
		}
	}
	focus = {
		id = PEM_lessen_bureaucracy_restraints
		icon = GFX_focus_spr_unify_the_london_bureau
		x = 0
		y = 1
		cost = 2
		relative_position_id = PEM_persian_industrial_planning
		prerequisite = { focus = PEM_persian_industrial_planning }
		completion_reward = {
			add_stability = 0.05
			add_timed_idea = {
					idea = PEM_decreased_bureaucratic_restraints
					days = 180
				}
		}
	}
	focus = {
		id = PEM_persian_railways
		icon = GFX_focus_generic_railway_gun
		x = -2
		y = 1
		cost = 6
		relative_position_id = PEM_lessen_bureaucracy_restraints
		prerequisite = { focus = PEM_lessen_bureaucracy_restraints }
		completion_reward = {
			build_railway = {
				path = { 10837 7969 10523 9816 4943 6826 3916 10106 }
			}
			every_core_state = {
				limit = {
					is_owned_by = PEM
					infrastructure < 4
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = PEM_kuwait_coal
		icon = GFX_focus_generic_mining_industry
		x = 0
		y = 1
		cost = 5
		relative_position_id = PEM_persian_railways
		prerequisite = { focus = PEM_persian_railways }
		completion_reward = {
			656 = {
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}
	focus = {
		id = PEM_heavy_industry
		icon = GFX_SOV_expand_the_aircraft_industry_ccp_2d_sov_compatibility
		x = 0
		y = 1
		cost = 6
		relative_position_id = PEM_lessen_bureaucracy_restraints
		prerequisite = { focus = PEM_lessen_bureaucracy_restraints }
		completion_reward = {
			random_owned_state = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_state = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = PEM_persian_union_groups
		icon = GFX_focus_ARG_women_in_industry
		x = 2
		y = 1
		cost = 3
		relative_position_id = PEM_lessen_bureaucracy_restraints
		prerequisite = { focus = PEM_lessen_bureaucracy_restraints }
		completion_reward = {
			add_ideas = PEM_persian_union_groups_idea
		}
	}
	focus = {
		id = PEM_a_unique_industrialisation_system
		icon = GFX_SOV_steel_casting_industry_ccp_2d_sov_compatibility
		x = 0
		y = 2
		cost = 10
		relative_position_id = PEM_heavy_industry
		prerequisite = { focus = PEM_kuwait_coal }
		prerequisite = { focus = PEM_heavy_industry }
		prerequisite = { focus = PEM_persian_union_groups }
		completion_reward = {
			add_ideas = PEM_a_unique_industrialisation_system_idea
		}
	}
	focus = {
		id = PEM_uplift_literacy_in_rural_regions
		icon = GFX_focus_PER_university_of_isfahan
		x = -2
		y = 1
		cost = 6
		relative_position_id = PEM_a_unique_industrialisation_system
		prerequisite = { focus = PEM_a_unique_industrialisation_system }
		completion_reward = {
			add_ideas = PEM_uplift_literacy_in_rural_regions_idea
			add_research_slot = 1
		}
	}
	focus = {
		id = PEM_factory_smoke
		icon = GFX_SOV_move_industry_to_the_urals_ccp_2d_sov_compatibility
		x = 2
		y = 1
		cost = 10
		relative_position_id = PEM_a_unique_industrialisation_system
		prerequisite = { focus = PEM_a_unique_industrialisation_system }
		completion_reward = {
			random_owned_state = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_state = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_state = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = PEM_guns_for_everybody
		icon = GFX_focus_ETH_freedom_at_gunpoint
		x = 0
		y = 1
		cost = 8
		relative_position_id = PEM_factory_smoke
		prerequisite = { focus = PEM_factory_smoke }
		completion_reward = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 2000
				producer = PEM
			}
			266 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = PEM_noble_homes
		icon = GFX_focus_ARG_capitalize_the_beef_industry
		x = 0
		y = 1
		cost = 3
		relative_position_id = PEM_a_unique_industrialisation_system
		prerequisite = { focus = PEM_a_unique_industrialisation_system }
		completion_reward = {
			random_owned_state = {
				add_extra_state_shared_building_slots = 3
			}
			random_owned_state = {
				add_extra_state_shared_building_slots = 3
			}
			random_owned_state = {
				add_extra_state_shared_building_slots = 3
			}
			add_stability = 0.05
		}
	}
	focus = {
		id = PEM_mechanised_factories
		icon = GFX_focus_generic_military_industry
		x = -1
		y = 1
		cost = 5
		relative_position_id = PEM_noble_homes
		prerequisite = { focus = PEM_factory_smoke }
		prerequisite = { focus = PEM_noble_homes }
		completion_reward = {
			random_owned_state = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			266 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}


}