﻿### EK NOTES: added EK tenets to the end, commented out unused vanilla content

### EK NOTE: The Virtue & Sin logic has been flipped
# Instead of Tenets providing Virtues and/or Sins, they now require the same traits to be Virtues, Sins, not Virtues, or not Sins depending on the situation. 
# Tenets that make a personality trait a sin, requires that trait not being a virtue, while tenets making that trait a virtue requires that trait not already being a sin.
# Tenets providing >1 level of Virtues or Sins (Legalism makes Just a "double virtue", doubling its effects) still give the Virtue or Sin, but now require also having the doctrine that makes them a virtue or a sin in the first place
# Obviously this only applies to personality traits virtues & sins, as these are the ones that you set up when fouding your faith

## Daedra-related tenets (unlock the worship of this Prince as a patron deity if the tenet is used & Daedric worship is not a crime). See ek_religions_scripted_triggers.
## NOTE: When tying a Prince to a specific tenet, don't forget to change the creating_faith_$PRINCE$_shunned_accepted_tenet_doctrine scripted trigger
# Azura: Esotericism
# Boethiah: Unrelenting Faith + Sacred Lies
# Clavicus: Prosperity Worship + Daedric Bargains
# Hermaeus: Veneration of Knowledge
# Hircine: Lycan Worship + Ritual Hunts + Sanctity of Nature
# Malacath: Contempt for the Weak
# Mehrunes: Pursuit of Power
# Mephala: Shadow Worship + Sanctioned False Conversion + Sacred Lies
# Meridia: Sanctity of Life
# Molag: Vampire Worship + Human Sacrifice
# Namira: Vows of Squalor + Adorcism + Ritual Cannibalism
# Nocturnal: Shadow Worship
# Peryite: Veneration of Diseases
# Sanguine: Carnal Exaltation + Hedonistic
# Sheogorath: Radical Detachment + Thriving in Chaos
# Vaermina: Sacred Alchemy + Ritual Nightmares
doctrine_core_tenets = {
	group = "core_tenets"
	number_of_picks = 3

	#############################
	# VANILLA TENETS			#
	#############################

	#############################
	# Christian Faith Tenets	#
	#############################

	tenet_aniconism = {
		icon = core_tenet_aniconism
		piety_cost = {
			# EK DISABLED: irrelevant
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			religion_tag = judaism_religion
			# 			religion_tag = islam_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_aniconism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		# EK DISABLED: irrelevant
		# is_shown = {
		# 	has_doctrine = abrahamic_hostility_doctrine
		# }

		can_pick = {
			custom_description = {
				text = incompatible_doctrine_mummification_trigger
				NOT = { doctrine:doctrine_funeral_mummification = { is_in_list = selected_doctrines } }
			}
		}

		character_modifier = {
			church_holding_build_speed = -0.33
			church_holding_build_gold_cost = -0.33
			church_holding_holding_build_speed = -0.33
			church_holding_holding_build_gold_cost = -0.33
		}

		parameters = {
			reforging_artifacts_costs_piety = yes
			destroying_artifacts_is_pious = yes
		}
	}

	# EK DISABLED: irrelevant
	tenet_alexandrian_catechism = {
		icon = core_tenet_alexandrian_catechism
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_alexandrian_catechism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		name = {
			first_valid = {
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = christianity_religion
				# 	}
				# 	desc = tenet_alexandrian_catechism_name
				# }
				desc = tenet_islamic_rationalism_name
			}
		}

		desc = {
			first_valid = {
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = christianity_religion
				# 	}
				# 	desc = tenet_alexandrian_catechism_desc
				# }
				desc = tenet_islamic_rationalism_desc
			}
		}

		is_shown = {
			# EK EDIT: disabled
			# religion_tag = christianity_religion
			# religion_tag = islam_religion 
			always = no
		}

		can_pick = {
			custom_description = {
				text = doctrine_pluralism_fundamentalist_trigger
				NOT = { doctrine:doctrine_pluralism_fundamentalist = { is_in_list = selected_doctrines } }
			}
		}

		character_modifier = {
			monthly_learning_lifestyle_xp_gain_mult = 0.2
			learning_per_stress_level = 2
		}

		traits = {
			virtues = { scholar }
		}
	}

	tenet_armed_pilgrimages = {
		icon = core_tenet_armed_pilgrimages
		piety_cost = {
			# EK DISABLED: irrelevant
			# if = {
			# 	limit = { religion_tag = christianity_religion }
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_armed_pilgrimages }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		# EK DISABLED: irrelevant
		# is_shown = {
		# 	OR = {
		# 		religion_tag = christianity_religion
		# 		religion_tag = judaism_religion
		# 	}
		# }

		can_pick = {
			custom_description = {
				text = incompatible_tenet_pacifism_trigger
				NOT = { doctrine:tenet_pacifism = { is_in_list = selected_doctrines } }
			}
			# EK DISABLED: irrelevant
			# custom_description = {
			# 	text = incompatible_tenet_dharmic_pacifism_trigger
			# 	NOT = { doctrine:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } }
			# }
			custom_description = {
				text = incompatible_tenet_armed_pilgrimages_vs_forbidden_pilgrimages
				NOT = { doctrine:doctrine_pilgrimage_forbidden = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			cheaper_holy_wars_active = yes
			#great_holy_wars_active = yes # EK EDIT: we don't use GHW. Instead, let's add some parameters
			ghw_no_hof_conversion_buffs_active = yes
			pilgrimage_decision_active = yes
			# EK ADDITION: new parameters!
			holy_wars_against_hostile_faiths_active = yes #allows holy wars against merely hostile faiths, not evil as otherwise in EK
			ghazi_special_rights_granted_active = yes
		}
		character_modifier = {
			accolade_glory_gain_mult = 0.1
		}
	}

	tenet_carnal_exaltation = {
		icon = core_tenet_carnal_exaltation
		piety_cost = {
			# EK DISABLED: irrelevant
			if = {
				limit = {
			# 		religion_tag = hinduism_religion
					# EK EDIT: Sanguine likes this stuff
					religion_tag = sanguine_religion
					doctrine:doctrine_pantheon_sanguine = { is_in_list = selected_doctrines }
			 	}
			 	value = faith_tenet_cost_low
			}
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			religion_tag = judaism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_massive
			# }
			else = {
				value = faith_tenet_cost_mid
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_carnal_exaltation }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		character_modifier = {
			fertility = 0.25
		}

		traits = {
			virtues = { lustful }
			sins = { chaste }
		}

		#EK ADDITION: added check for virtue/sin doctrines
		can_pick = {
			custom_description = {
				text = incompatible_virtue_chaste
				NOT = { doctrine:doctrine_virtue_chaste = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_lustful
				NOT = { doctrine:doctrine_sin_lustful = { is_in_list = selected_doctrines } }
			}
		}
	}

	# EK DISABLED: we handle cultural identity with doctrines
	tenet_communal_identity = {
		icon = core_tenet_communal_identity
		piety_cost = {
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_mid
			# }
			# else = {
				value = faith_tenet_cost_low
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_communal_identity }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		name = {
			first_valid = {
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = judaism_religion
				# 	}
				# 	desc = tenet_communal_identity_chosen_people_name
				# }
				desc = tenet_communal_identity_name
			}
		}

		desc = {
			first_valid = {
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = judaism_religion
				# 	}
				# 	desc = tenet_communal_identity_chosen_people_desc
				# }
				desc = tenet_communal_identity_desc
			}
		}

		can_pick = {
			# EK EDIT
			#always = yes
			always = no
		}

		parameters = {
			same_culture_conversion_bonus_active = yes
			same_faith_promote_culture_bonus_active = yes
			other_culture_conversion_penalty_active = yes
			# EK ADDITION: gay baby jail for these parameters
			great_holy_wars_active = yes
			great_holy_wars_active_if_reformed = yes
			# Some might notice that these two above shouldn't be here
			# And they're right
			# But since it has been commented out in the other tenets, the error.log throws an error
		}

		character_modifier = {
			name = "tenet_communal_identity_opinion"
			same_faith_opinion = 10
		}
	}

	tenet_communion = {
		icon = core_tenet_communion
		piety_cost = {
			# EK EDIT: irrelevant
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			religion_tag = judaism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else_if = {
			# 	limit = {
			# 		has_doctrine = pagan_hostility_doctrine
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_communion }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
		can_pick = {
			custom_description = {
				text = doctrine_requires_head_of_faith_trigger
				NOT = {
					doctrine:doctrine_no_head = { is_in_list = selected_doctrines }
				}
			}
			custom_description = {
				text = incompatible_tenet_sacred_shadows_trigger
				NOT = {
					doctrine:tenet_sacred_shadows = { is_in_list = selected_doctrines }
				}
			}
			#EK ADDITION: added check for virtue/sin doctrines
			custom_description = {
				text = incompatible_virtue_deceitful
				NOT = { doctrine:doctrine_virtue_deceitful = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_honest
				NOT = { doctrine:doctrine_sin_honest = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			seek_indulgences_active = yes
			seek_indulgences_active_2 = yes
			excommunication_active = yes
		}
		traits = {
			virtues = { honest }
			sins = { deceitful }
		}
	}

	tenet_consolamentum = {
		icon = core_tenet_consolamentum

		name = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = christianity_religion
				# 	}
				# 	desc = tenet_consolamentum_name
				# }
				# EK ADDITION
				triggered_desc = {
					trigger = {
						religion_tag = sheogorath_religion
					}
					desc = tenet_consolamentum_sheogorath_religion_name
				}
				triggered_desc = {
					trigger = {
						religion_tag = celestial_religion
					}
					desc = tenet_consolamentum_celestial_religion_name
				}
				triggered_desc = {
					trigger = {
						religion_tag = sithis_religion
					}
					desc = tenet_consolamentum_sithis_religion_name
				}
				# EK ADDITION END
				desc = tenet_consolamentum_name_alternate
			}
		}

		# EK ADDITION: added triggered desc to desc
		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						religion_tag = sheogorath_religion
					}
					desc = tenet_consolamentum_sheogorath_religion_desc
				}
				triggered_desc = {
					trigger = {
						religion_tag = celestial_religion
					}
					desc = tenet_consolamentum_celestial_religion_desc
				}
				triggered_desc = {
					trigger = {
						religion_tag = sithis_religion
					}
					desc = tenet_consolamentum_sithis_religion_desc
				}
				desc = tenet_consolamentum_desc
			}
		}

		piety_cost = {
			if = {
				limit = {
					has_doctrine = tenet_sacrificial_ceremonies
				}
				value = faith_tenet_cost_low
			}
			# EK DISABLED
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = dualism_religion
			# 			religion_tag = hinduism_religion
			# 			religion_tag = jainism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			else = {
				value = faith_tenet_cost_mid
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_consolamentum }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			# EK EDIT
			# NOR = {
			# 	religion_tag = islam_religion
			# 	religion_tag = judaism_religion
			# 	religion_tag = zoroastrianism_religion
			# 	AND = {
			# 		has_doctrine = pagan_hostility_doctrine
			# 		NOT = { religion_tag = kushitism_religion }
			# 	}
			# }
			always = yes
		}
		
		can_pick = {
			custom_description = {
				text = incompatible_tenet_sacrificial_ceremonies_trigger
				NOT = { doctrine:tenet_sacrificial_ceremonies = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			consolamentum_active = yes
		}

		character_modifier = {
			short_reign_duration_mult = -0.5
		}
	}

	tenet_divine_marriage = {
		icon = core_tenet_divine_marriage
		name = {
			# EK DISABLED
			# first_valid = {
			# 	triggered_desc = {
			# 		trigger = {
			# 			religion_tag = zoroastrianism_religion
			# 		}
			# 		desc = tenet_divine_marriage_xwedodah 
			# 	}
				desc = tenet_divine_marriage_name
			#}
		}
		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = islam_religion
			# 			religion_tag = dualism_religion
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_divine_marriage }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}


		can_pick = {
			custom_description = {
				text = doctrine_unrestricted_consanguinity_trigger
				doctrine:doctrine_consanguinity_unrestricted = { is_in_list = selected_doctrines }
			}
		}

		parameters = {
			divine_marriage_opinion = 10
			divine_marriage_piety_gain_active = yes
		}

		traits = {
			virtues = {
				pure_blooded = 2
				incestuous
			}
		}
	}

	# EK DISABLED - just commented out stuff giving errors and then setting always = no
	tenet_gnosticism = {
		icon = core_tenet_gnosticism
		piety_cost = {
			# if = {
				# limit = {
				# 	OR = {
				# 		religion_tag = dualism_religion
				# 		religion_tag = zoroastrianism_religion
				# 	}
				# }
				# value = faith_tenet_cost_low
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = judaism_religion
			# 			religion_tag = islam_religion
			# 			religion_tag = hinduism_religion
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_gnosticism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		traits = {
			virtues = { temperate }
			sins = { gluttonous }
		}
		#EK DISABLED
		# can_pick = {
		# 	custom_description = {
		# 		text = incompatible_tenet_eastern_syncretism_trigger
		# 		NOT = {
		# 			doctrine:tenet_eastern_syncretism = { is_in_list = selected_doctrines }
		# 		}
		# 	}
		# }

		parameters = {
			# hostility_override_tenet_gnosticism = 0
			# hostility_override_special_doctrine_is_gnostic_faith = 0
			granting_titles_gives_stress = yes
		}

		character_modifier = {
			learning = 2
			stewardship = -2
		}

		is_shown = {
			# EK DISABLED
			# NOT = { has_doctrine = special_doctrine_is_gnostic_faith } # Can't be Gnostic if ye already are Gnostic
			always = no
		}
	}

	tenet_mendicant_preachers = {
		icon = core_tenet_mendicant_preachers
		piety_cost = {
			# EK EDIT: irrelevant
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			religion_tag = dualism_religion
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = hinduism_religion
			# 			religion_tag = zoroastrianism_religion
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_mendicant_preachers }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_description = {
				text = incompatible_tenet_hedonistic_trigger
				NOT = { doctrine:tenet_hedonistic = { is_in_list = selected_doctrines } }
			}
			#EK ADDITION: added check for virtue/sin doctrines
			custom_description = {
				text = incompatible_virtue_gluttonous
				NOT = { doctrine:doctrine_virtue_gluttonous = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_temperate
				NOT = { doctrine:doctrine_sin_temperate = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			mendicant_preachers_conversion_active = yes
			pilgrimage_decision_active = yes
			unlock_voluntary_laampdom_faith = yes
		}

		traits = {
			virtues = { temperate }
			sins = { gluttonous }
		}
	}

	tenet_monasticism = {
		icon = core_tenet_monasticism
		piety_cost = {
			# EK EDIT: irrelevant
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			religion_tag = dualism_religion
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = zoroastrianism_religion
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_monasticism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_description = {
				text = incompatible_tenet_hedonistic_trigger
				NOT = { doctrine:tenet_hedonistic = { is_in_list = selected_doctrines } }
			}
			#EK ADDITION: added check for virtue/sin doctrines
			custom_description = {
				text = incompatible_virtue_gluttonous
				NOT = { doctrine:doctrine_virtue_gluttonous = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_temperate
				NOT = { doctrine:doctrine_sin_temperate = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			take_vows_active = yes
		}

		traits = {
			virtues = { temperate }
			sins = { gluttonous }
		}
	}

	tenet_pacifism = {
		icon = core_tenet_pacifism
		piety_cost = {
			# EK EDIT: irrelvant
			# if = {
			# 	limit = {
			# 		religion_tag = christianity_religion
			# 		religion_tag = taoism_religion
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else_if = {
			# 	limit = {
			# 		religion_tag = islam_religion
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_pacifism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			# EK DISABLED
			# NOR = {
			# 	religion_tag = buddhism_religion
			# 	religion_tag = hinduism_religion
			# 	religion_tag = jainism_religion
			# }
		}

		can_pick = {
			custom_description = {
				text = incompatible_tenet_human_sacrifice_trigger
				NOT = { doctrine:tenet_human_sacrifice = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_armed_pilgrimages_trigger
				NOT = { doctrine:tenet_armed_pilgrimages = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_gruesome_festivals_trigger
				NOT = {
					doctrine:tenet_gruesome_festivals = { is_in_list = selected_doctrines }
				}
			}
			#EK ADDITION: added check for virtue/sin doctrines
			custom_description = {
				text = incompatible_virtue_wrathful
				NOT = { doctrine:doctrine_virtue_wrathful = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_calm
				NOT = { doctrine:doctrine_sin_calm = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			holy_wars_forbidden = yes
			pacifist_opinion_active = yes
			opinion_of_pacifist_opinion_active = 10
			piety_from_long_peace = 1
		}

		traits = {
			virtues = { calm }
			sins = { wrathful }
		}

		character_modifier = {
			domain_limit = 1
			ai_war_chance = -0.25
			ai_war_cooldown = 5
		}
	}

	tenet_pentarchy = {
		icon = core_tenet_pentarchy
		name = {
			# EK DISABLED
			first_valid = {
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = christianity_religion
				# 	}
				# 	desc = tenet_pentarchy_alternate_name
				# }
				desc = tenet_pentarchy_name
			}
		}

		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			religion_tag = hinduism_religion
			# 			religion_tag = zoroastrianism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_mid
			# }
			# else = {
				value = faith_tenet_cost_high
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_pentarchy }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_description = {
				text = doctrine_pluralism_pluralistic_trigger
				NOT = { doctrine:doctrine_pluralism_pluralistic = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			#fervor_per_holy_site = 1 # EK EDIT: replaced with the new parameter below
			pilgrimage_decision_active = yes
			# EK ADDITION: Holy Sites now boost Fervor Equilibrium
			holy_site_increase_fervor_equilibrium_active = yes
		}
	}

	tenet_unrelenting_faith = {
		icon = core_tenet_unrelenting_faith
		piety_cost = {
			# EK EDIT: irrelevant
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = judaism_religion
			# 			religion_tag = islam_religion
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_unrelenting_faith }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		character_modifier = {
			prowess = 4
			tolerance_advantage_mod = 2
		}

		parameters = {
			clergy_can_fight = yes
		}

		name = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = {
				# 		OR = { 
				# 			has_doctrine = doctrine_heretic_branch_zandik
				# 			has_doctrine = tenet_pastoral_isolation
				# 		}
				# 	}
				# 	desc = tenet_unrelenting_faith_zandik_name
				# }
				desc = tenet_unrelenting_faith_name
			}
		}

		desc = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = {
				# 		OR = { 
				# 			has_doctrine = doctrine_heretic_branch_zandik
				# 			has_doctrine = tenet_pastoral_isolation
				# 		}
				# 	}
				# 	desc = tenet_unrelenting_faith_zandik_desc
				# }
				desc = tenet_unrelenting_faith_desc
			}
		}
	}

	tenet_vows_of_poverty = {
		icon = core_tenet_vows_of_poverty
		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			religion_tag = dualism_religion
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = zoroastrianism_religion
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_vows_of_poverty }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			#always = yes
			#EK ADDITION: added check for virtue/sin doctrines
			custom_description = {
				text = requires_virtue_generous
				doctrine:doctrine_virtue_generous = { is_in_list = selected_doctrines }
			}
			custom_description = {
				text = requires_sin_greedy
				doctrine:doctrine_sin_greedy = { is_in_list = selected_doctrines }
			}
		}

		parameters = {
			vows_of_poverty_active = yes
			unlock_voluntary_laampdom_faith = yes
		}

		# EK NOTE: tenets giving > 1 of a trait as a virtue stays as such
		traits = {
			virtues = { generous = 2 }
			sins = { greedy = 2 }
		}
	}

	tenet_pastoral_isolation = {
		icon = core_tenet_pastoral_isolation

		# EK EDIT: irrelevant
		# is_shown = {
		# 	religion_tag = christianity_religion
		# }
		can_pick = {
			custom_description = {
				text = doctrine_no_head_of_faith_trigger
				doctrine:doctrine_no_head = { is_in_list = selected_doctrines }
			}
			custom_description = {
				text = incompatible_tenet_false_conversion_sanction_trigger
				NOT = {
					doctrine:tenet_false_conversion_sanction = { is_in_list = selected_doctrines }
				}
			}
		}

		piety_cost = {
			#value = faith_tenet_cost_low
			value = faith_tenet_cost_mid #EK EDIT: standardised tenet costs
		}

		parameters = {
			# EK DISABLED: irrelevant
			#hostility_override_special_doctrine_is_christian_faith = 0
			#For loc:
			#is_christian_faith_pastoral_isolation_loc_override = 0
			sanctioned_false_conversion = yes
			unattractive_for_character_conversions = yes
			tenet_unlocks_t3_withdraw_from_view = yes
		}

		character_modifier = {
			development_growth_factor = -0.1
			different_faith_liege_opinion = 10
			opinion_of_different_faith_liege = 10
		}

		traits = {
		}
	}

	tenet_rite = {
		icon = core_tenet_rite

		is_shown = {
			# Filter out religions that use a branch system.
			# EK DISABLED: irrelevant
			# NOR = {
			# 	religion = religion:islam_religion
			# 	religion = religion:zoroastrianism_religion
			# }
			# We also only want people with existing spiritual HoFs.
			exists = religious_head
			#has_doctrine_parameter = spiritual_head_of_faith
			# EK EDIT: unlocked for Mane HoF too
			OR = {
				has_doctrine = doctrine_spiritual_head
				has_doctrine = doctrine_mystical_birthright_head
			}
		}

		can_pick = {
			# Must have a theocratic HoF.
			custom_tooltip = { #reins note: changed from custom_description because I can't be assed
				#text = doctrine_requires_theocratic_head_of_faith_trigger
				# EK EDIT: also unlocked for Mane HoF
				text = requires_spiritual_or_mystical_birthright_hof
				OR = {
					AND = {
						doctrine:doctrine_spiritual_head = { is_in_list = selected_doctrines }
						has_doctrine = doctrine_spiritual_head
					}
					AND = {
						doctrine:doctrine_mystical_birthright_head = { is_in_list = selected_doctrines }
						has_doctrine = doctrine_mystical_birthright_head
					}
				}
			}
			# !!! SECTION NOTE !!!
			## We check for tenets rather than doctrine parameters here because doctrine parameters cannot be checked in the selected_doctrines list, so we maintain such throughout the section for consistency.
			# Some tenet/doctrine configurations are mutually exclusive.
			## Pacifists vs. war-mongers.
			custom_description = {
				text = incompatible_tenet_shared_hof_pacifists_vs_warmongers
				NOR = {
					# Either you're trying to be pacifist and your HoF hates it...
					AND = {
						OR = {
							doctrine:tenet_dharmic_pacifism = { is_in_list = selected_doctrines }
							doctrine:tenet_pacifism = { is_in_list = selected_doctrines }
						}
						religious_head.faith = {
							OR = {
								has_doctrine = tenet_armed_pilgrimages
								has_doctrine = tenet_struggle_submission
								has_doctrine = tenet_warmonger
								has_doctrine = tenet_pursuit_of_power
							}
						}
					}
					# ... or your HoF is and hates your warmongering.
					AND = {
						OR = {
							doctrine:tenet_armed_pilgrimages = { is_in_list = selected_doctrines }
							doctrine:tenet_struggle_submission = { is_in_list = selected_doctrines }
							doctrine:tenet_warmonger = { is_in_list = selected_doctrines }
							doctrine:tenet_pursuit_of_power = { is_in_list = selected_doctrines }
						}
						religious_head.faith = {
							OR = {
								has_doctrine = tenet_dharmic_pacifism
								has_doctrine = tenet_pacifism
							}
						}
					}
				}
			}
			## Criminal witches vs. adorcists.
			custom_description = {
				text = incompatible_tenet_shared_hof_criminal_witches_vs_adorcists
				NOR = {
					# Either you're big on possessions but your HoF hates witchcraft...
					AND = {
						doctrine:tenet_adorcism = { is_in_list = selected_doctrines }
						religious_head.faith = { has_doctrine = doctrine_witchcraft_crime }
					}
					# ... or you hate witchcraft but your HoF likes possessions.
					AND = {
						doctrine:doctrine_witchcraft_crime = { is_in_list = selected_doctrines }
						religious_head.faith = { has_doctrine = tenet_adorcism }
					}
				}
			}
			## Hedonists vs. ascetics.
			custom_description = {
				text = incompatible_tenet_shared_hof_hedonists_vs_ascetics
				NOR = {
					# Either you like to indulge but your HoF believes less is more...
					AND = {
						doctrine:tenet_hedonistic = { is_in_list = selected_doctrines }
						religious_head.faith = { has_doctrine = tenet_asceticism }
					}
					# ... or your HoF throws constant wild parties whilst you prefer to sit and chill.
					AND = {
						doctrine:tenet_asceticism = { is_in_list = selected_doctrines }
						religious_head.faith = { has_doctrine = tenet_hedonistic }
					}
				}
			}
			## Cannibals vs. non-cannibals of any kind.
			custom_description = {
				text = incompatible_tenet_shared_hof_cannibals_vs_non_cannibals
				NOR = {
					# Cannibal-you doesn't get why your non-cannibal HoF freaks out when you offer them a hand...
					AND = {
						doctrine:tenet_ritual_cannibalism = { is_in_list = selected_doctrines }
						NOT = {
							religious_head.faith = { has_doctrine = tenet_ritual_cannibalism }
						}
					}
					# ... or cannibal-HoF thinks you need to chill the hell out whilst they eat this dude.
					AND = {
						religious_head.faith = { has_doctrine = tenet_ritual_cannibalism }
						NOT = {
							doctrine:tenet_ritual_cannibalism = { is_in_list = selected_doctrines }
						}
					}
				}
			}
			# Some tenet/doctrine configurations are unilaterally exclusive.
			## HumSac/GruFes are disliked by anyone who doesn't also actively believe in such.
			custom_description = {
				text = incompatible_tenet_shared_hof_world_vs_humsac_grufes
				# Your HoF will not put up with your HumSackery if they don't also go in for it.
				trigger_if = {
					limit = {
						OR = {
							doctrine:tenet_gruesome_festivals = { is_in_list = selected_doctrines }
							doctrine:tenet_human_sacrifice = { is_in_list = selected_doctrines }
						}
					}
					NOR = {
						religious_head.faith = { has_doctrine = tenet_gruesome_festivals }
						religious_head.faith = { has_doctrine = tenet_human_sacrifice }
					}
				}
			}
			## Monogamy doesn't like polygamy.
			custom_description = {
				text = incompatible_tenet_shared_hof_monogamy_vs_polygamy
				# Monogamous HoFs do not appreciate polygamy.
				trigger_if = {
					limit = {
						doctrine:doctrine_polygamy = { is_in_list = selected_doctrines }
					}
					NOT = {
						religious_head.faith = { has_doctrine = doctrine_monogamy }
					}
				}
			}
			## All lesser variations of incest don't like unrestricted incest.
			custom_description = {
				text = incompatible_tenet_shared_hof_world_vs_unrestricted_incest
				# Non-incestual HoFs really take issue with unrestricted incest.
				trigger_if = {
					limit = {
						doctrine:doctrine_consanguinity_unrestricted = { is_in_list = selected_doctrines }
					}
					religious_head.faith = { has_doctrine = doctrine_consanguinity_unrestricted }
				}
			}
		}

		piety_cost = {
			#value = faith_tenet_cost_low
			value = faith_tenet_cost_mid # EK EDIT: standardised tenet costs
		}

		parameters = {
			maintains_head_of_faith_on_creation = yes
			# For loc:
			ecumenical_christians_keep_ecumenism = yes
			# And finally, you and your old faith see each other as astray.
			## Please note, unlike other hostility overrides, this is _bilateral_, not unilateral.
			#same_hof_hostility_override = 1 #EK DISABLED: hostility works differently in EK
		}

		character_modifier = {
			faith_creation_piety_cost_mult = -0.25
			opinion_of_same_faith = 5
			religious_head_opinion = -10
		}
	}

	############################
	#	Muslim Faith Tenets	#
	############################

	tenet_adaptive = {
		icon = core_tenet_adaptive
		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			religion_tag = islam_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = judaism_religion
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_adaptive }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_description = {
				text = doctrine_inverted_pluralism_pluralistic_trigger
				NOR = {
					doctrine:doctrine_pluralism_fundamentalist = { is_in_list = selected_doctrines }
					doctrine:doctrine_pluralism_righteous = { is_in_list = selected_doctrines }
				}
			}
		}

		parameters = {
			tenet_adaptive_conversion_resistance = yes
			reduced_vassal_religion_discontent = yes
			# EK ADDITION: new parameter!
			reduces_number_counties_fervor_equilibrium_penality_active = yes
		}

		character_modifier = {
			different_faith_county_opinion_mult = -0.25
			different_faith_liege_opinion = 15
			opinion_of_different_faith_liege = 15
		}
	}

	tenet_esotericism = {
		icon = core_tenet_esotericism
		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = hinduism_religion
			# 			religion_tag = jainism_religion
			# 			religion_tag = zoroastrianism_religion
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_esotericism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		traits = {
			virtues = {
				lifestyle_mystic = { weight = 1 }
			}
		}

		name = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = judaism_religion
				# 	}
				# 	desc = tenet_esotericism_kabbalah
				# }
				desc = tenet_esotericism_name
			}
		}

		desc = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = judaism_religion
				# 	}
				# 	desc = tenet_esotericism_kabbalah_desc
				# }
				desc = tenet_esotericism_desc
			}
		}

		parameters = {
			tenet_esotericism_mystic_education = yes
		}
	}

	tenet_legalism = {
		icon = core_tenet_legalism
		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			#EK EDIT: was else_if, replaced IRL religions with ours
			if = {
			 	limit = {
			 		OR = {
						religion_tag = aldmeri_religion
						religion_tag = malacath_religion
						#religion_tag = islam_religion
			 			#religion_tag = judaism_religion
			 			#religion_tag = zoroastrianism_religion
			 		}
			 	}
			 	value = faith_tenet_cost_low
			}
			else = {
				value = faith_tenet_cost_mid
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_legalism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		# EK NOTE: tenets giving > 1 of a trait as a virtue stays as such
		traits = {
			virtues = { just = 2 }
			sins = { arbitrary = 2 }
		}

		parameters = {
			legalism_modified_law_costs = yes
			legalism_modified_law_costs_2 = yes
			legalism_reduced_faction_virtues = yes
			legalism_increased_faction_sins = yes
			legalism_trust_just_leader_active = yes
			### EK ADDITION: 'Might Makes Right' effect can be tied to Devotion
			ek_might_makes_right_devotion_active = yes
		}

		### EK ADDITION: Added EK triggered desc
		name = {
			first_valid = {
				triggered_desc = {
					trigger = {
						religion_tag = aldmeri_religion
					}
					desc = tenet_legalism_aldmeri_religion_name
				}
				triggered_desc = {
					trigger = {
						religion_tag = malacath_religion
					}
					desc = tenet_legalism_malacath_religion_name
				}
				desc = tenet_legalism_name
			}
		}
		# EK ADDITION
		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						religion_tag = aldmeri_religion
					}
					desc = tenet_legalism_aldmeri_religion_desc
				}
				triggered_desc = {
					trigger = {
						religion_tag = malacath_religion
					}
					desc = tenet_legalism_malacath_religion_desc
				}
				desc = tenet_legalism_desc
			}
		}
		
		#EK ADDITION: added check for virtue/sin doctrines
		can_pick = { 
			custom_description = {
				text = INCOMPATIBLE_SIN_JUST
				NOT = { doctrine:doctrine_sin_just = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = INCOMPATIBLE_VIRTUE_ARBITRARY
				NOT = { doctrine:doctrine_virtue_arbitrary = { is_in_list = selected_doctrines } }
			}
		}
		
	}

	tenet_literalism = {
		icon = core_tenet_literalism
		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = islam_religion
			# 			religion_tag = judaism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_literalism }
				multiply = faith_unchanged_doctrine_cost_mult
			}

			# EK DISABLED
			# if = {
			# 	limit = { NOT = { has_doctrine = abrahamic_hostility_doctrine } }
			# 	multiply = 1.5
			# 	round = yes
			# }
		}

		traits = {
			virtues = {
				education_learning_3
				education_learning_4
				education_learning_5
				scholar
			}
		}

		parameters = {
			literalist_debate_enabled = yes
		}
	}

	tenet_reincarnation = {
		icon = core_tenet_reincarnation
		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = islam_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = dualism_religion
			# 			religion_tag = hinduism_religion
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_reincarnation }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			# EK DISABLED
			# NOR = {
			# 	AND = {
			# 		religion_tag = christianity_religion
			# 		NOT = { this = faith:cathar }
			# 	}
			# 	religion_tag = judaism_religion
			# }
		}

		parameters = {
			reincarnation_resistance_to_conversion = yes
			reincarnation_events_active = yes
		}

		name = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = zoroastrianism_religion
				# 	}
				# 	desc = tenet_reincarnation_zoroastrian_name
				# }
				desc = tenet_reincarnation_name
			}
		}

		desc = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = zoroastrianism_religion
				# 	}
				# 	desc = tenet_reincarnation_zoroastrian_desc
				# }
				desc = tenet_reincarnation_desc
			}
		}
	}

	tenet_religious_legal_pronouncements = {
		icon = core_tenet_legal_pronouncements
		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			religion_tag = hinduism_religion
			# 			religion_tag = zoroastrianism_religion
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = islam_religion
			# 			religion_tag = judaism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_religious_legal_pronouncements }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		name = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				#	trigger = { this = faith:quranist }
				#	desc = tenet_religious_legal_pronouncements_hisbah
				# }
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = islam_religion
				# 	}
				# 	desc = tenet_religious_legal_pronouncements_fatwa
				# }
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = judaism_religion
				# 	}
				# 	desc = tenet_religious_legal_pronouncements_halakha
				# }
				desc = tenet_religious_legal_pronouncements_name
			}
		}

		parameters = {
			temporal_condemnation_enabled = yes
			religious_legal_pronouncements_law_cost_reduction = yes
			### EK ADDITION: 'Might Makes Right' effect can be tied to Devotion
			ek_might_makes_right_devotion_active = yes
		}
	}

	tenet_struggle_submission = {
		icon = core_tenet_struggle_submission
		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		religion_tag = islam_religion
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				#value = faith_tenet_cost_high
				value = faith_tenet_cost_mid #EK EDIT: standardised tenet costs
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_struggle_submission }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			# EK DISABLED
			# OR = {
			# 	religion_tag = islam_religion
			# 	religion_tag = dualism_religion
			# }
		}

		parameters = {
			#great_holy_wars_active = yes # EK EDIT
			ghw_no_hof_conversion_buffs_active = yes
			bonus_holy_war_piety_active = yes
			pilgrimage_decision_active = yes
			unlock_voluntary_laampdom_faith = yes
			### EK ADDITION: GHW are disabled in EK, so it allows you to use holy wars against faiths you consider Hostile
			holy_wars_against_hostile_faiths_active = yes
			ghazi_special_rights_granted_active = yes
		}
	}

	tenet_false_conversion_sanction = {
		icon = core_tenet_false_conversion_sanction
		name = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = islam_religion
				# 	}
				# 	desc = tenet_temporal_condemnation_taqiya
				# }
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = judaism_religion
				# 	}
				# 	desc = tenet_anusim
				# }
				desc = tenet_false_conversion_sanction_name
			}
		}

		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = dualism_religion
			# 			religion_tag = hinduism_religion
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = zoroastrianism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_false_conversion_sanction }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			sanctioned_false_conversion = yes
			# EK ADDITION:
			# EK NOTE: we use the sanctioned_false_conversion parameter a fair bit but vanilla for some reason wanna check the tenet directly. 
			# in some cases we want the secret faith stuff without the conversion resistance
			# so we've added a new parameter to the vanilla tenet and edited the parameter desc
			sanctioned_false_conversion_harder_county_conversion = yes
			# EK ADDITION END
		}

		character_modifier = {
			monthly_intrigue_lifestyle_xp_gain_mult = 0.1 #FP3 addition to make this tenet more attractive
		}
	}

	tenet_tax_nonbelievers = {
		icon = core_tenet_tax_nonbelievers
		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			religion_tag = dualism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = islam_religion
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_tax_nonbelievers }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		name = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = islam_religion
				# 	}
				# 	desc = tenet_tax_nonbelievers_jizya_name
				# }
				desc = tenet_tax_nonbelievers_name
			}
		}

		character_modifier = {
			domain_tax_different_faith_mult = 0.2
			levy_reinforcement_rate_same_faith = 0.25
			levy_reinforcement_rate_different_faith = -0.25
		}

		parameters = {
			unlock_jizya_contract = yes
		}

		is_shown = {
			# EK EDIT
			# NOT = { religion_tag = christianity_religion }
			# NOT = { has_doctrine = special_doctrine_jizya }
			always = yes
		}
	}

	#############################
	# Eastern Faith tenets 		#
	#############################

	tenet_asceticism = {
		icon = core_tenet_asceticism
		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = zoroastrianism_religion
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			religion_tag = dualism_religion
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 			religion_tag = taoism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_asceticism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}



		parameters = {
			meditation_mechanics_active = yes
			unlock_voluntary_laampdom_faith = yes
		}

		#name = { #FP3 - Removed and saved for posterity. Zurvanism would fit a future hypotetical "Fatalism" tenet, but Asceticism isn't a good fit, per beta input. Ola's note. 
		#	first_valid = {
		#		triggered_desc = {
		#			trigger = {
		#				religion_tag = zoroastrianism_religion
		#			}
		#			desc = tenet_zurvanism_name
		#		}
		#		desc = tenet_asceticism_name
		#	}
		#}

		#desc = {
		#	first_valid = {
		#		triggered_desc = {
		#			trigger = {
		#				religion_tag = zoroastrianism_religion
		#			}
		#			desc = tenet_zurvanism_desc
		#		}
		#		desc = tenet_asceticism_desc
		#	}
		#}

		#EK ADDITION: added check for virtue/sin doctrines
		can_pick = {
			custom_description = {
				text = incompatible_virtue_gluttonous
				NOT = { doctrine:doctrine_virtue_gluttonous = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_virtue_greedy
				NOT = { doctrine:doctrine_virtue_greedy = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_temperate
				NOT = { doctrine:doctrine_sin_temperate = { is_in_list = selected_doctrines } }
			}
		}

		traits = {
			virtues = {
				temperate
			}
		 	sins = {
				gluttonous
				greedy
		 		lifestyle_reveler
		 	}
		 }
	}

	# EK DISABLED
	tenet_bhakti = {
		# name = {
		# 	first_valid = {
		# 		triggered_desc = {
		# 			trigger = { religion_tag = hinduism_religion }
		# 			desc = tenet_bhakti_name
		# 		}
		# 		desc = tenet_bhakti_patron_god_name
		# 	}
		# }
		icon = core_tenet_bhakti

		piety_cost = faith_tenet_cost_mid

		is_shown = {
			# EK EDIT: disabled irrelevant tenet
			# OR = {
			# 	religion_tag = hinduism_religion
			# 	# With FP1, Germanics also get personal deities.
			# 	AND = {
			# 		religion_tag = germanic_religion
			# 		has_fp1_dlc_trigger = yes
			# 	}
			# }
			always = no
		}

		parameters = {
			select_personal_god_active = yes
		}
	}

	# EK DISABLED
	tenet_dharmic_pacifism = { #Mix of reincarnation and pacifism rites
		icon = core_tenet_dharmic_pacifism
		is_shown = {
			# EK DISABLED
			# has_doctrine = eastern_hostility_doctrine
			# NOT = { religion_tag = zoroastrianism_religion }
			always = no
		}

		piety_cost = {
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_dharmic_pacifism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_description = {
				text = incompatible_tenet_human_sacrifice_trigger
				NOT = { doctrine:tenet_human_sacrifice = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_armed_pilgrimages_trigger
				NOT = { doctrine:tenet_armed_pilgrimages = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_gruesome_festivals_trigger
				NOT = {
					doctrine:tenet_gruesome_festivals = { is_in_list = selected_doctrines }
				}
			}
		}

		parameters = {
			reincarnation_resistance_to_conversion = yes
			holy_wars_forbidden = yes
			pacifist_opinion_active = yes
			opinion_of_pacifist_opinion_active = 10
		}

		traits = {
			virtues = { calm }
			sins = { wrathful }
		}

		character_modifier = {
			domain_limit = 1
			ai_war_chance = -0.25
			ai_war_cooldown = 0.25
		}
	}

	tenet_inner_journey = {
		icon = core_tenet_inner_journey

		is_shown = {
			# EK EDIT
			# has_doctrine = eastern_hostility_doctrine
			# NOT = { religion_tag = zoroastrianism_religion }
			always = yes
		}

		piety_cost = {
			#value = faith_tenet_cost_low
			value = faith_tenet_cost_mid #EK EDIT: standardising tenet cost

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_inner_journey }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
 		#EK ADDITION: added check for virtue/sin doctrines
		can_pick = {
			custom_description = {
				text = incompatible_virtue_impatient
				NOT = { doctrine:doctrine_virtue_impatient = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_patient
				NOT = { doctrine:doctrine_sin_patient = { is_in_list = selected_doctrines } }
			}
		}
		
		traits = {
			virtues = { patient }
			sins = { impatient }
		}

		parameters = {
			meditation_mechanics_active = yes
		}
	}

	tenet_ritual_hospitality = {
		icon = core_tenet_ritual_hospitality
		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = hinduism_religion
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_ritual_hospitality }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			# EK EDIT
			# NOT = {
			# 	has_doctrine = abrahamic_hostility_doctrine
			# }
			always = yes
		}

		name = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = hinduism_religion
				# 	}
				# 	desc = tenet_ritual_hospitality_alternate_name
				# }
				desc = tenet_ritual_hospitality_name
			}
		}

		parameters = {
			host_honored_guests_active = yes
		}

 		#EK ADDITION: added check for virtue/sin doctrines
		can_pick = {
			custom_description = {
				text = incompatible_virtue_callous
				NOT = { doctrine:doctrine_virtue_callous = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_generous
				NOT = { doctrine:doctrine_sin_generous = { is_in_list = selected_doctrines } }
			}
		}
		traits = {
			virtues = {
				generous
			}
			sins = {
				callous
			}
		}

		character_modifier = {
			monthly_piety_gain_per_happy_powerful_vassal_add = 0.3
		}
	}

	############################
	# Pagan Faith Tenets  		#
	############################

	tenet_adorcism = {
		icon = core_tenet_adorcism

		piety_cost = {
			#value = faith_tenet_cost_low
			value = faith_tenet_cost_mid #EK EDIT: standardising tenet cost

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_adorcism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		# EK DISABLED: irrelevant
		# is_shown = {
		# 	OR = {
		# 		religion_tag = west_african_bori_religion
		# 		religion_tag = akom_religion
		# 	}
		# }

		parameters = {
			spirit_possession_active = yes
		}

		traits = {
			virtues = { possessed = 2 }
		}
	}

	tenet_ancestor_worship = { # EK TODO: split this up big time
		icon = core_tenet_ancestor_worship

		piety_cost = {
			#value = faith_tenet_cost_low
			value = faith_tenet_cost_mid #EK EDIT: standardising tenet cost

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_ancestor_worship }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		# EK DISABLED: irrelevant
		# is_shown = {
		# 	has_doctrine = pagan_hostility_doctrine
		# }

		parameters = {
			increased_dynasty_prestige_birth_mult = 1
			increased_dynasty_prestige_marriage_mult = 1
			increased_dynasty_prestige_long_reign_mult = 0.5
			pilgrimage_decision_active = yes
		}

		character_modifier = {
			close_relative_opinion = 5
		}
	}

	tenet_astrology = {
		icon = core_tenet_astrology
		name = { #FP3
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = {
				# 		OR = {
				# 			religion_tag = islam_religion 
				# 			religion_tag = zoroastrianism_religion
				# 		}
				# 	}
				# 	desc = tenet_divination_name
				#}
				desc = tenet_astrology_name
			}
		}

		desc = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = {
				# 		OR = {
				# 			religion_tag = islam_religion 
				# 			religion_tag = zoroastrianism_religion
				# 		}
				# 	}
				# 	desc = tenet_divination_desc
				# }
				desc = tenet_astrology_desc
			}
		}

		piety_cost = {
			#if = {
			# EK DISABLED
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			religion_tag = judaism_religion
			# 			religion_tag = islam_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = zoroastrianism_religion
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			#}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_astrology }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			divine_the_stars_active = yes # EK TODO: one neat idea from Steel was to tie this decision to the current starsign!!!
		}

		character_modifier = {
			naval_movement_speed_mult = 0.25
		}
	}

	tenet_hedonistic = {
		icon = core_tenet_hedonistic
		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_massive
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = islam_religion
			# 			religion_tag = judaism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = hinduism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_hedonistic }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			# EK EDIT
			#NOT = { religion_tag = dualism_religion }
		}

		can_pick = {
			custom_description = {
				text = incompatible_tenet_monasticism_trigger
				NOT = { doctrine:tenet_monasticism = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_mendicant_preachers_trigger
				NOT = { doctrine:tenet_mendicant_preachers = { is_in_list = selected_doctrines } }
			}
			#EK ADDITION: added check for virtue/sin doctrines
			custom_description = {
				text = requires_virtue_gluttonous
				doctrine:doctrine_virtue_gluttonous = { is_in_list = selected_doctrines }
			}
			custom_description = {
				text = requires_sin_temperate
				doctrine:doctrine_sin_temperate = { is_in_list = selected_doctrines }
			}
		}

		parameters = {
			piety_from_feasts_active = yes
		}

		# EK NOTE: tenets giving > 1 of a trait as a virtue stays as such
		traits = {
			virtues = { gluttonous = { scale = 2 weight = 2 } }
			sins = { temperate = { scale = 2 weight = 2 } }
		}

		character_modifier = {
			stress_loss_mult = 0.2
		}
	}

	tenet_human_sacrifice = {
		icon = core_tenet_human_sacrifice
		piety_cost = {
			if = {
				limit = {
					OR = { #EK ADDITION: added check for molag religion and pantheon
						religion_tag = molag_religion
						doctrine:doctrine_pantheon_molag = { is_in_list = selected_doctrines }
						has_doctrine = tenet_sacrificial_ceremonies
					}
				}
				value = faith_tenet_cost_low
			}
			# else_if = {
			# 	limit = {
			# 		has_doctrine = pagan_hostility_doctrine
			# 	}
			# 	value = faith_tenet_cost_mid
			# }
			# else_if = {
			# 	limit = {
			# 		religion_tag = hinduism_religion
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			else = {
				#value = faith_tenet_cost_massive
				value = faith_tenet_cost_mid # EK EDIT: standardising piety costs
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_human_sacrifice }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			# No HumSac for Abrahamics: 'tis literally the religion-namer.
			# EK EDIT: let's HumSac all the Abrahamics or something
			# NOR = {
			# 	religion_tag = christianity_religion
			# 	religion_tag = judaism_religion
			# 	religion_tag = islam_religion
			# }
		}

		can_pick = {
			custom_description = {
				text = incompatible_tenet_pacifism_trigger
				NOT = { doctrine:tenet_pacifism = { is_in_list = selected_doctrines } }
			}
			# EK DISABLED: irrelevant
			# custom_description = {
			# 	text = incompatible_tenet_dharmic_pacifism_trigger
			# 	NOT = { doctrine:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } }
			# }
			custom_description = {
				text = incompatible_tenet_gruesome_festivals_trigger
				NOT = {
					doctrine:tenet_gruesome_festivals = { is_in_list = selected_doctrines }
				}
			}
			custom_description = {
				text = incompatible_tenet_sacrificial_ceremonies_trigger
				NOT = {
					doctrine:tenet_sacrificial_ceremonies = { is_in_list = selected_doctrines }
				}
			}
		}

		parameters = {
			human_sacrifice_active = yes
			flower_war_cb_active = yes
		}

		character_modifier = {
			ai_war_chance = 1
			ai_war_cooldown = -0.5
		}
	}

	tenet_mystical_birthright = {
		icon = core_tenet_mystical_birthright

		piety_cost = {
			#value = faith_tenet_cost_low
			value = faith_tenet_cost_mid # EK EDIT: standardising piety costs

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_mystical_birthright }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			# EK DISABLED
			#religion_tag = magyar_religion
		}

		parameters = {
			mystic_birthright_active = yes
		}

		traits = {
			virtues = { 
				lifestyle_mystic = { 
					#scale = 5 
					scale = 2 # EK EDIT: tier 5 virtue is insane
					weight = 2 
				} 
			}
		}
	}

	tenet_ritual_celebrations = {
		icon = core_tenet_ritual_celebrations

		piety_cost = {
			# EK DISABLED: irrelevant
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = hinduism_religion
			# 			religion_tag = zoroastrianism_religion
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_ritual_celebrations }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			piety_from_feasts_active = yes
			mandatory_feast_attendance = yes
			allows_brewery = yes
		}

		character_modifier = {
			vassal_opinion = 5
			courtier_opinion = 5
		}
	}

	tenet_sacred_childbirth = {
		icon = core_tenet_sacred_childbirth
		name = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = baltic_religion
				# 	}
				# 	desc = tenet_sacred_childbirth_alternate_name
				# }
				desc = tenet_sacred_childbirth_name
			}
		}

		piety_cost = {
			#value = faith_tenet_cost_low
			value = faith_tenet_cost_mid # EK EDIT: standardising piety costs

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_sacred_childbirth }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			safer_childbirths_active = yes
			healthier_children_active = yes
			piety_from_childbirth_active = yes
		}

		character_modifier = {
			fertility = 0.1
		}

		traits = {
			#virtues = { pregnant }
			virtues = { pregnant laid_egg } # EK ADDITION: Laid Egg for Argonians is also a virtue
		}
	}

	tenet_sanctity_of_nature = {
		icon = core_tenet_sanctity_of_nature

		piety_cost = {
			# EK DISABLED: irrelevant
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = hinduism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else_if = {
			# 	limit = {
			# 		has_doctrine = abrahamic_hostility_doctrine
			# 	}
			# 	value = faith_tenet_cost_massive
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_sanctity_of_nature }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			believes_in_harmony_with_nature_invisible = yes
		}

		character_modifier = {
			forest_advantage = 5
			forest_attrition_mult = -0.25
			taiga_advantage = 5
			taiga_attrition_mult = -0.25
			jungle_advantage = 5
			jungle_attrition_mult = -0.25
			build_gold_cost = 0.1
			county_opinion_add = 5
		}
	}

