KoK_ARB_hedjaz_najd_bedouin_1 = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "King of Kings"
	}
	potential = {
		ARB_hedjaz_najd_bedouin_potential = yes
		has_dlc = "King of Kings"
		NOT = { map_setup = map_setup_random }		
	}
	has_country_shield = yes
	
	ARB_assemble_a_shura = {
		icon = mission_court_education
		required_missions = { }
		position = 1
		provinces_to_highlight = {
		}
		trigger = {
			has_adm_advisor = yes
			has_dip_advisor = yes
			has_mil_advisor = yes
		}
		effect = {
			if = {
				limit = {
					religion_group = muslim
				}
				custom_tooltip = ARB_10_piety_for_adm_advisor
				hidden_effect = {
					for_every_level_of_advisor_do = {
						type = adm
						effect = "
							if = {
								limit = {
									piety = 0
								}
								add_piety = 0.1
							}
							else = {
								add_piety = -0.1
							}
						"
					}
				}
			}
			else = {
				custom_tooltip = ARB_10_gov_reform_for_adm_advisor
				hidden_effect = {
					for_every_level_of_advisor_do = {
						type = adm
						effect = "
							change_government_reform_progress = 10
						"
					}
				}
			}
			
			if = {
				limit = {
					has_government_mechanic = tribal_federation_mechanic 
				}
				custom_tooltip = ARB_10_tribal_allegiance_for_dip_advisor
				hidden_effect = {
					for_every_level_of_advisor_do = {
						type = dip
						effect = "
							add_government_power = {
								mechanic_type = tribal_federation_mechanic
								power_type = tribal_allegiance
								value = 10
							}
						"
					}
				}
			}
			else = {
				custom_tooltip = ARB_1_corruption_for_dip_advisor
				hidden_effect = {
					for_every_level_of_advisor_do = {
						type = dip
						effect = "
							add_corruption = -1
						"
					}
				}
			}
			
			custom_tooltip = ARB_5_army_trad_for_mil_advisor
			hidden_effect = {
				for_every_level_of_advisor_do = {
					type = mil
					effect = "
						add_army_tradition_or_mil_power = { amount = 5 }
					"
				}
			}
		}
	}
	
	ARB_jerusalem = {
		icon = jerusalem
		required_missions = { ARB_custodians_of_the_holy_cities }
		position = 4
		provinces_to_highlight = {
			OR = {
				area = trans_jordan_area
				area = palestine_area
				area = tabuk_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			379 = { country_or_non_sovereign_subject_holds = ROOT }
			
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = trans_jordan_area
					area = palestine_area
					area = tabuk_area
				}
				value = 5
			}
		}
		effect = {
			give_claims = { region = egypt_region }
			
			custom_tooltip = " "
			
			country_event_with_option_insight = {
				id = flavor_ARB.3
				option_1 = "
					add_country_modifier = {
						name = ARB_dhimmi_self_government
						duration = 9125
					}
					add_dip_power = 50
				"
				option_2 = "
					if = {
						limit = {
							NOT = {
								379 = { religion = ROOT }
							}
						}
						379 = { change_religion = ROOT }
						custom_tooltip = \" \"
					}
					add_years_of_income = 1
				"
			}
		}
	}
	
	ARB_mamluks = {
		icon = mission_egyptian_mamluk_soldier
		required_missions = { ARB_jerusalem }
		position = 5
		provinces_to_highlight = {
			region = egypt_region
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			358 = { country_or_non_sovereign_subject_holds = ROOT }
			361 = { country_or_non_sovereign_subject_holds = ROOT }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = egypt_region
				value = 15
			}
		}
		effect = {
			give_claims = { area = tripolitania_area }
			give_claims = { area = tunisia_area }
			give_claims = { area = djerba_area }
			give_claims = { area = fezzan_area }
			
			custom_tooltip = " "
			
			if = {
				limit = {
					has_dlc = "Cradle of Civilization"
					religious_school = {
						group = muslim
						school = hanbali_school
					}
				}
				country_event_with_option_insight = {
					id = flavor_ARB.4
					option_1 = "
						add_treasury = -1000
						if = {
							limit = {
								has_dlc = \"Leviathan\"
							}
							361 = {
								set_great_project_tier_1 = {
									type = al_azhar_university
								}
							}
							custom_tooltip = \" \"
						}
						else = {
							361 = {
								add_province_modifier = {
									name = ARB_al_azhar_university
									duration = -1
								}
							}
						}
						361 = { add_or_upgrade_university_building = yes }
					"
					option_2 = "
						if = {
							limit = { has_estate = estate_church }
							add_estate_loyalty = {
								estate = estate_church
								loyalty = 25
							}
							custom_tooltip = \" \"
						}
						
						add_country_modifier = {
							name = ARB_hanbali_scholars
							duration = 10950
						}
					"
					option_3 = "
						add_prestige_or_monarch_power = { amount = 10 }
					"
				}
			}
			else = {
				country_event_with_option_insight = {
					id = flavor_ARB.4
					option_1 = "
						add_treasury = -1000
						if = {
							limit = {
								has_dlc = \"Leviathan\"
							}
							361 = {
								set_great_project_tier_1 = {
									type = al_azhar_university
								}
							}
							custom_tooltip = \" \"
						}
						else = {
							361 = {
								add_province_modifier = {
									name = ARB_al_azhar_university
									duration = -1
								}
							}
						}
						add_or_upgrade_university_building = yes
					"
					option_2 = "
						add_prestige_or_monarch_power = { amount = 10 }
					"
				}
			}
		}
	}
		
	ARB_protectors_of_the_holy_cities = {
		icon = mission_into_persia_1
		required_missions = { }
		position = 6
		provinces_to_highlight = {
			OR = {
				province_id = 384
				province_id = 385
			}
			OR  = {
				NOT = { owned_by = ROOT }
				local_autonomy = 10
			}
		}
		trigger = {
			OR = {
				theologian = 1 
				inquisitor = 1
				has_adm_advisor_2 = yes
			}
			
			384 = {
				owned_by = ROOT 
				NOT = { local_autonomy = 10 }
			}
			385 = {
				owned_by = ROOT 
				NOT = { local_autonomy = 10 }
			}
		}
		effect = {
			add_country_modifier = {
				name = ARB_stewards_of_the_two_cities
				duration = 10950
			}
			
			384 = {
				if = {
					limit = {
						has_dlc = "Mandate of Heaven"
					}
					add_prosperity = 50
				}
				add_province_modifier = {
					name = ARB_well_managed
					duration = -1
				}
			}
			385 = {
				if = {
					limit = {
						has_dlc = "Mandate of Heaven"
					}
					add_prosperity = 50
				}
				add_province_modifier = {
					name = ARB_well_managed
					duration = -1
				}
			}
		}
	}
	
	ARB_safeguard_pilgrim_routes = {
		icon = mission_traverse_the_sahara
		required_missions = { ARB_protectors_of_the_holy_cities }
		position = 7
		provinces_to_highlight = {
			OR = {
				province_id = 384
				province_id = 385
			}
			OR  = {
				NOT = { owned_by = ROOT }
				NOT = { base_tax = 5 }
				NOT = { has_tax_building_trigger = yes }
			}
		}
		trigger = {
			384 = {
				owned_by = ROOT 
				base_tax = 5
				has_tax_building_trigger = yes
			}
			385 = {
				owned_by = ROOT 
				base_tax = 5
				has_tax_building_trigger = yes
			}
		}
		effect = {
			384 = {
				add_or_upgrade_tax_building = yes 
				
				add_province_modifier = {
					name = ARB_increased_pilgrim_traction
					duration = -1
				}
			}
			
			385 = {
				add_or_upgrade_tax_building = yes 
				
				add_province_modifier = {
					name = ARB_increased_pilgrim_traction
					duration = -1
				}
			}
		}
	}
	
	ARB_spirit_of_hajj = {
		icon = mission_into_arabia
		required_missions = { ARB_safeguard_pilgrim_routes ARB_expand_jeddah }
		position = 8
		provinces_to_highlight = {
			province_id = 385
			if = {
				limit = {
					has_dlc = "Leviathan"
					ROOT = {
						religion_group = muslim 
					}
				}
				OR = {
					NOT = { 
						has_great_project = {
							type = kaaba 
							tier = 3 
						}
					}
					NOT = { owned_by = ROOT }
				}
			}
			else = {
				OR = {
					NOT = { development = 30 }
					NOT = { owned_by = ROOT }
					NOT = { num_of_buildings_in_province = 5 }
				}
			}
		}
		trigger = {
			if = {
				limit = {
					has_dlc = "Leviathan"
					ROOT = {
						religion_group = muslim 
					}
				}
				385 = {
					has_great_project = {
						type = kaaba 
						tier = 3 
					}
				}
			}
			else = {
				385 = {
					development = 30
					owned_by = ROOT
					num_of_buildings_in_province = 5 
				}
			}
			
			if = {
				limit = {
					religion_group = muslim
				}
				OR = {
					piety = 0.9
					NOT = { piety = -0.89 }
				}
			}
			else = {
				has_adm_advisor_3 = yes
				total_base_tax = 100
			}
		}
		effect = {
			add_stability_or_adm_power = yes
			
			custom_tooltip = " "
			
			if = {
				limit = {
					religion_group = muslim
				}
				add_country_modifier = {
					name = ARB_guarantors_of_peace
					duration = -1
				}
			}
			else = {
				add_country_modifier = {
					name = ARB_guarantors_of_peace_not_muslim
					duration = -1
				}
			}
			
			if = {
				limit = {
					has_estate = estate_church
				}
				complex_dynamic_effect = {
					first_custom_tooltip = ARB_if_at_least_60_church_loyalty
					first_limit = "
						estate_loyalty = {
							estate = estate_church
							loyalty = 60
						}
					"
					first_effect = "
						add_country_modifier = {
							name = ARB_support_of_the_ulema
							duration = 7300
						}
					"
				}
			}	
		}
	}
}

