﻿#Eventually merge all existing decisions into here

#Tenet Decisions
baptism_by_fire_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
	}

	desc = baptism_by_fire_decision_desc
	selection_tooltip = baptism_by_fire_decision_tooltip
	decision_group_type = major #Can only do once

	ai_check_interval = 48

	is_shown = {
		NOT = { has_character_modifier = baptized_by_fire }
		root.faith = { has_doctrine = tenet_fire_baptism }
	}

	is_valid = {
		is_capable_adult = yes
		is_imprisoned = no
	}

	is_valid_showing_failures_only = {
		piety >= 0
	}

	effect = {
		random_list = {
			10 = { trigger_event = cad_decision.0001 }
			65 = { trigger_event = cad_decision.0002 }
			25 = { trigger_event = cad_decision.0003 }
		}
	}

	ai_potential = {
		piety >= minor_piety_value
	}

	ai_will_do = {
		base = 100
	}
}

voluntary_castration_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
	}

	desc = voluntary_castration_decision_desc
	selection_tooltip = voluntary_castration_decision_tooltip
	decision_group_type = major #Can only do once

	ai_check_interval = 36 #Checks every three years

	is_shown = {
		root.faith = { has_doctrine = tenet_eunuch_priesthood }
		NOT = { has_trait = eunuch }
		NOT = { is_female = yes }
	}

	is_valid = {
		is_capable_adult = yes
		is_imprisoned = no
	}

	is_valid_showing_failures_only = {
		piety >= 0
	}

	effect = {
		trigger_event = cad_decision.0004
	}

	ai_potential = {
		piety >= minor_piety_value
	}

	ai_will_do = {
		base = 0
		modifier = {
			add = 100
			is_clergy = yes
		}
		modifier = {
			add = 10
			any_child = {
				is_child_of = root
				is_grandchild_of = root
				is_great_grandchild_of = root
				count < 1
			}
		}
		modifier = {
			add = 20
			any_child = {
				is_child_of = root
				is_grandchild_of = root
				is_great_grandchild_of = root
				count < 2
			}
		}
		modifier = {
			add = 30
			any_child = {
				is_child_of = root
				is_grandchild_of = root
				is_great_grandchild_of = root
				count < 3
			}
		}
		modifier = {
			add = 40
			any_child = {
				is_child_of = root
				is_grandchild_of = root
				is_great_grandchild_of = root
				count < 4
			}
		}
		modifier = {
			add = 50
			any_child = {
				is_child_of = root
				is_grandchild_of = root
				is_great_grandchild_of = root
				count < 5
			}
		}
		modifier = {
			add = 20
			age > 20
		}
		modifier = {
			add = 40
			age > 30
		}
		modifier = {
			add = 100
			age > 40
		}
	}
}

offer_sacrifice_to_mary_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
	}

	desc = offer_sacrifice_to_mary_decision_desc
	selection_tooltip = offer_sacrifice_to_mary_decision_tooltip

	ai_check_interval = 12

	is_shown = {
		root.faith = { has_doctrine = tenet_mary_worship } 
		is_female = yes
	}

	is_valid = {
		is_capable_adult = yes
		is_imprisoned = no
	}

	is_valid_showing_failures_only = {
		piety >= 0
	}

	ai_potential = {
		piety >= minor_piety_value
	}

	ai_will_do = {
		base = 100
	}

	effect = {
		trigger_event = cad_decision.0009
	}
}

# Autocephaly Decisions

