byz_pp_balkans_north_italy = {
	slot = 2 
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Purple Phoenix"
	}
	potential = {
		tag = BYZ
		has_dlc = "Purple Phoenix"
		NOT = { map_setup = map_setup_random }
		NOT = { has_dlc = "King of Kings" }
		started_in = 1204.1.1
	}
	has_country_shield = yes
	
	recover_albania = {
		icon = mission_pf_soldier
		required_missions = { recover_greece }
		position = 2
		provinces_to_highlight = {
			OR = {
				area = albania_area
				area = macedonia_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			albania_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			macedonia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			east_adriatic_coast_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			rascia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			serbia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			bosnia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	
	recover_western_balkans = {
		icon = mission_pf_cross
		required_missions = { recover_albania } #None
		provinces_to_highlight = {
			OR = {
				area = east_adriatic_coast_area
				area = rascia_area
				area = serbia_area
				area = bosnia_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			east_adriatic_coast_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			rascia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			serbia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			bosnia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			
		}
		effect = {
			carinthia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			croatia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			add_country_modifier = {
				name = "balkan_empire"
				duration = 5475
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	
	recover_northern_balkans = { #Replaces Istria
		icon = mission_conquer_5_states
		required_missions = { recover_western_balkans }
		provinces_to_highlight = {
			OR = {
				area = carinthia_area
				area = croatia_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			carinthia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			croatia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			venetia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	destroy_venice_pp = { #New
		icon = mission_conquer_50_development
		required_missions = { recover_northern_balkans }
		provinces_to_highlight = {
			area = venetia_area
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			venetia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			country_event = { id = flavor_byz.1 }
			add_country_modifier = {
				name = "venetian_revenge"
				duration = 7300
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
}

byz_pp_italian = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Purple Phoenix"
	}
	potential = {
		tag = BYZ
		has_dlc = "Purple Phoenix"
		NOT = { map_setup = map_setup_random }
		NOT = { has_dlc = "King of Kings" }
		started_in = 1204.1.1
	}
	has_country_shield = yes
	
	recover_rome_pp = {
		position = 6
		icon = mission_pf_cross
		required_missions = {
			recover_south_italy
			destroy_venice_pp
		}
		provinces_to_highlight = {
			province_id = 118
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			owns = 118
		}
		effect = {
			add_country_modifier = {
				name = "roman_italy"
				duration = 5475
			}
			tuscany_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			emilia_romagna_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			central_italy_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	recover_north_italy = {
		icon = mission_pf_map_table
		required_missions = {
			recover_rome_pp
		}
		provinces_to_highlight = {
			OR = {
				area = tuscany_area
				area = emilia_romagna_area
				area = central_italy_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			tuscany_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			emilia_romagna_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			central_italy_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			tuscany_area = {
				limit = { owned_by = ROOT }
				add_province_modifier = {
					name = "faster_integration"
					duration = 5475
				}
			}
			central_italy_area = {
				limit = { owned_by = ROOT }
				add_province_modifier = {
					name = "faster_integration"
					duration = 5475
				}
			}
			emilia_romagna_area = {
				limit = { owned_by = ROOT }
				add_province_modifier = {
					name = "faster_integration"
					duration = 5475
				}
			}
			lombardy_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			po_valley_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			piedmont_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			liguria_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	
	recover_lombardia = {
		icon = mission_empire
		required_missions = {
			recover_north_italy
		}
		provinces_to_highlight = {
			OR = {
				area = lombardy_area
				area = po_valley_area
				area = piedmont_area
				area = liguria_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			lombardy_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			po_valley_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			piedmont_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			liguria_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "byzantine_unification_of_italy"
				duration = 7300
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
}


byz_pp_maritime = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Purple Phoenix"
	}
	potential = {
		tag = BYZ
		has_dlc = "Purple Phoenix"
		NOT = { map_setup = map_setup_random }
		NOT = { has_dlc = "King of Kings" }
		started_in = 1204.1.1
	}
	has_country_shield = yes
	
	recover_east_islands = {
		icon = mission_pf_map_table
		
		required_missions = {
			
		}
		provinces_to_highlight = {
			area = aegean_archipelago_area
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			aegean_archipelago_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			corsica_sardinia_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			baleares_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			add_permanent_claim = 126
		}
	}
	recover_west_islands = {
		icon = mission_invade_island
		required_missions = {
			recover_east_islands
		}
		provinces_to_highlight = {
			OR = {
				area = corsica_sardinia_area
				province_id = 126
				province_id = 333
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			corsica_sardinia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			baleares_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			126 = {
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			tripolitania_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			djerba_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	
	recover_tripoli = {
		icon = mission_arabian_fort
		required_missions = {
			recover_west_islands
		}
		provinces_to_highlight = {
			OR = {
				area = tripolitania_area
				area = djerba_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			tripolitania_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			djerba_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			tunisia_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			kabylia_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	
	recover_tunis = {
		icon = mission_pf_soldier
		required_missions = {
			recover_tripoli
		}
		provinces_to_highlight = {
			OR = {
				area = tunisia_area
				area = kabylia_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			tunisia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			kabylia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			lower_andalucia_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
			upper_andalucia_area = {
				limit = {
					NOT = { is_permanent_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_permanent_claim = ROOT
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	
	recover_south_spain = {
		icon = mission_pf_map_table
		required_missions = {
			recover_tunis
		}
		provinces_to_highlight = {
			OR = {
				area = lower_andalucia_area
				area = upper_andalucia_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			lower_andalucia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			upper_andalucia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			northern_morocco_area = {
				limit = {
					NOT = { is_claim = ROOT	}
					NOT = { is_core = ROOT	}
				}
				add_claim = ROOT
			}
			upper_andalucia_area = {
				limit = { owned_by = ROOT }
				add_province_modifier = {
					name = "faster_integration"
					duration = 5475
				}
			}
			lower_andalucia_area = {
				limit = { owned_by = ROOT }
				add_province_modifier = {
					name = "faster_integration"
					duration = 5475
				}
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
}


byz_pp_religion = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Purple Phoenix"
	}
	potential = {
		tag = BYZ
		has_dlc = "Purple Phoenix"
		NOT = { map_setup = map_setup_random }
		NOT = { has_dlc = "King of Kings" }
		started_in = 1204.1.1
	}
	has_country_shield = yes
	
	convert_asia_minor_pp = {
		icon = mission_pf_cross
		position = 2
		required_missions = {
			recover_the_coast_of_asia_minor
		}
		provinces_to_highlight = {
			OR = {
				area = aydin_area
				area = hudavendigar_area
			}
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { religion = orthodox }
			}
		}
		trigger = {
			religion = orthodox
			aydin_area = {
				type = all
				owned_by = ROOT
				religion = orthodox
			}
			hudavendigar_area = {
				type = all
				owned_by = ROOT
				religion = orthodox
			}
		}
		
		effect = {
			add_patriarch_authority = 0.1
			aleppo_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			syria_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	recover_antioch = {
		icon = mission_pf_cross
		position = 4
		required_missions = {
			convert_asia_minor_pp
			recover_central_anatolia
		}
		provinces_to_highlight = {
			OR = {
				area = aleppo_area
				area = syria_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			aleppo_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			syria_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_patriarch_authority = 0.1
			palestine_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			syrian_desert_area = {
				add_claim = ROOT
			}
			trans_jordan_area = {
				add_claim = ROOT
			}
			add_claim = 407
			add_claim = 2309
			add_claim = 2314
			add_claim = 4292
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	
	recover_jerusalem = {
		icon = mission_pf_cross
		required_missions = {
			recover_antioch
		}
		provinces_to_highlight = {
			area = palestine_area
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			palestine_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_patriarch_authority = 0.1
			delta_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			bahari_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
			}
			add_claim = 365
			add_claim = 2315
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	
	recover_alexandria = {
		icon = mission_pf_cross
		provinces_to_highlight = {
			OR = {
				area = delta_area
				area = bahari_area
				area = vostani_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		required_missions = {
			recover_jerusalem
		}
		trigger = {
			delta_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			bahari_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			vostani_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_patriarch_authority = 0.1
			said_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_claim = ROOT }
				}
				add_claim = ROOT
			}
			al_wahat_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_claim = ROOT }
				}
				add_claim = ROOT
			}
			gulf_of_arabia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_claim = ROOT }
				}
				add_claim = ROOT
			}
			cyrenaica_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_claim = ROOT }
				}
				add_claim = ROOT
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	
	the_pentarchy_pp = {
		icon = mission_pf_cross
		position = 7
		required_missions = {
			recover_rome_pp
			recover_alexandria
		}
		provinces_to_highlight = {
			OR = {
				province_id = 118
				province_id = 151
				province_id = 358
				province_id = 379
				province_id = 2313
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			owns = 118 #Rome
			owns = 151 #Constantinople
			owns = 358 #Alexandria
			owns = 379 #Jerusalem
			owns = 2313 #Antioch
		}
		effect = {
			add_patriarch_authority = 0.1
			add_country_modifier = {
				name = "healing_the_schism"
				duration = -1
			}
			country_event = { id = catholic_flavor.3 }
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	
	convert_rome = { #New/From Events
		icon = mission_pf_cross
		position = 7
		required_missions = {
			the_pentarchy_pp
		}
		provinces_to_highlight = {
			province_id = 118
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				NOT = { religion = orthodox }
			}
		}
		trigger = {
			religion = orthodox
			118 = {
				religion = orthodox
			}
		}
		effect = {
			add_patriarch_authority = 0.2
			add_country_modifier = {
				name = "conversion_of_rome"
				duration = 7300
			}
			hidden_effect = {
				every_country = {
					limit = { 
						religion = catholic 
						knows_country = BYZ
					}
					country_event = { id = flavor_byz.2 }
				}
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
}

byz_pp_east = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Purple Phoenix"
	}
	potential = {
		tag = BYZ
		has_dlc = "Purple Phoenix"
		NOT = { map_setup = map_setup_random }
		NOT = { has_dlc = "King of Kings" }
		started_in = 1204.1.1
	}
	has_country_shield = yes
	
	recover_west_anatolia = {
		icon = mission_non-western_cavalry_raid
		position = 2
		required_missions = {
			recover_the_coast_of_asia_minor
		}
		provinces_to_highlight = {
			OR = {
				area = germiyan_area
				area = ankara_area
				area = kastamonu_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			germiyan_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
			}
		}
		effect = {
			karaman_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			rum_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			cukurova_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	recover_central_anatolia = {
		icon = mission_pf_soldier
		required_missions = {
			recover_west_anatolia
		}
		provinces_to_highlight = {
			OR = {
				area = karaman_area
				area = rum_area
				area = cukurova_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			karaman_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			rum_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			cukurova_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			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
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	
	reestablish_the_theme_system_pp = {
		icon = mission_pf_map_table
		position = 5
		required_missions = { 
			recover_central_anatolia
		}
		provinces_to_highlight = {
			OR = {
				area = dulkadir_area
				area = erzurum_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			dulkadir_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
			erzurum_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_permanent_claim = 285
			add_permanent_claim = 2410
			if = {
				limit = {
					NOT = { has_global_flag = constantinople_restored }
				}
				151 = {
					add_base_tax = 4
					add_base_production = 4
					add_base_manpower = 3
				}
				set_global_flag = constantinople_restored
			}	
			add_country_modifier = {
				name = "the_theme_system"
				duration = -1
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	
	
	recover_crimea = {
		icon = mission_galleys_in_port
		required_missions = {
			reestablish_the_theme_system_pp
		}
		provinces_to_highlight = {
			OR = {
				province_id = 285
				province_id = 2410
			}
			NOT = { owned_by = ROOT }
		}
		trigger = {
			owns = 285
			owns = 2410
		}
		effect = {
			285 = {
				add_trade_modifier = {
					who = root
					duration = 7300
					power = 35
					key = byzantine_kaffa
				}
			}
		}
		ai_weight = {
			factor = 500	#Byzantium is basically Ottomans in its conquest behavior
		}
	}
	
}