KoK_ARB_hedjaz_najd_bedouin_2 = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "King of Kings"
	}
	potential = {
		ARB_hedjaz_najd_bedouin_potential = yes
		has_dlc = "King of Kings"
		NOT = { map_setup = map_setup_random }		
	}
	has_country_shield = yes
	
	ARB_traditional_interpretation = {
		icon = mission_reclaim_morocco
		required_missions = { ARB_assemble_a_shura }
		position = 2
		provinces_to_highlight = {
		}
		trigger = {
			if = {
				limit = {
					religion_group = muslim
				}
				if = {
					limit = {
						has_dlc = "Cradle of Civilization"
						religious_school = {
							group = muslim
							school = hanbali_school
						}
					}
					piety = 0.9
				}
				else = {
					OR = {
						piety = 0.9
						NOT = { piety = -0.89 }
					}
				}
			}
			else = {
				stability = 2
				religious_unity = 0.75
				if = {
					limit = {
						has_estate = estate_church
					}
					estate_loyalty = {
						estate = estate_church
						loyalty = 60
					}
				}
			}
		}
		effect = {
			add_stability_or_adm_power = yes
		
			custom_tooltip = " "
			
			if = {
				limit = {
					religion_group = muslim
				}
				if = {
					limit = {
						has_dlc = "Cradle of Civilization"
						religious_school = {
							group = muslim
							school = hanbali_school
						}
					}
					set_country_flag = ARB_buff_enforce_religious_unity_flag
					custom_tooltip = ARB_buff_enforce_religious_unity
					hidden_effect = {
						if = {
							limit = { has_ruler_modifier = muslim_enforced_religion }
							remove_country_modifier = muslim_enforced_religion
							add_ruler_modifier = { name = muslim_enforced_religion duration = -1 }
						}
					}
					
					custom_tooltip = " "
					
					set_country_flag = ARB_may_fire_wahabism
					country_event_with_effect_insight = {
						id = muslim_school_events.22 
						effect = "
							custom_tooltip = muslim_school_events.22.a.tt
		
							custom_tooltip = ABR_hanbali_countries_now_buff_religious_culture
						"
					}
				}
				else = {
					simple_dynamic_effect = {
						first_custom_tooltip = ARB_if_legalism
						first_limit = "
							piety = 0.9
						"
						first_effect = "
							set_country_flag = ARB_buff_enforce_religious_unity_flag
							custom_tooltip = ARB_buff_enforce_religious_unity
							hidden_effect = {
								if = {
									limit = { has_ruler_modifier = muslim_enforced_religion }
									remove_country_modifier = muslim_enforced_religion
									add_ruler_modifier = { name = muslim_enforced_religion duration = -1 }
								}
							}
						"
						second_custom_tooltip = ARB_if_mysticism
						second_limit = "
							NOT = { piety = -0.89 }
						"
						second_effect = "
							if = {
								limit = {
									has_dlc = \"Golden Century\"
								}
								custom_tooltip = ARB_grant_access_to_muslim_holy_orders
								set_country_flag = ARB_grant_access_to_muslim_holy_orders_flag
							}
							else = {
								add_country_modifier = {
									name = ARB_welcoming_the_sufis
									duration = -1
								}
							}
						"
					}
				}
			}
			
			else = {
				add_country_modifier = {
					name = ARB_following_teachings_of_old #fallback
					duration = -1
				}
			}
		}
	}
	
	ARB_custodians_of_the_holy_cities = {
		icon = mission_tear_down_spanish_strongholds
		required_missions = { ARB_tribal_feuds }
		position = 3
		provinces_to_highlight = {
			OR = {
				province_id = 384
				province_id = 385
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			384 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			385 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			#Yemen
			yemen_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			upper_yemen_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			hadramut_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			mahra_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			asir_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			tihama_al_yemen_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			#syria and palestine
			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
			}
			trans_jordan_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
			}
			#top egypt
			give_claims = { area = delta_area }
			give_claims = { area = bahari_area }
			give_claims = { area = gulf_of_arabia_area }
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = ARB_holders_of_the_two_cities
				duration = 10950
			}
			
			if = {
				limit = {
					piety = 0
				}
				add_piety = 0.1
			}
			else = {
				add_piety = -0.1
			}
		}
	}
	
	ARB_conquer_al_sham = {
		icon = mission_levantine_restoration
		required_missions = { ARB_jerusalem ARB_custodians_of_the_holy_cities }
		position = 5
		provinces_to_highlight = {
			OR = {
				area = syria_area
				area = syrian_desert_area
				area = aleppo_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = syria_area
					area = syrian_desert_area
					area = aleppo_area
				}
				value = 8
			}
			382 = { country_or_non_sovereign_subject_holds = ROOT }
			377 = { country_or_non_sovereign_subject_holds = ROOT }
		}
		effect = {
			382 = {
				add_province_modifier = {
					name = ARB_northern_citadel
					duration = -1
				}
			}
			377 = {
				add_province_modifier = {
					name = ARB_northern_citadel
					duration = -1
				}
			}
			
			custom_tooltip = " "
			
			create_general_with_pips = {
				tradition = 80
				add_shock = 2
			}
			
			custom_tooltip = " "
			
			give_claims = { area = north_kurdistan_area }
			give_claims = { area = shahrizor_area }
			give_claims = { area = tabriz_area }
		}
	}
	
	ARB_expand_jeddah = {
		icon = mission_arabian_sea_trade
		required_missions = { ARB_protectors_of_the_holy_cities }
		position = 7
		provinces_to_highlight = {
			province_id = 2331
			OR = {
				NOT = { owned_by = ROOT }
				local_autonomy = 10
				NOT = { has_trade_building_trigger = yes }
				AND = {
					NOT = { has_dock_building_trigger = yes }
					NOT = { has_shipyard_building_trigger = yes }
				}
			}
		}
		trigger = {
			2331 = {
				OR = {
					has_dock_building_trigger = yes
					has_shipyard_building_trigger = yes
				}
				has_trade_building_trigger = yes
				owned_by = ROOT
				NOT = { local_autonomy = 10 }
			}
		}
		effect = {
			2331 = {
				add_or_upgrade_trade_building = yes
				
				custom_tooltip = " "
				
				add_base_tax = 1
				add_base_production = 1
				add_base_manpower = 1

				custom_tooltip = " "

				add_province_modifier = {
					name = ARB_port_in_jeddah
					duration = -1
				}
			}
						
			384 = {
				add_province_modifier = {
					name = ARB_naval_routes
					duration = -1
				}
			}
			
			385 = {
				add_province_modifier = {
					name = ARB_naval_routes
					duration = -1
				}
			}
		}
	}
}