declare_autocephaly_bulgaria_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
	}

	#These will be shared between all decisions
	title = declare_autocephaly_decision
	desc = declare_autocephaly_decision_desc
	selection_tooltip = declare_autocephaly_decision_tooltip
	confirm_text = declare_autocephaly_decision_confirm
	decision_group_type = major

	ai_check_interval = 120

	is_shown = {
		is_ruler = yes
		is_landed = yes

		has_culture = culture:bulgarian #Only available to Bulgarians, duh
		root.faith = {
			religion_tag = christianity_religion
		}
		faith:bulgarian_orthodox = { has_doctrine = unavailable_doctrine }
	}

	is_valid = {
		highest_held_title_tier > 3 #Kings & Emperors
		NOT = {
			top_liege = { has_title = title:e_byzantium }
		}
		calc_true_if = { #At least three holy sites are controlled
			amount >= 3
			custom_description = {
				text = controls_silistra
				title:c_dorostorum.holder.top_liege = root #Silistra
			}
			custom_description = {
				text = controls_rila
				title:c_sredets.holder.top_liege = root #Rila
			}
			custom_description = {
				text = controls_ohrid
				title:c_ohrid.holder.top_liege = root #Ohrid 
			}
			custom_description = {
				text = controls_athos
				title:c_chalkidike.holder.top_liege = root #Mount Athos
			}
			custom_description = {
				text = controls_constantinople
				title:c_byzantion.holder.top_liege = root #Constantinople
			}
		}
	}

	is_valid_showing_failures_only = {
		is_capable_adult = yes
		is_imprisoned = no
		is_at_war = no
	}

	minimum_cost = {
		piety = 1000
	}

	effect = {
		set_character_faith_with_conversion = faith:bulgarian_orthodox #This will simplify things going forward
		trigger_event = {
			id = cad_decision.0005
		}
		faith:bulgarian_orthodox = { remove_doctrine = unavailable_doctrine }
		root.culture = { 
			every_culture_county = {
				limit = { faith = { has_doctrine = special_doctrine_ecumenical_christian } }
				set_county_faith = faith:bulgarian_orthodox
			}
		}
	}

	ai_potential = {
		always = yes
	}

	ai_will_do = {
		base = 100
	}
}

declare_autocephaly_serbia_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
	}

	#These will be shared between all decisions
	title = declare_autocephaly_decision
	desc = declare_autocephaly_decision_desc
	selection_tooltip = declare_autocephaly_decision_tooltip
	confirm_text = declare_autocephaly_decision_confirm
	decision_group_type = major

	ai_check_interval = 120

	is_shown = {
		is_ruler = yes
		is_landed = yes

		has_culture = culture:serbian #Only available to Serbians duh
		root.faith = {
			religion_tag = christianity_religion
		}
		faith:serbian_orthodox = { has_doctrine = unavailable_doctrine }
	}

	is_valid = {
		highest_held_title_tier > 3 #Kings & Emperors
		NOT = {
			top_liege = { has_title = title:e_byzantium }
		}
		calc_true_if = { #At least three holy sites are controlled
			amount >= 3
			custom_description = {
				text = controls_pec
				title:c_hvosno.holder.top_liege = root #Pec
			}
			custom_description = {
				text = controls_cattaro
				title:c_pomorje.holder.top_liege = root #Cattaro
			}
			custom_description = {
				text = controls_zica
				title:c_rashka.holder.top_liege = root #Zica
			}
			custom_description = {
				text = controls_athos
				title:c_chalkidike.holder.top_liege = root #Mount Athos
			}
			custom_description = {
				text = controls_constantinople
				title:c_byzantion.holder.top_liege = root #Constantinople
			}
		}
	}

	is_valid_showing_failures_only = {
		is_capable_adult = yes
		is_imprisoned = no
		is_at_war = no
	}

	minimum_cost = {
		piety = 1000
	}

	effect = {
		set_character_faith_with_conversion = faith:serbian_orthodox #This will simplify things going forward
		trigger_event = {
			id = cad_decision.0005
		}
		faith:serbian_orthodox = { remove_doctrine = unavailable_doctrine }
		root.culture = {
			every_culture_county = {
				limit = { faith = { has_doctrine = special_doctrine_ecumenical_christian } }
				set_county_faith = faith:serbian_orthodox
			}
		}
	}

	ai_potential = {
		always = yes
	}

	ai_will_do = {
		base = 100
	}
}

