doctrine_core_tenets = {
	group = "core_tenets"
	number_of_picks = 3

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

	tenet_aniconism = {
		icon = core_tenet_aniconism
		piety_cost = {
			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
			}
		}

		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
		}
	}

	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 = {
			OR = {
				religion_tag = christianity_religion
				religion_tag = islam_religion 
			}
		}

		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 = {
			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
			}
		}

		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 } }
			}
			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
			ghw_no_hof_conversion_buffs_active = yes
			pilgrimage_decision_active = yes
		}
		character_modifier = {
			accolade_glory_gain_mult = 0.1
		}
	}

	tenet_carnal_exaltation = {
		icon = core_tenet_carnal_exaltation
		piety_cost = {
			if = {
				limit = {
					religion_tag = hinduism_religion
				}
				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 }
		}
	}

	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 = {
			always = yes
		}

		parameters = {
			same_culture_conversion_bonus_active = yes
			same_faith_promote_culture_bonus_active = yes
			other_culture_conversion_penalty_active = yes
		}

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

	tenet_communion = {
		icon = core_tenet_communion
		piety_cost = {
			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 }
				}
			}
		}

		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 = {
				triggered_desc = {
					trigger = {
						religion_tag = christianity_religion
					}
					desc = tenet_consolamentum_name
				}
				desc = tenet_consolamentum_name_alternate
			}
		}

		piety_cost = {
			if = {
				limit = {
					has_doctrine = tenet_sacrificial_ceremonies
				}
				value = faith_tenet_cost_low
			}
			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 = {
			NOR = {
				religion_tag = islam_religion
				religion_tag = judaism_religion
				religion_tag = zoroastrianism_religion
				AND = {
					has_doctrine = pagan_hostility_doctrine
					NOT = { religion_tag = kushitism_religion }
				}
			}
		}
		
		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 moved to marriage doctrines
	

	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 }
		}

		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 = {
			NOT = { has_doctrine = special_doctrine_is_gnostic_faith } # Can't be Gnostic if ye already are Gnostic
		}
	}

	tenet_mendicant_preachers = {
		icon = core_tenet_mendicant_preachers
		piety_cost = {
			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 } }
			}
			custom_description = {
				text = incompatible_tenet_closed_faith_trigger
				NOT = { doctrine:tenet_me_closed_faith = { 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 = { #BAP adds two parameters
		icon = core_tenet_monasticism
		piety_cost = {
			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 } }
			}
		}

		parameters = {
			take_vows_active = yes
			#BAP additions
			retire_to_a_monastery_active = yes
            invite_monks_active = yes
		}
		traits = {
			virtues = { temperate }
			sins = { gluttonous }
		}
	}

	tenet_pacifism = { ##### BAP adds more doctrinal clashes
		icon = core_tenet_pacifism
		piety_cost = {
			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 = {
			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 }
				}
			}
			custom_description = {
				text = mz_incompatible_tenet_valhalla_bound_trigger
				NOT = { doctrine:mz_tenet_valhalla_bound = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = mz_incompatible_tenet_eternal_riders_trigger
				NOT = { doctrine:mz_tenet_eternal_riders = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = mz_incompatible_tenet_dawnbreakers_trigger
				NOT = { doctrine:mz_tenet_dawnbreakers = { 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 = {
			first_valid = {
				triggered_desc = {
					trigger = {
						religion_tag = christianity_religion
					}
					desc = tenet_pentarchy_alternate_name
				}
				desc = tenet_pentarchy_name
			}
		}

		piety_cost = {
			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
			pilgrimage_decision_active = yes
		}
	}

	tenet_unrelenting_faith = {
		icon = core_tenet_unrelenting_faith
		piety_cost = {
			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 = {
				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 = {
				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 = {
			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
			}
		}

		name = {
			first_valid = {
				triggered_desc = {
					trigger = { religion_tag = islam_religion }
					desc = tenet_faqr_name
				}
				desc = tenet_vows_of_poverty_name
			}
		}

		can_pick = {
			always = yes
		}

		parameters = {
			vows_of_poverty_active = yes
			unlock_voluntary_laampdom_faith = yes
		}

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

	tenet_pastoral_isolation = {
		icon = core_tenet_pastoral_isolation

		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
		}

		parameters = {
			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.
			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
		}

		can_pick = {
			# Must have a theocratic HoF.
			custom_description = {
				text = doctrine_requires_theocratic_head_of_faith_trigger
				doctrine:doctrine_spiritual_head = { is_in_list = selected_doctrines }
			}
			# !!! 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
		}

		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
		}

		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 = {
			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
		}

		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 = {
			if = {
				limit = {
					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 = {
				triggered_desc = {
					trigger = {
						religion_tag = judaism_religion
					}
					desc = tenet_esotericism_kabbalah
				}
				desc = tenet_esotericism_name
			}
		}

		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						religion_tag = judaism_religion
					}
					desc = tenet_esotericism_kabbalah_desc
				}
				desc = tenet_esotericism_desc
			}
		}

		parameters = {
			tenet_esotericism_mystic_education = yes
		}
	}

	tenet_legalism = { ##### BAP edits alternate name
		icon = core_tenet_legalism
		name = {
			first_valid = {
                triggered_desc = {
					trigger = {
						religion_tag = kushitism_religion
					}
					desc = tenet_legalism_maat
				}
				desc = tenet_legalism_name
			}
		}
		piety_cost = {
			if = {
				limit = {
					OR = {
						religion_tag = buddhism_religion
						religion_tag = jainism_religion
						has_doctrine = pagan_hostility_doctrine
					}
				}
				value = faith_tenet_cost_high
			}
			else_if = {
				limit = {
					OR = {
						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
			}
		}

		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
		}
	}

	tenet_literalism = {
		icon = core_tenet_literalism
		piety_cost = {
			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
			}

			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
			}
		}
		
		character_modifier = {
			monthly_merit_mult = 0.1
		}

		parameters = {
			literalist_debate_enabled = yes
		}
	}

	tenet_reincarnation = { #### BAP edits can_pick
		icon = core_tenet_reincarnation
		piety_cost = {
			if = {
				limit = {
					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
			}
		}
		can_pick = {
			custom_description = {
				text = mz_incompatible_tenet_totem_spirits_trigger
				NOT = { doctrine:mz_tenet_totem_spirits = { is_in_list = selected_doctrines } }
			}
		}
		is_shown = {
			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 = {
				triggered_desc = {
					trigger = {
						religion_tag = zoroastrianism_religion
					}
					desc = tenet_reincarnation_zoroastrian_name
				}
				desc = tenet_reincarnation_name
			}
		}

		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						religion_tag = zoroastrianism_religion
					}
					desc = tenet_reincarnation_zoroastrian_desc
				}
				desc = tenet_reincarnation_desc
			}
		}
	}

	tenet_religious_legal_pronouncements = { #### BAP adds additional alternate name
		icon = core_tenet_legal_pronouncements
		piety_cost = {
			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 = {
				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 = odinala_religion
					}
					desc = tenet_religious_legal_pronouncements_omenala
				}
				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
		}
	}

	tenet_struggle_submission = {
		icon = core_tenet_struggle_submission
		piety_cost = {
			if = {
				limit = {
					religion_tag = islam_religion
				}
				value = faith_tenet_cost_low
			}
			else = {
				value = faith_tenet_cost_high
			}

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

		is_shown = {
			OR = {
				religion_tag = islam_religion
				religion_tag = dualism_religion
			}
		}

		parameters = {
			great_holy_wars_active = yes
			ghw_no_hof_conversion_buffs_active = yes
			bonus_holy_war_piety_active = yes
			pilgrimage_decision_active = yes
			unlock_voluntary_laampdom_faith = yes
		}
	}

	tenet_false_conversion_sanction = {
		icon = core_tenet_false_conversion_sanction
		name = {
			first_valid = {
				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 = {
			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 = {
					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
		}

		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 = {
			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 = {
				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 = {
			NOT = { religion_tag = christianity_religion }
			NOT = { has_doctrine = special_doctrine_jizya }
		}
	}

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

	tenet_asceticism = {
		icon = core_tenet_asceticism
		piety_cost = {
			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
		#	}
		#}

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

	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 = {
			OR = {
				religion_tag = hinduism_religion
				# With FP1, Germanics also get personal deities.
				AND = {
					religion_tag = germanic_religion
					has_fp1_dlc_trigger = yes
				}
			}
		}

		parameters = {
			select_personal_god_active = yes
		}
	}
	
	####BAP adds new alternate name
	tenet_dharmic_pacifism = { #Mix of reincarnation and pacifism rites
		icon = core_tenet_dharmic_pacifism
		is_shown = {
			has_doctrine = eastern_hostility_doctrine
			NOT = { religion_tag = zoroastrianism_religion }
		}
		
		name = {
			first_valid = {
                triggered_desc = {
					trigger = {
						religion_tag = odinala_religion
					}
					desc = tenet_dharmic_pacifism_odinala
				}
				desc = tenet_dharmic_pacifism_name
			}
		}
		
		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
			hostility_same_religion = 1
		}

		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 = {
			has_doctrine = eastern_hostility_doctrine
			NOT = { religion_tag = zoroastrianism_religion }
		}

		piety_cost = {
			value = faith_tenet_cost_low

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

		traits = {
			virtues = { patient }
			sins = { impatient }
		}

		parameters = {
			meditation_mechanics_active = yes
		}
	}

	tenet_ritual_hospitality = {
		icon = core_tenet_ritual_hospitality
		piety_cost = {
			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 = {
			NOT = {
				has_doctrine = abrahamic_hostility_doctrine
			}
		}

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

		parameters = {
			host_honored_guests_active = yes
		}

		traits = {
			virtues = {
				generous
			}
			sins = {
				callous
			}
		}

		character_modifier = {
			monthly_piety_gain_per_happy_powerful_vassal_add = 0.3
		}
	}

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

	tenet_adorcism = { ##### BAP adds new name alternate, more is_shown options, and a tenet clash
		icon = core_tenet_adorcism
		
		name = {
			first_valid = {
                triggered_desc = {
					trigger = {
						religion_tag = west_african_bori_religion
					}
					desc = tenet_adorcism_bori
				}
				triggered_desc = {
					trigger = {
						this = faith:ijaw_pagan
					}
					desc = tenet_adorcism_ijaw
				}
				desc = tenet_adorcism_name
			}
		}
		
		piety_cost = {
			value = faith_tenet_cost_low

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

		is_shown = {
			OR = {
				religion_tag = west_african_bori_religion
                religion_tag = west_african_orisha_religion
                religion_tag = idoism_religion
                religion_tag = akom_religion
                religion_tag = vodun_religion
				religion_tag = waaqism_religion
				religion_tag = ijaw_religion
				religion_tag = west_african_religion
			}
		}
		
		can_pick = {	
			custom_description = {
				text = mz_incompatible_tenet_animism_trigger
				NOT = { doctrine:mz_tenet_animism = { is_in_list = selected_doctrines } }
			}
		}
		
		parameters = {
			spirit_possession_active = yes
		}

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

	tenet_ancestor_worship = { ###### BAP adds new can pick option and parameter
		icon = core_tenet_ancestor_worship

		piety_cost = {
			value = faith_tenet_cost_low

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_ancestor_worship }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
		can_pick = {
			custom_description = {
				text = mz_incompatible_tenet_ekeraa_trigger
				NOT = { doctrine:mz_tenet_ekeraa = { is_in_list = selected_doctrines } }
			}
		}
		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
			mz_burial_rites_active = yes
		}

		character_modifier = {
			close_relative_opinion = 5
		}
	}

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

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

		piety_cost = {
			if = {
				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
			}
		}
		
		can_pick = {
			custom_description = {
				text = mz_incompatible_tenet_valhalla_bound_trigger
				NOT = { doctrine:mz_tenet_valhalla_bound = { is_in_list = selected_doctrines } }
			}
		}
		parameters = {
			divine_the_stars_active = yes
		}

		character_modifier = {
			naval_movement_speed_mult = 0.25
		}
	}

	tenet_hedonistic = {
		icon = core_tenet_hedonistic
		piety_cost = {
			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 = {
					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 = {
			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 } }
			}
		}

		parameters = {
			piety_from_feasts_active = yes
			piety_from_festivals_active = yes
		}

		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 = {
					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
			}

			# 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.
			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 } }
			}
			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

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

		is_shown = {
			OR = {
				religion_tag = magyar_religion
				has_doctrine = tenet_mystical_birthright #If you already have it
			}
		}

		parameters = {
			mystic_birthright_active = yes
		}

		traits = {
			virtues = { 
				lifestyle_mystic = { 
					scale = 5 
					weight = 2 
				} 
			}
		}
	}

	tenet_ritual_celebrations = {
		icon = core_tenet_ritual_celebrations

		piety_cost = {
			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
			}
		}
		can_pick = {
			custom_description = {
				text = mz_incompatible_tenet_animism_trigger
				NOT = { doctrine:mz_tenet_animism = { is_in_list = selected_doctrines } }
			}
		}
		parameters = {
			piety_from_feasts_active = yes
			piety_from_festivals_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 = {
				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

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_sacred_childbirth }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
		can_pick = {
			custom_description = {
				text = mz_incompatible_tenet_ekeraa_trigger
				NOT = { doctrine:mz_tenet_ekeraa = { is_in_list = selected_doctrines } }
			}
		}
		
		parameters = {
			safer_childbirths_active = yes
			healthier_children_active = yes
			piety_from_childbirth_active = yes
		}

		character_modifier = {
			fertility = 0.1
		}

		traits = {
			virtues = { pregnant }
		}
	}

	tenet_sanctity_of_nature = {
		icon = core_tenet_sanctity_of_nature

		piety_cost = {
			if = {
				limit = {
					religion_tag = hinduism_religion

				}
				value = faith_tenet_cost_high
			}
			else_if = {
				limit = {
					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
			mz_grove_dedication_active = yes
		}

		character_modifier = {
			forest_advantage = 5
			forest_development_growth_factor = 0.1
			forest_levy_size = 0.2
			taiga_advantage = 5
			taiga_development_growth_factor = 0.15
			taiga_levy_size = 0.2
			jungle_advantage = 5
			jungle_development_growth_factor = 0.3
			jungle_levy_size = 0.2
			holding_build_gold_cost = 0.25
			holding_build_speed = 0.25
			county_opinion_add = 5
			drylands_advantage = 5
			drylands_attrition_mult = -0.25
		}
	}

	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 = {
			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
				}
                religion_tag = basho_religion
				religion_tag = north_african_religion
                faith = faith:wennam_pagan
                faith = faith:munean_pagan
				faith = faith:beja_pagan
				religion_tag = amazigh_religion
            }
        }

		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 = {
			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 = {
			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 } }
			}
			custom_description = {
				text = incompatible_tenet_dharmic_pacifism_trigger
				NOT = { doctrine:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = mz_incompatible_tenet_valhalla_bound_trigger
				NOT = { doctrine:mz_tenet_valhalla_bound = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = mz_incompatible_tenet_eternal_riders_trigger
				NOT = { doctrine:mz_tenet_eternal_riders = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			warmonger = yes
			conquest_cb_enabled = yes
			invasion_cb_enabled = yes
			great_holy_wars_active_if_reformed = yes
			clergy_can_fight = 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 = {
				triggered_desc = {
					trigger = { religion_tag = germanic_religion }
					desc = tenet_gruesome_festivals_blot_name
				}
				triggered_desc = {
					trigger = { 
						this = faith:west_african_bidu_pagan 
					}
					desc = tenet_gruesome_festivals_bida_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 = { 
					has_doctrine = tenet_human_sacrifice
				}
				value = faith_tenet_cost_low
			}
			# 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
			}

			# 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.
			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 }
				}
			}
			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 = {
				triggered_desc = {
					trigger = {
						religion_tag = north_african_religion
					}
					desc = tenet_volcanic_veneration_name
				}
                triggered_desc = {
				    trigger = {
				       religion_tag = west_african_bori_religion
					}
					desc = wap_tenet_sacred_mountains_jigo
				}
				triggered_desc = {
				    trigger = {
				       religion_tag = idoism_religion
					}
					desc = wap_tenet_sacred_mountains_manda
				}
				triggered_desc = {
				    trigger = {
				       religion_tag = islam_religion
					}
					desc = wap_tenet_sacred_mountains_islam
				}
				triggered_desc = {
				    trigger = {
				       this = faith:amazigh_pagan
					}
					desc = wap_tenet_sacred_mountains_name
				}
			    desc = tenet_cthonic_redoubts_name
			}
		}

		desc = {
			first_valid = {
				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 = {
						this = faith:bosnian_church
						this = faith:armenian_apostolic
						this = faith:lamaism
						this = faith:vajrayana
						this = faith:mahayana
						this = faith:haymanot
						this = faith:amazigh_pagan
						religion = religion:basque_religion
						religion = religion:kushitism_religion
						religion = religion:zunism_religion
						religion = religion:tani_religion
						religion = religion:qiangic_religion
						religion = religion:bon_religion
						religion = religion:idoism_religion
						religion = religion:west_african_bori_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 = {
			hills_advantage = 1
			hills_attrition_mult = -0.1
			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
			}
		}
	}

	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 = {
			religion_tag = hellenism_religion
		}

		can_pick = {
			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	#
	#############################

	### Moved to doctrines

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

	tenet_exaltation_of_pain = {
		icon = core_tenet_human_sacrifice

		is_shown = {}

		piety_cost = {
			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
			}

			# 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
			}
		}
	}

	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 }
				}
			}
			custom_description = {
				text = mz_requires_full_nudity
				doctrine:doctrine_mz_full_nudity = { is_in_list = selected_doctrines }
			}
		}

		piety_cost = {
			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
			}

			# 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 = {
			if = {
				limit = {
					OR = {
						has_doctrine = pagan_hostility_doctrine
						religion_tag = hinduism_religion
						religion_tag = islam_religion
					}
				}
				value = faith_tenet_cost_mid
			}
			else_if = {
				limit = {
					religion_tag = judaism_religion

				}
				value = faith_tenet_cost_high
			}
			else = {
				value = faith_tenet_cost_massive
			}

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

		parameters = {
			conquest_cb_enabled = yes
			invasion_cb_enabled = 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
			}
		}
	}

	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
			}

			# 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 = {
		icon = core_tenet_sacred_shadows

		piety_cost = {
			if = {
				limit = {
					has_doctrine = pagan_hostility_doctrine

				}
				value = faith_tenet_cost_mid
			}
			else_if = {
				limit = {
					OR = {
						religion_tag = islam_religion
						religion_tag = judaism_religion
					}
				}
				value = faith_tenet_cost_high
			}
			else = {
				value = faith_tenet_cost_massive
			}

			# 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 }
				}
			}
		}

		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 moved to marriage doctrines
	
	
	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
			}
			
			#We already practice sacrificial ceremonies
			if = {
				limit = { has_doctrine = tenet_sacrificial_ceremonies }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			religion_tag = north_african_religion
		}

		can_pick = {
			custom_description = {
				text = incompatible_tenet_pacifism_trigger
				NOT = { doctrine:tenet_pacifism = { is_in_list = selected_doctrines } }
			}
			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
			}
			
			#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 = {
				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 } }
			}
			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_puritanical_islam = { 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 }
				}
			}
		}

		piety_cost = {
			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
			}

			# 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 = {
			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 
			}

			#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_growth_factor = -0.2
			build_gold_cost = -0.1
			county_opinion_add = 10 
		}

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

	############################
	# TGP Tenets				#
	############################

	tenet_pure_land = {
		icon = core_tenet_pure_land
		piety_cost = {
			if = {
				limit = {
					religion_tag = buddhism_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_pure_land }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		name = tenet_pure_land_name
		
		is_shown = {
		}

		parameters = {
			sanctioned_false_conversion = yes
			peasant_and_populist_factions_more_common = yes
		}

		character_modifier = {
			different_faith_opinion = -10
			stress_loss_per_prestige_level = -0.1
			stress_loss_mult = 0.35
		}

		traits = {
			sins = {
				greedy
			}
		}
	}

	tenet_no_mind = { # Zen
		icon = core_tenet_no_mind
		piety_cost = {
			if = {
				limit = {
					OR = {
						religion_tag = buddhism_religion
						religion_tag = taoism_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
			}
		}

		name = tenet_no_mind_name
		
		is_shown = {
		}

		parameters = {
			better_artifacts = yes
			less_likely_to_become_infirm = yes
		}

		character_modifier = {
			negate_prowess_penalty_add = 5
			stress_gain_mult = -0.1
		}
	}

	tenet_mountain_worship = {
		icon = core_tenet_mountain_worship
		piety_cost = {
			if = {
				limit = {
					religion_tag = shintoism_religion
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = {
					has_doctrine = pagan_hostility_doctrine
				}
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

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

		parameters = {
			mountain_trait_bonuses = yes
			piety_from_hills_and_mountains_pilgrimages = yes
		}

		character_modifier = {
			mountains_holding_construction_gold_cost = -0.35
			desert_mountains_holding_construction_gold_cost = -0.35
		}
	}
	tenet_extinction_of_dharma = {
		icon = core_tenet_extinction_of_dharma

		is_shown = {
			religion_tag = buddhism_religion
			has_tgp_dlc_trigger = yes
		}
		can_pick = {
			custom_description = {
				text = incompatible_tenet_pacifism_trigger
				NOT = { doctrine:tenet_pacifism = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_dharmic_pacifism_trigger
				NOT = { doctrine:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } }
			}
		}

		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 = tenet_extinction_of_dharma }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			hostility_same_religion = 3
			destroying_artifacts_is_pious = yes
			awaiting_the_maitreya_savior = yes
			killing_buddhists_is_pious = yes
		}

		character_modifier = {
			monthly_piety_gain_mult = -1
		}
	}
	tenet_cranial_trophies = {
		icon = core_tenet_cranial_trophies

		is_shown = {
			has_tgp_dlc_trigger = 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 = tenet_cranial_trophies }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			killing_bestows_heads = yes
			decapitation_steals_prestige_as_piety = yes
		}

		character_modifier = {
			jungle_advantage = 5
			jungle_attrition_mult = -0.25
			jungle_min_combat_roll = 1
			monthly_piety_gain_per_dread_add = 0.01
			prowess = 3
		}
	}
 	tenet_pursuit_of_knowledge = {
		icon = core_tenet_pursuit_of_knowledge

		is_shown = {
			has_tgp_dlc_trigger = yes
			religion = {
				OR = {
					this = religion:buddhism_religion
					is_in_family = rf_sinitic
				}
			}
		}

		piety_cost = {
			if = {
				limit = {
					religion = religion:confucianism_religion
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = {
					religion = {
						is_in_family = rf_sinitic
					}
				}
				value = faith_tenet_cost_mid
			}
			else_if = {
				limit = {
					religion = religion:buddhism_religion
				}
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

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

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

		parameters = {
			better_study_scheme = yes
		}

		character_modifier = {
			monthly_learning_lifestyle_xp_gain_mult = 0.2
		}
	}
 	tenet_benevolent_governance = {
		icon = core_tenet_benevolent_governance

		is_shown = {
			has_tgp_dlc_trigger = yes
			religion = {
				OR = {
					this = religion:buddhism_religion
					is_in_family = rf_sinitic
				}
			}
		}

		piety_cost = {
			if = {
				limit = {
					religion = religion:confucianism_religion
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = {
					religion = {
						is_in_family = rf_sinitic
					}
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = {
					religion = religion:buddhism_religion
				}
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

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

		parameters = {
			inspections_unlocked_and_costs_piety = yes
			inspection_gives_devotion = yes
		}

		character_modifier = {
			dread_gain_mult = -0.75
		}

		traits = {
			virtues = { loyal }
			sins = { disloyal }
		}
	}
	tenet_filial_piety = {
		icon = core_tenet_filial_piety 

		is_shown = {
			has_tgp_dlc_trigger = yes
			religion = {
				OR = {
					this = religion:buddhism_religion
					is_in_family = rf_sinitic
				}
			}
		}
		can_pick = {
			always = yes
		}

		piety_cost = {
			if = {
				limit = {
					religion = religion:confucianism_religion
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = {
					religion = {
						is_in_family = rf_sinitic
					}
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = {
					religion = religion:buddhism_religion
				}
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_high
			}

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

		parameters = {
			parents_get_hooks_on_children = yes
			children_less_likely_to_be_burdened = yes
		}

		character_modifier = {
			opinion_of_parents = 20
		}
	}
	tenet_harmonious_society = {
		icon = core_tenet_harmonious_society
		is_shown = {
			has_tgp_dlc_trigger = yes
			religion = {
				OR = {
					this = religion:buddhism_religion
					is_in_family = rf_sinitic
				}
			}
		}
		can_pick = {
			always = yes
		}

		piety_cost = {
			if = {
				limit = {
					religion = religion:confucianism_religion
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = {
					religion = {
						is_in_family = rf_sinitic
					}
				}
				value = faith_tenet_cost_low
			}
			else_if = {
				limit = {
					religion = religion:buddhism_religion
				}
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_massive
			}

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

		parameters = {
			sway_scheme_better = yes
			sway_scheme_piety = yes
			more_often_zealots = yes
		}
		
		traits = {
			virtues = { temperate }
			sins = { gluttonous }
		}
	}

	tenet_sacred_destruction = {
		icon = core_tenet_sacred_destruction

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

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

		is_shown = {
			religion_tag = hinduism_religion
		}

		can_pick = {
			custom_description = {
				text = incompatible_tenet_pacifism_trigger
				NOT = { doctrine:tenet_pacifism = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_dharmic_pacifism_trigger
				NOT = { doctrine:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_tenet_preservation_trigger
				NOT = { doctrine:tenet_preservation = { is_in_list = selected_doctrines } }
			}
		}

		character_modifier = {
			prowess_per_piety_level = 1
			maa_damage_mult = 0.1
		}
		
		parameters = {
			successful_sieges_give_piety = yes
		}
		
		traits = {
			virtues = { wrathful }
		}
	}
	
	tenet_preservation = {
		icon = core_tenet_preservation

		piety_cost = {
			if = {
				limit = { has_doctrine = tenet_sanctity_of_nature }
				value = faith_tenet_cost_massive
			}
			else = {
				value = faith_tenet_cost_high
			}

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

		is_shown = {
			religion_tag = hinduism_religion
		}

		can_pick = {
			custom_description = {
				text = incompatible_tenet_tenet_sacred_destruction_trigger
				NOT = { doctrine:tenet_sacred_destruction = { is_in_list = selected_doctrines } }
			}
		}

		character_modifier = {
			church_holding_build_gold_cost = -0.15
			church_holding_holding_build_speed = -0.15
			temple_citadel_holding_holding_build_gold_cost = -0.15
			temple_citadel_holding_holding_build_speed = -0.15
		}
		
		parameters = {
			building_temples_gives_development = yes
			monastic_schools_allowed_in_every_holding_type = yes
		}
		
		traits = {
			virtues = { architect }
		}
	}
	
	tenet_takamin = {
		icon = core_tenet_bear

		is_shown = {
			has_tgp_dlc_trigger = yes
			has_doctrine = pagan_hostility_doctrine
		}
		can_pick = {
		}

		piety_cost = {
			value = faith_tenet_cost_high

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

		character_modifier = {
			taiga_travel_danger = taiga_high_danger_reduction
		}
		
		parameters = {
			frequent_bear_sightings = yes
			efficient_hunt_cornering = yes
			allows_bear_sacrifice = yes
			chance_to_gain_prowess_during_bear_hunts = yes
		}
		
		traits = {
			virtues = { lifestyle_hunter }
		}
	}

	#############################
	### NEW BAP TENETS ###		#
	#############################
	### Religion-restricted
	
	mz_tenet_valhalla_bound = {
		icon = core_tenet_warmonger
		piety_cost = {
			if = { 
				limit = { has_doctrine = tenet_warmonger }
				value = faith_tenet_cost_low
			}
			else = {
				value = faith_tenet_cost_massive
			}
			if = {
				limit = { has_doctrine = mz_tenet_valhalla_bound }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			has_fp1_dlc_trigger = yes
			religion_tag = germanic_religion
		}

		can_pick = {
			custom_description = {
				text = incompatible_tenet_pacifism_trigger
				NOT = { doctrine:tenet_pacifism = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_dharmic_pacifism_trigger
				NOT = { doctrine:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = mz_incompatible_tenet_bhakti_trigger
				NOT = { doctrine:tenet_bhakti = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = mz_incompatible_tenet_warmonger_trigger
				NOT = { doctrine:tenet_warmonger = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = mz_incompatible_tenet_astrology_trigger
				NOT = { doctrine:tenet_astrology = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = mz_must_have_clerical_recruitment_trigger
				doctrine:doctrine_clerical_function_recruitment = { is_in_list = selected_doctrines }
			}
		}

		parameters = {
			faith_can_raid = yes
			conquest_cb_enabled = yes
			invasion_cb_enabled = yes
			great_holy_wars_active_if_reformed = yes
			piety_from_long_peace = -2
			select_personal_god_active = yes
		}

		character_modifier = {
			naval_movement_speed_mult = 0.25
			raid_speed = 0.2
			ai_war_chance = 0.5
			ai_war_cooldown = -0.25
		}

		traits = {
			virtues = { viking = 1.5 }
		}
	}

	mz_tenet_eternal_riders = {
		icon = core_tenet_sky_burials
		piety_cost = {
			if = { 
				limit = { has_doctrine = tenet_warmonger }
				value = faith_tenet_cost_low
			}
			else = {
				value = faith_tenet_cost_massive
			}
			if = {
				limit = { has_doctrine = mz_tenet_eternal_riders }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = { religion_tag = tengrism_religion }

		can_pick = {
			custom_description = {
				text = incompatible_tenet_pacifism_trigger
				NOT = { doctrine:tenet_pacifism = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_dharmic_pacifism_trigger
				NOT = { doctrine:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = mz_incompatible_tenet_warmonger_trigger
				NOT = { doctrine:tenet_warmonger = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = mz_must_have_clerical_recruitment_trigger
				doctrine:doctrine_clerical_function_recruitment = { is_in_list = selected_doctrines }
			}
		}

		parameters = {
			faith_can_raid = yes
			conquest_cb_enabled = yes
			invasion_cb_enabled = yes
			great_holy_wars_active_if_reformed = yes
			piety_from_long_peace = -2
		}

		character_modifier = {
			light_cavalry_max_size_add = 2
			light_cavalry_damage_mult = 0.3
			light_cavalry_pursuit_mult = 0.3
			archer_cavalry_pursuit_mult = 0.15
			archer_cavalry_damage_mult = 0.15
			ai_war_chance = 0.5
			ai_war_cooldown = -0.25
		}
	}
	
	mz_tenet_animism = {
		icon = core_tenet_adorcism

		piety_cost = {
			if = { 
				limit = { has_doctrine = tenet_adorcism }
				value = faith_tenet_cost_low
			}
			else = {
				value = faith_tenet_cost_massive
			}
			if = {
				limit = { has_doctrine = mz_tenet_animism }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			OR = {
				religion_tag = west_african_bori_religion
				religion_tag = akom_religion
			}
		}
		
		can_pick = {
			custom_description = {
				text = mz_incompatible_tenet_adorcism_trigger
				NOT = { doctrine:tenet_adorcism = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = mz_incompatible_tenet_ritual_celebrations_trigger
				NOT = { doctrine:tenet_ritual_celebrations = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			spirit_possession_active = yes
			piety_from_feasts_active = yes
			mandatory_feast_attendance = yes
		}

		character_modifier = {
			courtier_and_guest_opinion = 10
		}

		traits = {
			virtues = { possessed = 2 }
		}
	}
	
	mz_tenet_totem_spirits = {
		icon = core_tenet_adorcism

		name = {
			first_valid = {
				triggered_desc = {
					trigger = {
						religion_tag = west_african_orisha_religion
					}
					desc = mz_tenet_totem_spirits_name_alternative
				}
				desc = mz_tenet_totem_spirits_name_default
			}
		}

		piety_cost = {
			if = { 
				limit = { has_doctrine = tenet_reincarnation }
				value = faith_tenet_cost_low
			}
			else = {
				value = faith_tenet_cost_massive
			}

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

		is_shown = { 
			OR = {
				religion_tag = west_african_roog_religion
				religion_tag = west_african_orisha_religion
				religion_tag = west_african_religion
			}
		}

		can_pick = {
			custom_description = {
				text = mz_incompatible_tenet_reincarnation_trigger
				NOT = { doctrine:tenet_reincarnation = { is_in_list = selected_doctrines } }
			}
		}
		parameters = {
			increased_dynasty_prestige_birth_mult = 1
			increased_dynasty_prestige_marriage_mult = 1
			increased_dynasty_prestige_long_reign_mult = 0.5
			reincarnation_events_active = yes
		}
		character_modifier = {
			long_reign_bonus_mult = 0.5
			dynasty_opinion = 5
		}
	}

	mz_tenet_burial_rites = {
		icon = core_tenet_sun_worship

		piety_cost = {
			if = { 
				limit = { has_doctrine = tenet_consolamentum }
				value = faith_tenet_cost_low
			}
			else = {
				value = faith_tenet_cost_massive
			}

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

		is_shown = { religion_tag = kushitism_religion }

		can_pick = {
			custom_description = {
				text = mz_incompatible_tenet_ritual_suicide_trigger
				NOT = { doctrine:tenet_consolamentum = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			mz_pyramid_builders_active = yes
			mz_burial_rites_active = yes
			consolamentum_active = yes	
		}

		character_modifier = {
			build_speed = -0.10
			holding_build_speed = -0.10
		}
	}

	mz_tenet_dawnbreakers = {
		icon = core_tenet_unrelenting_faith

		piety_cost = {
			if = { 
				limit = { has_doctrine = tenet_unrelenting_faith }
				value = faith_tenet_cost_low
			}
			else = {
				value = faith_tenet_cost_massive
			}

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

		is_shown = { religion_tag = zunism_religion }

		can_pick = {
			custom_description = {
				text = mz_requires_tenet_divine_marriage_trigger
				doctrine:tenet_divine_marriage = { is_in_list = selected_doctrines }
			}
			custom_description = {
				text = mz_requires_tenet_polygamy_trigger
				doctrine:doctrine_polygamy = { is_in_list = selected_doctrines }
			}
			custom_description = {
				text = mz_incompatible_tenet_unrelenting_faith_trigger
				NOT = { doctrine:tenet_unrelenting_faith = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_pacifism_trigger
				NOT = { doctrine:tenet_pacifism = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_dharmic_pacifism_trigger
				NOT = { doctrine:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			mz_dawnbreakers_active = yes
			cheaper_holy_wars_active = yes
			great_holy_wars_active_if_reformed = yes
			ghw_no_hof_conversion_buffs_active = yes
		}

		character_modifier = {
			tolerance_advantage_mod = 5
			ai_war_chance = 0.25
			ai_war_cooldown = -0.10
		}
	}
	
	mz_tenet_ekeraa = {
		icon = core_tenet_megaliths

		piety_cost = {
			if = { 
				limit = { has_doctrine = tenet_sacred_childbirth }
				value = faith_tenet_cost_low
			}
			else = {
				value = faith_tenet_cost_massive
			}
			if = {
				limit = { has_doctrine = mz_tenet_ekeraa }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = { religion_tag = waaqism_religion }

		can_pick = {
			custom_description = {
				text = mz_incompatible_tenet_sacred_childbirth_trigger
				NOT = { doctrine:tenet_sacred_childbirth = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = mz_incompatible_tenet_ancestor_worship_trigger
				NOT = { doctrine:tenet_ancestor_worship = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			safer_childbirths_active = yes
			healthier_children_active = yes
			piety_from_childbirth_active = yes
			increased_dynasty_prestige_birth_mult = 1
			increased_dynasty_prestige_marriage_mult = 0.5
			increased_dynasty_prestige_long_reign_mult = 0.5
			pilgrimage_decision_active = yes
		}

		character_modifier = {
			close_relative_opinion = 10
		}
		traits = {
			virtues = { pregnant }
		}
	}
	
	### NEW TENETS ###
	#Added by BAP
	
	wap_tenet_grand_pilgrimages = {
		icon = core_tenet_islamic_syncretism
		
		piety_cost = {
			value = faith_tenet_cost_mid

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = wap_tenet_grand_pilgrimages }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
		is_shown = {
			faith = faith:african_folk_islam
		}
		parameters = {
		    #grand_pilgrimages = yes
			holy_wars_forbidden = yes
			invite_marabout_active = yes
			pilgrimage_decision_active = yes
		}
	}
	
	wap_tenet_sacred_deserts = {
	    icon = core_tenet_sun_worship

        piety_cost = {
			value = faith_tenet_cost_high

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = wap_tenet_sacred_deserts }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
        is_shown = {
		    OR = {
			    has_doctrine = pagan_hostility_doctrine
                religion_tag = islam_religion
            }				
		}
		name = {
			first_valid = {
				triggered_desc = {
					trigger = { 
						this = faith:tuareg_pagan
					}
					desc = wap_tenet_sacred_deserts_tuareg
				}
                triggered_desc = {
				    trigger = {
				       religion_tag = islam_religion
					}
					desc = wap_tenet_sacred_deserts_islam
				}
			    desc = wap_tenet_sacred_deserts_name
			}
		}
		can_pick = {
		}
		parameters = {
			trial_by_sun_active = yes
		}
		character_modifier = {
			desert_advantage = 5
			desert_attrition_mult = -0.25
            desert_mountains_advantage = 5
            desert_mountains_attrition_mult = -0.25
			county_opinion_add = 10
		}
    }
	
	wap_tenet_mune = {
		icon = core_tenet_pentarchy
	    piety_cost = {
			if = {
				limit = {
					OR = {
						religion_tag = idoism_religion
					}
				}
				value = faith_tenet_cost_low
			}
			else = {
				value = faith_tenet_cost_massive
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = wap_tenet_mune }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
        is_shown = {
			faith = faith:munean_pagan
		}
		can_pick = {
			custom_description = {
				text = incompatible_tenet_pentarchy_trigger
				NOT = { doctrine:tenet_pentarchy = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			fervor_per_holy_site = 0.15
			#pilgrimage_decision_active = yes
			#wap_mune_decision_active = yes
		}
		character_modifier = {
			monthly_county_control_growth_factor = 0.15
            direct_vassal_opinion = 5
		}
		traits = {
			virtues = { loyal }
			sins = { disloyal }
		}
    }
	
	wap_tenet_water_spirits = {
		icon = core_tenet_eastern_syncretism

		piety_cost = {
			if = {
				limit = {
					has_faith = faith:ijaw_pagan
				}
				value = faith_tenet_cost_low
			}
			else = {
				value = faith_tenet_cost_mid
			}

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

		is_shown = {
			has_doctrine = pagan_hostility_doctrine
			#faith = faith:ijaw_pagan			
		}
        
		can_pick = {
			custom_description = {
				text = mz_incompatible_tenet_adorcism_trigger
				NOT = { doctrine:tenet_adorcism = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			spirit_possession_active = yes
		}
		character_modifier = {
			embarkation_cost_mult = -0.15 
			naval_movement_speed_mult = 0.2
			domain_tax_same_faith_mult = 0.1
		}
		traits = {
			virtues = { possessed = 1 }
		}
	}
	
	wap_tenet_divination = {
		icon = core_tenet_sun_worship

		piety_cost = {
			if = {
				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 = wap_tenet_divination }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
		name = {
			first_valid = {
				triggered_desc = {
					trigger = { 
						this = faith:ijaw_pagan
					}
					desc = tenet_divination_igbadai
				}
				triggered_desc = {
					trigger = { 
						this = faith:oloku_pagan
					}
					desc = tenet_divination_ogwega
				}
				triggered_desc = {
					trigger = {
						religion_tag = west_african_orisha_religion
					}
					desc = tenet_divination_ifa
				}
				triggered_desc = {
					trigger = {
						religion_tag = tenga_religion
					}
					desc = tenet_divination_baga
				}
				triggered_desc = {
					trigger = {
					    OR = {
						    religion_tag = vodun_religion
						    religion_tag = odinala_religion
						}
					}
					desc = tenet_divination_afa
				}
			    desc = tenet_divination_name
			}
		}
		can_pick = {
			custom_description = {
				text = mz_incompatible_tenet_astrology_trigger
				NOT = { doctrine:tenet_astrology = { is_in_list = selected_doctrines } }
			}
		}
		is_shown = {
			always = yes
		}
		parameters = {
			tenet_esotericism_mystic_education = yes
			divination_active = yes
		}
		traits = {
			virtues = { lifestyle_mystic }
			sins = { cynical }
		}
		character_modifier = {	
		}
	}

	#############################
	# Muslim Enhancements Tenets #
	#############################

	tenet_puritanical_islam = {
		icon = core_tenet_unrelenting_faith
		piety_cost = {
			if = {
				limit = { religion_tag = islam_religion }
				value = faith_tenet_cost_low
			}
			else = {
				value = faith_tenet_cost_high
			}
			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_puritanical_islam }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		is_shown = {
			religion_tag = islam_religion
			NOT = { doctrine:muhammad_succession_berberist_doctrine = { is_in_list = selected_doctrines } }
		}
		can_pick = {
			custom_description = {
				text = doctrine_inverted_pluralism_fundamentalist_trigger
				NOR = {
					doctrine:doctrine_pluralism_pluralistic = { is_in_list = selected_doctrines }
					doctrine:doctrine_pluralism_righteous = { is_in_list = selected_doctrines }
				}
			}
			custom_description = {
				text = incompatible_tenet_pacifism_trigger
				NOT = { doctrine:tenet_pacifism = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_dharmic_pacifism_trigger
				NOT = { doctrine:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_warmonger_trigger
				NOT = { doctrine:tenet_warmonger = { is_in_list = selected_doctrines } }
			}

			custom_description = {
				text = doctrine_puritanical_islam_sect_trigger
				OR = {
					doctrine:islam_secondary_group_sunni_puritanical_doctrine = { is_in_list = selected_doctrines }
					doctrine:islam_secondary_group_shia_puritanical_doctrine = { is_in_list = selected_doctrines }
					doctrine:islam_secondary_group_muhakkima_puritanical_doctrine = { is_in_list = selected_doctrines }
				}
			}
		}
		traits = {
			virtues = { wrathful }
		}
		parameters = {
			hostility_same_religion = 3
			legalism_reduced_faction_virtues = yes
			legalism_increased_faction_sins = yes
			warmonger = yes
			conquest_cb_enabled = yes
			invasion_cb_enabled = yes
			great_holy_wars_active_if_reformed = yes
			clergy_can_fight = yes
		}

		character_modifier = {
			ai_war_chance = 0.5
			ai_war_cooldown = -0.25
			different_faith_county_opinion_mult = 0.3
			different_faith_liege_opinion = -15
			opinion_of_different_faith_liege = -15
		}
	}

	tenet_me_closed_faith = {
		icon = core_tenet_me_closed_faith
		piety_cost = {
			value = faith_tenet_cost_mid

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

		can_pick = {
			custom_description = {
				text = incompatible_tenet_mendicant_preachers_trigger
				NOT = { doctrine:tenet_mendicant_preachers = { is_in_list = selected_doctrines } }
			}
			custom_description = {
				text = incompatible_tenet_communal_identity_trigger
				NOT = { doctrine:tenet_communal_identity = { is_in_list = selected_doctrines } }
			}
		}

		parameters = {
			me_tenet_conversion_blocked = yes
			me_tenet_closed_faith_conversion_resistance = yes
			same_faith_promote_culture_bonus_active = yes
		}

		character_modifier = {
			name = "tenet_closed_faith_opinion"
			same_faith_opinion = 30
			monthly_county_control_growth_factor = 0.25
		}
	}
	
	#############################
	# 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}
	#	}
	#}
}