KoK_ARB_hedjaz_najd_bedouin_3 = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "King of Kings"
	}
	potential = {
		ARB_hedjaz_najd_bedouin_potential = yes
		has_dlc = "King of Kings"
		NOT = { map_setup = map_setup_random }		
	}
	has_country_shield = yes
	
	ARB_request_new_bayah = {
		icon = mission_protect_granada
		required_missions = { }
		position = 1
		provinces_to_highlight = {
		}
		trigger = {
			num_of_generals = 1
			army_size_percentage = 0.9
		}
		effect = {
			if = {
				limit = {
					has_government_mechanic = tribal_federation_mechanic
				}
				add_government_power = {
					mechanic_type = tribal_federation_mechanic
					power_type = tribal_allegiance
					value = 10
				}
			}
			else = {
				add_mil_power = 50
			}
			
			custom_tooltip = " "
			
			custom_tooltip = ARB_get_permanent_claims_on_all_areas_bordering_us
			hidden_effect = {
				capital_scope = {
					area = {
						every_neighbor_province = {
							area = {
								add_permanent_claim = ROOT
							}
						}
					}
				}
			}
		}
	}
	
	ARB_tribal_feuds = {
		icon = mission_turning_the_tables
		required_missions = { ARB_request_new_bayah }
		position = 2
		provinces_to_highlight = {
			OR = {
				is_permanent_claim = ROOT
				is_claim = ROOT 
				is_core = ROOT
			}
			NOT = { owned_by = ROOT }
		}
		trigger = {
			OR = {
				grown_by_development = 20
				grown_by_states = 2
			}
		}
		effect = {
			add_country_modifier = {
				name = ARB_social_cohesion
				duration = 7300
			}
			
			yamamah_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			qasim_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			nafud_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			mecca_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			medina_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			tabuk_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	ARB_yemen = {
		icon = mission_develop_alhambra
		required_missions = { ARB_custodians_of_the_holy_cities ARB_rulers_of_the_highlands }
		position = 4
		provinces_to_highlight = {
			OR = {
				area = yemen_area
				area = upper_yemen_area
				area = hadramut_area
				area = mahra_area
				area = asir_area
				area = tihama_al_yemen_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = yemen_area
					area = upper_yemen_area
					area = hadramut_area
					area = mahra_area
					area = asir_area
					area = tihama_al_yemen_area
				}
				value = 14
			}
		}
		effect = {
			1099 = {
				add_trade_modifier = {
					who = ROOT
					duration = -1
					power = 50
					key = ARB_holding_yemen
				}
			}
			
			custom_tooltip = " "
			
			custom_tooltip = ARB_every_owned_province_in_yemen
			tooltip = {
				add_province_modifier = {
					name = ARB_felicitous_arabia
					duration = 9125
				}
			}
			hidden_effect = {
				every_owned_province = {
					limit = {
						OR = {
							area = yemen_area
							area = upper_yemen_area
							area = hadramut_area
							area = mahra_area
							area = asir_area
							area = tihama_al_yemen_area
						}
					}
					add_province_modifier = {
						name = ARB_felicitous_arabia
						duration = 10950
					}
				}
			}
		}
	}
	
	ARB_unite_arabia = {
		icon = arb_unite_arabia
		required_missions = { ARB_yemen ARB_wealth_and_power ARB_abbasid_legacy ARB_conquer_al_sham ARB_mamluks }
		position = 6
		provinces_to_highlight = {
			OR = {
				region = arabia_region
				region = egypt_region
				region = mashriq_region
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					region = arabia_region
					region = egypt_region
					region = mashriq_region
				}
				value = 90
			}
		}
		effect = {
			custom_tooltip = ARB_no_more_tech_req
			set_country_flag = free_arabia_forming_flag
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = ARB_claiming_title_of_caliph
				duration = -1
			}
			
			custom_tooltip = ARB_upgrade_adopt_the_title_decision
			hidden_effect = {
				if = {
					limit = {
						has_ruler_modifier = khalifah
					}
					remove_country_modifier = khalifah
					add_ruler_modifier = {
						name = "ARB_khalifah_upgraded"
						duration = -1
					}
				}
			}
		}
	}
}

