per_western_branch = {
	slot = 1 #upper left column
	generic = no #if a mission without generic = yes wants this slot then it overrides this.
	ai = yes
	potential = {
		OR = {
			tag = TAB
			tag = ARD
			tag = PER
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	
	conquest_of_azerbaijan = {
		icon = mission_non-western_cavalry_raid
		required_missions = {  } #None
		position = 1
		provinces_to_highlight = {
			OR = {
				area = azerbaijan_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			azerbaijan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "per_tribal_warriors"
				duration = 7300
			}
			kartli_kakheti_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			samtskhe_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			imereti_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			armenia_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	war_chest = {
		icon = mission_war_chest
		required_missions = { conquest_of_azerbaijan } #None
		position = 3
		trigger = { treasury = 250 }
		effect = {
			add_country_modifier = {
				name = "persia_persian_dominance"
				duration = 7300
			}
			qom_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
		reconquest_qom = {
		icon = persian_icon
		required_missions = { war_chest } #None
		position = 4
		provinces_to_highlight = {
			OR = {
				area = qom
				area = iraq_e_ajam_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			qom_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			iraq_e_ajam_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "persia_persian_dominance"
				duration = 3650
			}
			isfahan_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	develop_provinces = {
		icon = derafsh_kaviani
		required_missions = { reconquest_qom } #None
		position = 5
		trigger = {
			total_development = 150
		}
		effect = {
			add_country_modifier = {
				name = "persia_happy_populace"
				duration = 7300
			}
            add_years_of_income = 2
		}
	}
	
	consolidate_iran = {
		icon = mission_persian_soldiers
		required_missions = { develop_provinces }
		position = 6
		provinces_to_highlight = {
			OR = {
				area = azerbaijan_area
				area = iraq_e_ajam_area
				area = isfahan_area
				area = farsistan_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			azerbaijan_area = { #Must still have this
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			iraq_e_ajam_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			isfahan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			farsistan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			country_event = { id = flavor_per.1 }
			iraq_arabi_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			basra_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			mashhad_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			birjand_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			gonabad_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			herat_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			tooltip = {
				if = {
					limit = {
						NOT = { government_rank = 3 }
					}
					set_government_rank = 3
				}
				416 = { #Tabriz
					add_base_tax = 2
					add_base_production = 2
					add_base_manpower = 1
				}
				429 = { #Isfahan
					add_base_tax = 3
					add_base_production = 3
					add_base_manpower = 1
				}
				2215 = { #Qazvin
					add_base_tax = 2
					add_base_production = 2
					add_base_manpower = 1
				}
				2218 = { #Shiraz
					add_base_tax = 2
					add_base_production = 2
				}
				428 = { #Teheran
					add_base_tax = 1
					add_base_production = 1
					add_base_manpower = 1
				}
				433 = { #Yazd
					add_base_tax = 1
					add_base_production = 1
				}
				2213 = { #Qom
					add_base_tax = 1
					add_base_production = 1
					add_base_manpower = 1
				}
				2212 = { #Zanjan
					add_base_tax = 1
					add_base_production = 1
					add_base_manpower = 1
				}
			}
		}
	}
	
	persia_the_shahs_capital = {
		icon = mission_conquer_50_development
		required_missions = { consolidate_iran }
		position = 7
		provinces_to_highlight = {
			OR = {
				province_id = 4335
				province_id = 429
			}
			OR = {
				NOT = { owned_by = ROOT }
				AND = {
					NOT = { development = 35 }
					4335 = {
						NOT = { development = 35 }
					}
					429 = {
						NOT = { development = 35 }
					}
				}
			}
		}
		trigger = {
			owns = 4335
			owns = 429
			OR = {
				429 = {
					development = 35
				}
				4335 = {
					development = 35
				}
			}
		}
		effect = {
		hidden_effect = {
				429 = { change_province_name = Spahan rename_capital = Spahan }
				
				}
			country_event = { id = flavor_per.20 }
		}
	}
	
	conquest_of_arabian_iraq = {
		icon = ahura_mazda
		position = 9
		required_missions = { persia_the_shahs_capital }
		provinces_to_highlight = {
			OR = {
				area = luristan_area
				area = iraq_arabi_area
				area = basra_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			religion = zoroastrian
			luristan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			iraq_arabi_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			basra_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_prestige = 25
			bahrain_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_claim = ROOT }
				}
				add_claim = ROOT
			}
			al_jazira_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_claim = ROOT }
				}
				add_claim = ROOT
			}
			kurdistan_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_claim = ROOT }
				}
				add_claim = ROOT
			}
			country_event = { id = flavor_per.9 }
			tooltip = {
				2311 = {
					add_province_modifier = {
						name = "per_najaf"
						duration = 7300
					}
				}
			}
		}
	}
	
	persian_gulf = {
		icon = acheamenid
		required_missions = { conquest_of_arabian_iraq }
		position = 10
		provinces_to_highlight = {
			OR = {
				area = bahrain_area
				area = pirate_coast_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			bahrain_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			pirate_coast_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_prestige = 25
			add_country_modifier = {
				name = "per_reconquest"
				duration = 7300
				}
			country_event = { id = flavor_per.19 }
			mecca_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_claim = ROOT }
				}
				add_claim = ROOT
			}
			tihama_al_yemen_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_claim = ROOT }
				}
				add_claim = ROOT
			}
			upper_yemen_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_claim = ROOT }
				}
				add_claim = ROOT
			}
			lower_yemen_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_claim = ROOT }
				}
				add_claim = ROOT
			}
			medina_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_claim = ROOT }
				}
				add_claim = ROOT
			}
		}
	}    
	
	persian_arabia = {
		icon = persian_supremacy
		required_missions = { persian_gulf }
		position = 11
		provinces_to_highlight = {
			OR = {
				area = medina_area
				area = mecca_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
		religion = zoroastrian
			medina_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			mecca_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
		country_event = { id = flavor_per.18 }
		add_prestige = 25
		missionaries = 1
			add_country_modifier = {
				name = "per_destruction"
				duration = 7300
			}
			tooltip = {
			384 = { #medina
					add_base_tax = -2
					add_base_production = -2
					add_base_manpower = -2
			}
			385 = { #mecca
					add_base_tax = -3
					add_base_production = -3
					add_base_manpower = -3		
				}
			}		
		}
	}    
 }