declare_autocephaly_baltic_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
	}

	#These will be shared between all decisions
	title = declare_autocephaly_decision
	desc = declare_autocephaly_decision_desc
	selection_tooltip = declare_autocephaly_decision_tooltip
	confirm_text = declare_autocephaly_decision_confirm
	decision_group_type = major

	ai_check_interval = 120

	is_shown = {
		is_ruler = yes
		is_landed = yes

		root.culture = {
			has_cultural_pillar = heritage_baltic
		}
		root.faith = {
			religion_tag = christianity_religion
		}
		faith:baltic_orthodox = { has_doctrine = unavailable_doctrine }
	}

	is_valid = {
		highest_held_title_tier > 3 #Kings & Emperors
		NOT = {
			top_liege = { has_title = title:e_byzantium }
		}
		calc_true_if = { #At least three holy sites are controlled
			amount >= 3
			custom_description = {
				text = controls_riga
				title:c_vidzeme.holder.top_liege = root 
			}
			custom_description = {
				text = controls_jarva
				title:c_reval.holder.top_liege = root 
			}
			custom_description = {
				text = controls_vilnius
				title:c_kernave.holder.top_liege = root 
			}
			custom_description = {
				text = controls_minsk
				title:c_minsk.holder.top_liege = root
			}
			custom_description = {
				text = controls_konigsberg
				title:c_konigsberg.holder.top_liege = root
			}
		}
	}

	is_valid_showing_failures_only = {
		is_capable_adult = yes
		is_imprisoned = no
		is_at_war = no
	}

	minimum_cost = {
		piety = 1000
	}

	effect = {
		set_character_faith_with_conversion = faith:baltic_orthodox #This will simplify things going forward
		trigger_event = {
			id = cad_decision.0005
		}
		faith:baltic_orthodox = { remove_doctrine = unavailable_doctrine }
		root.culture = {
			every_culture_county = {
				limit = { faith = { has_doctrine = special_doctrine_ecumenical_christian } }
				set_county_faith = faith:baltic_orthodox
			}
		}
	}

	ai_potential = {
		always = yes
	}

	ai_will_do = {
		base = 100
	}
}

declare_autocephaly_finnish_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
	}

	#These will be shared between all decisions
	title = declare_autocephaly_decision
	desc = declare_autocephaly_decision_desc
	selection_tooltip = declare_autocephaly_decision_tooltip
	confirm_text = declare_autocephaly_decision_confirm
	decision_group_type = major

	ai_check_interval = 120

	is_shown = {
		is_ruler = yes
		is_landed = yes

		root.culture = {
			has_cultural_pillar = heritage_balto_finnic
		}
		root.faith = {
			religion_tag = christianity_religion
		}
		faith:finnish_orthodox = { has_doctrine = unavailable_doctrine }
	}

	is_valid = {
		highest_held_title_tier > 3 #Kings & Emperors
		NOT = {
			top_liege = { has_title = title:e_byzantium }
		}
		calc_true_if = { #At least three holy sites are controlled
			amount >= 3
			custom_description = {
				text = controls_finland
				title:c_finland.holder.top_liege = root 
			}
			custom_description = {
				text = controls_raivola
				title:c_kakisalmi.holder.top_liege = root 
			}
			custom_description = {
				text = controls_novgorod
				title:c_novgorod.holder.top_liege = root 
			}
			custom_description = {
				text = controls_suojarvi
				title:c_salinis.holder.top_liege = root
			}
			custom_description = {
				text = controls_perm
				title:c_perm.holder.top_liege = root
			}
		}
	}

	is_valid_showing_failures_only = {
		is_capable_adult = yes
		is_imprisoned = no
		is_at_war = no
	}

	minimum_cost = {
		piety = 1000
	}

	effect = {
		set_character_faith_with_conversion = faith:finnish_orthodox #This will simplify things going forward
		trigger_event = {
			id = cad_decision.0005
		}
		faith:finnish_orthodox = { remove_doctrine = unavailable_doctrine }
		root.culture = {
			every_culture_county = {
				limit = { faith = { has_doctrine = special_doctrine_ecumenical_christian } }
				set_county_faith = faith:finnish_orthodox
			}
		}
	}

	ai_potential = {
		always = yes
	}

	ai_will_do = {
		base = 100
	}
}