KoK_ARB_hedjaz_najd_bedouin_4 = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "King of Kings"
	}
	potential = {
		ARB_hedjaz_najd_bedouin_potential = yes
		has_dlc = "King of Kings"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	ARB_the_harsh_desert = {
		icon = mission_conquer_air
		required_missions = { ARB_befriend_local_amirs }
		position = 2
		provinces_to_highlight = {
			owned_by = ROOT
			has_climate = arid
		}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = ARB_has_developed_arid_provinces
				check_variable = {
					which = num_of_times_developed_arid
					value = 20
				}
			}
		}
		effect = {
			custom_tooltip = ARB_unlock_oasis_development
			set_country_flag = ARB_unlock_oasis_development_flag
			
			custom_tooltip = " "
			
			change_estate_land_share = {
				estate = all
				share = -5
			}
		}
	}
	
	ARB_rulers_of_the_highlands = {
		icon = mission_cope_with_refugees
		required_missions = { ARB_tribal_feuds }
		position = 3
		provinces_to_highlight = {
			OR = {
				area = nafud_area
				area = yamamah_area
				area = qasim_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = nafud_area
					area = yamamah_area
					area = qasim_area
				}
				value = 8
			}
		}
		effect = {
			if = {
				limit = {
					has_government_mechanic = tribal_federation_mechanic
				}
				add_government_power = {
					mechanic_type = tribal_federation_mechanic
					power_type = tribal_allegiance
					value = 30
				}
				
				custom_tooltip = " "
			}
			
			add_country_modifier = {
				name = ARB_allegiance_of_the_oases
				duration = 10950
			}
			
			bahrain_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			pirate_coast_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			oman_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			mascat_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			dhofar_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			mogostan_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
	}
	
	ARB_wealth_and_power = {
		icon = mission_dharma_mission_arabian_trade
		required_missions = { ARB_rulers_of_the_highlands ARB_al_haasa }
		position = 5
		provinces_to_highlight = {
			OR = {
				area = mascat_area
				area = dhofar_area
				area = mogostan_area
				area = oman_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = mascat_area
					area = dhofar_area
					area = mogostan_area #exclude from the desired value, ideally
					area = oman_area
				}
				value = 8
			}
		}
		effect = {
			add_years_of_income = 1
			
			custom_tooltip = " "
			
			add_mercantilism = 3
			
			custom_tooltip = " "
			
			define_advisor = {
				type = trader
				skill = 2
				culture = gulf_arabic
				religion = ROOT
				cost_multiplier = 0.5
			}
		}
	}
	
	ARB_protect_caravans = {
		icon = mission_conquer_timbuktu
		required_missions = { ARB_city_among_the_dunes }
		position = 7
		provinces_to_highlight = {
		}
		trigger = {
			stability = 2
			OR = {
				any_owned_province = {
					has_fort_building_trigger = yes
				}
				stability = 3
			}
		}
		effect = {
			add_country_modifier = {
				name = ABR_safety_for_the_caravans
				duration = 9125
			}
			
			home_trade_node_effect_scope = {
				add_trade_modifier = {
					who = ROOT
					duration = -1
					power = 50
					key = ABR_caravans
				}
			}
		}
	}
}

