country_decisions = {

	the_pentarchy = {
		major = yes
		potential = {
			religion = orthodox
			is_free_or_tributary_trigger = yes
			num_of_cities = 15
			num_of_owned_provinces_with = {
				value = 3
				OR = {
					province_id = 118 #Rome
					province_id = 151 #Constantinople
					province_id = 2313 #Antioch
					province_id = 379 #Jerusalem
					province_id = 358 #Alexandria
				}
			}
			NOT = { has_global_flag = east_west_schism_healed }
			NOT = { tag = BYZ } #Byzantium gets this in their mission tree
		}
		allow = {
			118 = { 
				country_or_non_sovereign_subject_holds = ROOT
				religion = orthodox
			}
			151 = { 
				country_or_non_sovereign_subject_holds = ROOT
				religion = orthodox
			}
			2313 = {
				country_or_non_sovereign_subject_holds = ROOT
				religion = orthodox
			}
			379 = { 
				country_or_non_sovereign_subject_holds = ROOT
				religion = orthodox 
			}
			358 = { 
				country_or_non_sovereign_subject_holds = ROOT
				religion = orthodox 
			}
		}
		effect = {
			hidden_effect = {
				if = {
					limit = {
						118 = {
							NOT = { has_province_modifier = orthodox_religious_center }
						}
					}
					118 = { 
						add_province_triggered_modifier = orthodox_religious_center
					}
				}
				if = {
					limit = {
						151 = {
							NOT = { has_province_modifier = orthodox_religious_center }
						}
					}
					151 = { 
						add_province_triggered_modifier = orthodox_religious_center
					}
				}
				if = {
					limit = {
						2313 = {
							NOT = { has_province_modifier = orthodox_religious_center }
						}
					}
					2313 = { 
						add_province_triggered_modifier = orthodox_religious_center
					}
				}
				if = {
					limit = {
						379 = {
							NOT = { has_province_modifier = orthodox_religious_center }
						}
					}
					379 = { 
						add_province_triggered_modifier = orthodox_religious_center
					}
				}
				if = {
					limit = {
						358 = {
							NOT = { has_province_modifier = orthodox_religious_center }
						}
					}
					358 = {
						add_province_triggered_modifier = orthodox_religious_center
					}
				}
			}
			add_prestige = 20
			country_event = { id = catholic_flavor.3 }
			set_global_flag = east_west_schism_healed
		}
		ai_will_do = {
			factor = 1
		}
	}
	
	convert_to_orthodox = {
		major = yes
		potential = {
			OR = {
				AND = {
					religion = catholic
					has_global_flag = east_west_schism_healed
				}
				AND = {
					OR = {
						religion = coptic
						religion = apostolic
					}
					has_global_flag = east_oriental_schism_healed
				}
			}
			is_free_or_tributary_trigger = yes
		}
		allow = {
			is_at_war = no
			if = {
				limit = {
					has_global_flag = east_west_schism_healed
					religion = catholic
				}
				religion = catholic
			}
			if = {
				limit = {
					has_global_flag = east_oriental_schism_healed
					OR = {
						religion = apostolic
						religion = coptic
					}
				}
				OR = {
					religion = apostolic
					religion = coptic
				}
			}
		}
		effect = {
			change_religion = orthodox
			add_prestige = -100
			add_devotion = -50
			add_country_modifier = {
				name = "conversion_zeal"
				duration = 3650
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_idea_group = religious_ideas #Zealous nations should not convert.
					tag = PAP #Pope in no circumstance may convert.
					AND = { #Devoted theocracies should not convert either.
						government = theocracy
						devotion = 75
					}
					is_emperor = yes #The HREmperor really should never take this decision as it would remove their emperorship.
					NOT = { prestige = 0 } #
					total_development = 500 #Apparently "development" only applies to provinces...
				}
			}
		}
	}
	
	mending_east_oriental_schism = {
		major = yes
		potential = {
			religion = orthodox
			is_free_or_tributary_trigger = yes
			num_of_cities = 15
			num_of_owned_provinces_with = {
				value = 3
				OR = {
					province_id = 151 #Constantinople
					province_id = 419 #Erevan/Etchmiadzin/Every religious center in Armenia except Vanadzor
					province_id = 5154 #Sis
					province_id = 2313 #Antioch
					province_id = 379 #Jerusalem
					province_id = 358 #Alexandria
				}
			}
			NOT = { has_global_flag = east_oriental_schism_healed }
			NOT = { tag = BYZ } #Byzantium gets this in their mission tree
		}
		allow = {
			151 = { #Should be orthodox anyway, but Constantinople is pretty darn importante
				country_or_non_sovereign_subject_holds = ROOT
				religion = orthodox
			}
			419 = { #Mother See of Holy Etchmiadzin
				country_or_non_sovereign_subject_holds = ROOT
				religion = orthodox
			}
			5154 = { #Holy See of Cilicia
				country_or_non_sovereign_subject_holds = ROOT
				religion = orthodox
			}
			2313 = { #Syrian orthodox Church. I'm skipping indian because... well, it feels illogical
				country_or_non_sovereign_subject_holds = ROOT
				religion = orthodox
			}
			379 = { #Jerusalem too was important, especially to the Armenian apostolics
				country_or_non_sovereign_subject_holds = ROOT
				religion = orthodox			
			}
			358 = { #Coptic Orthodox Church of Alexandria. Ethiopia/Eritrea belonged to this one until the 1990s
				country_or_non_sovereign_subject_holds = ROOT
				religion = orthodox
			}
		}
		effect = {
			hidden_effect = {
				if = {
					limit = {
						151 = {
							NOT = { has_province_modifier = orthodox_religious_center }
						}
					}
					151 = { 
						add_province_triggered_modifier = orthodox_religious_center
					}
				}
				if = {
					limit = {
						419 = {
							NOT = { has_province_modifier = orthodox_religious_center }
						}
					}
					419 = { 
						add_province_triggered_modifier = orthodox_religious_center
					}
				}
				if = {
					limit = {
						5154 = {
							NOT = { has_province_modifier = orthodox_religious_center }
						}
					}
					5154 = { 
						add_province_triggered_modifier = orthodox_religious_center
					}
				}
				if = {
					limit = {
						2313 = {
							NOT = { has_province_modifier = orthodox_religious_center }
						}
					}
					2313 = { 
						add_province_triggered_modifier = orthodox_religious_center
					}
				}
				if = {
					limit = {
						379 = {
							NOT = { has_province_modifier = orthodox_religious_center }
						}
					}
					379 = { 
						add_province_triggered_modifier = orthodox_religious_center
					}
				}
				if = {
					limit = {
						358 = {
							NOT = { has_province_modifier = orthodox_religious_center }
						}
					}
					358 = { 
						add_province_triggered_modifier = orthodox_religious_center
					}
				}
			}
			add_prestige = 20
			country_event = { id = resurgent_BYZ.1 }
			set_global_flag = east_oriental_schism_healed
		}
		ai_will_do = {
			factor = 1
		}
	}
}