declare_autocephaly_gallican_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
	}

	#These will be shared between all decisions
	title = declare_autocephaly_decision
	desc = declare_autocephaly_decision_desc
	selection_tooltip = declare_autocephaly_decision_tooltip
	confirm_text = declare_autocephaly_decision_confirm
	decision_group_type = major

	ai_check_interval = 120

	is_shown = {
		is_ruler = yes
		is_landed = yes

		root.culture = {
			has_cultural_pillar = heritage_frankish
		}
		root.faith = {
			religion_tag = christianity_religion
		}
		faith:gallican_christianity = { has_doctrine = unavailable_doctrine }
	}

	is_valid = {
		highest_held_title_tier > 3 #Kings & Emperors
		NOT = {
			top_liege = { has_title = title:e_byzantium }
		}
		calc_true_if = { #At least three holy sites are controlled
			amount >= 3
			custom_description = {
				text = controls_lyon
				title:c_lyon.holder.top_liege = root 
			}
			custom_description = {
				text = controls_paris
				title:c_ile_de_france.holder.top_liege = root 
			}
			custom_description = {
				text = controls_vienne
				title:c_viennois.holder.top_liege = root 
			}
			custom_description = {
				text = controls_avignon
				title:c_venaissin.holder.top_liege = root
			}
			custom_description = {
				text = controls_reims
				title:c_reims.holder.top_liege = root
			}
		}
	}

	is_valid_showing_failures_only = {
		is_capable_adult = yes
		is_imprisoned = no
		is_at_war = no
	}

	minimum_cost = {
		piety = 1000
	}

	effect = {
		set_character_faith_with_conversion = faith:gallican_christianity #This will simplify things going forward
		trigger_event = {
			id = cad_decision.0005
		}
		faith:gallican_christianity = { remove_doctrine = unavailable_doctrine }
		root.culture = { 
			every_culture_county = {
				limit = { faith = { has_doctrine = special_doctrine_ecumenical_christian } }
				set_county_faith = faith:gallican_christianity
			}
		}
	}

	ai_potential = {
		NOT = {
			root.faith = faith:catholic
		}
	}

	ai_will_do = {
		base = 100
	}
}

declare_autocephaly_lusitanian_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
	}

	#These will be shared between all decisions
	title = declare_autocephaly_decision
	desc = declare_autocephaly_decision_desc
	selection_tooltip = declare_autocephaly_decision_tooltip
	confirm_text = declare_autocephaly_decision_confirm
	decision_group_type = major

	ai_check_interval = 120

	is_shown = {
		is_ruler = yes
		is_landed = yes

		root.culture = {
			has_cultural_pillar = heritage_iberian
		}
		root.faith = {
			religion_tag = christianity_religion
		}
		faith:lusitanian_christianity = { has_doctrine = unavailable_doctrine }
	}

	is_valid = {
		highest_held_title_tier > 3 #Kings & Emperors
		NOT = {
			top_liege = { has_title = title:e_byzantium }
		}
		calc_true_if = { #At least three holy sites are controlled
			amount >= 3
			custom_description = {
				text = controls_toledo
				title:c_toledo.holder.top_liege = root 
			}
			custom_description = {
				text = controls_zaragoza
				title:c_zaragoza.holder.top_liege = root 
			}
			custom_description = {
				text = controls_santiago
				title:c_santiago.holder.top_liege = root 
			}
			custom_description = {
				text = controls_cordoba
				title:c_cordoba.holder.top_liege = root
			}
			custom_description = {
				text = controls_xueta
				title:c_mallorca.holder.top_liege = root
			}
		}
	}

	is_valid_showing_failures_only = {
		is_capable_adult = yes
		is_imprisoned = no
		is_at_war = no
	}

	minimum_cost = {
		piety = 1000
	}

	effect = {
		set_character_faith_with_conversion = faith:lusitanian_christianity #This will simplify things going forward
		trigger_event = {
			id = cad_decision.0005
		}
		faith:lusitanian_christianity = { remove_doctrine = unavailable_doctrine }
		root.culture = {
			every_culture_county = {
				limit = { faith = { has_doctrine = special_doctrine_ecumenical_christian } }
				set_county_faith = faith:lusitanian_christianity
			}
		}
	}

	ai_potential = {
		NOR = {
			root.faith = faith:catholic
			root.faith = faith:mozarabic_church
		}
	}

	ai_will_do = {
		base = 100
	}
}