KoK_ARB_hedjaz_najd_bedouin_5 = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "King of Kings"
	}
	potential = {
		ARB_hedjaz_najd_bedouin_potential = yes
		has_dlc = "King of Kings"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	ARB_befriend_local_amirs = {
		icon = mission_friends_or_enemies
		required_missions = { }
		position = 1
		provinces_to_highlight = {
		}
		trigger = {
			if = {
				limit = {
					has_government_mechanic = tribal_federation_mechanic
				}
				has_government_power = {
					mechanic_type = tribal_federation_mechanic
					power_type = tribal_allegiance
					value = 35
				}
			}
			else = {
				NOT = { unrest = -2 }
			}
			
			if = { 
				limit = {
					has_estate = estate_nobles
				}
				estate_loyalty = {
					estate = estate_nobles 
					loyalty = 60
				}
			}
			has_dip_advisor = yes
		}
		effect = {
			add_yearly_manpower = 1
			
			custom_tooltip = " "
			
			if = {
				limit = {
					has_government_mechanic = tribal_federation_mechanic
				}
				country_event_with_option_insight = {
					id = flavor_ARB.1
					option_1 = "
						custom_tooltip = ARB_upgrade_enlist_general
						
						custom_tooltip = \" \"
						
						add_adm_power = 50
					"
					option_2 = "
						custom_tooltip = ARB_upgrade_train_horsemanship
						
						custom_tooltip = \" \"
						
						add_dip_power = 50
					"
					option_3 = "
						custom_tooltip = ARB_upgrade_conscript_from_the_tribes
						
						custom_tooltip = \" \"
						
						add_mil_power = 50
					"
				}
			}
			else = {
				add_country_modifier = {
					name = ARB_support_of_local_sheikhs
					duration = -1
				}
			}
			
			give_claims = { area = khuzestan_area }
			give_claims = { area = shahrizor_area }
		}
	}
	
	ARB_al_haasa = {
		icon = mission_conquer_tunisia
		required_missions = { ARB_rulers_of_the_highlands }
		position = 4
		provinces_to_highlight = {
			OR = {
				AND = {
					OR = {
						area = bahrain_area
						area = pirate_coast_area
					}
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
				}
				AND = {
					province_id = 394
					NOT = { owned_by = root }
				}
			}
		}
		trigger = {
			owns = 394
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = bahrain_area
					area = pirate_coast_area
				}
				value = 5
			}
		}
		effect = {
			if = {
				limit = {
					has_government_mechanic = tribal_federation_mechanic
				}
				add_government_power = {
					mechanic_type = tribal_federation_mechanic
					power_type = tribal_allegiance
					value = 30
				}
				
				custom_tooltip = " "
			}
			
			add_army_tradition_or_mil_power = { amount = 10 }
			
			custom_tooltip = " "
			
			394 = {
				add_unit_construction = {
					type = light_ship
					amount = 2
					speed = 0.1
					cost = 0
				}
				add_unit_construction = {
					type = transport
					amount = 3
					speed = 0.1
					cost = 0
				}
				add_unit_construction = {
					type = galley
					amount = 2
					speed = 0.1
					cost = 0
				}
			}
			
			custom_tooltip = " "
			
			al_jazira_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			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
			}
		}
	}
	
	ARB_abbasid_legacy = {
		icon = found_the_vatican_library
		required_missions = { ARB_al_haasa }
		position = 5
		provinces_to_highlight = {
			OR = {
				area = basra_area
				area = iraq_arabi_area
				area = al_jazira_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = basra_area
					area = iraq_arabi_area
					area = al_jazira_area
				}
				value = 11
			}
			410 = { country_or_non_sovereign_subject_holds = ROOT } #Baghdad
		}
		effect = {
			country_event_with_option_insight = {
				id = flavor_ARB.2
				option_1 = "
					define_advisor = {
						type = natural_scientist
						skill = 2
						culture = al_iraqiya_arabic
						religion = ROOT
						cost_multiplier = 0.5
					}
					custom_tooltip = \" \"
					if = {
						limit = { has_dlc = \"Rule Britannia\" }
						change_innovativeness = 3
					}
					else = {
						add_adm_power = 25
						add_dip_power = 25
						add_mil_power = 25
					}
				"
				option_2 = "
					define_advisor = {
						type = theologian
						skill = 2
						culture = al_iraqiya_arabic
						religion = ROOT
						cost_multiplier = 0.5
					}
					
					custom_tooltip = \" \"
					
					add_adm_power = 75
				"
				option_3 = "
					define_advisor = {
						type = philosopher
						skill = 2
						culture = al_iraqiya_arabic
						religion = ROOT
						cost_multiplier = 0.25
					}
					
					custom_tooltip = \" \"
					
					add_dip_power = 75
				"
			}
		}
	}
	
	ARB_city_among_the_dunes = {
		icon = mission_conquer_algiers
		required_missions = { }
		position = 6
		provinces_to_highlight = {
			province_id = 392
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { development = 10 }
			}
		}
		trigger = {
			392 = {
				owned_by = ROOT
				development = 10
			}
		}
		effect = {
			392 = {
				change_province_name = "Diriyah"
				
				custom_tooltip = " "
				
				add_province_modifier = {
					name = ARB_oasis_city_on_stop_to_mecca
					duration = -1
				}
			}
			
			custom_tooltip = " "
			
			add_years_of_income = 1
		}
	}
	
	ARB_madrassa = {
		icon = mission_gawans_madrasar
		required_missions = { ARB_city_among_the_dunes }
		position = 7
		provinces_to_highlight = {
			owned_by = ROOT
			development = 15
			NOT = { has_tax_building_trigger = yes }
		}
		trigger = {
			any_owned_province = {
				has_tax_building_trigger = yes
				development = 15
			}
			
			if = {
				limit = {
					has_estate = estate_church
				}
				estate_loyalty = {
					estate = estate_church
					loyalty = 60
				}
			}
		}
		effect = {
			custom_tooltip = ARB_most_developed_province
			tooltip = {
				capital_scope = { add_or_upgrade_tax_building = yes }
				
				custom_tooltip = " "
				
				capital_scope = { #capital_scope because it doesn't show up otherwise
					add_province_triggered_modifier = ARB_local_madrasa
				}
			}
			hidden_effect = {
				country_event = { id = flavor_ARB.9 }
			}
		}
	}
	
	ARB_riyadh = {
		icon = arb_riyadh
		required_missions = { ARB_madrassa ARB_protect_caravans }
		position = 8
		provinces_to_highlight = {
			province_id = 392
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { development = 25 }
				NOT = { num_of_buildings_in_province = 5 }
			}
		}
		trigger = {
			392 = {
				owned_by = ROOT
				development = 25
				num_of_buildings_in_province = 5
			}
		}
		effect = {
			392 = {
				change_province_name = "Riyadh"
				
				custom_tooltip = " "
				
				custom_tooltip = ARB_upgrade_oasis_city
				hidden_effect = {
					remove_province_modifier = ARB_oasis_city_on_stop_to_mecca
					add_province_modifier = {
						name = ARB_oasis_city_on_stop_to_mecca_2
						duration = -1
					}
				}
			}
			
			custom_tooltip = " "
			
			set_country_flag = ARB_upgrade_invite_minorities_flag
			custom_tooltip = ARB_upgrade_invite_minorities
		}
	}
}