per_east = {
	slot = 3 #upper right column
	generic = no #if a mission without generic = yes wants this slot then it overrides this.
	ai = yes
	potential = {
		OR = {
			tag = TAB
			tag = ARD
			tag = PER
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	
	persian_khorasan = {
		icon = mission_market_place_with_asian_traders
		position = 7
		required_missions = { 
		prepare_for_war
		consolidate_iran 
		}
		provinces_to_highlight = {
			OR = {
				area = mashhad_area
				area = birjand_area
				area = herat_area
				area = gonabad_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			mashhad_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			gonabad_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			birjand_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			herat_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			446 = {
				add_province_modifier = {
					name = "per_pearl_of_khorasan"
					duration = -1
				}
			}
			ghor_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			kabulistan_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			balkh_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	persian_afghanistan = {
		icon = mission_central_asian_city
		position = 8
		required_missions = { persian_khorasan }
		provinces_to_highlight = {
			OR = {
				area = ghor_area
				area = kabulistan_area
				area = balkh_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			ghor_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			kabulistan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			balkh_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "per_pashtun_warriors"
				duration = 7300
			}
			transcaspia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_claim = ROOT }
				}
				add_claim = ROOT
			}
			 merv_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_claim = ROOT }
				}
				add_claim = ROOT
			}
			transoxiana_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_claim = ROOT }
				}
				add_claim = ROOT
			}
			khiva_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_claim = ROOT }
				}
				add_claim = ROOT
			}
		}
	}
	persia_reconquest_of_parthia = {
		icon = persian_icon
		required_missions = { 
		persian_afghanistan
		}
		position = 8
		provinces_to_highlight = {
			OR = {
				area = transcaspia_area
				area = merv_area
				area = transoxiana_area
				area = khiva_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			OR = {
				NOT = { exists = PRT }
				overlord_of = PRT
			}
			transcaspia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			merv_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			khiva_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			transoxiana_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			if = {
				limit = {
					NOT = { exists = PRT }
				}
				country_event = { id = flavor_per.26 }
			}
			kalat_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			makran_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	reconquer_baluchistan = {
		icon = ahura_mazda
		required_missions = { 
		persia_reconquest_of_parthia
		}
		position = 9
		provinces_to_highlight = {
			OR = {
				area = kalat_area
				area = makran_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			makran_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			kalat_are = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
		add_country_modifier = {
				name = "per_ambition_completed"
				duration = -1
			}
		
		      add_adm_power = 50
			  add_dip_power = 50
			  add_mil_power = 50
			  

		}
	}
	
	develop_parthia = {
		icon = acheamenid
		required_missions = { 
		reconquer_baluchistan
		}
		position = 10
		provinces_to_highlight = {
			OR = {
				area = transcaspia_area
				area = merv_area
				area = transoxiana_area
				area = khiva_area
			}
		}
		trigger = {
		
				if = {
				limit = {
					NOT = { exists = PRT }
				}
				development_in_provinces = {
	            value = 25
	            area = transcaspia_area
                }
			development_in_provinces = {
	            value = 25
	            area = merv_area
                }
			development_in_provinces = {
	            value = 40
	            area = khiva_area
                }
			development_in_provinces = {
	            value = 42
	            area = transoxiana_area
                     }
			}	
		if = {
				limit = {
				exists = PRT 
				}	
			OR = {
				NOT = { exists = PRT }
				overlord_of = PRT
				
			PRT = {
			      total_development = 200
				}
		        }
		    }	
        }
	
		
		effect = {
		add_country_modifier = {
				name = "persia_reaping_benefits"
				duration = 7300
			}
		         add_adm_power = 100
				 
			multan_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			northern_sindh_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			sindh_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			sind_sagar_area  = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
		              }
	            }
        }

    restore_persian_hegemony = {
		icon = persian_supremacy
		required_missions = { 
		develop_parthia
		persia_develop_schytia
		persian_arabia
		per_into_egypt
		persia_urban_projects
		
		}
		position = 11
		provinces_to_highlight = {
			OR = {
				area = kalat_area
				area = makran_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			makran_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			kalat_are = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
		add_adm_power = 100
		add_mil_power = 100
		add_dip_power = 100
		add_stability = -1
		hidden_effect = {
				410 = { change_province_name = Ctesiphon rename_capital = Ctesiphon }
				409 = { change_province_name = Babylon rename_capital = Babylon }
				4171 = { change_province_name = Istakhr rename_capital = Istakhr }
				413 = { change_province_name = Awan rename_capital = Awan }
				2218 = { change_province_name = Persepolis rename_capital = Persepolis }
				4289 = { change_province_name = Susa rename_capital = Susa }
			    2312 = { change_province_name = Kashkar rename_capital = Kashkar }
				4288 = { change_province_name = Shat-Shapur rename_capital = Shat-Shapur }
				408 = { change_province_name = Vahman-Ardashir rename_capital = Ardashir }
				2217 = { change_province_name = Bishapur rename_capital = Bishapur }
				412 = { change_province_name = Rustak-Kavad rename_capital = Kavad }
				2310 = { change_province_name = Vuzurg-Shapur rename_capital = Vuzurg }
				2312 = { change_province_name = Borsip rename_capital = Borsip }
				406 = { change_province_name = Peroz-Shapur rename_capital = Peroz }
				415 = { change_province_name = Dastkart rename_capital = Dastkart }
				4294 = { change_province_name = Ectabana rename_capital = Ectabana }
				2309 = { change_province_name = Huniyag-Shapur rename_capital = Huniyag-Shapur }
				

		    }
			custom_tooltip = reestablishing_themes_names_tooltip
	    }
    }
	
	assimiliate_per = {
		icon = ahura_mazda
		required_missions = { 
		restore_persian_hegemony
		}
		position = 12

		trigger = {
			persia_region = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
				religion = zoroastrian
				culture_group = iranian
			}
			khorasan_region = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
				religion = zoroastrian
				culture_group = iranian
			}
		}
		effect = {
		
		add_adm_power = 100
		add_dip_power = 100
		add_mil_power = 100
		
		add_country_modifier = {
				name = Persia_assimiliated
				duration = 7300
			   }
		
	        }
         }
    }

per_administration = {
	slot = 4 #upper right column
	generic = no #if a mission without generic = yes wants this slot then it overrides this.
	ai = yes
	potential = {
		OR = {
			tag = TAB
			tag = ARD
			tag = PER
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	
	persian_reneissance = {
		icon = ahura_mazda
		position = 7
		required_missions = { 
		consolidate_iran 
		}
		trigger = {
		
		AND = {
					qom_area = { #Isfahan
					renaissance = 100
				}
					isfahan_area = { #Isfahan
					renaissance = 100
				}
			}
		}
		effect = {
		
		   country_event = { id = flavor_per.25 }
			
		}
	}
	persia_academy_of_gondishapur = {
		icon = mission_early_modern_university
		required_missions = { persian_reneissance }
		position = 8
		provinces_to_highlight = {
			province_id = 2217
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
				NOT = { development = 15 }
			}
		}
		trigger = {
			owns_core_province = 2217
			2217 = {
				development = 15
			}
		}
		effect = {
			2217 = {
				if = {
					limit = {
						NOT = { has_building = university }
					}
					add_building = university
				}
				add_province_modifier = { 
				name = "persia_academy_of_gondishapur_province_modifier"
				duration = -1
				}  
		    }
	    }    
    }
	
	persia_rebuild_universities = {
		icon = acheamenid
		required_missions = { persia_academy_of_gondishapur }
		position = 9
		trigger = {
			AND = {
			    development_in_provinces = {
	                 value = 50
	            area = qom_area
                }
				development_in_provinces = {
	                 value = 50
	            area = isfahan_area
                }
					isfahan_area = { #Isfahan
					type = all
					printing_press = 100
				}
				
			}
			
		}
		effect = {
				random_owned_province = {
				limit = {
					area = isfahan_area
					religion = zoroastrian
				}
					if = {
					limit = {
						NOT = { has_building = university }
					}
					add_building = university
					add_base_production = 1
					add_province_modifier = { 
				name = "persia_liberated_modifier"
				duration = -1
					
				   }
				
			    }
	        }    
				random_owned_province = {
				limit = {
					area = qom_area
					religion = zoroastrian
				}
					if = {
					limit = {
						NOT = { has_building = university }
					}
					add_building = university
					add_base_production = 1
					add_province_modifier = { 
				name = "persia_liberated_modifier"
				duration = -1
					
				   }
				
			    }
	        }   

			random_owned_province = {
				limit = {
					area = farsistan_area
					religion = zoroastrian
				}
					if = {
					limit = {
						NOT = { has_building = university }
					}
					add_building = university
					add_base_production = 1
					add_province_modifier = { 
				name = "persia_liberated_modifier"
				duration = -1
					
				   }
				
			    }
	        }
        }
    }
	
	persia_urban_projects = {
		icon = persian_icon
		required_missions = { persia_rebuild_universities }
		position = 11
		trigger = {
                   
			development_in_provinces = {
	         value = 500
	            region = persia_region
        }
			
		}
		effect = {
		add_country_modifier = {
				name = "per_urban_development"
				duration = 7300
			}
				all_owned_province = {
				limit = {
				NOT = { development = 20 }
					region = persia_region
					
				}
				add_base_manpower = 1
				add_base_tax = 1 
				add_base_production = 1
       	   }   
		} 
    }
}


per_into_europe = {
	slot = 5 #upper right column
	generic = no #if a mission without generic = yes wants this slot then it overrides this.
	ai = yes
	potential = {
		OR = {
			tag = TAB
			tag = ARD
			tag = PER
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	
	persia_patron_of_the_arts = {
		icon = mission_embassy_to_the_west
		required_missions = { }
		position = 3
		trigger = {
			advisor = artist
			religion_group = zoroastrian
			}
		effect = {
			if = {
				limit = {
					has_dlc = "Rule Britannia"
				}
				change_innovativeness = 3
			}
			else = {
				add_adm_power = 50
			}
			add_country_modifier = {
				name = persia_patron_of_the_arts_modifier
				duration = 7300
			}
		}
	 }

persia_splendid_court = {
		icon = mission_restore_faith_in_the_throne
		required_missions = { }
		position = 4
		trigger = {
			has_adm_advisor_3 = yes
			has_dip_advisor_3 = yes
			has_mil_advisor_3 = yes
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
				}
				custom_tooltip = PERSIA_SPLENDID_COURT_TT
			}
			else = {
				custom_tooltip = PERSIA_SPLENDID_COURT_TT_NO_DLC
			}
			add_country_modifier = {
				name = persia_splendid_court_modifier
				duration = 5475
			}
		}
	}
	
	persia_revamped_persian_administration = {
		icon = mission_scholar_officials
		required_missions = { persia_splendid_court }
		position = 5
		trigger = {
			total_development = 600
			NOT = { average_autonomy = 30 }
			NOT = { num_of_rebel_armies = 1 }
			NOT = { num_of_rebel_controlled_provinces = 1 }
		}
		effect = {
			add_country_modifier = {
				name = persia_revamped_persian_administration_modifier
				duration = 9125
			}
		}
	} 
	
	prepare_for_war = { #Localized as reclaim_maine_title and reclaim_maine_desc
		icon = mission_build_up_to_force_limit
		required_missions = {  } #None
		position = 6
		trigger = {
		qom_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			army_size_percentage = 0.8
		}
		effect = { #This is what you get after you finished your mission.
		
			add_country_modifier = {
				name = "persia_war_preparation"
				duration = 9125 #25 years
			}
		}
	}
	
	
	per_kurdistan = {
		icon = persian_icon
		position = 7
		required_missions = { 
		prepare_for_war
		consolidate_iran 
		}
		provinces_to_highlight = {
			OR = {
				area = kurdistan_area
				area = shahrizor_area
				area = al_jazira_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			kurdistan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			shahrizor_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			al_jazira_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
		       add_country_modifier = {
				name = "per_mountain_warriors"
				duration = 7300
			}
			2309 = {
					change_culture = kurdish
				}
			2314 = {
					change_culture = kurdish
			}
			407 = {
					change_culture = kurdish
				}
			
			dulkadir_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			erzurum_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			aleppo_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	per_into_anatolia = {
		icon = persian_icon
		position = 8
		required_missions = { per_kurdistan }
		provinces_to_highlight = {
			OR = {
				area = aleppo_area
				area = erzurum_area
				area = dulkadir_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			aleppo_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			erzurum_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			dulkadir_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
          		add_prestige = 25
				country_event = { id = flavor_per.22 }
			
			rum_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			karadeniz_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			ankara_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			çukurova_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			karaman_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	per_inner_anatolia = {
		icon = derafsh_kaviani
		position = 9
		required_missions = { per_into_anatolia }
		provinces_to_highlight = {
			OR = {
				area = karaman_area
				area = cukurova_area
				area = ankara_area
				area = kastamonu_area 
				area = rum_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			karaman_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			cukurova_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			ankara_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			kastamonu_area  = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			rum_area  = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
          		add_prestige = 25
				country_event = { id = flavor_per.23 }
			
			syria_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			syrian_desert_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			palestine_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			transjordan_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	per_into_egypt = {
		icon = persian_supremacy
		position = 11
		required_missions = { per_inner_anatolia }
		provinces_to_highlight = {
			OR = {
				area = syria_area
				area = syrian_desert
				area = palestine_area
				area = kastamonu_area 
				area = transjordan_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			syria_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			syrian_desert_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			palestine_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			transjordan_area  = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
          		add_prestige = 10
			
			bahari_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			delta_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			vostani_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	per_africa = {
		icon = mission_establish_high_seas_navy
		position = 13
		required_missions = { per_into_egypt }
		provinces_to_highlight = {
			OR = {
				area = bahari_area
				area = delta_area
				area = vostani_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			vostani_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			delta_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			bahari_area  = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
                  colonists = 1
				   add_country_modifier = {
				name = "per_new_frontiers"
				duration = 7300
		}
	}
  }
}

per_north = {
	slot = 2 #upper right column
	generic = no #if a mission without generic = yes wants this slot then it overrides this.
	ai = yes
	potential = {
		OR = {
			tag = TAB
			tag = ARD
			tag = PER
		}
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	
	persia_tame_the_north = {
		icon = mission_unite_home_region
		required_missions = { 
		prepare_for_war
		consolidate_iran 
		}
		position = 7
		provinces_to_highlight = {
			OR = {
				area = kartli_kakheti_area
				area = samtskhe_area
				area = imereti_area
				area = armenia_area
				area = erzurum_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			OR = {
				NOT = { exists = ARM }
				overlord_of = ARM
			}
			2305 = {
					country_or_non_sovereign_subject_holds = ROOT
				}
			331 = {
					country_or_non_sovereign_subject_holds = ROOT
				} 	
			kartli_kakheti_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			armenia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			samtskhe_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			imereti_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			if = {
				limit = {
					NOT = { exists = ARM }
				}
				country_event = { id = flavor_per.21 }
			}
			shahrizor_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			dagestan_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	persia_further_north = {
		icon = mission_unite_home_region
		required_missions = { persia_tame_the_north }
		position = 8
		provinces_to_highlight = {
			OR = {
				area = dagestan_area
				area = circassia_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			OR = {
				NOT = { exists = SCH }
				overlord_of = SCH
			}
			circassia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			dagestan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
		add_prestige = 15 
			astrakhan_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			azov_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
			crimea_area = {
				limit = {
					NOT = { owned_by = ROOT }
					NOT = { is_core = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	persia_schytian_frontier = {
		icon = ahura_mazda
		required_missions = { 
		persia_further_north
		conquest_of_arabian_iraq
		}
		position = 10
		provinces_to_highlight = {
			OR = {
				area = azov_area
				area = crimea_area
				area = astrakhan_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			OR = {
				NOT = { exists = SCH }
				overlord_of = SCH
			}
			azov_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			crimea_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			astrakhan_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
		add_manpower = 10
		if = {
				limit = {
					NOT = { exists = SCH }
				}
				country_event = { id = flavor_per.24 }
		
			}
		}
	}
	
	persia_develop_schytia = {
		icon = mission_conquer_50_development
		required_missions = { persia_schytian_frontier }
		position = 11
		trigger = {
		if = {
				limit = {
					NOT = { exists = SCH }
				}
				development_in_provinces = {
	            value = 25
	            area = azov_area
                }
			development_in_provinces = {
	            value = 25
	            area = crimea_area
                }
			development_in_provinces = {
	            value = 25
	            area = astrakhan_area
                }
			}	
		if = {
				limit = {
				exists = SCH 
				}
					
			OR = {
				NOT = { exists = SCH }
				overlord_of = SCH
			}
			SCH = {
			      total_development = 200
				}
			}	
		}
		
		effect = {
		add_years_of_income = 2
		add_manpower = 5
				add_country_modifier = {
				name = "persia_benevolent_overlord"
				duration = -1
			    }
			}
		}
	}