declare_autocephaly_polish_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
	}

	#These will be shared between all decisions
	title = declare_autocephaly_decision
	desc = declare_autocephaly_decision_desc
	selection_tooltip = declare_autocephaly_decision_tooltip
	confirm_text = declare_autocephaly_decision_confirm
	decision_group_type = major

	ai_check_interval = 120

	is_shown = {
		is_ruler = yes
		is_landed = yes

		has_culture = culture:polish
		root.faith = {
			religion_tag = christianity_religion
		}
		faith:polish_orthodox = { has_doctrine = unavailable_doctrine }
	}

	is_valid = {
		highest_held_title_tier > 3 #Kings & Emperors
		NOT = {
			top_liege = { has_title = title:e_byzantium }
		}
		calc_true_if = { #At least three holy sites are controlled
			amount >= 3
			custom_description = {
				text = controls_poznan
				title:c_poznanska.holder.top_liege = root 
			}
			custom_description = {
				text = controls_gniezno
				title:c_gnieznienska.holder.top_liege = root 
			}
			custom_description = {
				text = controls_czestochowa
				title:c_krakowska.holder.top_liege = root 
			}
			custom_description = {
				text = controls_wroclaw
				title:c_breslau.holder.top_liege = root
			}
			custom_description = {
				text = controls_vilnius
				title:c_kernave.holder.top_liege = root
			}
		}
	}

	is_valid_showing_failures_only = {
		is_capable_adult = yes
		is_imprisoned = no
		is_at_war = no
	}

	minimum_cost = {
		piety = 1000
	}

	effect = {
		set_character_faith_with_conversion = faith:polish_orthodox #This will simplify things going forward
		trigger_event = {
			id = cad_decision.0005
		}
		faith:polish_orthodox = { remove_doctrine = unavailable_doctrine }
		root.culture = {
			every_culture_county = {
				limit = { faith = { has_doctrine = special_doctrine_ecumenical_christian } }
				set_county_faith = faith:polish_orthodox
			}
		}
	}

	ai_potential = {
		NOT = {
			root.faith = faith:catholic
		}
	}

	ai_will_do = {
		base = 100
	}
}

declare_autocephaly_russian_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
	}

	#These will be shared between all decisions
	title = declare_autocephaly_decision
	desc = declare_autocephaly_decision_desc
	selection_tooltip = declare_autocephaly_decision_tooltip
	confirm_text = declare_autocephaly_decision_confirm
	decision_group_type = major

	ai_check_interval = 120

	is_shown = {
		is_ruler = yes
		is_landed = yes

		root.culture = {
			has_cultural_pillar = heritage_east_slavic
		}
		root.faith = {
			religion_tag = christianity_religion
		}
		faith:russian_orthodox = { has_doctrine = unavailable_doctrine }
	}

	is_valid = {
		highest_held_title_tier > 3 #Kings & Emperors
		NOT = {
			top_liege = { has_title = title:e_byzantium }
		}
		calc_true_if = { #At least three holy sites are controlled
			amount >= 3
			custom_description = {
				text = controls_novgorod
				title:c_novgorod.holder.top_liege = root 
			}
			custom_description = {
				text = controls_kiev
				title:c_kiev.holder.top_liege = root 
			}
			custom_description = {
				text = controls_vladimir
				title:c_vladimir.holder.top_liege = root 
			}
			custom_description = {
				text = controls_minsk
				title:c_minsk.holder.top_liege = root
			}
			custom_description = {
				text = controls_kerch
				title:c_kerch.holder.top_liege = root
			}
		}
	}

	is_valid_showing_failures_only = {
		is_capable_adult = yes
		is_imprisoned = no
		is_at_war = no
	}

	minimum_cost = {
		piety = 1000
	}

	effect = {
		set_character_faith_with_conversion = faith:russian_orthodox #This will simplify things going forward
		trigger_event = {
			id = cad_decision.0005
		}
		faith:russian_orthodox = { remove_doctrine = unavailable_doctrine }
		root.culture = {
			every_culture_county = {
				limit = { faith = { has_doctrine = special_doctrine_ecumenical_christian } }
				set_county_faith = faith:russian_orthodox
			}
		}
	}

	ai_potential = {
		always = yes
	}

	ai_will_do = {
		base = 100
	}
}