KoK_ARB_hedjaz_najd_bedouin_arb_1 = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "King of Kings"
	}
	potential = {
		ARB_hedjaz_najd_bedouin_potential = yes	
		has_dlc = "King of Kings"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes

	ARB_across_the_strait = {
		icon = mission_reclaim_andalucia
		required_missions = { ARB_maghreb }
		position = 10
		provinces_to_highlight = {
			region = iberia_region
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = iberia_region
				value = 20
			}
			223 = { country_or_non_sovereign_subject_holds = ROOT } #granada
			225 = { country_or_non_sovereign_subject_holds = ROOT } #cordoba
		}
		effect = {
			create_general = { tradition = 80 }
			
			custom_tooltip = " "
			
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				custom_tooltip = ARB_upgrade_alhambra
				custom_tooltip = " "
			}
			else = {
				223 = {
					add_province_modifier = {
						name = ARB_alhambra_diplo_annex_cost
						duration = -1
					}
				}
			}
			
			225 = {
				add_province_modifier = {
					name = ARB_rekindling_the_flames
					duration = 10950
				}
			}
			
			give_claims = { area = languedoc_area }
			give_claims = { area = guyenne_area }
			give_claims = { area = pyrenees_area }
		}
	}
	
	ARB_tours = {
		icon = mission_the_french_menace
		required_missions = { ARB_across_the_strait }
		position = 11
		provinces_to_highlight = {
			region = france_region
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			OR = {
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					region = france_region
					value = 10
				}
				custom_trigger_tooltip = {
					tooltip = ARB_has_won_war_against_a_powerful_country_in_france
					france_region = {
						owner = {
							total_development = 400
							ROOT = {
								has_won_war_against = {
									who = PREV
									max_years_since = 15
								}
							}
						}
					}
				}
			}
		}
		effect = {
			country_event_with_effect_insight = {
				id = flavor_ARB.7
				effect = "
					add_permanent_power_projection = {
						type = arb_permanent_power_projection
						amount = 5
					}
					custom_tooltip = \" \"
					add_country_modifier = {
						name = ARB_highway_of_the_martyrs
						duration = -1
					}
					custom_tooltip = ARB_cb_on_france_and_iberia
				"
			}
		}
	}
}