#EK DISABLED. does not relly fit into TEs, we have magnus worship instead
	tenet_sun_worship = {
		icon = core_tenet_sun_worship

		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_sun_worship }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			# EK DISABLED: irrelevant
			always = no
#			OR = {
#			 	religion_tag = zunism_religion
#			 	has_doctrine = tenet_sun_worship #If you already have it
#			 	AND = {
#			 		religion_tag = hinduism_religion
#			 		this = faith:saura #If you're into Saurism
#			 	}
#				
#			 }
		}

		parameters = {
			summer_festivals_active = yes
			trial_by_sun_active = yes
		}

		character_modifier = {
			desert_attrition_mult = -0.25
			desert_mountains_attrition_mult = -0.25
		}

		piety_cost = faith_tenet_cost_mid
	}

	tenet_warmonger = {
		icon = core_tenet_warmonger
		piety_cost = {
			# EK EDIT: irrelevant
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 			religion_tag = taoism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_massive
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_warmonger }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			# EK DISABLED
			# NOR = {
			# 	religion_tag = christianity_religion
			# 	religion_tag = islam_religion
			# 	religion_tag = judaism_religion
			# 	religion_tag = dualism_religion
			# }
		}

		can_pick = {
			custom_description = {
				text = incompatible_tenet_pacifism_trigger
				NOT = { doctrine:tenet_pacifism = { is_in_list = selected_doctrines } }
			}
			# EK DISABLED
			# custom_description = {
			# 	text = incompatible_tenet_dharmic_pacifism_trigger
			# 	NOT = { doctrine:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } }
			# }
		}

		parameters = {
			warmonger = yes
			conquest_cb_enabled = yes
			# EK DISABLED
			# invasion_cb_enabled = yes # handled with Might Makes Right arvitrary conquest CBs
			# great_holy_wars_active_if_reformed = yes
			clergy_can_fight = yes
			### EK NOTE: GHW are disabled in EK, so it allows you to use holy wars against faiths you consider Hostile
			holy_wars_against_hostile_faiths_active = yes
			ghazi_special_rights_granted_active = yes
		}

		character_modifier = {
			ai_war_chance = 0.5
			ai_war_cooldown = -0.25
			accolade_glory_gain_mult = 0.1
		}
	}

	tenet_gruesome_festivals = {
		name = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = { religion_tag = germanic_religion }
				# 	desc = tenet_gruesome_festivals_blot_name
				# }
				desc = tenet_gruesome_festivals_name
			}
		}

		icon = core_tenet_gruesome_festivals

		piety_cost = {
			# If you've already got human sacrifice, this is a nice and easy jump.
			if = {
				limit = { 
					# EK EDIT: molag faiths are into this stuff
					OR = {
						has_doctrine = tenet_human_sacrifice
						OR = {
							religion_tag = molag_religion
							doctrine:doctrine_pantheon_molag = { is_in_list = selected_doctrines }
						}
					}
				}
				value = faith_tenet_cost_low
			}
			# EK DISABLED
			# Otherwise, follow the same pricing tiers as tenet_human_sacrifice.
			# else_if = {
			# 	limit = {
			# 		has_doctrine = pagan_hostility_doctrine
			# 	}
			# 	value = faith_tenet_cost_mid
			# }
			# else_if = {
			# 	limit = {
			# 		religion_tag = hinduism_religion
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			else = {
			# 	value = faith_tenet_cost_massive
				value = faith_tenet_cost_mid # EK EDIT: standardising piety costs
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_gruesome_festivals }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			# No HumSac for Abrahamics: 'tis literally the religion-namer.
			# EK DISABLED: irrlevant
			# NOR = {
			# 	religion_tag = christianity_religion
			# 	religion_tag = judaism_religion
			# 	religion_tag = islam_religion
			# }
			# And DLC required.
			has_fp1_dlc_trigger = yes
		}

		can_pick = {
			custom_description = {
				text = incompatible_tenet_pacifism_trigger
				NOT = {
					doctrine:tenet_pacifism = { is_in_list = selected_doctrines }
				}
			}
			# EK DISABLED
			# custom_description = {
			# 	text = incompatible_tenet_dharmic_pacifism_trigger
			# 	NOT = {
			# 		doctrine:tenet_dharmic_pacifism = { is_in_list = selected_doctrines }
			# 	}
			# }
			custom_description = {
				text = incompatible_tenet_human_sacrifice_trigger
				NOT = {
					doctrine:tenet_human_sacrifice = { is_in_list = selected_doctrines }
				}
			}
			custom_description = {
				text = incompatible_tenet_sacrificial_ceremonies_trigger
				NOT = {
					doctrine:tenet_sacrificial_ceremonies = { is_in_list = selected_doctrines }
				}
			}
		}

		parameters = {
			human_sacrifice_active = yes
			gruesome_festivals_active = yes
		}
	}

	tenet_cthonic_redoubts = {
		icon = core_tenet_cthonic_redoubts

		name = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = north_african_religion
				# 	}
				# 	desc = tenet_volcanic_veneration_name
				# }
				desc = tenet_cthonic_redoubts_name
			}
		}

		desc = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = north_african_religion
				# 	}
				# 	desc = tenet_volcanic_veneration_desc
				# }
				desc = tenet_cthonic_redoubts_desc
			}
		}

		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_cthonic_redoubts }
				multiply = faith_unchanged_doctrine_cost_mult
			}
			# Multiplier for traditional mountain-based religions or faiths.
			if = {
				limit = {
					OR = {
						# EK EDIT: switched out vanilla with some EK ones
						# this = faith:bosnian_church
						# this = faith:armenian_apostolic
						# this = faith:lamaism
						# this = faith:vajrayana
						# this = faith:mahayana
						# this = faith:haymanot
						# religion = religion:basque_religion
						# religion = religion:kushitism_religion
						# religion = religion:zunism_religion
						# religion = religion:tani_religion
						# religion = religion:qiangic_religion
						# religion = religion:bon_religion
						this = faith:druadach_cult
						this = faith:minotaur_cult
						this = faith:anuic_skaal
						religion = religion:malacath_religion
						religion = religion:stone_religion
					}
				}
				multiply = faith_tenet_discount_mountain_background_value
			}
		}

		is_shown = { always = yes }

		parameters = {
			easier_to_convert_faith_in_mountains = yes
			easier_to_convert_culture_in_same_faith_mountains = yes
			harder_to_convert_faith_away_in_mountains = yes
		}

		character_modifier = {
			mountains_attrition_mult = -0.5
			mountains_levy_size = 0.3
			mountains_advantage = 5
			desert_mountains_attrition_mult = -0.5
			desert_mountains_levy_size = 0.3
			desert_mountains_advantage = 5
		}

		piety_cost = faith_tenet_cost_mid

		traits = {
			virtues = {
				# For the Jentillaks et al.
				giant
			}
		}
	}
	#EK TODO COMP 1-13: decide what to do with this tenet
	tenet_household_gods = {
		icon = core_tenet_household_gods

		name = tenet_household_gods_name

		desc = tenet_household_gods_desc

		piety_cost = faith_tenet_cost_mid

		is_shown = {
			always = no
			#religion_tag = hellenism_religion
		}

		can_pick = {
			always = no
			#custom_description = {
			#	text = rome_must_be_faithfully_restored_trigger
			#	has_global_variable = household_gods_tenet_unlocked
			#}
		}

		parameters = {
			same_culture_conversion_bonus_active = yes
			same_faith_promote_culture_bonus_active = yes
		}

		character_modifier = {
			monthly_influence = 0.5
			ignore_opinion_of_different_faith = yes
			different_faith_county_opinion_mult = -0.1
			levy_reinforcement_rate_same_faith = 0.25
			faith_conversion_piety_cost_mult = -0.15
			# TODO_CD_EP3: Uncomment when this no longer causes startup errors (TIT-53560)
			# christianity_religion_opinion = -20
		}

		#traits = {
		#	virtues = { augustus born_in_the_purple }
		#}
	}

	#############################
	# Syncretic Faith Tenets	#
	#############################

	# EK DISABLED: none of these are relevant, commented out the stuff that could trigger errors and then disabled them outright

	tenet_eastern_syncretism = {
		icon = core_tenet_eastern_syncretism
		piety_cost = {
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = dualism_religion
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else_if = {
			# 	limit = {
			# 		religion_tag = islam_religion
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_eastern_syncretism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			# OR = {
			# 	has_doctrine = abrahamic_hostility_doctrine
			# 	has_doctrine = pagan_hostility_doctrine
			# }
			always = no
		}
		can_pick = {
			always = no
			# custom_description = {
			# 	text = incompatible_tenet_gnosticism_trigger
			# 	NOT = {
			# 		doctrine:tenet_gnosticism = { is_in_list = selected_doctrines }
			# 	}
			# }
			# custom_description = {
			# 	text = incompatible_tenet_other_syncretism_trigger
			# 	NOR = {
			# 		doctrine:tenet_unreformed_syncretism = { is_in_list = selected_doctrines }
			# 		doctrine:tenet_christian_syncretism = { is_in_list = selected_doctrines }
			# 		doctrine:tenet_islamic_syncretism = { is_in_list = selected_doctrines }
			# 		doctrine:tenet_jewish_syncretism = { is_in_list = selected_doctrines }
			# 	}
			# }
		}
		parameters = {
			# EK DISABLED: just in case
			# hostility_override_eastern_hostility_doctrine = 1
			# #For loc:
			# is_eastern_faith_bilateral_loc_override = 1
			# eastern_syncretic_actor_opinion_active = yes
			# opinion_of_eastern_syncretic_recipient_opinion_active = 30 #Sync this to syncretic_mutual_opinion_bonus_value
		}
		traits = {
			virtues = { honest }
			sins = { wrathful }
		}
	}

	tenet_unreformed_syncretism = {
		icon = core_tenet_unreformed_syncretism
		piety_cost = {
			# if = {
			# 	limit = { doctrine:doctrine_pluralism_pluralistic = {is_in_list = selected_doctrines} }
			# 	value = faith_tenet_cost_low
			# }
			# else_if = {
			# 	limit = { doctrine:doctrine_pluralism_fundamentalist = {is_in_list = selected_doctrines} }
			# 	value = faith_tenet_cost_high
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_unreformed_syncretism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}


		is_shown = {
			always = no
			# NOT = { has_doctrine = pagan_hostility_doctrine }
		}
		can_pick = {
			always = no
			# custom_description = {
			# 	text = incompatible_tenet_other_syncretism_trigger
			# 	NOR = {
			# 		doctrine:tenet_eastern_syncretism = { is_in_list = selected_doctrines }
			# 		doctrine:tenet_christian_syncretism = { is_in_list = selected_doctrines }
			# 		doctrine:tenet_islamic_syncretism = { is_in_list = selected_doctrines }
			# 		doctrine:tenet_jewish_syncretism = { is_in_list = selected_doctrines }
			# 	}
			# }
		}
		parameters = {
			# EK DISABLED: just in case
			# hostility_override_unreformed_faith_doctrine = 2
			# hostility_override_west_african_unreformed_faith_doctrine = 2
			# unreformed_syncretic_actor_opinion_active = yes
			# opinion_of_unreformed_syncretic_recipient_opinion_active = 30 #Sync this to syncretic_mutual_opinion_bonus_value
			# unreformed_syncretic_conversion_malus_active = yes
		}
		traits = {
			virtues = { humble }
			sins = { arrogant }
		}
	}

	tenet_christian_syncretism = {
		icon = core_tenet_christian_syncretism

		piety_cost = {
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = islam_religion
			# 			religion_tag = dualism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_christian_syncretism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			always = no
			# NOT = { religion_tag = christianity_religion }
		}
		can_pick = {
			always = no
			# custom_description = {
			# 	text = incompatible_tenet_other_syncretism_trigger
			# 	NOR = {
			# 		doctrine:tenet_eastern_syncretism = { is_in_list = selected_doctrines }
			# 		doctrine:tenet_unreformed_syncretism = { is_in_list = selected_doctrines }
			# 		doctrine:tenet_islamic_syncretism = { is_in_list = selected_doctrines }
			# 		doctrine:tenet_jewish_syncretism = { is_in_list = selected_doctrines }
			# 	}
			# }
		}

		parameters = {
			# EK DISABLED: just in case
			# hostility_override_special_doctrine_is_christian_faith = 2
			# #For loc:
			# is_christian_faith_bilateral_loc_override = 2
			# # This parameter is empty; the syncretic religious trigger checks against the doctrine, as that's much clearer in tooltips and allows us to use a unified syncretic trigger per-religion rather than having bitty situational triggers.
			# can_use_christian_artefacts = yes
			# christian_syncretic_actor_opinion_active = yes
			# opinion_of_christian_syncretic_recipient_opinion_active = 30 #Sync this to syncretic_mutual_opinion_bonus_value
		}

		traits = {
			virtues = { compassionate }
			sins = { callous sadistic }
		}
	}

	tenet_islamic_syncretism = {
		icon = core_tenet_islamic_syncretism

		piety_cost = {
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			religion_tag = dualism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_islamic_syncretism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			always = no
			# NOT = { religion_tag = islam_religion }
		}
		can_pick = {
			always = no
			# custom_description = {
			# 	text = incompatible_tenet_other_syncretism_trigger
			# 	NOR = {
			# 		doctrine:tenet_eastern_syncretism = { is_in_list = selected_doctrines }
			# 		doctrine:tenet_unreformed_syncretism = { is_in_list = selected_doctrines }
			# 		doctrine:tenet_christian_syncretism = { is_in_list = selected_doctrines }
			# 		doctrine:tenet_jewish_syncretism = { is_in_list = selected_doctrines }
			# 	}
			# }
		}

		parameters = {
			# EK DISABLED: just in case
			# hostility_override_special_doctrine_is_islamic_faith = 2
			# # This parameter is empty; the syncretic religious trigger checks against the doctrine, as that's much clearer in tooltips and allows us to use a unified syncretic trigger per-religion rather than having bitty situational triggers.
			# can_use_islamic_artefacts = yes
			# islamic_syncretic_actor_opinion_active = yes
			# opinion_of_islamic_syncretic_recipient_opinion_active = 30 #Sync this to syncretic_mutual_opinion_bonus_value
		}

		traits = {
			virtues = { generous }
			sins = { greedy arbitrary }
		}
	}

	tenet_jewish_syncretism = {
		icon = core_tenet_jewish_syncretism

		piety_cost = {
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = judaism_religion
			# 			religion_tag = christianity_religion
			# 			religion_tag = dualism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_jewish_syncretism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			always = no
			# NOT = { religion_tag = judaism_religion }
		}
		can_pick = {
			always = no
			# custom_description = {
			# 	text = incompatible_tenet_other_syncretism_trigger
			# 	NOR = {
			# 		doctrine:tenet_eastern_syncretism = { is_in_list = selected_doctrines }
			# 		doctrine:tenet_unreformed_syncretism = { is_in_list = selected_doctrines }
			# 		doctrine:tenet_christian_syncretism = { is_in_list = selected_doctrines }
			# 		doctrine:tenet_islamic_syncretism = { is_in_list = selected_doctrines }
			# 	}
			# }
		}

		parameters = {
			# EK DISABLED: just in case
			# hostility_override_special_doctrine_is_jewish_faith = 2
			# # This parameter is empty; the syncretic religious trigger checks against the doctrine, as that's much clearer in tooltips and allows us to use a unified syncretic trigger per-religion rather than having bitty situational triggers.
			# can_use_jewish_artefacts = yes
			# jewish_syncretic_actor_opinion_active = yes
			# opinion_of_jewish_syncretic_recipient_opinion_active = 30 #Sync this to syncretic_mutual_opinion_bonus_value
		}

		traits = {
			virtues = { patient }
			sins = { cynical greedy }
		}
	}

	#############################
	# Custom Faith Tenets		#
	#############################

	tenet_exaltation_of_pain = {
		icon = core_tenet_human_sacrifice

		is_shown = {}

		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_mid
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = hinduism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else = {
				#value = faith_tenet_cost_massive
				value = faith_tenet_cost_mid # EK EDIT: standardised tenet costs
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_exaltation_of_pain }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			torturing_prisoners_grants_piety = yes
			reduced_stress_from_torture = yes
			self_mutilation_active = yes
		}

		traits = {
			virtues = {
				sadistic
				flagellant
			}
			sins = {
				compassionate
			}
		}

		#EK ADDITION: added check for virtue/sin doctrines
		can_pick = {
			custom_description = {
				text = incompatible_virtue_compassionate
				NOT = { doctrine:doctrine_virtue_compassionate = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_sadistic
				NOT = { doctrine:doctrine_sin_sadistic = { is_in_list = selected_doctrines } }
			}
		}
	}

	tenet_natural_primitivism = {
		icon = core_tenet_natural_primitivism

		can_pick = {
			custom_description = {
				text = incompatible_with_crimes_trigger
				NOR = {
					doctrine:doctrine_adultery_women_crime = { is_in_list = selected_doctrines }
					doctrine:doctrine_homosexuality_crime = { is_in_list = selected_doctrines }
					doctrine:doctrine_adultery_men_crime = { is_in_list = selected_doctrines }
					doctrine:doctrine_witchcraft_crime = { is_in_list = selected_doctrines }
					doctrine:doctrine_deviancy_crime = { is_in_list = selected_doctrines }
				}
				OR = {
					doctrine:doctrine_kinslaying_accepted = { is_in_list = selected_doctrines }
					doctrine:doctrine_kinslaying_shunned = { is_in_list = selected_doctrines }
				}
			}
		}

		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		religion = religion:hinduism_religion
			# 		religion = religion:jainism_religion
			# 	}
			# 	value = faith_tenet_cost_mid
			# }
			# else_if = {
			# 	limit = {
			# 		has_doctrine = pagan_hostility_doctrine
			# 		religion = religion:buddhism_religion
			# 		religion = religion:christianity_religion
			# 		religion = religion:dualism_religion
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else = {
				#value = faith_tenet_cost_massive
				value = faith_tenet_cost_mid # EK EDIT: standardised tenet costs
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_natural_primitivism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			naked_adherents_active = yes
			natural_primitivism_law_cost_increase = yes
		}

		character_modifier = {
			tyranny_gain_mult = 1.00
			stress_gain_mult = -0.25
			stress_loss_mult = 0.25
		}
	}

	tenet_pursuit_of_power = {
		icon = core_tenet_pursuit_of_power

		piety_cost = {
			# EK EDIT
			# if = {
			# 	limit = {
			# 		OR = {
			# 			has_doctrine = pagan_hostility_doctrine
			# 			religion_tag = hinduism_religion
			# 			religion_tag = islam_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_mid
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = judaism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else = {
				#value = faith_tenet_cost_massive
				value = faith_tenet_cost_mid # EK EDIT: standardised tenet costs
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_pursuit_of_power }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			### EK EDIT: Changed with other arbitrary conquest CBs
			conquest_cb_enabled = yes
			# invasion_cb_enabled = yes
			### EK NOTE: 'Might Makes Right' required one less level of Fame/Devotion
			ek_might_makes_right_lower_requirement_active = yes
		}

		character_modifier = {
			title_creation_cost_mult = -0.5
			tyranny_gain_mult = -0.5
			direct_vassal_opinion = -10
		}

		traits = {
			virtues = {
				ambitious
				disloyal
			}
			sins = {
				content
				loyal
			}
		}

		#EK ADDITION: added check for virtue/sin doctrines
		can_pick = {
			custom_description = {
				text = incompatible_virtue_content
				NOT = { doctrine:doctrine_virtue_content = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_ambitious
				NOT = { doctrine:doctrine_sin_ambitious = { is_in_list = selected_doctrines } }
			}
		}
	}

	tenet_ritual_cannibalism = {
		icon = core_tenet_ritual_cannibalism

		piety_cost = {
			if = {
				limit = {
					has_variable = accepted_cannibalism
				}
				value = faith_tenet_cost_low
			}
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			has_doctrine = pagan_hostility_doctrine
			# 		}
			# 	}
			# 	value = faith_tenet_cost_mid
			# }
			# else_if = {
			# 	limit = {
			# 		religion_tag = hinduism_religion
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else = {
				#value = faith_tenet_cost_massive
				value = faith_tenet_cost_mid # EK EDIT: standardised tenet costs
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_ritual_cannibalism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		traits = {
			virtues = {
				cannibal = 2
			}
		}

		parameters = {
			cannibalism_legal = yes
		}
	}

	tenet_sacred_shadows = { # EK NOTE: it's called Sacred Lies ingame
		icon = core_tenet_sacred_shadows

		piety_cost = {
			if = {
				limit = {
			 		OR = {
						# EK EDIT: Mephala stuff
			 			#has_doctrine = pagan_hostility_doctrine
						religion_tag = mephala_religion
						doctrine:doctrine_pantheon_mephala = { is_in_list = selected_doctrines }
			 		}
			 	}
			# 	value = faith_tenet_cost_mid
				value = faith_tenet_cost_low #EK EDIT: standardising tenet cost
			}
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = islam_religion
			# 			religion_tag = judaism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			else = {
				#value = faith_tenet_cost_massive
				value = faith_tenet_cost_mid # EK EDIT: standardised tenet costs
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_sacred_shadows }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_description = {
				text = incompatible_tenet_communion_trigger
				NOT = {
					doctrine:tenet_communion = { is_in_list = selected_doctrines }
				}
			}
			#EK ADDITION: added check for virtue/sin doctrines
			custom_description = {
				text = incompatible_virtue_honest
				NOT = { doctrine:doctrine_virtue_honest = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_deceitful
				NOT = { doctrine:doctrine_sin_deceitful = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			piety_gain_from_successful_intrigue_schemes = yes
			adherents_more_likely_to_join_schemes = yes
			tenet_unlocks_t4_bounties_for_whispers = yes
		}

		traits = {
			virtues = { deceitful }
			sins = { honest }
		}
	}

	tenet_polyamory = {
		icon = core_tenet_polyamory
		piety_cost = {
			# EK DISABLED: irrelevant
			# if = {
			# 	limit = {
			# 		religion_tag = hinduism_religion
			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else_if = {
			# 	limit = {
			# 		OR = {
			# 			religion_tag = christianity_religion
			# 			religion_tag = judaism_religion
			# 			religion_tag = islam_religion
			# 			religion_tag = buddhism_religion
			# 			religion_tag = jainism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_high
			# }
			# else = {
				value = faith_tenet_cost_mid
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_polyamory }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_description = {
				text = ADULTERY_MUST_BE_FULLY_ACCEPTED
				NOR = {
					doctrine:doctrine_adultery_women_crime = { is_in_list = selected_doctrines }
					doctrine:doctrine_adultery_women_shunned = { is_in_list = selected_doctrines }
					doctrine:doctrine_adultery_men_crime = { is_in_list = selected_doctrines }
					doctrine:doctrine_adultery_men_shunned = { is_in_list = selected_doctrines }
				}
			}
		}

		parameters = {
			no_unfaithfulness_penalty_active = yes
		}
	}

	tenet_sacrificial_ceremonies = {
		icon = core_tenet_human_sacrifice

		name = {
			first_valid = {
				desc = tenet_sacrificial_ceremonies_name
			}
		}

		piety_cost = {
			if = {
				limit = {
					has_doctrine = tenet_human_sacrifice
				}
				value = faith_tenet_cost_low
			}
			# else_if = {
			# 	limit = {
			# 		has_doctrine = pagan_hostility_doctrine
			# 	}
			# 	value = faith_tenet_cost_mid
			# }
			else = {
				#value = faith_tenet_cost_massive
				value = faith_tenet_cost_mid # EK EDIT: standardised tenet costs
			}

			#We already practice sacrificial ceremonies
			if = {
				limit = { has_doctrine = tenet_sacrificial_ceremonies }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			# EK DISABLED
			# religion_tag = north_african_religion
		}

		can_pick = {
			custom_description = {
				text = incompatible_tenet_pacifism_trigger
				NOT = { doctrine:tenet_pacifism = { is_in_list = selected_doctrines } }
			}
			# EK DISABLED
			# custom_description = {
			# 	text = incompatible_tenet_dharmic_pacifism_trigger
			# 	NOT = { doctrine:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } }
			# }
			custom_description = {
				text = incompatible_tenet_gruesome_festivals_trigger
				NOT = {
					doctrine:tenet_gruesome_festivals = { is_in_list = selected_doctrines }
				}
			}
			custom_description = {
				text = incompatible_tenet_human_sacrifice_trigger
				NOT = {
					doctrine:tenet_human_sacrifice = { is_in_list = selected_doctrines }
				}
			}
			custom_description = {
				text = incompatible_tenet_consolamentum_trigger
				NOT = { doctrine:tenet_consolamentum = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			human_sacrifice_active = yes
			consolamentum_active = yes
		}

		character_modifier = {
			short_reign_duration_mult = -0.5
			ai_war_chance = 1
			ai_war_cooldown = -0.5
		}
	}

	tenet_megaliths = {
		icon = core_tenet_megaliths

		name = {
			first_valid = {
				desc = tenet_megaliths_name
			}
		}

		piety_cost = {
			if = {
				limit = {
					has_doctrine = tenet_natural_primitivism
				}
				value = faith_tenet_cost_low
			}
			# else_if = {
			# 	limit = { #Reduction in cost for Celtic Christianity because of stone circle shenanigans
			# 		this = faith:insular_celtic
			# 	}
			# 	value = faith_tenet_cost_mid
			# }
			else = {
				#value = faith_tenet_cost_high
				value = faith_tenet_cost_mid # EK EDIT: standardised tenet costs
			}

			#We already practice megaliths
			if = {
				limit = { has_doctrine = tenet_megaliths }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {

		}

		can_pick = {

		}

		parameters = {
			can_build_megaliths = yes
		}

		character_modifier = {
			hills_development_growth_factor = 0.15
			hills_tax_mult = 0.1
			hills_levy_size = 0.3
			hills_advantage = 5
		}
	}

	#############################
	# FP3 Tenets 		#        
	#############################

	tenet_fp3_fedayeen = {
		icon = core_tenet_assassin

		name = {
			first_valid = {
				# EK DISABLED
				# triggered_desc = {
				# 	trigger = {
				# 		religion_tag = islam_religion
				# 	}
				# 	desc = tenet_fp3_fedayeen_name
				# }
				desc = tenet_fp3_sacred_murder_name
			}
		}

		is_shown = { }

		can_pick = {
			custom_description = {
				text = incompatible_tenet_pacifism_trigger
				NOT = { doctrine:tenet_pacifism = { is_in_list = selected_doctrines } }
			}
			# EK DISABLED
			# custom_description = {
			# 	text = incompatible_tenet_dharmic_pacifism_trigger
			# 	NOT = { doctrine:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } }
			# }
			custom_description = {
				text = fedayeen_required_doctrines_trigger
				OR = {
					doctrine:tenet_warmonger = { is_in_list = selected_doctrines }
					doctrine:tenet_unrelenting_faith = { is_in_list = selected_doctrines }
					doctrine:tenet_consolamentum = { is_in_list = selected_doctrines }
					doctrine:tenet_armed_pilgrimages = { is_in_list = selected_doctrines }
					doctrine:tenet_struggle_submission = { is_in_list = selected_doctrines } 
					doctrine:tenet_pursuit_of_power = { is_in_list = selected_doctrines }
				}
			}
			#EK ADDITION: added check for virtue/sin doctrines
			custom_description = {
				text = incompatible_virtue_craven
				NOT = { doctrine:doctrine_virtue_craven = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_vengeful
				NOT = { doctrine:doctrine_sin_vengeful = { is_in_list = selected_doctrines } }
			}
		}

		piety_cost = {
			# EK DISABLED
			# if = {
			# 	limit = {
			# 		AND = {
			# 			OR = {
			# 				has_doctrine = muhammad_succession_shia_doctrine
			# 				has_doctrine = muhammad_succession_muhakkima_doctrine
			# 			}
			# 			OR = {
			# 				has_doctrine = tenet_warmonger
			# 				has_doctrine = tenet_unrelenting_faith
			# 				has_doctrine = tenet_consolamentum
			# 			}
			# 		}

			# 	}
			# 	value = faith_tenet_cost_low
			# }
			# else = {
				#value = faith_tenet_cost_massive
				value = faith_tenet_cost_mid # EK EDIT: standardised tenet costs
			# }

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_fp3_fedayeen }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			master_assassin_court_position_unlocked = yes 
			death_is_glory = yes
			sanctioned_assassinations = yes
			unlock_voluntary_laampdom_faith = yes
		}

		character_modifier = {
			controlled_province_advantage = 5
			monthly_piety_gain_per_dread_add = 0.01
			prowess = 2
		}

		traits = {
			virtues = { vengeful = 1 }
			sins = { craven = 1 }
		}
	}

	tenet_communal_possessions = {
		icon = core_tenet_communism
		is_shown = {}
		can_pick = {
			#EK ADDITION: added check for virtue/sin doctrines
			custom_description = {
				text = incompatible_virtue_arrogant
				NOT = { doctrine:doctrine_virtue_arrogant = { is_in_list = selected_doctrines } }
			}
			#always = yes
		}

		piety_cost = {
			# if = {
			# 	limit = {
			# 		OR = {
			# 			has_doctrine = tenet_mendicant_preachers
			# 			has_doctrine = tenet_gnosticism 
			# 			religion_tag = christianity_religion 
			# 			religion_tag = zoroastrianism_religion
			# 		}
			# 	}
			# 	value = faith_tenet_cost_mid
			# }
			# else = {
				#value = faith_tenet_cost_high 
				value = faith_tenet_cost_mid # EK EDIT: standardised tenet costs
			# }

			#Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_communal_possessions }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			piety_from_gifts_active = yes
			piety_from_marrying_lowborn_active = yes
		}

		character_modifier = {
			monthly_county_control_decline_factor = -0.2
			build_gold_cost = -0.1
			county_opinion_add = 10 
		}

		traits = {
			virtues = { peasant_leader = 2 } #because communism! 
			sins = { arrogant }
		}
	}

	#############################
	# ELDER KINGS TENETS		#
	#############################

	### EK NOTE: these must be in the vanilla file, otherwise they'll overwrite vanilla tenets when making new faiths. game only looks for one doctrine_core_tenets
	
	# Auspicious Birthright + Inner Journey
	tenet_moon_worship = {
		icon = core_tenet_esotericism
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_moon_worship }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_tooltip = {
				# This tenet should only be available to Khajiit. Not sure how to check for culture here, but all the Khajiiti faiths currently have the Ahnurr and Fadomai doctrine. So that seems a reasonable standin
				text = tenet_moon_worship_requirement
				doctrine:special_doctrine_khajiit_doctrine = { is_in_list = selected_doctrines }
			}
			custom_description = {
				text = incompatible_virtue_impatient
				NOT = { doctrine:doctrine_virtue_impatient = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_patient
				NOT = { doctrine:doctrine_sin_patient = { is_in_list = selected_doctrines } }
			}
		}

		traits = {
			virtues = {
				patient
				furstock_mane = 2 
				lifestyle_mystic
			}
			sins = { impatient }
		}

		parameters = {
			meditation_mechanics_active = yes
			mystic_birthright_active = yes
		}
	}

	tenet_kuvastei = {
		icon = core_tenet_eastern_syncretism
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_kuvastei }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_description = {
				# The concept of Ku-Vastei is inherent to current Argonian society and life philosophy. It does not really exist besides the Hist
				text = tenet_hist_requirement
				doctrine:doctrine_pantheon_hist = { is_in_list = selected_doctrines }
			}
			custom_description = {
				text = incompatible_sin_forgiving
				NOT = { doctrine:doctrine_sin_forgiving = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
		}

		traits = {
			virtues = {
				forgiving
			}
		}

		character_modifier = {
			stress_loss_mult = 0.25
			stress_gain_mult = -0.25
			development_growth_factor = -0.1
			ai_war_chance = -0.25 #EK NOTE: same war chance reduction as vanilla pacifism
			ai_war_cooldown = 5 #EK NOTE: same cooldown as vanilla pacifism
		}
	}

	tenet_shunatei = {
		icon = core_tenet_mystical_birthright
		name = {
			first_valid = {
				triggered_desc = {
					trigger = {
						religion_tag = sithis_religion
					}
					desc = tenet_shunatei_name
				}
				desc = tenet_shunatei_alternate_name
			}
		}
		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						religion_tag = sithis_religion
					}
					desc = tenet_shunatei_desc
				}
				desc = tenet_shunatei_alternate_desc
			}
		}
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_shunatei }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_description = {
				text = incompatible_sin_paranoid
				NOT = { doctrine:doctrine_sin_paranoid = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
		}

		traits = {
			virtues = {
				paranoid
			}
		}

		character_modifier = {
			stress_loss_mult = -0.25
			stress_gain_mult = 0.25
			development_growth_factor = 0.1
		}
	}

	tenet_amberhist = {
		icon = core_tenet_sanctity_of_nature
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_amberhist }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_description = {
				text = can_only_pick_one_hist_tenet
				NOR = {
					doctrine:tenet_ghosthist = { is_in_list = selected_doctrines }
					doctrine:tenet_sunhist = { is_in_list = selected_doctrines }
				}
			}
			custom_description = {
				text = tenet_hist_requirement
				doctrine:doctrine_pantheon_hist = { is_in_list = selected_doctrines }
			}
		}

		parameters = {
			unlocks_special_hist_communion = yes
			piety_from_castle_construction = yes
		}

		traits = {
			virtues = { 
				amber_blessed = 2
			}
		}

		character_modifier = {
			prowess_per_stress_level = 2
		}
	}

	tenet_sunhist = {
		icon = core_tenet_sun_worship

		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_sunhist }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_description = {
				text = can_only_pick_one_hist_tenet
				NOR = {
					doctrine:tenet_ghosthist = { is_in_list = selected_doctrines }
					doctrine:tenet_amberhist = { is_in_list = selected_doctrines }
				}
			}
			custom_description = {
				text = tenet_hist_requirement
				doctrine:doctrine_pantheon_hist = { is_in_list = selected_doctrines }
			}
		}
		
		parameters = {
			unlocks_special_hist_communion = yes
			summer_festivals_active = yes
			trial_by_sun_active = yes
			devotion_gives_health = yes
		}
		
		traits = {
			virtues = { 
				sun_blessed = 2
			}
		}
	}

	tenet_ghosthist = {
		icon = ai_tenet_mastery_over_undeath
		
		piety_cost = {
			if = {
				limit = {
					religion_tag = necromantic_religion
				}
				value = faith_tenet_cost_low
			}
			else = {
				value = faith_tenet_cost_high
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_ghosthist }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
		
		can_pick = {
			custom_description = {
				text = necromancy_must_be_fully_accepted
				NOR = {
					doctrine:doctrine_necromancy_crime = { is_in_list = selected_doctrines }
					doctrine:doctrine_necromancy_shunned = { is_in_list = selected_doctrines }
				}
			}
			custom_description = {
				text = can_only_pick_one_hist_tenet
				NOR = {
					doctrine:tenet_sunhist = { is_in_list = selected_doctrines }
					doctrine:tenet_amberhist = { is_in_list = selected_doctrines }
				}
			}
			custom_description = {
				text = tenet_hist_requirement
				doctrine:doctrine_pantheon_hist = { is_in_list = selected_doctrines }
			}
		}
		
		parameters = {
			unlocks_special_hist_communion = yes
			cheaper_necromancy_spells = yes
			clutch_raid_war_cb_active = yes
			adopt_prisoners_active = yes
			tenet_necromancy_worship_hostility = yes
		}

		traits = {
			virtues = {
				necromancer
				ghost_scale = 2
			}
		}
	}

	tenet_hist_syncretism = { # Inner Journey + Hist holdings
		icon = core_tenet_sanctity_of_nature

		name = {
			first_valid = {
				triggered_desc = {
					trigger = {
						has_doctrine = doctrine_pantheon_lilmothiit
					}
					desc = tenet_hist_lilmothiit_name # Living Law
				}
				triggered_desc = {
					trigger = {
						religion_tag = velothi_religion
					}
					desc = tenet_hist_velothi_name
				}
				desc = tenet_hist_syncretism_name
			}
		}

		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						has_doctrine = doctrine_pantheon_lilmothiit
					}
					desc = tenet_hist_lilmothiit_desc
				}
				triggered_desc = {
					trigger = {
						religion_tag = velothi_religion # Hist Meditations
					}
					desc = tenet_hist_velothi_desc
				}
				desc = tenet_hist_syncretism_desc
			}
		}

		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_hist_syncretism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_tooltip = {
				# Syncretism with Hist faiths kinda requires *not* being one yourself
				text = tenet_not_hist_requirement
				NOT = { doctrine:doctrine_pantheon_hist = { is_in_list = selected_doctrines }}
			}
			custom_description = {
				text = incompatible_virtue_impatient
				NOT = { doctrine:doctrine_virtue_impatient = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_patient
				NOT = { doctrine:doctrine_sin_patient = { is_in_list = selected_doctrines } }
			}
		}
		
		traits = {
			virtues = { patient }
			sins = { impatient }
		}

		parameters = {
			can_hold_hist_holdings = yes
			meditation_mechanics_active = yes
			tenet_hist_syncretism_hostility = yes
		}
	}
	
	### New tenets
	## Terrain-tied tenets (boosting advantage in terrain - to be replaced)
	tenet_children_skyrim = {
		icon = core_tenet_sky_burials

		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_children_skyrim }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
		character_modifier = {
			taiga_advantage = 5
			taiga_attrition_mult = -0.25
			mountains_advantage = 5
			mountains_attrition_mult = -0.25
			tundra_advantage = 5
			tundra_attrition_mult = -0.25
		}
	}

	tenet_desert_traditions = {
		icon = core_tenet_sun_worship

		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_desert_traditions }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		character_modifier = {
			desert_advantage = 5
			desert_attrition_mult = -0.25
			drylands_advantage = 5
			drylands_attrition_mult = -0.25
		}
	}

	## Stat-tied tenets (boosting lifestyle exp in that stat, making education lvl 3 & 4 virtues, making kids more effective in this education
	tenet_lifestyle_dip_faith = { #Sacred Mindfulness
		icon = core_tenet_communal_identity
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_lifestyle_dip_faith }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			always = yes
		}

		parameters = {
			children_education_diplomacy = yes
		}

		traits = {
			virtues = {
				education_diplomacy_3
				education_diplomacy_4
				education_diplomacy_5
			}
		}

		character_modifier = {
			monthly_diplomacy_lifestyle_xp_gain_mult = 0.2
		}
	}

	tenet_lifestyle_mar_faith = { #War Worship
		icon = core_tenet_warmonger
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_lifestyle_mar_faith }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			always = yes
		}

		parameters = {
			children_education_martial = yes
		}

		traits = {
			virtues = {
				education_martial_3
				education_martial_4
				education_martial_5
			}
		}

		character_modifier = {
			monthly_martial_lifestyle_xp_gain_mult = 0.2
		}
	}

	tenet_lifestyle_ste_faith = { #Prosperity Worship
		icon = core_tenet_tax_nonbelievers
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_lifestyle_ste_faith }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			always = yes
		}

		parameters = {
			children_education_stewardship = yes
		}

		traits = {
			virtues = {
				education_stewardship_3
				education_stewardship_4
				education_stewardship_5
			}
		}

		character_modifier = {
			monthly_stewardship_lifestyle_xp_gain_mult = 0.2
		}
	}

	tenet_lifestyle_int_faith = { #Shadow Worship
		icon = core_tenet_sacred_shadows
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_lifestyle_int_faith }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			always = yes
		}

		parameters = {
			children_education_intrigue = yes
		}

		traits = {
			virtues = {
				education_intrigue_3
				education_intrigue_4
				education_intrigue_5
			}
		}

		character_modifier = {
			monthly_intrigue_lifestyle_xp_gain_mult = 0.2
		}
	}

	tenet_lifestyle_lea_faith = { #Veneration of Knowledge
		icon = core_tenet_alexandrian_catechism
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_lifestyle_lea_faith }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			always = yes
		}

		parameters = {
			children_education_learning = yes
		}

		traits = {
			virtues = {
				education_learning_3
				education_learning_4
				education_learning_5
			}
		}

		character_modifier = {
			monthly_learning_lifestyle_xp_gain_mult = 0.2
		}
	}

	## Cult tenets
	tenet_militant_cult = {
		icon = core_tenet_unrelenting_faith
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_militant_cult }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			# Cannot have another Cult tenet as they don't really stack
			custom_tooltip = {
				text = incompatible_tenet_cult_tenet
				NOT = { doctrine:tenet_mystery_cult = { is_in_list = selected_doctrines } }
				NOT = { doctrine:tenet_personality_cult = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			characters_easier_counties_harder = yes #cult tenets are focused on characters
			unlock_maa_cultists = yes
			clergy_can_fight = yes
		}

		character_modifier = {
			levy_size = 0.1
		}

		# EK TODO: this doesn't exist for tenets (but it does for traditions! why!)
		# province_modifier = {
		# 	travel_danger = 20
		# }
	}

	tenet_mystery_cult = {
		icon = core_tenet_sacred_shadows
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_mystery_cult }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			# Cannot have another Cult tenet as they don't really stack
			custom_tooltip = {
				text = incompatible_tenet_cult_tenet
				NOT = { doctrine:tenet_militant_cult = { is_in_list = selected_doctrines } }
				NOT = { doctrine:tenet_personality_cult = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			characters_easier_counties_harder = yes #cult tenets are focused on characters
			secretive_secrets = yes #their secrets are harder to discover
			sanctioned_false_conversion = yes
		}

		character_modifier = {
			learning_per_piety_level = 1
		}
	}

	tenet_personality_cult = {
		icon = core_tenet_mendicant_preachers
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_personality_cult }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			# Must have a temporal HoF (the one who the personality cult surrounds)
			custom_tooltip = {
				text = doctrine_requires_temporal_head_of_faith
				doctrine:doctrine_temporal_head = { is_in_list = selected_doctrines }
			}
			# Cannot have another Cult tenet as they don't really stack
			custom_tooltip = {
				text = incompatible_tenet_cult_tenet
				NOT = { doctrine:tenet_mystery_cult = { is_in_list = selected_doctrines } }
				NOT = { doctrine:tenet_militant_cult = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			characters_easier_counties_harder = yes #cult tenets are focused on characters
			hof_hook_immunity = yes #HoF can demand same faith characters abandon their hooks
			sins_virtues_changing = yes #sins and virtues of the faith will reflect the HoF's personality
		}
	}

	## Other
	tenet_divine_purity = {
		icon = core_tenet_legalism
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_divine_purity }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_description = {
				text = doctrine_inverted_pluralism_fundamentalist_trigger
				NOT = {	doctrine:doctrine_pluralism_righteous = { is_in_list = selected_doctrines } }
				NOT = {	doctrine:doctrine_pluralism_pluralistic = { is_in_list = selected_doctrines } }
			}
		}

		traits = {
			virtues = {
				intellect_good_3
				physique_good_3
				beauty_good_3
			}
		}

		parameters = {
			children_bad_congenital_trait_impure = yes
			children_non_accepted_culture_impure = yes
			children_of_impure = yes
			pilgrimage_decision_active = yes
			character_impurity_deformity_election_lowers_score_active = yes
			excommunication_active = yes
			### EK TODO: Give Impure traits to foreign close relationships
			# character_impure_foreign_relationships_impure = yes
			unlocks_blood_legacy = yes # tied to Blood Legacy
		}
	}

	tenet_daedric_bargains = {
		icon = core_tenet_tax_nonbelievers
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_daedric_bargains }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			always = no #until it actually does anything, disable for now
		}

		can_pick = {
			custom_description = {
				text = faith_must_have_one_daedric_prince_allowed
				creating_faith_has_daedric_prince_allowed = yes
			}
		}

		parameters = {
			# TODO: Decisions to deal with a Daedric Prince
			reduces_cost_daedric_boons_active = yes
			increases_effectiveness_daedric_sacrifices_active = yes
		}
	}

	tenet_living_gods = {
		icon = core_tenet_pentarchy
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_living_gods }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			always = yes
		}

		parameters = {
			tenet_adaptive_conversion_resistance = yes
			minimum_fervor = 25
		}
	}

	tenet_green_pact = {
		icon = core_tenet_divine_marriage
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_green_pact }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_tooltip = {
				# Green Pact is, well, a Green Pact thing
				text = tenet_green_pact_requirement
				OR = {
					doctrine:doctrine_pantheon_green_pact = { is_in_list = selected_doctrines }
					doctrine:doctrine_pantheon_wilderking = { is_in_list = selected_doctrines }
				}
			}
			custom_description = {
				text = incompatible_virtue_gluttonous
				NOT = { doctrine:doctrine_virtue_gluttonous = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_temperate
				NOT = { doctrine:doctrine_sin_temperate = { is_in_list = selected_doctrines } }
			}
		}

		traits = {
			virtues = { temperate }
			sins = { gluttonous }
		}

		parameters = {
			cannibalism_legal = yes
			cannibalism_reduced_effects = yes
			enables_gp_buildings = yes
			disables_non_gp_buildings = yes
		}

		character_modifier = {
			valenwood_advantage = 5
			valenwood_attrition_mult = -0.25
		}
	}

	tenet_magnus_worship = {
		icon = core_tenet_sun_worship

		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_magnus_worship }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
		# Based on Sun Worship
		parameters = {
			summer_festivals_active = yes
			# but with more magic stuff
			magic_worship = yes
		}

		character_modifier = {
			monthly_magic_lifestyle_xp_gain_mult = 0.2
		}
	}


	#################################
	# Nedic-Nordic Faiths Tenets	#
	#################################

	tenet_labyrinthine_canon = {
		icon = core_tenet_legalism
		piety_cost = {
			if = {
				limit = { doctrine:doctrine_pantheon_the_one = { is_in_list = selected_doctrines } }
				value = faith_tenet_cost_low
			}
			else = {
				value = faith_tenet_cost_mid
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_labyrinthine_canon }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_tooltip = {
				# This tenet is quite literally about The One
				text = tenet_labyrinthine_canon_requirement
				doctrine:doctrine_pantheon_the_one = { is_in_list = selected_doctrines }
			}
		}

		traits = {
			virtues = {
				education_learning_3
				education_learning_4
				education_learning_5
				scholar
			}
		}

		parameters = {
			literalist_debate_enabled = yes
		}

		character_modifier = {
			stewardship = -2
			learning = 2
		}
	}

	tenet_legacy_of_reman = {
		icon = core_tenet_pursuit_of_power
		piety_cost = {
			if = {
				limit = { religion_tag = imperial_religion }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_legacy_of_reman }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_tooltip = {
				# This tenet is quite literally about Reman
				text = tenet_legacy_of_reman_requirement
				OR = {
					doctrine:doctrine_pantheon_reman = { is_in_list = selected_doctrines } #so obviously the worship of Reman specifically is important
					doctrine:doctrine_sp_reman = { is_in_list = selected_doctrines } 
					doctrine:doctrine_pantheon_heroes = { is_in_list = selected_doctrines } #but also faiths where Reman worshipped alongside other heroes
					doctrine:doctrine_sp_heroes_reman = { is_in_list = selected_doctrines } 
				}
			}
		}

		traits = {
			virtues = { august }
		}

		character_modifier = {
			vassal_limit = 5
			opinion_of_liege = 10
		}

		parameters = {
			can_become_cyrodiil = yes
		}
	}

	tenet_exalted_heroism = {
		icon = core_tenet_ancestor_worship
		piety_cost = {
			if = {
				limit = { religion_tag = imperial_religion }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}
			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_exalted_heroism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			always = yes
		}

		character_modifier = {
			prestige_level_impact_mult = 0.5
			piety_level_impact_mult = 0.5
		}

		parameters = {
			# Characters can become Saints, and add one of their traits as a new virtue
			new_saints = yes
			virtues_sins_decided_saints = yes
		}
	}

	tenet_starstones = {
		icon = core_tenet_ancestor_worship
		piety_cost = {
			if = {
				limit = { religion_tag = yokudan_religion }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}
			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_starstones }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_tooltip = {
				# gotta be a Yokudan faith, so need a Yokudan pantheon
				text = tenet_starstones_requirement
				OR = {
					doctrine:doctrine_pantheon_yokudan = { is_in_list = selected_doctrines }
					doctrine:doctrine_pantheon_ragada = { is_in_list = selected_doctrines }
					doctrine:doctrine_pantheon_redguard = { is_in_list = selected_doctrines } 
					doctrine:doctrine_pantheon_satakal = { is_in_list = selected_doctrines } 
					doctrine:doctrine_pantheon_herd_mother = { is_in_list = selected_doctrines } 
				}
			}
		}

		parameters = {
			divine_the_stars_active = yes # EK TODO: one neat idea from Steel was to tie this decision to the current starsign!!!
			increased_dynasty_prestige_birth_mult = 1
			increased_dynasty_prestige_marriage_mult = 1
			increased_dynasty_prestige_long_reign_mult = 0.5
		}

		character_modifier = {
			naval_movement_speed_mult = 0.25
		}
	}

	#################################
	# Daedric Faiths Tenets			#
	#################################

	tenet_necromancy_worship = { #Mastery over Undeath
		icon = ai_tenet_mastery_over_undeath
		
		piety_cost = {
			if = {
				limit = {
					religion_tag = necromantic_religion
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = { has_doctrine = daedric_hostility_doctrine }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_necromancy_worship }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_description = {
				text = necromancy_must_be_fully_accepted
				NOR = {
					doctrine:doctrine_necromancy_crime = { is_in_list = selected_doctrines }
					doctrine:doctrine_necromancy_shunned = { is_in_list = selected_doctrines }
				}
			}
		}

		parameters = {
			lich_trait_arcana = yes
			lich_ascension = yes
			cheaper_necromancy_spells = yes
			tenet_necromancy_worship_hostility = yes
		}

		traits = {
			virtues = { necromancer = 1 }
			virtues = { lich_character = 3 }
		}
	}
	
	tenet_divine_disease = { # EK NOTE EK TODO: leaving this untouched until MW - it's been changed there
		icon = core_tenet_human_sacrifice

		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_divine_disease }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = { #no one but Dagoth should want this
			custom_tooltip = {
				text = sixth_house_custom_faith_blocker
				always = no
			}
		}

		parameters = {
			sanctioned_false_conversion = yes
		}

		character_modifier = {
			tyranny_gain_mult = -0.5
		}

		#traits = {
		#	virtues = {
		#		corprus
		#	}
		#}
	}

	tenet_ritual_hunts = {
		icon = core_tenet_ritual_celebrations

		piety_cost = {
			if = {
				limit = {
					OR = {
						religion_tag = hircine_religion
						doctrine:doctrine_pantheon_hircine = { is_in_list = selected_doctrines }
					}
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = { has_doctrine = daedric_hostility_doctrine }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_ritual_hunts }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			piety_from_hunts_active = yes
		}

		traits = {
			virtues = {
				lifestyle_hunter
			}
		}
	}

	tenet_sanctity_of_life = {
		icon = core_tenet_consolamentum

		piety_cost = {
			if = {
				limit = {
					OR = {
						religion_tag = meridia_religion
						doctrine:doctrine_pantheon_meridia = { is_in_list = selected_doctrines }
					}
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = { has_doctrine = daedric_hostility_doctrine }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_sanctity_of_life }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_description = {
				text = vampirism_must_be_outlawed
				doctrine:doctrine_vampirism_crime = { is_in_list = selected_doctrines }
			}
			custom_description = {
				text = necromancy_must_be_outlawed
				doctrine:doctrine_necromancy_crime = { is_in_list = selected_doctrines }
			}
		}

		parameters = {
			cheaper_cleanse_abominations_active = yes
			cheaper_holy_wars_pro_undeath_active = yes
			bonus_cleanse_abomination_war_piety_active = yes
			tenet_sanctity_of_life_hostility = yes
		}

		traits = {
			sins = {
				vampire_character = 3
				necromancer = 3
				undead_character = 3
				lich_character = 3
			}
		}
	}

	tenet_contempt_for_the_weak = {
		icon = core_tenet_struggle_submission

		piety_cost = {
			if = {
				limit = {
					OR = {
						religion_tag = malacath_religion
						doctrine:doctrine_pantheon_malacath = { is_in_list = selected_doctrines }
					}
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = { has_doctrine = daedric_hostility_doctrine }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_contempt_for_the_weak }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			lethal_and_free_claim_duel_active = yes
			weak_rulers_contest_rule = yes
			vassal_contribution_tied_prowess = yes
			prowess_bonuses = yes
			rule_by_might_succession_active = yes
		}

		traits = {
			virtues = {
				physique_good_1
				strong
				physique_good_2 = 2
				physique_good_3 = 2
			}
			sins = {
				physique_bad_1
				weak
				physique_bad_2 = 2
				physique_bad_3 = 2
			}
		}
	}

	tenet_vows_of_squalor = {
		icon = core_tenet_inner_journey
		piety_cost = {
			if = {
				limit = {
					OR = {
						religion_tag = namira_religion
						doctrine:doctrine_pantheon_namira = { is_in_list = selected_doctrines }
					}
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = { has_doctrine = daedric_hostility_doctrine }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_vows_of_squalor }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			# TODO: Just that (copy paste Vows of Poverty I guess)
			vows_of_squalor_active = yes
		}
	}

	tenet_radical_detachment = {
		icon = core_tenet_inner_journey
		piety_cost = {
			if = {
				limit = {
					OR = {
						religion_tag = sheogorath_religion
						doctrine:doctrine_pantheon_sheogorath = { is_in_list = selected_doctrines }
					}
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = { has_doctrine = daedric_hostility_doctrine }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_radical_detachment }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			# TODO: Just that
			radical_detachment_law_cost_increase = yes
		}

		character_modifier = {
			stress_gain_mult = -0.25
		}

		can_pick = {
			custom_description = {
				text = incompatible_virtue_stubborn
				NOT = { doctrine:doctrine_virtue_stubborn = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_fickle
				NOT = { doctrine:doctrine_sin_fickle = { is_in_list = selected_doctrines } }
			}
		}

		traits = {
			virtues = {
				fickle
				lunatic = 2
			}
			sins = { stubborn }
		}
	}

	tenet_sacred_alchemy = {
		icon = core_tenet_esotericism
		piety_cost = {
			if = {
				limit = {
					OR = {
						religion_tag = vaermina_religion
						doctrine:doctrine_pantheon_vaermina = { is_in_list = selected_doctrines }
					}
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = { has_doctrine = daedric_hostility_doctrine }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_sacred_alchemy }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			tenet_sacred_alchemy_herbalist_education = yes
		}

		traits = {
			virtues = {
				lifestyle_physician
				lifestyle_herbalist
			}

		}
	}

	tenet_ritual_nightmares = {
		icon = core_tenet_adorcism
		piety_cost = {
			if = {
				limit = {
					OR = {
						religion_tag = vaermina_religion
						doctrine:doctrine_pantheon_vaermina = { is_in_list = selected_doctrines }
					}
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = { has_doctrine = daedric_hostility_doctrine }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_ritual_nightmares }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			intentional_nightmares_mechanics_active = yes
		}
		
		can_pick = {
			custom_description = {
				text = incompatible_virtue_craven
				NOT = { doctrine:doctrine_virtue_craven = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_brave
				NOT = { doctrine:doctrine_sin_brave = { is_in_list = selected_doctrines } }
			}
		}

		traits = {
			virtues = { brave }
			sins = { craven }
		}
	}

	tenet_veneration_of_diseases = {
		icon = core_tenet_veneration_of_diseases

		can_pick = {
			custom_description = {
				text = faith_must_have_peryite_patron
				doctrine:doctrine_pantheon_peryite = { is_in_list = selected_doctrines }
			}
		}

		piety_cost = {
			if = {
				limit = {
					OR = {
						religion_tag = peryite_religion
						doctrine:doctrine_pantheon_peryite = { is_in_list = selected_doctrines }
					}
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = { has_doctrine = daedric_hostility_doctrine }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_veneration_of_diseases }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			self_disease_active = yes
			devotion_gives_health_penalty_negation = yes
			celebrated_disease = yes
		}

		traits = {
			virtues = {
				typhus
				consumption
				smallpox
				measles
				dysentery
				ergotism
				chrondiasis
				peryite_affliction
			}
		}
	}

	tenet_thriving_in_chaos = {
		icon = core_tenet_bhakti
		piety_cost = {
			if = {
				limit = {
					OR = {
						religion_tag = sheogorath_religion
						doctrine:doctrine_pantheon_sheogorath = { is_in_list = selected_doctrines }
					}
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = { has_doctrine = daedric_hostility_doctrine }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_thriving_in_chaos }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			stress_gives_piety_active = yes
		}
	}

	tenet_princes_of_misrule = {
		icon = core_tenet_ritual_celebrations

		name = {
			first_valid = {
				triggered_desc = {
					trigger = {
						religion_tag = meridia_religion
					}
					desc = tenet_princes_of_misrule_meridia_religion_name
				}
				triggered_desc = {
					trigger = {
						religion_tag = velothi_religion
					}
					desc = tenet_princes_of_misrule_velothi_religion_name
				}
				desc = tenet_princes_of_misrule_name
			}
		}

		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						religion_tag = meridia_religion
					}
					desc = tenet_princes_of_misrule_meridia_religion_desc
				}
				triggered_desc = {
					trigger = {
						religion_tag = velothi_religion
					}
					desc = tenet_princes_of_misrule_velothi_religion_desc
				}
				desc = tenet_princes_of_misrule_desc
			}
		}

		piety_cost = {
			if = {
				limit = { has_doctrine = daedric_hostility_doctrine }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_princes_of_misrule }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_description = {
				text = doctrine_pluralism_pluralistic_trigger
				NOT = { doctrine:doctrine_pluralism_pluralistic = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_sin_callous
				NOT = { doctrine:doctrine_sin_callous = { is_in_list = selected_doctrines } }
			}
		}

		character_modifier = {
			different_faith_county_opinion_mult = 0.25
		}

		parameters = {
			weak_rulers_contest_rule = yes
			ek_might_makes_right_lower_requirement_active = yes
			has_access_to_trials_by_combat = yes
		}

		traits = {
			virtues = { callous }
		}
	}

	#############################
	# Aurbic Faith Tenets		#
	#############################

	tenet_all_maker_sacred_rituals = {
		icon = core_tenet_ritual_celebrations
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_all_maker_sacred_rituals }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			doctrine:doctrine_pantheon_all_maker = { is_in_list = selected_doctrines }
		}

		parameters = {
			allows_ristaag_decision_active = yes
			#allows_ritual_of_the_gifts_decision_active = yes # EK TODO
		}
	}

	tenet_tsaescence = {
		icon = core_tenet_gruesome_festivals
		piety_cost = {
			value = faith_tenet_cost_high

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_tsaescence }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		can_pick = {
			custom_description = {
				text = incompatible_tenet_pacifism_trigger
				NOT = { doctrine:tenet_pacifism = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_human_sacrifice_trigger
				NOT = { doctrine:tenet_human_sacrifice = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_gruesome_festivals_trigger
				NOT = {
					doctrine:tenet_gruesome_festivals = { is_in_list = selected_doctrines }
				}
			}
			custom_description = {
				text = incompatible_sin_stubborn
				NOT = { doctrine:doctrine_sin_stubborn = { is_in_list = selected_doctrines } }
			}
		}

		traits = {
			virtues = {
				tsaesci_1
				tsaesci_2 = 2
				tsaesci_3 = 2
				tsaesci_4 = 2
			}
			sins = { stubborn }
		}

		parameters = {
			human_sacrifice_active = yes
			flower_war_cb_active = yes
			tsaescence_interaction_active = yes
		}
	}
	
	tenet_legacy_of_tiber = {
		icon = core_tenet_pursuit_of_power
		piety_cost = {
			if = {
				limit = { religion_tag = imperial_religion }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_legacy_of_reman }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
		
		is_shown = {
			custom_tooltip = {
				text = tenet_legacy_of_tiber_requirement
				doctrine:doctrine_sp_talos = { is_in_list = selected_doctrines } 
			}
		}

		can_pick = {
			custom_tooltip = {
				text = tenet_legacy_of_tiber_requirement
				doctrine:doctrine_sp_talos = { is_in_list = selected_doctrines } 
			}
		}
		
		traits = {
			virtues = {
				dragonborn = 2
			}
		}

		parameters = {
			conquest_cb_enabled = yes
			invasion_cb_enabled = yes
			ek_might_makes_right_lower_requirement_active = yes
		}

		character_modifier = {
			vassal_limit = 5
			opinion_of_same_faith = 10
			opinion_of_liege = 10
		}
	}
	
}

	#############################
	# Empty Template Tenet 		#
	#############################

	#tenets = {
	#	is_shown = {
	#		always = no
	#	}
	#	can_pick = {
	#		always = yes
	#	}

	#	piety_cost = {
	#		if = {
	#			limit = {
	#				always = no
	#			}
	#			value = faith_tenet_cost_low
	#		}
	#		else = {
	#			value = faith_tenet_cost_massive
	#		}

	#		# Multiplier for keeping same tenet
	#		if = {
	#			limit = { has_doctrine = tenets }
	#			multiply = faith_unchanged_doctrine_cost_mult
	#		}
	#	}

	#	parameters = {
	#		tenets_active = yes
	#	}

	#	character_modifier = {

	#	}

	#	traits = {
	#		virtues = { brave = 2}
	#		sins = { craven = 2}
	#	}
	#}