declare_autocephaly_vlach_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
	}

	#These will be shared between all decisions
	title = declare_autocephaly_decision
	desc = declare_autocephaly_decision_desc
	selection_tooltip = declare_autocephaly_decision_tooltip
	confirm_text = declare_autocephaly_decision_confirm
	decision_group_type = major

	ai_check_interval = 120

	is_shown = {
		is_ruler = yes
		is_landed = yes

		root.culture = { #Vlach is the only vanilla culture, but let's leave it open for custom cultures
			has_cultural_pillar = heritage_vlach
		}
		root.faith = {
			religion_tag = christianity_religion
		}
		faith:vlach_orthodox = { has_doctrine = unavailable_doctrine }
	}

	is_valid = {
		highest_held_title_tier > 3 #Kings & Emperors
		NOT = {
			top_liege = { has_title = title:e_byzantium }
		}
		calc_true_if = { #At least three holy sites are controlled
			amount >= 3
			custom_description = {
				text = controls_silistra
				title:c_dorostorum.holder.top_liege = root 
			}
			custom_description = {
				text = controls_pitesti
				title:c_campulung.holder.top_liege = root 
			}
			custom_description = {
				text = controls_dragasani
				title:c_craiova.holder.top_liege = root 
			}
			custom_description = {
				text = controls_baia
				title:c_suceava.holder.top_liege = root
			}
			custom_description = {
				text = controls_balti
				title:c_soroca.holder.top_liege = root
			}
		}
	}

	is_valid_showing_failures_only = {
		is_capable_adult = yes
		is_imprisoned = no
		is_at_war = no
	}

	minimum_cost = {
		piety = 1000
	}

	effect = {
		set_character_faith_with_conversion = faith:vlach_orthodox #This will simplify things going forward
		trigger_event = {
			id = cad_decision.0005
		}
		faith:vlach_orthodox = { remove_doctrine = unavailable_doctrine }
		root.culture = {
			every_culture_county = {
				limit = { faith = { has_doctrine = special_doctrine_ecumenical_christian } }
				set_county_faith = faith:vlach_orthodox
			}
		}
	}

	ai_potential = {
		always = yes
	}

	ai_will_do = {
		base = 100
	}
}
#
# Decisions relating to the Armenian Apostolic Church and other Armenian churches
#enforce_council_of_shirakavan_decision = { #Orthodox autocephaly before 1000
#
#}
#
#call_council_of_hromkla_decision = { #Orthodox autocephaly after 1000
#
#}
#
#cilician_uniate_decision = { #Establish Cilician Uniate church
#
#}
#
#subjugate_armenian_church_orthodox_decision = { #Horoms gain autocephaly
#
#}
#
#subjugate_armenian_church_melkite_decision = { #T'sat gain autocephaly
#
#}
#
#subjugate_armenian_church_georgian_decision = { #Ivirs gain autocephaly
#
#}
#
#separate_from_armenian_church_decision = { #Albanian Apostolics gain autocephaly
#
#}
#
# Generic Decisions for Changing Communion Doctrine
enter_catholic_communion_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
	}

	title = enter_catholic_communion_decision
	desc = enter_catholic_communion_decision_desc
	selection_tooltip = enter_catholic_communion_decision_tooltip
	confirm_text = enter_catholic_communion_decision_confirm

	cooldown = { years = 20 } #With TCT installed, it is possible to say no

	ai_goal = no

	ai_check_interval = 0

	is_shown = {
		is_ruler = yes
		is_landed = yes

		AND = {
			root.faith = { religion_tag = christianity_religion }
			root.faith = { has_doctrine = doctrine_circumincession_trinitarian }
			NOR = { 
				root.faith = { has_doctrine = catholic_autocephaly_autocephalous } 
				root.faith = { has_doctrine = catholic_autocephaly_autonomous } 

				#We don't want players to even consider for larger faiths
				root.faith = faith:catholic
				root.faith = faith:orthodox
			}
		}
		OR = {
			title:k_papal_state = { exists = yes }
		}
	}

	is_valid = {
		highest_held_title_tier > 3 #Kings & Emperors
	}

	is_valid_showing_failures_only = {
		is_capable_adult = yes
		is_imprisoned = no
		is_at_war = no
	}

	cost = {
		piety = 500
	}

	effect = {
		trigger_event = { id = cad_decision.0012 }
	}

	ai_potential = {
		always = no #The AI should not take this decision
	}
}