KoK_ARB_hedjaz_najd_bedouin_arb_2 = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "King of Kings"
	}
	potential = {
		ARB_hedjaz_najd_bedouin_potential = yes	
		has_dlc = "King of Kings"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	ARB_maghreb = {
		icon = mission_conquer_tunis
		required_missions = { ARB_caliphal_ambitions }
		position = 9
		provinces_to_highlight = {
			region = maghreb_region
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = maghreb_region
				value = 30
			}
			4566 = { country_or_non_sovereign_subject_holds = ROOT }
		}
		effect = {
			give_claims = { area = sicily_area }
			give_claims = { area = western_sicily_area }
			give_claims = { region = iberia_region }
			
			custom_tooltip = " "
			
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				custom_tooltip = ARB_upgrade_mosque_of_kairouan
			}
			else = {
				4566 = {
					add_province_triggered_modifier = ARB_mosque_of_kairouan
				}
			}
		}
	}
	
	ARB_sicily = {
		icon = arb_sicily
		required_missions = { ARB_maghreb }
		position = 11
		provinces_to_highlight = {
			OR = {
				area = sicily_area
				area = western_sicily_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			sicily_area = {
				country_or_non_sovereign_subject_holds = ROOT
				type = all
			}
			western_sicily_area = {
				country_or_non_sovereign_subject_holds = ROOT
				type = all
			}
		}
		effect = {
			custom_tooltip = ARB_religious_cb_against_italians
			
			custom_tooltip = " "
		
			add_power_projection_mission = { amount = 20 }
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = ARB_reconquest_of_sicily
				duration = 10950
			}
		}
	}
}

KoK_ARB_hedjaz_najd_bedouin_arb_3 = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "King of Kings"
	}
	potential = {
		ARB_hedjaz_najd_bedouin_potential = yes	
		has_dlc = "King of Kings"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	ARB_caliphal_ambitions = {
		icon = mission_restore_caliphate_of_cordoba
		required_missions = { ARB_unite_arabia }
		position = 8
		provinces_to_highlight = {
			owned_by = ROOT
			NOT = { religion_group = muslim }
		}
		trigger = {
			tag = ARB
			total_development = 600
			num_of_owned_provinces_with = {
				religion_group = muslim
				value = 50
			}
		}
		effect = {
			country_event_with_effect_insight = {
				id = flavor_ARB.5
				effect = "
					unlock_government_reform = {
						government_reform = caliphate_reform
					}
				"
			}
			
			custom_tooltip = " "
			
			give_claims = { region = maghreb_region }
			
			give_claims = { area = dulkadir_area }
			give_claims = { area = rum_area }
			give_claims = { area = karaman_area }
			give_claims = { area = cukurova_area }
			
			give_claims = { region = horn_of_africa_region }
			give_claims = { region = east_africa_region }
		}
	}
	
	ARB_zanzibari_trade = {
		icon = mission_african_gold
		required_missions = { ARB_caliphal_ambitions }
		position = 10
		provinces_to_highlight = {
			OR = {
				region = east_africa_region
				region = horn_of_africa_region
			}
			religion_group = muslim
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					region = east_africa_region
					region = horn_of_africa_region
				}
				religion_group = muslim
				value = 50
			}
		}
		effect = {
			add_years_of_income = 1
			
			custom_tooltip = " "
			
			add_dip_power = 100 
		
			custom_tooltip = " "
			
			country_event_with_option_insight = {
				id = flavor_ARB.8
				option_1 = "
					add_country_modifier = {
						name = ARB_reroute_the_trade_north
						duration = -1
					}
				"
				option_2 = "
					custom_tooltip = ARB_cb_on_fetishists_in_south_africa
				"
			}
		}
	}
	
	ARB_rightly_guided = {
		icon = mission_fatimid_caliphate
		required_missions = { ARB_beyond_solomons ARB_zanzibari_trade ARB_ottomans ARB_sicily ARB_tours }
		position = 12
		provinces_to_highlight = {
			owned_by = ROOT
			NOT = { religion_group = muslim }
		}
		trigger = {
			army_size = 200 # modified
			monthly_income = 500
			num_of_owned_provinces_with = {
				religion_group = muslim
				value = 500
			}
			if = {
				limit = {
					has_dlc = "Star and Crescent"
				}
				custom_trigger_tooltip = {
					tooltip = ARB_islam_has_been_united
					has_global_flag = unified_islam_global
				}
			}
			
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
				}
				OR = {
					in_golden_age = yes
					has_had_golden_age = yes
				}
			}
		}
		effect = {
			country_event_with_effect_insight = {
				id = flavor_ARB.6
				effect = "ARB_flavor_event_6_effect = yes"
			}
		}
	}
}