enter_orthodox_communion_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
	}

	title = enter_orthodox_communion_decision
	desc = enter_orthodox_communion_decision_desc
	selection_tooltip = enter_orthodox_communion_decision_tooltip
	confirm_text = enter_orthodox_communion_decision_confirm

	ai_goal = no

	ai_check_interval = 0

	is_shown = {
		is_ruler = yes
		is_landed = yes

		AND = {
			root.faith = { religion_tag = christianity_religion }
			root.faith = { has_doctrine = doctrine_circumincession_trinitarian }
			NOR = { 
				root.faith = { has_doctrine = orthodox_autocephaly_autocephalous } 
				root.faith = { has_doctrine = orthodox_autocephaly_autonomous } 

				#We don't want players to even consider for larger faiths
				root.faith = faith:catholic
				root.faith = faith:orthodox
			}
		}
	}

	is_valid = {
		highest_held_title_tier > 3 #Kings & Emperors
	}

	is_valid_showing_failures_only = {
		is_capable_adult = yes
		is_imprisoned = no
		is_at_war = no
	}

	cost = {
		piety = 500
	}

	effect = {
		trigger_event = { id = cad_decision.0013 }
	}

	ai_potential = {
		always = no #The AI should not take this decision
	}
}

enter_oriental_communion_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
	}

	title = enter_oriental_communion_decision
	desc = enter_oriental_communion_decision_desc
	selection_tooltip = enter_oriental_communion_decision_tooltip
	confirm_text = enter_oriental_communion_decision_confirm

	ai_goal = no

	ai_check_interval = 0

	is_shown = {
		is_ruler = yes
		is_landed = yes

		AND = {
			root.faith = { religion_tag = christianity_religion }
			root.faith = { has_doctrine = doctrine_circumincession_trinitarian }
			NOR = { 
				root.faith = { has_doctrine = oriental_autocephaly_autocephalous } 
				root.faith = { has_doctrine = oriental_autocephaly_autonomous } 

				#We don't want players to even consider for larger faiths
				root.faith = faith:catholic
				root.faith = faith:orthodox
			}
		}
	}

	is_valid = {
		highest_held_title_tier > 3 #Kings & Emperors
	}

	is_valid_showing_failures_only = {
		is_capable_adult = yes
		is_imprisoned = no
		is_at_war = no
	}

	cost = {
		piety = 500
	}

	effect = {
		trigger_event = { id = cad_decision.0014 }
	}

	ai_potential = {
		always = no #The AI should not take this decision
	}
}

enter_nestorian_communion_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
	}

	title = enter_nestorian_communion_decision
	desc = enter_nestorian_communion_decision_desc
	selection_tooltip = enter_nestorian_communion_decision_tooltip
	confirm_text = enter_nestorian_communion_decision_confirm

	ai_goal = no

	ai_check_interval = 0

	is_shown = {
		is_ruler = yes
		is_landed = yes

		AND = {
			root.faith = { religion_tag = christianity_religion }
			root.faith = { has_doctrine = doctrine_circumincession_trinitarian }
			NOR = { 
				root.faith = { has_doctrine = nestorian_autocephaly_autocephalous } 
				root.faith = { has_doctrine = nestorian_autocephaly_autonomous } 

				#We don't want players to even consider for larger faiths
				root.faith = faith:catholic
				root.faith = faith:orthodox
			}
		}
	}

	is_valid = {
		highest_held_title_tier > 3 #Kings & Emperors
	}

	is_valid_showing_failures_only = {
		is_capable_adult = yes
		is_imprisoned = no
		is_at_war = no
	}

	cost = {
		piety = 500
	}

	effect = {
		trigger_event = { id = cad_decision.0015 }
	}

	ai_potential = {
		always = no #The AI should not take this decision
	}
}