KoK_ARB_hedjaz_najd_bedouin_arb_4 = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "King of Kings"
	}
	potential = {
		ARB_hedjaz_najd_bedouin_potential = yes	
		has_dlc = "King of Kings"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	ARB_north = {
		icon = mission_pacify_the_berbers
		required_missions = { ARB_caliphal_ambitions }
		position = 9
		provinces_to_highlight = {
			OR = {
				area = north_kurdistan_area
				area = dulkadir_area
				area = rum_area
				area = karaman_area
				area = cukurova_area
				area = shahrizor_area
				area = tabriz_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = north_kurdistan_area
					area = dulkadir_area
					area = rum_area
					area = karaman_area
					area = cukurova_area
					area = shahrizor_area
					area = tabriz_area
				}
				value = 19
			}
		}
		effect = {
			give_claims = { region = khorasan_region }
			give_claims = { region = persia_region }
			give_claims = { region = anatolia_region }
			give_claims = { area = thrace_area }
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = ARB_the_caliphate_rises
				duration = -1
			}
		}
	}
	
	ARB_ottomans = {
		icon = mission_ottoman_diplomacy
		required_missions = { ARB_north }
		position = 11
		provinces_to_highlight = {
			OR = {
				region = anatolia_region
				area = thrace_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			if = {
				limit = {
					exists = TUR
				}
				has_won_war_against = { who = TUR max_years_since = 25 }
			}
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					region = anatolia_region
					area = thrace_area
				}
				value = 45
			}
		}
		effect = {
			add_permanent_power_projection = {
				type = arb_permanent_power_projection
				amount = 5
			}
			
			custom_tooltip = " "
			
			add_mil_power = 150
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = ARB_only_rightful_caliphs
				duration = 14600
			}
			
			custom_tooltip = ARB_cb_balkans
		}
	}
}

KoK_ARB_hedjaz_najd_bedouin_arb_5 = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "King of Kings"
	}
	potential = {
		ARB_hedjaz_najd_bedouin_potential = yes	
		has_dlc = "King of Kings"
		NOT = { map_setup = map_setup_random }
	}
	has_country_shield = yes
	
	ARB_persia = {
		icon = mission_into_persia_2
		required_missions = { ARB_north }
		position = 10
		provinces_to_highlight = {
			OR = {
				region = khorasan_region
				region = persia_region
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					region = khorasan_region
					region = persia_region
				}
				value = 40
			}
		}
		effect = {
			if = {
				limit = {
					religion = shiite
				}
				add_country_modifier = {
					name = ARB_reconnected_with_shiite_stronghold
					duration = 14600
				}
			}
			else = {
				add_country_modifier = {
					name = ARB_conquered_the_shiite_stronghold
					duration = 14600
				}
			}
			
			add_army_tradition_or_mil_power = { amount = 10 }
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = ARB_eastern_flank
				duration = 9125
			}
		}
	}
	
	ARB_beyond_solomons = {
		icon = mission_fortify_rajputana
		required_missions = { ARB_persia }
		position = 11
		provinces_to_highlight = {
			OR = {
				superregion = india_superregion
				superregion = east_indies_superregion
			}
			religion_group = muslim 
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			OR = {
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					religion_group = muslim 
					OR = {
						superregion = india_superregion
						superregion = east_indies_superregion
					}
					value = 15
				}
			}
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Cradle of Civilization"
				}
				custom_tooltip = ARB_upgrade_propagate_religion
				set_country_flag = 40_trade_power_for_propogate_religion
			}	
			else = {
				custom_tooltip = ARB_upgrade_trade_ship_privilege_for_trade_power_propagation
				set_country_flag = ARB_upgrade_trade_ship_privilege_for_trade_steering_flag
			}
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = ARB_supporting_islam_in_indian_realm
				duration = -1
			}
		}
	}
}