##########################
# Christian Faith Tenets #
##########################
# Aniconism / Iconomachia / Eikonomakhía
tenet_aniconism = {
	icon = tenet_aniconism

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_aniconism_latin_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_aniconism_greek_name
			}		
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_aniconism_default_name
			}
			desc = tenet_aniconism_name
		}
	}

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_aniconism_latin_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_aniconism_greek_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_aniconism_default_desc
			}
			desc = tenet_aniconism_desc
		}
	}

	historical_glossary = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_aniconism_latin_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_aniconism_greek_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_aniconism_default_historical_glossary
			}
		}
	}

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = christianity_religion
					rite_religion_tag = judaism_religion
					rite_religion_tag = islam_religion
				}
			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

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

	divergence_multiplier = 1.5

	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
		destroying_artifacts_is_pious
		no_optional_cathedral_contributions
		tenet_aniconism_siege_destruction_bonus
	}

	personal_tenet_parameters = {
		tenet_aniconism_destruction_fulfillment
	}

	traits = {
		virtues = {
			humble = { weight = 15 scale = 1 }
		}
		sins = {
			architect = { weight = 20 scale = 1 }
		}
	}
}

# Alexandrian Catechism / Islamic Rationalism / Catechesis Alexandrina / Alexandrinē Katēkhēsis
tenet_alexandrian_catechism = {
	icon = tenet_alexandrian_catechism

	piety_cost = {
		value = faith_tenet_cost_mid

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

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { faith = { religion = religion:christianity_religion } }
				}
				desc = tenet_islamic_rationalism_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_alexandrian_catechism_latin_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_alexandrian_catechism_greek_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_alexandrian_catechism_default_name
			}
			triggered_desc = {
				trigger = {
					rite_religion_tag = christianity_religion
					has_pam_dlc_trigger = no
				}
				desc = tenet_alexandrian_catechism_name
			}
			desc = tenet_islamic_rationalism_name
		}
	}

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { faith = { religion = religion:christianity_religion } }
				}
				desc = tenet_islamic_rationalism_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_alexandrian_catechism_latin_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_alexandrian_catechism_greek_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_alexandrian_catechism_default_desc
			}
			triggered_desc = {
				trigger = {
					faith = { religion = religion:christianity_religion }
					has_pam_dlc_trigger = no
				}
				desc = tenet_alexandrian_catechism_desc
			}
			desc = tenet_islamic_rationalism_desc
		}
	}

	historical_glossary = {
		first_valid = {
			triggered_desc = {
				trigger = {
					rite_religion_tag = islam_religion
				}
				desc = tenet_islamic_rationalism_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_alexandrian_catechism_latin_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_alexandrian_catechism_greek_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_alexandrian_catechism_default_historical_glossary
			}
		}
	}

	can_pick = {
		OR = {
			religion = religion:christianity_religion
			religion = religion:islam_religion
		}
		custom_description = {
			text = doctrine_pluralism_fundamentalist_trigger
			NOT = { doctrine:doctrine_pluralism_fundamentalist = { is_in_list = selected_doctrines } }
		}
	}

	divergence_multiplier = 1.5

	character_modifier = {
		monthly_learning_lifestyle_xp_gain_mult = 0.1
		learning_per_stress_level = 2
	}
	
	parameters = {
		scholasticism_is_holy
	}

	personal_tenet_parameters = {
		tenet_alexandrian_catechism_catechetical_school
		tenet_alexandrian_catechism_catechesis_conversion
	}

	traits = {
		virtues = {
			eccentric = { weight = 15 scale = 1 }
		}
		sins = {
			zealous = { weight = 15 scale = 1 }
		}
	}
}

# Armed Pilgrimages / Peregrinatio Armata / Énoplon Proskýnēma
tenet_armed_pilgrimages = {
	icon = tenet_armed_pilgrimages

	piety_cost = {
		if = {
			limit = { rite_religion_tag = christianity_religion }
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_armed_pilgrimages_latin_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_armed_pilgrimages_greek_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_armed_pilgrimages_default_name
			}
			desc = tenet_armed_pilgrimages_name
		}
	}

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_armed_pilgrimages_latin_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_armed_pilgrimages_greek_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_armed_pilgrimages_default_desc
			}
			desc = tenet_armed_pilgrimages_desc
		}
	}

	historical_glossary = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_armed_pilgrimages_latin_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_armed_pilgrimages_greek_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_armed_pilgrimages_default_historical_glossary
			}
		}
	}

	can_pick = {
		OR = {
			religion = religion:christianity_religion
			religion = religion:judaism_religion
		}
		custom_description = {
			text = incompatible_tenet_pacifism_trigger
			NOT = { tenet:tenet_pacifism = { is_in_list = selected_doctrines } }
		}
		custom_description = {
			text = incompatible_tenet_dharmic_pacifism_trigger
			NOT = { tenet: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
		great_holy_wars_active
		ghw_no_hof_conversion_buffs_active
		pilgrimage_decision_active
		sanctify_artifacts_weapons
	}

	character_modifier = {
		accolade_glory_gain_mult = 0.1
	}

	personal_tenet_modifier = {
		knight_limit = 1
		monthly_piety_gain_per_knight_mult = 0.01
		holy_order_hire_cost_mult = -0.1
	}

	personal_tenet_parameters = {
		leasing_to_military_order_give_spiritual_fulfillment_personal
	}

	traits = {
		virtues = {
			brave = { weight = 15 scale = 1 }
			zealous = { weight = 10 scale = 1 }
		}
		sins = {
			craven = { weight = 15 scale = 1 }
		}
	}
}

# Carnal Exaltation
tenet_carnal_exaltation = {
	icon = tenet_carnal_exaltation

	piety_cost = {
		if = {
			limit = {
				rite_religion_tag = hinduism_religion
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = christianity_religion
					rite_religion_tag = judaism_religion
				}
			}
			value = faith_tenet_cost_high
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = buddhism_religion
					rite_religion_tag = jainism_religion
				}
			}
			value = faith_tenet_cost_massive
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	parameters = {
		sanctify_artifacts_debauched
		piety_from_seduction_active
		tenet_carnal_exaltation_clergy_no_continence
		tenet_carnal_exaltation_deviancy_virtuous
		tenet_carnal_exaltation_sensual_bonus
		tenet_carnal_exaltation_sensual_seduction
	}

	divergence_multiplier = 5

	character_modifier = {
		fertility = 0.1
		attraction_opinion = 5
	}

	personal_tenet_parameters = {
		tenet_carnal_exaltation_seduction_fulfillment
		tenet_carnal_exaltation_commission_artifacts_debauched
	}

	traits = {
		# Tantric/Bacchic identity: sanctified vs. shunned sexuality is the tenet's whole content.
		virtues = {
			lustful = { weight = 25 scale = 2 }
		}
		sins = {
			chaste = { weight = 25 scale = 2 }
		}
	}
}

# Communal Identity / Chosen People / Populus Dei / Laòs Theoũ
tenet_communal_identity = {
	icon = tenet_communal_identity

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

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

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_communal_identity_latin_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_communal_identity_greek_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_communal_identity_default_name
			}
			triggered_desc = {
				trigger = {
					rite_religion_tag = judaism_religion
				}
				desc = tenet_communal_identity_chosen_people_name
			}
			desc = tenet_communal_identity_name
		}
	}

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_communal_identity_latin_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_communal_identity_greek_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_communal_identity_default_desc
			}
			triggered_desc = {
				trigger = {
					rite_religion_tag = judaism_religion
				}
				desc = tenet_communal_identity_chosen_people_desc
			}
			desc = tenet_communal_identity_desc
		}
	}

	historical_glossary = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_communal_identity_latin_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_communal_identity_greek_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_communal_identity_default_historical_glossary
			}
		}
	}

	can_pick = {
		always = yes
	}

	parameters = {
		same_culture_conversion_bonus_active
		same_faith_promote_culture_bonus_active
		other_culture_conversion_penalty_active
		sanctify_artifacts_communal
	}

	# These opinion keys are how others regard you, not vice versa
	character_modifier = {
		name = "tenet_communal_identity_opinion"
		same_culture_opinion = 10
		same_faith_different_rite_opinion = -20
		same_faith_different_rite_county_opinion_add = -10
	}

	county_modifier = {
		development_growth_factor = 0.1
	}

	personal_tenet_parameters = {
		tenet_communal_identity_free_council_sway
		tenet_communal_identity_sway_piety
		tenet_communal_identity_language_devotion
		tenet_communal_identity_language_reward
	}

	traits = {
		virtues = {
			trusting = { weight = 15 scale = 1 }
			loyal = { weight = 10 scale = 1 }
		}
		sins = {
			disloyal = { weight = 10 scale = 1 }
		}
	}
}

# Communion
tenet_communion = {
	icon = tenet_communion

	historical_glossary = {
		first_valid = {
			desc = tenet_communion_eucharistia_historical_glossary
		}
	}

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = christianity_religion
					rite_religion_tag = judaism_religion
				}
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				rite_has_doctrine = pagan_hostility_doctrine
			}
			value = faith_tenet_cost_high
		}
		else = {
			value = faith_tenet_cost_mid
		}

		# Multiplier for keeping same tenet
		if = {
			limit = { rite_has_tenet = 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 = {
				tenet:tenet_sacred_shadows = { is_in_list = selected_doctrines }
			}
		}
	}

	parameters = {
		tenet_communion_denied_sacrament
	}

	county_modifier = {
		monthly_county_control_decline_at_war_factor = -0.2
		same_rite_county_opinion_add = 5
	}

	personal_tenet_parameters = {
		tenet_communion_shared_table
	}

	personal_tenet_modifier = {
		levy_reinforcement_rate_same_faith = 0.25
	}

	traits = {
		virtues = {
			honest = { weight = 20 scale = 1 }
		}
		sins = {
			deceitful = { weight = 20 scale = 1 }
		}
	}
}

# Endura / Ritual Suicide / Consolamentum / Paráklēsis
tenet_consolamentum = {
	icon = tenet_consolamentum

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_consolamentum_latin_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_consolamentum_greek_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_consolamentum_default_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = no
					rite_religion_tag = christianity_religion
				}
				desc = tenet_consolamentum_name
			}
			desc = tenet_consolamentum_name_alternate
		}
	}

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_consolamentum_latin_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_consolamentum_greek_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_consolamentum_default_desc
			}
			desc = tenet_consolamentum_desc
		}
	}

	historical_glossary = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_consolamentum_latin_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_consolamentum_greek_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_consolamentum_default_historical_glossary
			}
		}
	}

	piety_cost = {
		if = {
			limit = {
				rite_has_tenet = tenet_sacrificial_ceremonies
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = dualism_religion
					rite_religion_tag = hinduism_religion
					rite_religion_tag = jainism_religion
				}
			}
			value = faith_tenet_cost_high
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	can_pick = {
		NOR = {
			religion = religion:islam_religion
			religion = religion:judaism_religion
			religion = religion:zoroastrianism_religion
			AND = {
				has_doctrine = pagan_hostility_doctrine
				NOT = { religion = religion:kushitism_religion }
			}
		}
		custom_description = {
			text = incompatible_tenet_sacrificial_ceremonies_trigger
			NOT = { tenet:tenet_sacrificial_ceremonies = { is_in_list = selected_doctrines } }
		}
	}

	parameters = {
		consolamentum_active
	}

	divergence_multiplier = 2

	character_modifier = {
		short_reign_duration_mult = -0.5
	}

	personal_tenet_parameters = {
		consolamentum_grief_immunity
	}

	traits = {
		virtues = {
			chaste = { weight = 15 scale = 1 }
		}
		sins = {
			lustful = { weight = 15 scale = 1 }
		}
	}
}

# Divine Marriage / Xwedodah / Matrimonium Sacrum / Hieròs Gámos
tenet_divine_marriage = {
	icon = tenet_divine_marriage

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_divine_marriage_latin_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_divine_marriage_greek_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_divine_marriage_default_name
			}
			triggered_desc = {
				trigger = {
					rite_religion_tag = zoroastrianism_religion
				}
				desc = tenet_divine_marriage_xwedodah 
			}
			desc = tenet_divine_marriage_name
		}
	}

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_divine_marriage_latin_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_divine_marriage_greek_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_divine_marriage_default_desc
			}
			desc = tenet_divine_marriage_desc
		}
	}

	historical_glossary = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_divine_marriage_latin_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_divine_marriage_greek_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_divine_marriage_default_historical_glossary
			}
		}
	}

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = islam_religion
					rite_religion_tag = dualism_religion
					rite_religion_tag = buddhism_religion
					rite_religion_tag = jainism_religion
				}
			}
			value = faith_tenet_cost_high
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

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

	parameters = {
		divine_marriage_piety_gain_active
		tenet_divine_marriage_incestuous_liege_faction_reluctance
	}

	personal_tenet_parameters = {
		tenet_divine_marriage_spouse_contribution
	}

	special_parameters = {
		divine_marriage_opinion = 10
	}

	character_modifier = {
		spouse_opinion = 10
		positive_random_genetic_chance = 0.15
		negative_random_genetic_chance = 0.15
		positive_inactive_inheritance_chance = 0.15
		negative_inactive_inheritance_chance = 0.15
		genetic_trait_strengthen_chance = 0.1
	}

	traits = {
		virtues = {
			pure_blooded = { weight = 30 scale = 1 }
			incestuous = { weight = 25 scale = 1 }
			loyal = { weight = 15 scale = 1 }
		}
	}
}

# Gnosticism / Gnosis / Gnõsis
tenet_gnosticism = {
	icon = tenet_gnosticism

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_gnosticism_latin_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_gnosticism_greek_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_gnosticism_default_name
			}
			desc = tenet_gnosticism_name
		}
	}

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_gnosticism_latin_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_gnosticism_greek_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_gnosticism_default_desc
			}
			desc = tenet_gnosticism_desc
		}
	}

	historical_glossary = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_gnosticism_latin_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_gnosticism_greek_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_gnosticism_default_historical_glossary
			}
		}
	}

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = dualism_religion
					rite_religion_tag = zoroastrianism_religion
				}
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = judaism_religion
					rite_religion_tag = islam_religion
					rite_religion_tag = hinduism_religion
					rite_has_doctrine = pagan_hostility_doctrine
				}
			}
			value = faith_tenet_cost_high
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	traits = {
		virtues = {
			temperate = { weight = 20 scale = 1 }
		}
		sins = {
			gluttonous = { weight = 20 scale = 1 }
		}
	}

	can_pick = {
		NOT = { has_doctrine = special_doctrine_is_gnostic_faith }
		custom_description = {
			text = incompatible_tenet_eastern_syncretism_trigger
			NOT = {
				tenet:tenet_eastern_syncretism = { is_in_list = selected_doctrines }
			}
		}
	}

	parameters = {
		granting_titles_gives_stress
		gnosticism_cleric_interactions
		gnosticism_mystic_bonus
	}

	personal_tenet_parameters = {
		gnosticism_learning_piety_trait_gain
		gnosticism_other_tenets
	}

	special_parameters = {
		hostility_level_override = {
			tenet_gnosticism = righteous
			special_doctrine_is_gnostic_faith = righteous
		}

	}

	divergence_multiplier = 2

	character_modifier = {
		learning_per_piety_level = 1
		stewardship_per_piety_level = -1
	}
}

# Mendicant Preaching / Pax et Bonum / Ptōkhoì Kērykes
tenet_mendicant_preachers = {
	icon = tenet_mendicant_preachers

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_mendicant_preachers_latin_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_mendicant_preachers_greek_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_mendicant_preachers_default_name
			}
			desc = tenet_mendicant_preachers_name
		}
	}

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_mendicant_preachers_latin_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_mendicant_preachers_greek_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_mendicant_preachers_default_desc
			}
			desc = tenet_mendicant_preachers_desc
		}
	}

	historical_glossary = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_mendicant_preachers_latin_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_mendicant_preachers_greek_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_mendicant_preachers_default_historical_glossary
			}
		}
	}

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = christianity_religion
					rite_religion_tag = dualism_religion
					rite_religion_tag = buddhism_religion
					rite_religion_tag = jainism_religion
				}
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = hinduism_religion
					rite_religion_tag = zoroastrianism_religion
					rite_has_doctrine = pagan_hostility_doctrine
				}
			}
			value = faith_tenet_cost_high
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	can_pick = {
		custom_description = {
			text = incompatible_tenet_hedonistic_trigger
			NOT = { tenet:tenet_hedonistic = { is_in_list = selected_doctrines } }
		}
	}

	parameters = {
		mendicant_preachers_conversion_active
		pilgrimage_decision_active
		unlock_voluntary_laampdom_faith
		sanctify_artifacts_humble
	}

	personal_tenet_parameters = {
		tenet_mendicant_preachers_conversion_fulfillment
		tenet_mendicant_preachers_sway_acceptance
		tenet_mendicant_preachers_activity_guest_conversion
		tenet_mendicant_preachers_local_conversion
		tenet_mendicant_preachers_proselytize_travel_option
		unlock_voluntary_laampdom_faith
	}

	character_modifier = {
		character_travel_speed_mult = 0.2
	}

	traits = {
		virtues = {
			humble = { weight = 20 scale = 1 }
		}
		sins = {
			arrogant = { weight = 20 scale = 1 }
		}
	}
}

# Pacifism
tenet_pacifism = {
	icon = tenet_pacifism

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = christianity_religion
					rite_religion_tag = taoism_religion
				}
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				rite_religion_tag = islam_religion
			}
			value = faith_tenet_cost_high
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	can_pick = {
		NOR = {
			religion = religion:buddhism_religion
			religion = religion:hinduism_religion
			religion = religion:jainism_religion
		}
		custom_description = {
			text = incompatible_tenet_human_sacrifice_trigger
			NOT = { tenet:tenet_human_sacrifice = { is_in_list = selected_doctrines } }
		}
		custom_description = {
			text = incompatible_tenet_armed_pilgrimages_trigger
			NOT = { tenet:tenet_armed_pilgrimages = { is_in_list = selected_doctrines } }
		}
		custom_description = {
			text = incompatible_tenet_gruesome_festivals_trigger
			NOT = {
				tenet:tenet_gruesome_festivals = { is_in_list = selected_doctrines }
			}
		}
	}

	parameters = {
		holy_wars_forbidden
		pacifist
	}

	special_parameters = {
		parameter_opinion_override = {
			pacifist = 10
		}

		piety_from_long_peace = 1
	}

	divergence_multiplier = 1.25

	traits = {
		# Renunciation of violence is the tenet's defining act.
		virtues = {
			calm = { weight = 30 scale = 2 }
		}
		sins = {
			wrathful = { weight = 30 scale = 2 }
		}
	}

	character_modifier = {
		ai_war_chance = -0.25
		ai_war_cooldown = 5
	}

	personal_tenet_modifier = {
		domain_limit = 1
	}

	personal_tenet_parameters = {
		tenet_pacifism_no_offensive_war
	}

	county_modifier = {
		development_growth_factor = 0.2
		county_opinion_add = 10
	}
}

# Ecclesiarchy / The Pentarchy / Quinque Sedes / Pentarkhía
tenet_pentarchy = {
	icon = tenet_pentarchy

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					rite_religion_tag = christianity_religion
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_pentarchy_latin_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					rite_religion_tag = christianity_religion
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_pentarchy_greek_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					rite_religion_tag = christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_pentarchy_default_name
			}
			triggered_desc = {
				trigger = {
					rite_religion_tag = christianity_religion
				}
				desc = tenet_pentarchy_alternate_name
			}
			desc = tenet_pentarchy_name
		}
	}

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					rite_religion_tag = christianity_religion
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_pentarchy_latin_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					rite_religion_tag = christianity_religion
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_pentarchy_greek_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					rite_religion_tag = christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_pentarchy_default_desc
			}
			desc = tenet_pentarchy_desc
		}
	}

	historical_glossary = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					rite_religion_tag = christianity_religion
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_pentarchy_latin_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					rite_religion_tag = christianity_religion
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_pentarchy_greek_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					rite_religion_tag = christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_pentarchy_default_historical_glossary
			}
		}
	}

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = christianity_religion
					rite_religion_tag = hinduism_religion
					rite_religion_tag = zoroastrianism_religion
				}
			}
			value = faith_tenet_cost_mid
		}
		else = {
			value = faith_tenet_cost_high
		}

		# Multiplier for keeping same tenet
		if = {
			limit = { rite_has_tenet = 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 } }
		}
		# Only the Christian reading of this tenet is the Pentarchy; every other faith gets generic Ecclesiarchy.
		trigger_if = {
			limit = {
				religion = religion:christianity_religion
				scope:actor ?= { is_ai = yes }
			}
			scope:actor = { pam_ai_pentarchy_christian_actor_trigger = yes }
		}
	}

	special_parameters = {
		fervor_per_holy_site = 0.05
	}

	parameters = {
		pilgrimage_decision_active
		tenet_pentarchy_holy_site_prosperity
	}
	
	personal_tenet_parameters = {
		tenet_pentarchy_development_growth_in_holy_sites
		tenet_pentarchy_pilgrim_circuit
		tenet_pentarchy_pilgrim_circuit_companions
	}

	traits = {
		# Mutual recognition between patriarchates
		virtues = {
			loyal = { weight = 15 scale = 1 }
			trusting = { weight = 10 scale = 1 }
		}
		sins = {
			disloyal = { weight = 15 scale = 1 }
		}
	}
}

# Unrelenting Faith / Righteous Rebellion / Fides Indefessa / Pístis Akatapónētos
tenet_unrelenting_faith = {
	icon = tenet_unrelenting_faith

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = judaism_religion
					rite_religion_tag = islam_religion
					rite_has_doctrine = pagan_hostility_doctrine
				}
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = buddhism_religion
					rite_religion_tag = jainism_religion
				}
			}
			value = faith_tenet_cost_high
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	character_modifier = {
		prowess = 4
		tolerance_advantage_mod = 4
		levy_size = 0.1
		different_faith_county_opinion_mult = 0.1
	}

	parameters = {
		clergy_can_fight
		tenet_adaptive_conversion_resistance
	}

	personal_tenet_parameters = {
		tenet_unrelenting_faith_blademaster_trait
		clergy_can_fight_personal
		tenet_unrelenting_faith_sparring
	}

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_unrelenting_faith_latin_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_unrelenting_faith_greek_name
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					religion = religion:christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_unrelenting_faith_default_name
			}
			triggered_desc = {
				trigger = {
					OR = { 
						rite_has_doctrine = doctrine_heretic_branch_zandik
						rite_has_tenet = tenet_pastoral_isolation
					}
				}
				desc = tenet_unrelenting_faith_zandik_name
			}
			desc = tenet_unrelenting_faith_name
		}
	}

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					rite_religion_tag = christianity_religion
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_unrelenting_faith_latin_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					rite_religion_tag = christianity_religion
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_unrelenting_faith_greek_desc
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					rite_religion_tag = christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_unrelenting_faith_default_desc
			}
			triggered_desc = {
				trigger = {
					OR = { 
						rite_has_doctrine = doctrine_heretic_branch_zandik
						rite_has_tenet = tenet_pastoral_isolation
					}
				}
				desc = tenet_unrelenting_faith_zandik_desc
			}
			desc = tenet_unrelenting_faith_desc
		}
	}

	historical_glossary = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					rite_religion_tag = christianity_religion
					pam_latin_as_liturgical_language_trigger = yes
				}
				desc = tenet_unrelenting_faith_latin_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					rite_religion_tag = christianity_religion
					pam_greek_as_liturgical_language_trigger = yes
				}
				desc = tenet_unrelenting_faith_greek_historical_glossary
			}
			triggered_desc = {
				trigger = {
					has_pam_dlc_trigger = yes
					rite_religion_tag = christianity_religion
					pam_greek_as_liturgical_language_trigger = no
					pam_latin_as_liturgical_language_trigger = no
				}
				desc = tenet_unrelenting_faith_default_historical_glossary
			}
		}
	}

	traits = {
		# This is THE zealous tenet; only place in repo where zeal is doctrinally codified.
		virtues = {
			zealous = { weight = 25 scale = 2 }
		}
		sins = {
			cynical = { weight = 25 scale = 2 }
		}
	}
}

# Vows of Poverty
tenet_vows_of_poverty = {
	icon = tenet_vows_of_poverty

	historical_glossary = {
		first_valid = {
			desc = tenet_vows_of_poverty_apostolic_historical_glossary
		}
	}

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = christianity_religion
					rite_religion_tag = dualism_religion
					rite_religion_tag = buddhism_religion
					rite_religion_tag = jainism_religion
				}
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = zoroastrianism_religion
					rite_has_doctrine = pagan_hostility_doctrine
				}
			}
			value = faith_tenet_cost_high
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	can_pick = {
		always = yes
	}

	parameters = {
		vows_of_poverty_active
		unlock_voluntary_laampdom_faith
		no_seek_indulgences
		sanctify_artifacts_humble
	}

	personal_tenet_parameters = {
		tenet_vows_of_poverty_humble_host
		unlock_voluntary_laampdom_faith
	}

	traits = {
		virtues = {
			generous = { weight = 25 scale = 1 }
		}
		sins = {
			greedy = { weight = 30 scale = 1 }
		}
	}
}

# Pastoral Isolation
tenet_pastoral_isolation = {
	icon = tenet_pastoral_isolation

	can_pick = {
		religion = religion:christianity_religion
		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 = {
				tenet:tenet_false_conversion_sanction = { is_in_list = selected_doctrines }
			}
		}
	}

	piety_cost = {
		value = faith_tenet_cost_low

		# Multiplier for keeping same tenet
		if = {
			limit = { rite_has_tenet = tenet_pastoral_isolation }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	parameters = {
		sanctioned_false_conversion_county_resistance
		sanctioned_false_conversion
		unattractive_for_character_conversions
		tenet_unlocks_t3_withdraw_from_view
	}

	personal_tenet_parameters = {
		tenet_pastoral_isolation_endogamy
	}
	
	special_parameters = {
		hostility_level_override = {
			special_doctrine_is_christian_faith = righteous
		}
	}

	character_modifier = {
		different_faith_liege_opinion = 10
		opinion_of_different_faith_liege = 10
	}

	county_modifier = {
		epidemic_resistance = 10
	}

	personal_tenet_modifier = {
		tax_mult = 0.05
		development_growth_factor = 0.1
		fertility = 0.1
		diplomacy = -2
		monthly_diplomacy_lifestyle_xp_gain_mult = -0.2
	}

	traits = {
		virtues = {
			shy = { weight = 15 scale = 1 }
			patient = { weight = 10 scale = 1 }
		}
		sins = {
			gregarious = { weight = 10 scale = 1 }
		}
	}
}

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

# Adaptability
tenet_adaptive = {
	icon = tenet_adaptive

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = christianity_religion
					rite_religion_tag = islam_religion
				}
			}
			value = faith_tenet_cost_high
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = judaism_religion
					rite_religion_tag = buddhism_religion
					rite_religion_tag = jainism_religion
					rite_has_doctrine = pagan_hostility_doctrine
				}
			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_mid
		}

		# Multiplier for keeping same tenet
		if = {
			limit = { rite_has_tenet = 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
		reduced_vassal_religion_discontent
		allow_adopt_any_holy_site
		tenet_adaptive_study_rite_bonus
	}

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

	personal_tenet_modifier = {
		minority_opinion = 10
		minority_tax_contribution_mult = 0.1
		monthly_diplomacy_lifestyle_xp_gain_mult = 0.2
		study_faith_scheme_phase_duration_add = medium_scheme_phase_duration_bonus_value
		learn_language_scheme_phase_duration_add = medium_scheme_phase_duration_bonus_value
		max_learn_language_schemes_add = 1
	}

	personal_tenet_parameters = {
		adaptive_study_rite_cultural_acceptance
		tenet_adaptive_study_rite_bonus
	}

	traits = {
		virtues = {
			fickle = { weight = 20 scale = 1 }
		}
		sins = {
			stubborn = { weight = 20 scale = 1 }
		}
	}
}

# Esotericism / Kabbalah
tenet_esotericism = {
	icon = tenet_esotericism

	historical_glossary = {
		first_valid = {
			desc = tenet_esotericism_kabbalah_historical_glossary
		}
	}

	piety_cost = {
		if = {
			limit = {
				rite_religion_tag = christianity_religion

			}
			value = faith_tenet_cost_high
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = hinduism_religion
					rite_religion_tag = jainism_religion
					rite_religion_tag = zoroastrianism_religion
					rite_has_doctrine = pagan_hostility_doctrine
				}
			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	traits = {
		virtues = {
			lifestyle_mystic = { weight = 15 scale = 1 }
			patient = { weight = 10 scale = 1 }
		}
		sins = {
			cynical = { weight = 15 scale = 1 }
		}
	}

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					rite_religion_tag = judaism_religion
				}
				desc = tenet_esotericism_kabbalah
			}
			desc = tenet_esotericism_name
		}
	}

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

	parameters = {
		tenet_esotericism_mystic_education
		tenet_esotericism_eccentric_education
		tenet_esotericism_eccentric_bonuses
		sanctify_artifacts_occult
		pilgrimage_decision_active
	}

	personal_tenet_parameters = {
		tenet_esotericism_seek_spiritual_mysteries
	}

	personal_tenet_modifier = {
		lifestyle_mystic_xp_gain_mult = 0.5
		monthly_learning_lifestyle_xp_gain_mult = 0.1
	}
}

# Legalism
tenet_legalism = {
	icon = tenet_legalism

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = buddhism_religion
					rite_religion_tag = jainism_religion
					rite_has_doctrine = pagan_hostility_doctrine
				}
			}
			value = faith_tenet_cost_high
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = islam_religion
					rite_religion_tag = judaism_religion
					rite_religion_tag = zoroastrianism_religion
				}
			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	traits = {
		virtues = {
			just = { weight = 20 scale = 1 }
		}
		sins = {
			arbitrary = { weight = 20 scale = 1 }
		}
	}
	
	personal_tenet_modifier = {
		lifestyle_scholar_xp_gain_mult = 0.20
	}

	parameters = {
		legalism_reduced_faction_virtues
		legalism_increased_faction_sins
		tenet_legalism_sinful_revocation
		tenet_legalism_title_integration
	}

	personal_tenet_parameters = {
		tenet_legalism_lawful_authority
	}
}

# Literalism
tenet_literalism = {
	icon = tenet_literalism

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = islam_religion
					rite_religion_tag = judaism_religion
				}
			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

		if = {
			limit = { NOT = { rite_has_doctrine = abrahamic_hostility_doctrine } }
			multiply = 1.5
			round = yes
		}
	}

	traits = {
		virtues = {
			education_learning_5 = { weight = 15 scale = 1 }
			stubborn = { weight = 20 scale = 1 }
		}
		sins = {
			fickle = { weight = 20 scale = 1 }
		}
	}
	
	character_modifier = {
		monthly_merit_mult = 0.1
		advantage_against_coreligionists = 5
	}

	parameters = {
		literalist_debate_enabled
		tenet_literalism_conversion_resistance
		literalism_holy_war_cb_active
	}

	personal_tenet_parameters = {
		tenet_literalism_debate_experience
		tenet_literalism_scholar_conversion
		tenet_literalism_scholar_trait
	}
}

# Reincarnation / Raj'a
tenet_reincarnation = {
	icon = tenet_reincarnation

	historical_glossary = {
		first_valid = {
			desc = tenet_reincarnation_samsara_historical_glossary
		}
	}

	piety_cost = {
		if = {
			limit = {
				rite_religion_tag = islam_religion
			}
			value = faith_tenet_cost_high
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = dualism_religion
					rite_religion_tag = hinduism_religion
					rite_religion_tag = buddhism_religion
					rite_religion_tag = jainism_religion
				}
			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	can_pick = {
		NOR = {
			AND = {
				religion = religion:christianity_religion
				this != faith:cathar
			}
			religion = religion:judaism_religion
		}
	}

	parameters = {
		reincarnation_resistance_to_conversion
		reincarnation_events_active
	}

	personal_tenet_parameters = {
		tenet_reincarnation_trigger_decision
		tenet_reincarnation_piety_level_courage
		tenet_reincarnation_ancestral_trait_decision
	}

	character_modifier = {
		monthly_lifestyle_xp_gain_mult = 0.1
	}

	personal_tenet_modifier = {
		dynasty_opinion = 5
	}

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					rite_religion_tag = zoroastrianism_religion
				}
				desc = tenet_reincarnation_zoroastrian_name
			}
			desc = tenet_reincarnation_name
		}
	}

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

	traits = {
		virtues = {
			patient = { weight = 10 scale = 1 }
			content = { weight = 10 scale = 1 }
		}
		sins = {
			impatient = { weight = 10 scale = 1 }
		}
	}
}

# Religious Law / Hisbah / Fatwa / Halakha
tenet_religious_legal_pronouncements = {
	icon = tenet_legal_pronouncements

	historical_glossary = {
		first_valid = {
			triggered_desc = {
				trigger = {
					faith = faith:quranist
				}
				desc = tenet_religious_legal_pronouncements_hisbah_historical_glossary
			}
			triggered_desc = {
				trigger = {
					rite_religion_tag = islam_religion
				}
				desc = tenet_religious_legal_pronouncements_fatwa_historical_glossary
			}
			triggered_desc = {
				trigger = {
					rite_religion_tag = judaism_religion
				}
				desc = tenet_religious_legal_pronouncements_halakha_historical_glossary
			}
			desc = tenet_religious_legal_pronouncements_historical_glossary
		}
	}

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = christianity_religion
					rite_religion_tag = hinduism_religion
					rite_religion_tag = zoroastrianism_religion
					rite_has_doctrine = pagan_hostility_doctrine
				}
			}
			value = faith_tenet_cost_high
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = islam_religion
					rite_religion_tag = judaism_religion
				}
			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	name = {
		first_valid = {
			triggered_desc = {
				trigger = { faith = faith:quranist }
				desc = tenet_religious_legal_pronouncements_hisbah
			}
			triggered_desc = {
				trigger = {
					rite_religion_tag = islam_religion
				}
				desc = tenet_religious_legal_pronouncements_fatwa
			}
			triggered_desc = {
				trigger = {
					rite_religion_tag = judaism_religion
				}
				desc = tenet_religious_legal_pronouncements_halakha
			}
			desc = tenet_religious_legal_pronouncements_name
		}
	}

	parameters = {
		temporal_condemnation_enabled
		temporal_condemnation_criminal
		religious_legal_pronouncements_law_cost_reduction
	}

	personal_tenet_modifier = {
		tyranny_gain_mult = -0.2
	}

	personal_tenet_parameters = {
		tenet_religious_law_scholar_trait
		tenet_religious_law_condemnation_bonus
		tenet_religious_law_imprisonment_bonus
	}

	traits = {
		virtues = {
			just = { weight = 15 scale = 1 }
		}
		sins = {
			arbitrary = { weight = 15 scale = 1 }
		}
	}
}

# Struggle and Submission
tenet_struggle_submission = {
	icon = tenet_struggle_submission

	historical_glossary = {
		first_valid = {
			desc = tenet_struggle_submission_jihad_historical_glossary
		}
	}

	piety_cost = {
		if = {
			limit = {
				rite_religion_tag = islam_religion
			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_high
		}

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

	can_pick = {
		OR = {
			religion = religion:islam_religion
			religion = religion:dualism_religion
		}
	}

	parameters = {
		great_holy_wars_active
		ghw_no_hof_conversion_buffs_active
		bonus_holy_war_piety_active
		pilgrimage_decision_active
		unlock_voluntary_laampdom_faith
	}

	personal_tenet_parameters = {
		unlock_voluntary_laampdom_faith
	}
	personal_tenet_modifier = {
		martial_per_piety_level = 1
		maa_toughness_mult = 0.05
	}

	traits = {
		virtues = {
			humble = { weight = 10 scale = 1 }
			patient = { weight = 10 scale = 1 }
		}
		sins = {
			arrogant = { weight = 10 scale = 1 }
		}
	}
}

# Sanctioned False Conversions / Taqiya / Anusim
tenet_false_conversion_sanction = {
	icon = tenet_false_conversion_sanction

	historical_glossary = {
		first_valid = {
			triggered_desc = {
				trigger = {
					rite_religion_tag = islam_religion
				}
				desc = tenet_false_conversion_sanction_taqiyya_historical_glossary
			}
			triggered_desc = {
				trigger = {
					rite_religion_tag = judaism_religion
				}
				desc = tenet_false_conversion_sanction_anusim_historical_glossary
			}
			desc = tenet_false_conversion_sanction_historical_glossary
		}
	}

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					rite_religion_tag = islam_religion
				}
				desc = tenet_temporal_condemnation_taqiya
			}
			triggered_desc = {
				trigger = {
					rite_religion_tag = judaism_religion
				}
				desc = tenet_anusim
			}
			desc = tenet_false_conversion_sanction_name
		}
	}

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = dualism_religion
					rite_religion_tag = hinduism_religion
					rite_religion_tag = buddhism_religion
					rite_religion_tag = jainism_religion
				}
			}
			value = faith_tenet_cost_high
		}
		else_if = {
			limit = {
				rite_religion_tag = zoroastrianism_religion

			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	parameters = {
		sanctioned_false_conversion_county_resistance
		sanctioned_false_conversion
	}

	personal_tenet_parameters = {
		tenet_false_conversion_sanction_elusive
	}

	divergence_multiplier = 2

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

	personal_tenet_modifier = {
		intrigue = 2
		faith_conversion_piety_cost_mult = -0.5
	}

	traits = {
		# Sanctioned dissimulation under hostile rule (taqiyya, anusim).
		virtues = {
			deceitful = { weight = 15 scale = 1 }
			paranoid = { weight = 10 scale = 1 }
		}
		sins = {
			trusting = { weight = 10 scale = 1 }
		}
	}
}

# Taxation of Nonbelievers / Jizya
tenet_tax_nonbelievers = {
	icon = tenet_tax_nonbelievers

	historical_glossary = {
		first_valid = {
			desc = tenet_tax_nonbelievers_jizya_historical_glossary
		}
	}

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = christianity_religion
					rite_religion_tag = dualism_religion
				}
			}
			value = faith_tenet_cost_high
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = islam_religion
					rite_has_doctrine = pagan_hostility_doctrine
				}
			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					rite_religion_tag = islam_religion
				}
				desc = tenet_tax_nonbelievers_jizya_name
			}
			desc = tenet_tax_nonbelievers_name
		}
	}

	can_pick = {
		NOT = { religion = religion:christianity_religion }
		NOT = { has_doctrine = special_doctrine_jizya }
	}

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

	personal_tenet_modifier = {
		monthly_stewardship_lifestyle_xp_gain_mult = 0.2
	}

	personal_tenet_parameters = {
		tax_nonbelievers_conversion_concession
		tax_nonbelievers_fulfillment_from_conversion
	}

	parameters = {
		unlock_jizya_contract
	}

	traits = {
		virtues = {
			diligent = { weight = 15 scale = 1 }
		}
		sins = {
			lazy = { weight = 15 scale = 1 }
		}
	}
}

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

# Asceticism
tenet_asceticism = {
	icon = tenet_asceticism

	historical_glossary = {
		first_valid = {
			desc = tenet_asceticism_tapas_historical_glossary
		}
	}

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = zoroastrianism_religion
					rite_has_doctrine = pagan_hostility_doctrine
				}
			}
			value = faith_tenet_cost_high
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = christianity_religion
					rite_religion_tag = dualism_religion
					rite_religion_tag = buddhism_religion
					rite_religion_tag = jainism_religion
					rite_religion_tag = taoism_religion
				}
			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	parameters = {
		meditation_mechanics_active
		unlock_voluntary_laampdom_faith
		sanctify_artifacts_humble
		tenet_asceticism_inappetetic_bonus
		tenet_asceticism_comfort_eater_penalty
	}

	character_modifier = {
		prowess = -2
		piety_standalone_gain_mult = 0.1
	}

	personal_tenet_modifier = {
		character_spiritual_fulfillment_gain_mult = 0.15
	}

	personal_tenet_parameters = {
		tenet_asceticism_inappetetic_trait
		unlock_voluntary_laampdom_faith
	}

	#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 = {
	#				rite_religion_tag = zoroastrianism_religion
	#			}
	#			desc = tenet_zurvanism_name
	#		}
	#		desc = tenet_asceticism_name
	#	}
	#}

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

	traits = {
		virtues = {
			temperate = { weight = 25 scale = 1 }
		}
		sins = {
			gluttonous = { weight = 25 scale = 1 }
			greedy = { weight = 10 scale = 1 }
			lifestyle_reveler = { weight = 15 scale = 1 }
		}
	}

	can_pick = {
		custom_description = {
			text = hesychasm_anachoresis_mortification_exclusivity_desc
			NOR = { has_tenet = tenet_anachoresis has_tenet = tenet_mortification_of_the_flesh has_tenet = tenet_hesychasm }
		}
	}
}

# Patron Gods
tenet_bhakti = {
	icon = tenet_bhakti

	historical_glossary = {
		first_valid = {
			desc = tenet_bhakti_historical_glossary
		}
	}

	name = tenet_bhakti_patron_god_name

	piety_cost = {
		value = faith_tenet_cost_mid

		# Multiplier for keeping same tenet
		if = {
			limit = { rite_has_tenet = tenet_bhakti }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	can_pick = {
		OR = {
			religion = religion:hinduism_religion
			# With FP1, Germanics also get personal deities.
			trigger_if = {
				limit = { has_fp1_dlc_trigger = yes }
				religion = religion:germanic_religion
			}
		}
		custom_tooltip = {
			text = incompatible_doctrine_monotheist
			NOT = { doctrine:doctrine_monotheist = { is_in_list = selected_doctrines } }
		}
	}

	parameters = {
		select_personal_god_active
	}

	can_pick_as_personal_tenet = {
		trigger_if = {
			limit = { has_particular_personal_deity_group = no }
			rite = { rite_has_doctrine = doctrine_pluralism_pluralistic }
			trigger_if = {
				limit = { faith = { NOT = { has_doctrine = pagan_hostility_doctrine } } }
				OR = {
					has_personal_tenet = tenet_unreformed_syncretism
					rite = { rite_has_parameter = unreformed_syncretic_actor }
				}
			}
		}
		NOT = { rite = { rite_has_doctrine = doctrine_monotheist } }
	}

	personal_tenet_modifier = {
		piety_level_impact_mult = 0.2
	}

	personal_tenet_parameters = {
		select_personal_god_active_personal # reduce the cost
	}

	traits = {
		# Devotional intensity (bhakti yoga) - loving devotion is the tenet's primary spiritual discipline.
		virtues = {
			zealous = { weight = 20 scale = 1 }
		}
		sins = {
			cynical = { weight = 10 scale = 1 }
		}
	}
}

# Dharmic Pacifism
tenet_dharmic_pacifism = { #Mix of reincarnation and pacifism rites
	icon = tenet_dharmic_pacifism

	historical_glossary = {
		first_valid = {
			desc = tenet_dharmic_pacifism_historical_glossary
		}
	}

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

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

	can_pick = {
		OR = {
			has_doctrine = eastern_hostility_doctrine
			has_doctrine = sinitic_hostility_doctrine
		}
		NOT = { religion = religion:zoroastrianism_religion }
		custom_description = {
			text = incompatible_tenet_human_sacrifice_trigger
			NOT = { tenet:tenet_human_sacrifice = { is_in_list = selected_doctrines } }
		}
		custom_description = {
			text = incompatible_tenet_armed_pilgrimages_trigger
			NOT = { tenet:tenet_armed_pilgrimages = { is_in_list = selected_doctrines } }
		}
		custom_description = {
			text = incompatible_tenet_gruesome_festivals_trigger
			NOT = {
				tenet:tenet_gruesome_festivals = { is_in_list = selected_doctrines }
			}
		}
	}
	
	parameters = {
		reincarnation_resistance_to_conversion
		holy_wars_forbidden
		pacifist
	}

	special_parameters = {
		parameter_opinion_override = {
			pacifist = 10
		}

		hostility_levels = {
			same_religion = astray
		}
	}

	personal_tenet_parameters = {
		tenet_pacifism_no_offensive_war
	}

	personal_tenet_modifier = {
		stress_gain_mult = -0.15
		health = 0.1
	}

	traits = {
		# Renunciation of violence is the tenet's defining act (ahimsa).
		virtues = {
			calm = { weight = 25 scale = 2 }
		}
		sins = {
			wrathful = { weight = 25 scale = 2 }
		}
	}
	
	character_modifier = {
		domain_limit = 1
		ai_war_chance = -0.25
		ai_war_cooldown = 0.25
	}
}

# Inner Journey
tenet_inner_journey = {
	icon = tenet_inner_journey

	historical_glossary = {
		first_valid = {
			desc = tenet_inner_journey_historical_glossary
		}
	}

	can_pick = {
		OR = {
			has_doctrine = eastern_hostility_doctrine
			has_doctrine = sinitic_hostility_doctrine
		}
		NOT = { religion = religion:zoroastrianism_religion }
	}

	piety_cost = {
		value = faith_tenet_cost_low

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

	traits = {
		virtues = {
			patient = { weight = 10 scale = 1 }
		}
		sins = {
			impatient = { weight = 15 scale = 1 }
		}
	}

	parameters = {
		meditation_mechanics_active
		tenet_inner_journey_humble_pilgrimage_bonus
	}

	personal_tenet_parameters = {
		meditation_mechanics_active
		tenet_inner_journey_meditation_bonus
	}

	personal_tenet_modifier = {
		monthly_learning_lifestyle_xp_gain_mult = 0.1
		monthly_piety_gain_mult = 0.1
	}
}

# Ritual Hospitality / Pūjā
tenet_ritual_hospitality = {
	icon = tenet_ritual_hospitality

	historical_glossary = {
		first_valid = {
			desc = tenet_ritual_hospitality_puja_historical_glossary
		}
	}

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = hinduism_religion
					rite_religion_tag = buddhism_religion
					rite_religion_tag = jainism_religion
				}
			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	can_pick = {
		NOT = {
			has_doctrine = abrahamic_hostility_doctrine
		}
	}

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

	parameters = {
		host_honored_guests_active
		tenet_ritual_hospitality_artifact_theft_risk
		tenet_ritual_hospitality_court_position_event_discount
	}

	personal_tenet_parameters = {
		tenet_ritual_hospitality_invite_to_court_acceptance
		tenet_ritual_hospitality_free_guest_recruitment
		tenet_ritual_hospitality_feast_toast_friendship
	}

	traits = {
		virtues = {
			generous = { weight = 20 scale = 1 }
		}
		sins = {
			callous = { weight = 15 scale = 1 }
		}
	}

	character_modifier = {
		monthly_piety_gain_per_happy_powerful_vassal_add = 0.3
	}

	county_modifier = {
		travel_danger = -20
	}

	personal_tenet_modifier = {
		courtier_and_guest_opinion = 10
		diplomatic_range_mult = 0.25
		monthly_piety_gain_per_court_position_mult = 0.01
		monthly_prestige_gain_per_court_position_mult = 0.01
	}
}

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

# Adorcism
tenet_adorcism = {
	icon = tenet_adorcism

	piety_cost = {
		value = faith_tenet_cost_low

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

	can_pick = {
		OR = {
			religion = religion:west_african_bori_religion
			religion = religion:akom_religion
			religion = religion:muism_religion
			religion = religion:dab_qhuas_religion
			religion = religion:shamanism_religion
			has_tenet = tenet_adorcism #If you already have it
		}
	}

	parameters = {
		spirit_possession_active
	}

	personal_tenet_parameters = {
		tenet_adorcism_curse_enemy
		tenet_adorcism_seek_war_aid
	}

	divergence_multiplier = 2

	traits = {
		virtues = {
			# Adorcism IS welcoming spirit-possession; both traits are rare so scale compensates. https://en.wikipedia.org/wiki/Adorcism
			possessed_1 = { weight = 35 scale = 3 }
			possessed_genetic = { weight = 35 scale = 3 }
		}
	}

}

# Ancestor Worship
tenet_ancestor_worship = {
	icon = tenet_ancestor_worship

	piety_cost = {
		value = faith_tenet_cost_low

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

	can_pick = {
		has_doctrine = pagan_hostility_doctrine
	}

	parameters = {
		pilgrimage_decision_active
		sanctify_artifacts_ancestral
		tenet_ancestor_worship_renown_on_death
		tenet_ancestor_worship_seek_ancestral_guidance
	}

	special_parameters = {
		increased_dynasty_prestige_birth_mult = 1
		increased_dynasty_prestige_marriage_mult = 1
		increased_dynasty_prestige_long_reign_mult = 0.5
	}

	character_modifier = {
		close_relative_opinion = 5
	}

	personal_tenet_modifier = {
		monthly_dynasty_prestige = 0.1
		stress_loss_mult = 0.15
		stress_gain_mult = -0.15
	}

	traits = {
		virtues = {
			loyal = { weight = 10 scale = 1 }
			humble = { weight = 10 scale = 1 }
		}
		sins = {
			arrogant = { weight = 10 scale = 1 }
		}
	}
}

# Astrology / Divination
tenet_astrology = {
	icon = tenet_astrology

	name = { #FP3
		first_valid = {
			triggered_desc = {
				trigger = {
					OR = {
						rite_religion_tag = islam_religion
						rite_religion_tag = zoroastrianism_religion
					}
				}
				desc = tenet_divination_name
			}
			desc = tenet_astrology_name
		}
	}

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

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = christianity_religion
					rite_religion_tag = judaism_religion
					rite_religion_tag = islam_religion
				}
			}
			value = faith_tenet_cost_high
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = zoroastrianism_religion
					rite_has_doctrine = pagan_hostility_doctrine
				}
			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	parameters = {
		divine_the_stars_active
		sanctify_artifacts_celestial
		tenet_astrology_albino_omen
		tenet_astrology_scaly_omen
		tenet_astrology_auspicious_timing
	}

	# On both sides so a personal pick cannot advertise an unreachable decision
	personal_tenet_parameters = {
		divine_the_stars_active
		tenet_astrology_divination_bonus
		tenet_astrology_mystic_trait
	}

	character_modifier = {
		min_combat_roll = 2
		max_combat_roll = -2
		character_innovation_progress_chance_from_fascination_add = 10
	}

	personal_tenet_modifier = {
		naval_movement_speed_mult = 0.25
	}

	traits = {
		virtues = {
			patient = { weight = 10 scale = 1 }
			erudite = { weight = 10 scale = 1 }
		}
		sins = {
			impatient = { weight = 10 scale = 1 }
		}
	}
}

# Hedonism
tenet_hedonistic = {
	icon = tenet_hedonistic

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = christianity_religion
					rite_religion_tag = buddhism_religion
					rite_religion_tag = jainism_religion
				}
			}
			value = faith_tenet_cost_massive
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = islam_religion
					rite_religion_tag = judaism_religion
				}
			}
			value = faith_tenet_cost_high
		}
		else_if = {
			limit = {
				rite_religion_tag = hinduism_religion

			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	can_pick = {
		NOT = { religion = religion:dualism_religion }
		custom_description = {
			text = incompatible_tenet_anachoresis_trigger
			NOT = { tenet:tenet_anachoresis = { is_in_list = selected_doctrines } }
		}
		custom_description = {
			text = incompatible_tenet_mendicant_preachers_trigger
			NOT = { tenet:tenet_mendicant_preachers = { is_in_list = selected_doctrines } }
		}
	}

	parameters = {
		piety_from_feasts_active
		piety_from_festivals_active
		sanctify_artifacts_luxurious
	}

	divergence_multiplier = 1.5

	traits = {
		virtues = {
			gluttonous = { weight = 30 scale = 2 }
			gout_ridden = { weight = 15 scale = 2 }
		}
		sins = {
			inappetetic = { weight = 15 scale = 2 }
			temperate = { weight = 25 scale = 2 }
		}
	}

	personal_tenet_modifier = {
		lifestyle_reveler_xp_gain_mult = 0.5
	}

	personal_tenet_parameters = {
		tenet_hedonistic_obesity_fulfillment
		tenet_hedonistic_feast_weight_gain
		tenet_hedonistic_feast_gout_risk
		tenet_hedonistic_reveler_trait
	}

	character_modifier = {
		stress_loss_mult = 0.2
	}
}

# Human Sacrifice
tenet_human_sacrifice = {
	icon = tenet_human_sacrifice

	piety_cost = {
		if = {
			limit = {
				rite_has_tenet = tenet_sacrificial_ceremonies
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				rite_has_doctrine = pagan_hostility_doctrine
			}
			value = faith_tenet_cost_mid
		}
		else_if = {
			limit = {
				rite_religion_tag = hinduism_religion
			}
			value = faith_tenet_cost_high
		}
		else = {
			value = faith_tenet_cost_massive
		}

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

	can_pick = {
		custom_description = {
			text = incompatible_tenet_pacifism_trigger
			NOT = { tenet:tenet_pacifism = { is_in_list = selected_doctrines } }
		}
		custom_description = {
			text = incompatible_tenet_dharmic_pacifism_trigger
			NOT = { tenet:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } }
		}
		custom_description = {
			text = incompatible_tenet_gruesome_festivals_trigger
			NOT = {
				tenet:tenet_gruesome_festivals = { is_in_list = selected_doctrines }
			}
		}
		custom_description = {
			text = incompatible_tenet_sacrificial_ceremonies_trigger
			NOT = {
				tenet:tenet_sacrificial_ceremonies = { is_in_list = selected_doctrines }
			}
		}
	}

	parameters = {
		human_sacrifice_active
		human_sacrifice_sharing_power_prestige
		flower_war_cb_active
		sanctify_artifacts_sacrificial
	}

	divergence_multiplier = 5

	character_modifier = {
		ai_war_chance = 1
		ai_war_cooldown = -0.5
	}

	personal_tenet_parameters = {
		tenet_human_sacrifice_execution_piety_bonus
		tenet_human_sacrifice_siege_capture_chance
		tenet_human_sacrifice_courtier_imprisonment_chance
	}

	traits = {
		virtues = {
			sadistic = { weight = 20 scale = 1 }
		}
		sins = {
			compassionate = { weight = 15 scale = 1 }
		}
	}
}

# Auspicious Birthright
tenet_mystical_birthright = {
	icon = tenet_mystical_birthright

	piety_cost = {
		value = faith_tenet_cost_low

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

	can_pick = {
		OR = {
			religion = religion:magyar_religion
			has_tenet = tenet_mystical_birthright #If you already have it
		}
	}

	parameters = {
		mystic_birthright_active
		tenet_mystical_birthright_blessed_marks_mild
		tenet_mystical_birthright_blessed_marks_severe
		tenet_mystical_birthright_blessed_marks_grave
	}

	character_modifier = {
		lifestyle_mystic_xp_gain_mult = 0.5
		fertility = 0.05
	}

	personal_tenet_parameters = {
		mystical_birthright_spiritual_leader
	}

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

# Ritual Celebrations
tenet_ritual_celebrations = {
	icon = tenet_ritual_celebrations

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = hinduism_religion
					rite_religion_tag = zoroastrianism_religion
					rite_has_doctrine = pagan_hostility_doctrine
				}
			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	parameters = {
		piety_from_feasts_active
		piety_from_festivals_active
		mandatory_feast_attendance
		allows_brewery
	}

	character_modifier = {
		vassal_opinion = 5
		courtier_opinion = 5
	}

	personal_tenet_parameters = {
		tenet_ritual_celebrations_praise_the_gods
	}

	traits = {
		virtues = {
			gregarious = { weight = 20 scale = 1 }
		}
		sins = {
			shy = { weight = 15 scale = 1 }
		}
	}
}

# Sacred Childbirth / Kūdikis Lemti
tenet_sacred_childbirth = {
	icon = tenet_sacred_childbirth

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					rite_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 = { rite_has_tenet = tenet_sacred_childbirth }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	parameters = {
		safer_childbirths_active
		healthier_children_active
		piety_from_childbirth_active
		free_wet_nurse_court_position
		tenet_sacred_childbirth_offer_bedside_support
		tenet_sacred_childbirth_birthing_building_discount
	}

	personal_tenet_parameters = {
		spiritual_fulfillment_from_childbirth_personal_active
		stress_loss_from_childbirth_personal_active
	}

	character_modifier = {
		fertility = 0.1
		child_health = 0.1
	}

	personal_tenet_modifier = {
		negate_fertility_penalty_add = 0.5
	}

	traits = {
		virtues = { 
			pregnant = { weight = 15 scale = 2 }
		}
	}
}

# Sanctity of Nature
tenet_sanctity_of_nature = {
	icon = tenet_sanctity_of_nature

	piety_cost = {
		if = {
			limit = {
				rite_religion_tag = hinduism_religion

			}
			value = faith_tenet_cost_high
		}
		else_if = {
			limit = {
				rite_has_doctrine = pagan_hostility_doctrine

			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				rite_has_doctrine = abrahamic_hostility_doctrine
			}
			value = faith_tenet_cost_massive
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	parameters = {
		believes_in_harmony_with_nature_invisible
		sanctify_artifacts_natural
		tenet_sanctity_of_nature_preserve_wilderness
	}

	personal_tenet_parameters = {
		tenet_sanctity_of_nature_hike
		tenet_sanctity_of_nature_wilderness_fulfillment
	}
	
	personal_tenet_modifier = {
		character_travel_safety = 10
	}

	character_modifier = {
		forest_advantage = 5
		forest_levy_size = 0.2
		holding_build_gold_cost = 0.25
		holding_build_speed = 0.25
		nomad_government_opinion_same_faith = 20
		tribal_government_opinion_same_faith = 20
		wanua_government_opinion_same_faith = 20
	}
	
	county_modifier = {
		county_opinion_add = 5
	}

	traits = {
		virtues = {
			content = { weight = 15 scale = 1 }
			patient = { weight = 10 scale = 1 }
		}
		sins = {
			greedy = { weight = 10 scale = 1 }
		}
	}
}

# Sun Worship
tenet_sun_worship = {
	icon = tenet_sun_worship
    name = {
        first_valid = {
            triggered_desc = {
                trigger = { this = rite:hz_mithraism }
                desc = hz_sol_invictus_tenet_name
            }
            desc = tenet_sun_worship_name
        }
    }

	piety_cost = {
		value = faith_tenet_cost_mid

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

	can_pick = {
		OR = {
			religion = religion:zunism_religion
			religion = religion:zoroastrianism_religion
			has_tenet = tenet_sun_worship #If you already have it
			AND = {
				religion = religion:hinduism_religion
				this = faith:saura #If you're into Saurism
			}
		}
	}

	parameters = {
		summer_festivals_active
		trial_by_sun_active
		sanctify_artifacts_regal
	}

	personal_tenet_parameters = {
		tenet_sun_worship_free_hikes
		tenet_sun_worship_desert_pilgrim
	}

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

	personal_tenet_modifier = {
		character_travel_speed_mult = 0.15
	}

	traits = {
		virtues = {
			honest = { weight = 15 scale = 1 }
		}
		sins = {
			deceitful = { weight = 15 scale = 1 }
		}
	}
}

# Warmongering
tenet_warmonger = {
	icon = tenet_warmonger

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = buddhism_religion
					rite_religion_tag = jainism_religion
					rite_religion_tag = taoism_religion
				}
			}
			value = faith_tenet_cost_massive
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

	can_pick = {
		NOR = {
			religion = religion:christianity_religion
			religion = religion:islam_religion
			religion = religion:judaism_religion
			religion = religion:dualism_religion
		}
		custom_description = {
			text = incompatible_tenet_pacifism_trigger
			NOT = { tenet:tenet_pacifism = { is_in_list = selected_doctrines } }
		}
		custom_description = {
			text = incompatible_tenet_dharmic_pacifism_trigger
			NOT = { tenet:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } }
		}
	}

	parameters = {
		warmonger
		conquest_cb_enabled
		invasion_cb_enabled
		great_holy_wars_active_if_reformed
		clergy_can_fight
		sanctify_artifacts_weapons
	}

	special_parameters = {
		warmonger = yes
	}

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

	personal_tenet_parameters = {
		clergy_can_fight_personal
	}

	personal_tenet_modifier = {
		prowess_per_piety_level = 1
		maa_damage_mult = 0.05
	}

	traits = {
		virtues = {
			brave = { weight = 20 scale = 1 }
			zealous = { weight = 10 scale = 1 }
		}
		sins = {
			craven = { weight = 20 scale = 1 }
		}
	}
}

# Gruesome Festivals / Blót
tenet_gruesome_festivals = {
	icon = tenet_gruesome_festivals

	historical_glossary = {
		first_valid = {
			desc = tenet_gruesome_festivals_blot_historical_glossary
		}
	}

	name = {
		first_valid = {
			triggered_desc = {
				trigger = { rite_religion_tag = germanic_religion }
				desc = tenet_gruesome_festivals_blot_name
			}
			desc = tenet_gruesome_festivals_name
		}
	}

	piety_cost = {
		# If you've already got human sacrifice, this is a nice and easy jump.
		if = {
			limit = { 
				rite_has_tenet = tenet_human_sacrifice
			}
			value = faith_tenet_cost_low
		}
		# Otherwise, follow the same pricing tiers as tenet_human_sacrifice.
		else_if = {
			limit = {
				rite_has_doctrine = pagan_hostility_doctrine
			}
			value = faith_tenet_cost_mid
		}
		else_if = {
			limit = {
				rite_religion_tag = hinduism_religion
			}
			value = faith_tenet_cost_high
		}
		else = {
			value = faith_tenet_cost_massive
		}

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

	requires_dlc_flag = the_northern_lords

	is_shown = {
		has_fp1_dlc_trigger = yes
	}

	can_pick = {
		# No HumSac for Abrahamics: 'tis literally the religion-namer.
		NOR = {
			religion = religion:christianity_religion
			religion = religion:judaism_religion
			religion = religion:islam_religion
		}
		custom_description = {
			text = incompatible_tenet_pacifism_trigger
			NOT = {
				tenet:tenet_pacifism = { is_in_list = selected_doctrines }
			}
		}
		custom_description = {
			text = incompatible_tenet_dharmic_pacifism_trigger
			NOT = {
				tenet:tenet_dharmic_pacifism = { is_in_list = selected_doctrines }
			}
		}
		custom_description = {
			text = incompatible_tenet_human_sacrifice_trigger
			NOT = {
				tenet:tenet_human_sacrifice = { is_in_list = selected_doctrines }
			}
		}
		custom_description = {
			text = incompatible_tenet_sacrificial_ceremonies_trigger
			NOT = {
				tenet:tenet_sacrificial_ceremonies = { is_in_list = selected_doctrines }
			}
		}
	}

	parameters = {
		gruesome_festivals_active
		human_sacrifice_active
		human_sacrifice_sharing_power_prestige
		sanctify_artifacts_sacrificial
	}

	divergence_multiplier = 5

	character_modifier = {
		stress_loss_mult = 0.1
	}

	personal_tenet_parameters = {
		gruesome_festivals_personal_sacrifice
		tenet_human_sacrifice_siege_capture_chance
	}

	traits = {
		virtues = {
			gregarious = { weight = 15 scale = 1 }
			sadistic = { weight = 10 scale = 1 }
		}
		sins = {
			shy = { weight = 15 scale = 1 }
		}
	}
}

# Chthonic Redoubts / Volcanic Veneration
tenet_cthonic_redoubts = {
	icon = tenet_cthonic_redoubts

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					rite_religion_tag = north_african_religion
				}
				desc = tenet_volcanic_veneration_name
			}
			desc = tenet_cthonic_redoubts_name
		}
	}

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					rite_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 = { rite_has_tenet = tenet_cthonic_redoubts }
			multiply = faith_unchanged_doctrine_cost_mult
		}
		# Multiplier for traditional mountain-based religions or faiths.
		if = {
			limit = {
				OR = {
					faith = faith:bosnian_church
					this = rite:armenian_rite
					this = rite:lamaism
					faith = faith:vajrayana_faith
					faith = faith:mahayana_faith
					faith = faith:haymanot
					religion = religion:basque_religion
					religion = religion:kushitism_religion
					religion = religion:zunism_religion
					religion = religion:tani_religion
					religion = religion:qiangic_religion
					religion = religion:bon_religion
				}
			}
			multiply = faith_tenet_discount_mountain_background_value
		}
	}

	can_pick = {
		trigger_if = {
			limit = { scope:actor ?= { is_ai = yes } }
			scope:actor = { pam_ai_mountain_capital_actor_trigger = yes }
		}
	}

	parameters = {
		easier_to_convert_faith_in_mountains
		easier_to_convert_culture_in_same_faith_mountains
		harder_to_convert_faith_away_in_mountains
		sanctify_artifacts_earth
	}

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

	personal_tenet_modifier = {
		mountains_travel_danger = mountains_medium_danger_reduction
		desert_mountains_travel_danger = desert_mountains_medium_danger_reduction
		mountains_construction_gold_cost = -0.1
		desert_mountains_construction_gold_cost = -0.1
	}

	personal_tenet_parameters = {
		cthonic_redoubts_mountain_travel_fulfillment
		cthonic_redoubts_hike
	}

	traits = {
		virtues = { 
			# For the Jentillaks et al. - giant is vanishingly rare so high scale lets the rare match dominate. https://en.wikipedia.org/wiki/Jentil
			giant = { weight = 15 scale = 3 }
			brave = { weight = 15 scale = 1 }
		}
	}
}

# Household Gods
tenet_household_gods = {
	icon = tenet_household_gods

	historical_glossary = {
		first_valid = {
			desc = tenet_household_gods_historical_glossary
		}
	}

	name = tenet_household_gods_name

	desc = tenet_household_gods_desc

	piety_cost = faith_tenet_cost_mid

	can_pick = {
		religion = religion:hellenism_religion
		custom_description = {
			text = rome_must_be_faithfully_restored_trigger
			has_global_variable = household_gods_tenet_unlocked
		}
		custom_tooltip = {
			text = incompatible_doctrine_monotheist
			NOT = { doctrine:doctrine_monotheist = { is_in_list = selected_doctrines } }
		}
	}

	can_pick_as_personal_tenet = {
		NOT = { rite = { rite_has_doctrine = doctrine_monotheist } }
	}

	parameters = {
		same_culture_conversion_bonus_active
		same_faith_promote_culture_bonus_active
	}

	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
	}

	personal_tenet_modifier = {
		monthly_prestige_gain_mult = 0.2
	}

	traits = {
		# Roman lar/penates lineage piety - tied to imperial-lineage continuity; both achievement traits are vanishingly rare. https://en.wikipedia.org/wiki/Lares
		virtues = { 
			augustus = { weight = 15 scale = 3 }
			born_in_the_purple = { weight = 15 scale = 3 }
			loyal = { weight = 15 scale = 1 }
		}
	}
}

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

# Sinitic Syncretism
tenet_sinitic_syncretism = {
	icon = tenet_harmonious_society

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = buddhism_religion
					rite_has_doctrine = pagan_hostility_doctrine
				}
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				rite_religion_tag = islam_religion
			}
			value = faith_tenet_cost_high
		}
		else = {
			value = faith_tenet_cost_mid
		}

		# Multiplier for keeping same tenet
		if = {
			limit = { rite_has_parameter = sinitic_syncretic_actor }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	can_pick = {
		NOT = {
			has_doctrine = sinitic_hostility_doctrine
		}
		custom_description = {
			text = incompatible_tenet_gnosticism_trigger
			NOT = {
				tenet:tenet_gnosticism = { is_in_list = selected_doctrines }
			}
		}
		unique_syncretism_trigger = yes
		trigger_if = {
			limit = { scope:actor ?= { is_ai = yes } }
			scope:actor = { pam_ai_meaningful_sinitic_presence_trigger = yes }
		}
	}

	can_pick_as_personal_tenet = {
		NOT = {
			faith = { has_doctrine = sinitic_hostility_doctrine }
		}
		trigger_if = {
			limit = { is_ai = yes }
			pam_ai_meaningful_sinitic_presence_trigger = yes
		}
	}

	parameters = {
		#For loc:
		sinitic_syncretic_actor
		tenet_sinitic_syncretism_study_rite_bonus
		unreformed_syncretic_conversion_malus_active
	}

	personal_tenet_parameters = {
		tenet_syncretism_invite_religious_exiles
		tenet_syncretism_county_bonus
		tenet_sinitic_syncretism_study_rite_bonus
	}

	special_parameters = {
		hostility_level_override = {
			sinitic_hostility_doctrine = astray
		}
		parameter_opinion_override = {
			#Sync this to syncretic_mutual_opinion_bonus_value
			sinitic_syncretic_recipient = 30
		}
	}

	traits = {
		virtues = { 
			honest = { weight = 15 scale = 1 }
		}
		sins = { 
			wrathful = { weight = 10 scale = 1 }
		}
	}
}

# Dharmic Syncretism
tenet_eastern_syncretism = {
	icon = tenet_eastern_syncretism

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = dualism_religion
					rite_has_doctrine = pagan_hostility_doctrine
					rite_has_doctrine = sinitic_hostility_doctrine
				}
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				rite_religion_tag = islam_religion
			}
			value = faith_tenet_cost_high
		}
		else = {
			value = faith_tenet_cost_mid
		}

		# Multiplier for keeping same tenet
		if = {
			limit = { rite_has_parameter = eastern_syncretic_actor }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	can_pick = {
		NOT = {
			has_doctrine = eastern_hostility_doctrine
		}
		custom_description = {
			text = incompatible_tenet_gnosticism_trigger
			NOT = {
				tenet:tenet_gnosticism = { is_in_list = selected_doctrines }
			}
		}
		unique_syncretism_trigger = yes
		trigger_if = {
			limit = { scope:actor ?= { is_ai = yes } }
			scope:actor = { pam_ai_meaningful_eastern_presence_trigger = yes }
		}
	}

	can_pick_as_personal_tenet = {
		NOT = {
			faith = { has_doctrine = eastern_hostility_doctrine }
		}
		trigger_if = {
			limit = { is_ai = yes }
			pam_ai_meaningful_eastern_presence_trigger = yes
		}
	}

	parameters = {
		#For loc:
		eastern_syncretic_actor
		tenet_eastern_syncretism_study_rite_bonus
		unreformed_syncretic_conversion_malus_active
	}

	personal_tenet_parameters = {
		tenet_syncretism_invite_religious_exiles
		tenet_syncretism_county_bonus
		tenet_eastern_syncretism_study_rite_bonus
	}
	
	special_parameters = {
		hostility_level_override = {
			eastern_hostility_doctrine = astray
		}
		parameter_opinion_override = {
			#Sync this to syncretic_mutual_opinion_bonus_value
			eastern_syncretic_recipient = 30
		}
	}

	traits = {
		virtues = { 
			honest = { weight = 15 scale = 1 }
		}
		sins = { 
			wrathful = { weight = 10 scale = 1 }
		}
	}
}

# Syncretic Folk Traditions
tenet_unreformed_syncretism = {
	icon = tenet_unreformed_syncretism

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

		# Multiplier for keeping same tenet
		if = {
			limit = { rite_has_parameter = unreformed_syncretic_actor }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	personal_tenet_parameters = {
		tenet_syncretism_invite_religious_exiles
		tenet_syncretism_county_bonus
		tenet_unreformed_syncretism_study_rite_bonus
	}

	can_pick = {
		NOT = { has_doctrine = pagan_hostility_doctrine }
		unique_syncretism_trigger = yes
		trigger_if = {
			limit = { scope:actor ?= { is_ai = yes } }
			scope:actor = { pam_ai_meaningful_unreformed_presence_trigger = yes }
		}
	}

	can_pick_as_personal_tenet = {
		NOT = {
			faith = { has_doctrine = pagan_hostility_doctrine }
		}
		trigger_if = {
			limit = { is_ai = yes }
			pam_ai_meaningful_unreformed_presence_trigger = yes
		}
	}

	parameters = {
		unreformed_syncretic_actor
		tenet_unreformed_syncretism_study_rite_bonus
		unreformed_syncretic_conversion_malus_active
	}

	special_parameters = {
		hostility_level_override = {
			unreformed_faith_doctrine = hostile
			west_african_unreformed_faith_doctrine = hostile
		}
		parameter_opinion_override = {
			#Sync this to syncretic_mutual_opinion_bonus_value
			unreformed_syncretic_recipient = 30
		}
	}
	
	traits = {
		virtues = { 
			humble = { weight = 15 scale = 1 }
		}
		sins = { 
			arrogant = { weight = 10 scale = 1 }
		}
	}
}

# Christian Syncretism
tenet_christian_syncretism = {
	icon = tenet_christian_syncretism

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

		# Multiplier for keeping same tenet
		if = {
			limit = { rite_has_parameter = christian_syncretic_actor }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	can_pick = {
		NOT = { religion = religion:christianity_religion }
		unique_syncretism_trigger = yes
		trigger_if = {
			limit = { scope:actor ?= { is_ai = yes } }
			scope:actor = { pam_ai_meaningful_christian_presence_trigger = yes }
		}
	}

	can_pick_as_personal_tenet = {
		NOT = {
			faith = { religion = religion:christianity_religion }
		}
		trigger_if = {
			limit = { is_ai = yes }
			pam_ai_meaningful_christian_presence_trigger = yes
		}
	}

	personal_tenet_parameters = {
		tenet_syncretism_invite_religious_exiles
		tenet_syncretism_county_bonus
		can_use_christian_artifacts
		tenet_christian_syncretism_study_rite_bonus
	}

	parameters = {
		can_use_christian_artifacts
		# Actor opinion is delivered by special_parameters; the syncretic trigger checks the doctrine.
		christian_syncretic_actor
		tenet_christian_syncretism_study_rite_bonus
		unreformed_syncretic_conversion_malus_active
	}

	special_parameters = {
		hostility_level_override = {
			special_doctrine_is_christian_faith = astray
		}
		parameter_opinion_override = {
			#Sync this to syncretic_mutual_opinion_bonus_value
			christian_syncretic_recipient = 30
		}
	}

	traits = {
		virtues = { 
			compassionate = { weight = 15 scale = 1 }
		}
		sins = { 
			callous = { weight = 10 scale = 1 }
			sadistic = { weight = 10 scale = 1 }
		}
	}
}

# Islamic Syncretism
tenet_islamic_syncretism = {
	icon = tenet_islamic_syncretism

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

		# Multiplier for keeping same tenet
		if = {
			limit = { rite_has_parameter = islamic_syncretic_actor }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	can_pick = {
		NOT = { religion = religion:islam_religion }
		unique_syncretism_trigger = yes
		trigger_if = {
			limit = { scope:actor ?= { is_ai = yes } }
			scope:actor = { pam_ai_meaningful_islamic_presence_trigger = yes }
		}
	}

	can_pick_as_personal_tenet = {
		NOT = {
			faith = { religion = religion:islam_religion }
		}
		trigger_if = {
			limit = { is_ai = yes }
			pam_ai_meaningful_islamic_presence_trigger = yes
		}
	}

	personal_tenet_parameters = {
		tenet_syncretism_invite_religious_exiles
		tenet_syncretism_county_bonus
		can_use_islamic_artifacts
		tenet_islamic_syncretism_study_rite_bonus
	}

	parameters = {
		can_use_islamic_artifacts
		islamic_syncretic_actor
		tenet_islamic_syncretism_study_rite_bonus
		unreformed_syncretic_conversion_malus_active
	}
	
	special_parameters = {
		hostility_level_override = {
			special_doctrine_is_islamic_faith = astray
		}
		parameter_opinion_override = {
			#Sync this to syncretic_mutual_opinion_bonus_value
			islamic_syncretic_recipient = 30
		}
	}

	traits = {
		virtues = { 
			generous = { weight = 15 scale = 1 }
		}
		sins = { 
			greedy = { weight = 10 scale = 1 }
			arbitrary = { weight = 10 scale = 1 }
		}
	}
}

# Jewish Syncretism
tenet_jewish_syncretism = {
	icon = tenet_jewish_syncretism

	piety_cost = {
		if = {
			limit = {
				religion = { is_in_family = rf_abrahamic }
			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_mid
		}

		# Multiplier for keeping same tenet
		if = {
			limit = { rite_has_parameter = jewish_syncretic_actor }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	can_pick = {
		NOT = { religion = religion:judaism_religion }
		unique_syncretism_trigger = yes
		trigger_if = {
			limit = { scope:actor ?= { is_ai = yes } }
			scope:actor = { pam_ai_meaningful_jewish_presence_trigger = yes }
		}
	}

	can_pick_as_personal_tenet = {
		NOT = {
			faith = { religion = religion:judaism_religion }
		}
		trigger_if = {
			limit = { is_ai = yes }
			pam_ai_meaningful_jewish_presence_trigger = yes
		}
	}

	personal_tenet_parameters = {
		tenet_syncretism_invite_religious_exiles
		tenet_syncretism_county_bonus
		can_use_jewish_artifacts
		tenet_jewish_syncretism_study_rite_bonus
	}

	parameters = {
		can_use_jewish_artifacts
		jewish_syncretic_actor
		tenet_jewish_syncretism_study_rite_bonus
		unreformed_syncretic_conversion_malus_active
	}

	special_parameters = {
		hostility_level_override = {
			special_doctrine_is_jewish_faith = astray
		}
		parameter_opinion_override = {
			#Sync this to syncretic_mutual_opinion_bonus_value
			jewish_syncretic_recipient = 30
		}
	}

	traits = {
		virtues = { 
			patient = { weight = 15 scale = 1 }
		}
		sins = { 
			greedy = { weight = 10 scale = 1 }
			cynical = { weight = 10 scale = 1 }
		}
	}
}

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

# Exaltation of Pain
tenet_exaltation_of_pain = {
	icon = tenet_human_sacrifice

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = christianity_religion
					rite_has_doctrine = pagan_hostility_doctrine
				}
			}
			value = faith_tenet_cost_mid
		}
		else_if = {
			limit = {
				rite_religion_tag = hinduism_religion

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

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

	parameters = {
		torturing_prisoners_grants_piety
		reduced_stress_from_torture
		no_epidemic_fulfillment_loss_active
	}

	divergence_multiplier = 5

	personal_tenet_parameters = {
		no_epidemic_fulfillment_loss_personal_active
		tenet_exaltation_of_pain_flagellant_trait
		self_mutilation_active
		tenet_exaltation_of_pain_wounded_spiritual_fulfillment
		tenet_exaltation_of_pain_wound_courtier_interaction
		reduced_stress_from_torture
	}

	traits = {
		virtues = { 
			sadistic = { weight = 35 scale = 1 }
			# Flagellant is rare and self-mutilation IS the tenet's core. https://en.wikipedia.org/wiki/Flagellation
			flagellant = { weight = 35 scale = 3 }
			zealous = { weight = 15 scale = 1 }
		}
		sins = { 
			compassionate = { weight = 20 scale = 1 }
		}
	}
}

# Natural Primitivism
tenet_natural_primitivism = {
	icon = tenet_natural_primitivism

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

	piety_cost = {
		if = {
			limit = {
				religion = religion:hinduism_religion
				religion = religion:jainism_religion
			}
			value = faith_tenet_cost_mid
		}
		else_if = {
			limit = {
				rite_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 = { rite_has_tenet = tenet_natural_primitivism }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	parameters = {
		naked_adherents_active
		natural_primitivism_law_cost_increase
		sanctify_artifacts_natural
	}

	personal_tenet_parameters = {
		tenet_natural_primitivism_promote_naturism_decision
	}

	divergence_multiplier = 1.5

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

	personal_tenet_modifier = {
		health = 0.1
		character_spiritual_fulfillment_gain_mult = 0.1
		different_faith_opinion = -20
	}

	traits = {
		# Kynikoi / back-to-nature anti-civilizational ethos
		virtues = {
			content = { weight = 20 scale = 1 }
			trusting = { weight = 10 scale = 1 }
		}
		sins = {
			ambitious = { weight = 15 scale = 1 }
		}
	}
}

# Pursuit of Power
tenet_pursuit_of_power = {
	icon = tenet_pursuit_of_power

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_has_doctrine = pagan_hostility_doctrine
					rite_religion_tag = hinduism_religion
					rite_religion_tag = islam_religion
				}
			}
			value = faith_tenet_cost_mid
		}
		else_if = {
			limit = {
				rite_religion_tag = judaism_religion

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

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

	can_pick_as_personal_tenet = {
		NOT = { has_trait = content }
	}

	parameters = {
		conquest_cb_enabled
		invasion_cb_enabled
		sanctify_artifacts_regal
	}

	divergence_multiplier = 5

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

	personal_tenet_parameters = {
		tenet_pursuit_of_power_war_victory_fulfillment
		tenet_pursuit_of_power_become_conqueror
	}

	traits = {
		virtues = { 
			ambitious = { weight = 20 scale = 1 }
			disloyal = { weight = 15 scale = 1 }
		}
		sins = { 
			content = { weight = 20 scale = 1 }
			loyal = { weight = 15 scale = 1 }
		}
	}
}

# Ritual Cannibalism
tenet_ritual_cannibalism = {
	icon = tenet_ritual_cannibalism

	piety_cost = {
		if = {
			limit = {
				has_variable = accepted_cannibalism
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = christianity_religion
					rite_has_doctrine = pagan_hostility_doctrine
				}
			}
			value = faith_tenet_cost_mid
		}
		else_if = {
			limit = {
				rite_religion_tag = hinduism_religion
			}
			value = faith_tenet_cost_high
		}
		else = {
			value = faith_tenet_cost_massive
		}

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

	traits = {
		virtues = { 
			cannibal = { weight = 50 scale = 2 }
			sadistic = { weight = 10 scale = 1 }
		}
	}

	parameters = {
		cannibalism_legal
		tenet_ritual_cannibalism_feast_toast
	}

	personal_tenet_parameters = {
		tenet_ritual_cannibalism_devour_reward
	}

	divergence_multiplier = 5

	character_modifier = {
		provisions_gain_mult = 0.25
	}
}

# Sacred Lies
tenet_sacred_shadows = {
	icon = tenet_sacred_shadows

	piety_cost = {
		if = {
			limit = {
				rite_has_doctrine = pagan_hostility_doctrine

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

		# Multiplier for keeping same tenet
		if = {
			limit = { rite_has_tenet = tenet_sacred_shadows }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}
	
	can_pick = {
		custom_description = {
			text = incompatible_tenet_communion_trigger
			NOT = {
				tenet:tenet_communion = { is_in_list = selected_doctrines }
			}
		}
	}

	parameters = {
		piety_gain_from_successful_intrigue_schemes
		adherents_more_likely_to_join_schemes
		tenet_unlocks_t4_bounties_for_whispers
	}

	divergence_multiplier = 5

	personal_tenet_modifier = {
		owned_scheme_secrecy_add = 10
		monthly_intrigue_lifestyle_xp_gain_mult = 0.2
		monthly_diplomacy_lifestyle_xp_gain_mult = 0.2
	}

	personal_tenet_parameters = {
		tenet_sacred_shadows_fabricate_hook
		tenet_sacred_shadows_intrigue_scheme_fulfillment
	}

	traits = {
		virtues = { 
			deceitful = { weight = 30 scale = 1 }
			paranoid = { weight = 10 scale = 1 }
		}
		sins = { 
			honest = { weight = 20 scale = 1 }
		}
	}
}

# Polyamory
tenet_polyamory = {
	icon = tenet_polyamory

	piety_cost = {
		if = {
			limit = {
				rite_religion_tag = hinduism_religion
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				OR = {
					rite_religion_tag = christianity_religion
					rite_religion_tag = judaism_religion
					rite_religion_tag = islam_religion
					rite_religion_tag = buddhism_religion
					rite_religion_tag = jainism_religion
				}
			}
			value = faith_tenet_cost_high
		}
		else = {
			value = faith_tenet_cost_mid
		}

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

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

	parameters = {
		no_unfaithfulness_penalty_active
		tenet_polyamory_romance_seduction_scheme_bonus
	}

	divergence_multiplier = 3

	character_modifier = {
		max_courting_schemes_add = 1
		max_seduce_schemes_add = 1
	}

	personal_tenet_parameters = {
		tenet_polyamory_romance_seduction_fulfillment
		tenet_polyamory_new_beloved
	}

	traits = {
		# Lustful here valorises multi-partner desire as such; contrast tenet_be_fruitful_and_multiply, which only sanctifies procreation.
		virtues = {
			gregarious = { weight = 15 scale = 1 }
			lustful = { weight = 15 scale = 1 }
		}
		sins = {
			shy = { weight = 10 scale = 1 }
		}
	}
}

# Sacrificial Ceremonies
tenet_sacrificial_ceremonies = {
	icon = tenet_human_sacrifice

	name = {
		first_valid = {
			desc = tenet_sacrificial_ceremonies_name
		}
	}

	piety_cost = {
		if = {
			limit = {
				rite_has_tenet = tenet_human_sacrifice
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				rite_has_doctrine = pagan_hostility_doctrine
			}
			value = faith_tenet_cost_mid
		}
		else = {
			value = faith_tenet_cost_massive
		}
		
		#We already practice sacrificial ceremonies
		if = {
			limit = { rite_has_tenet = tenet_sacrificial_ceremonies }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	can_pick = {
		OR = {
			religion = religion:north_african_religion
			has_tenet = tenet_sacrificial_ceremonies #If you already have it
		}
		custom_description = {
			text = incompatible_tenet_pacifism_trigger
			NOT = { tenet:tenet_pacifism = { is_in_list = selected_doctrines } }
		}
		custom_description = {
			text = incompatible_tenet_dharmic_pacifism_trigger
			NOT = { tenet:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } }
		}
		custom_description = {
			text = incompatible_tenet_gruesome_festivals_trigger
			NOT = {
				tenet:tenet_gruesome_festivals = { is_in_list = selected_doctrines }
			}
		}
		custom_description = {
			text = incompatible_tenet_human_sacrifice_trigger
			NOT = {
				tenet:tenet_human_sacrifice = { is_in_list = selected_doctrines }
			}
		}
		custom_description = {
			text = incompatible_tenet_consolamentum_trigger
			NOT = { tenet:tenet_consolamentum = { is_in_list = selected_doctrines } }
		}
	}

	parameters = {
		human_sacrifice_active
		human_sacrifice_sharing_power_prestige
		consolamentum_active
		tenet_sacrificial_ceremonies_blessed_passing
		sanctify_artifacts_sacrificial
	}

	divergence_multiplier = 2

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

	personal_tenet_parameters = {
		consolamentum_active
		tenet_sacrificial_ceremonies_blessed_passing_personal
	}

	traits = {
		virtues = {
			vengeful = { weight = 15 scale = 1 }
		}
		sins = {
			forgiving = { weight = 15 scale = 1 }
		}
	}
}

# Megalithic Constructions
tenet_megaliths = {
	icon = tenet_megaliths

	name = {
		first_valid = {
			desc = tenet_megaliths_name
		}
	}

	piety_cost = {
		if = {
			limit = {
				rite_has_tenet = tenet_natural_primitivism
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = { #Reduction in cost for Celtic Christianity because of stone circle shenanigans
				faith = faith:christian_faith
			}
			value = faith_tenet_cost_mid
		}
		else = {
			value = faith_tenet_cost_high
		}
		
		#We already practice megaliths
		if = {
			limit = { rite_has_tenet = tenet_megaliths }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	can_pick = {
		
	}

	parameters = {
		can_build_megaliths
		sanctify_artifacts_megalithic
	}

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

	personal_tenet_modifier = {
		hills_construction_gold_cost = -0.1
		terraced_hills_construction_gold_cost = -0.1
		mountains_construction_gold_cost = -0.1
		desert_mountains_construction_gold_cost = -0.1
		build_speed = 0.25
	}

	personal_tenet_parameters = {
		tenet_megaliths_building_poi_double_rewards
		tenet_megaliths_rough_terrain_construction_fulfillment
	}

	traits = {
		# Megalithic builder cultures
		virtues = {
			architect = { weight = 15 scale = 1 }
			diligent = { weight = 10 scale = 1 }
		}
		sins = {
			lazy = { weight = 10 scale = 1 }
		}
	}
}

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

# Fedayeen / Sacred Murder
tenet_fp3_fedayeen = {
	icon = tenet_assassin

	historical_glossary = {
		first_valid = {
			desc = tenet_fp3_fedayeen_historical_glossary
		}
	}

	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					rite_religion_tag = islam_religion
				}
				desc = tenet_fp3_fedayeen_name
			}
			desc = tenet_fp3_sacred_murder_name
		}
	}

	can_pick = {
		custom_description = {
			text = incompatible_tenet_pacifism_trigger
			NOT = { tenet:tenet_pacifism = { is_in_list = selected_doctrines } }
		}
		custom_description = {
			text = incompatible_tenet_dharmic_pacifism_trigger
			NOT = { tenet:tenet_dharmic_pacifism = { is_in_list = selected_doctrines } }
		}
		custom_description = {
			text = fedayeen_required_doctrines_trigger
			OR = {
				tenet:tenet_warmonger = { is_in_list = selected_doctrines }
				tenet:tenet_unrelenting_faith = { is_in_list = selected_doctrines }
				tenet:tenet_consolamentum = { is_in_list = selected_doctrines }
				tenet:tenet_armed_pilgrimages = { is_in_list = selected_doctrines }
				tenet:tenet_struggle_submission = { is_in_list = selected_doctrines } 
				tenet:tenet_pursuit_of_power = { is_in_list = selected_doctrines }
			}
		}
	}

	piety_cost = {
		if = {
			limit = {
				AND = {
					OR = {
						rite_has_doctrine = muhammad_succession_shia_doctrine
						rite_has_doctrine = muhammad_succession_muhakkima_doctrine
					}
					OR = {
						rite_has_tenet = tenet_warmonger
						rite_has_tenet = tenet_unrelenting_faith
						rite_has_tenet = tenet_consolamentum
					}
				}

			}
			value = faith_tenet_cost_low
		}
		else = {
			value = faith_tenet_cost_massive
		}

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

	parameters = {
		master_assassin_court_position_unlocked
		death_is_glory
		sanctioned_assassinations
		unlock_voluntary_laampdom_faith
		sanctify_artifacts_sacrificial
	}

	personal_tenet_parameters = {
		tenet_fp3_fedayeen_other_faith_kill_fulfillment
		unlock_voluntary_laampdom_faith
	}

	character_modifier = {
		monthly_piety_gain_per_dread_add = 0.01
	}

	personal_tenet_modifier = {
		controlled_province_advantage = 5
		prowess = 2
		monthly_intrigue_lifestyle_xp_gain_mult = 0.1
		different_faith_opinion = -10
	}

	traits = {
		virtues = { 
			vengeful = { weight = 20 scale = 1 }
		}
		sins = { 
			craven = { weight = 20 scale = 1 }
		}
	}
	
	divergence_multiplier = 3
}

# Communal Possessions
tenet_communal_possessions = {
	icon = tenet_communism

	historical_glossary = {
		first_valid = {
			triggered_desc = {
				trigger = {
					rite_religion_tag = zoroastrianism_religion
				}
				desc = tenet_communal_possessions_mazdakism_historical_glossary
			}
			triggered_desc = {
				trigger = {
					rite_religion_tag = christianity_religion
				}
				desc = tenet_communal_possessions_apostolic_historical_glossary
			}
			desc = tenet_communal_possessions_historical_glossary
		}
	}

	can_pick = {
		always = yes
	}

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_has_tenet = tenet_mendicant_preachers
					rite_has_tenet = tenet_gnosticism 
					rite_religion_tag = christianity_religion 
					rite_religion_tag = zoroastrianism_religion
				}
			}
			value = faith_tenet_cost_mid
		}
		else = {
			value = faith_tenet_cost_high 
		}

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

	parameters = {
		piety_from_gifts_active
		piety_from_marrying_lowborn_active
		no_seek_indulgences
	}

	personal_tenet_parameters = {
		tenet_communal_possessions_redistribution_event
	}

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

	personal_tenet_modifier = {
		development_growth_factor = 0.1
		stress_loss_mult = 0.15
		monthly_prestige_gain_mult = -0.2
	}

	traits = {
		# Apostolic-poverty / shared-possessions sects (Apostolic Brethren, Waldensians, etc.). https://en.wikipedia.org/wiki/Apostolic_poverty
		virtues = {
			peasant_leader = { weight = 25 scale = 3 }
			humble = { weight = 15 scale = 1 }
			generous = { weight = 15 scale = 1 }
		}
		sins = { 
			arrogant = { weight = 20 scale = 1 }
		}
	}
}

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

# Righteous Rebirth
tenet_pure_land = {
	icon = tenet_pure_land

	historical_glossary = {
		first_valid = {
			desc = tenet_pure_land_nembutsu_historical_glossary
		}
	}

	piety_cost = {
		if = {
			limit = {
				rite_religion_tag = buddhism_religion
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				rite_has_doctrine = pagan_hostility_doctrine
			}
			value = faith_tenet_cost_high
		}
		else = {
			value = faith_tenet_cost_mid
		}

		# Multiplier for keeping same tenet
		if = {
			limit = { rite_has_tenet = tenet_pure_land }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	name = tenet_pure_land_name

	parameters = {
		sanctioned_false_conversion_county_resistance
		sanctioned_false_conversion
		peasant_and_populist_factions_more_common
	}

	personal_tenet_parameters = {
		tenet_pure_land_repentance_decision
		tenet_pure_land_aggressive_attacker_trait
		tenet_pure_land_prestige_level_loss
	}

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

	personal_tenet_modifier = {
		martial = 2
		prowess = 2
		advantage = 5
		levy_reinforcement_rate = 0.2
		diplomacy = -2
		stewardship = -2
	}

	traits = {
		virtues = {
			humble = { weight = 15 scale = 1 }
		}
		sins = { 
			greedy = { weight = 15 scale = 1 }
		}
	}
}

# Mind Without Mind
tenet_no_mind = { # Zen
	icon = tenet_no_mind

	historical_glossary = {
		first_valid = {
			desc = tenet_no_mind_historical_glossary
		}
	}

	piety_cost = {
		if = {
			limit = {
				OR = {
					rite_religion_tag = buddhism_religion
					rite_religion_tag = taoism_religion
				}
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				rite_has_doctrine = pagan_hostility_doctrine
			}
			value = faith_tenet_cost_high
		}
		else = {
			value = faith_tenet_cost_mid
		}
	}

	name = tenet_no_mind_name

	parameters = {
		better_artifacts
		less_likely_to_become_infirm
	}

	character_modifier = {
		negate_prowess_penalty_add = 5
		stress_gain_mult = -0.1
	}

	personal_tenet_modifier = {
		prowess_per_piety_level = 1
		negate_health_penalty_add = 0.2
	}

	personal_tenet_parameters = {
		less_likely_to_become_infirm_personal
	}

	traits = {
		# Zen mushin (no-mind) cultivation
		virtues = {
			calm = { weight = 15 scale = 1 }
			patient = { weight = 10 scale = 1 }
		}
		sins = {
			wrathful = { weight = 10 scale = 1 }
		}
	}
}

# Sacred Mountains
tenet_mountain_worship = {
	icon = tenet_mountain_worship

	historical_glossary = {
		first_valid = {
			desc = tenet_mountain_worship_shugendo_historical_glossary
		}
	}

	piety_cost = {
		if = {
			limit = {
				rite_religion_tag = shintoism_religion
			}
			value = faith_tenet_cost_low
		}
		else_if = {
			limit = {
				rite_has_doctrine = pagan_hostility_doctrine
			}
			value = faith_tenet_cost_mid
		}
		else = {
			value = faith_tenet_cost_high
		}

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

	can_pick = {
		trigger_if = {
			limit = { scope:actor ?= { is_ai = yes } }
			scope:actor = { pam_ai_mountain_capital_actor_trigger = yes }
		}
	}

	parameters = {
		tenet_mountain_worship_trait_bonuses
		piety_from_hills_and_mountains_pilgrimages
		sanctify_artifacts_earth
	}

	county_modifier = {
		mountains_holding_construction_gold_cost = -0.35
		desert_mountains_holding_construction_gold_cost = -0.35
		mountains_construction_gold_cost = -0.15
		desert_mountains_construction_gold_cost = -0.15
	}

	personal_tenet_modifier = {
		mountains_travel_danger = -30
		desert_mountains_travel_danger = -30
		character_travel_speed = 10
	}

	personal_tenet_parameters = {
		tenet_mountain_worship_rough_terrain_expert_trait
		tenet_mountain_worship_hike
		tenet_mountain_worship_hike_fulfillment
	}

	traits = {
		virtues = {
			patient = { weight = 15 scale = 1 }
		}
		sins = {
			impatient = { weight = 15 scale = 1 }
		}
	}
}

# Extinction of Dharma
tenet_extinction_of_dharma = {
	icon = tenet_extinction_of_dharma

	historical_glossary = {
		first_valid = {
			desc = tenet_extinction_of_dharma_historical_glossary
		}
	}

	requires_dlc_flag = all_under_heaven

	is_shown = {
		has_tgp_dlc_trigger = yes
	}
	can_pick = {
		religion = religion:buddhism_religion
		custom_description = {
			text = incompatible_tenet_pacifism_trigger
			NOT = { tenet:tenet_pacifism = { is_in_list = selected_doctrines } }
		}
		custom_description = {
			text = incompatible_tenet_dharmic_pacifism_trigger
			NOT = { tenet: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 = { rite_has_tenet = tenet_extinction_of_dharma }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	parameters = {
		destroying_artifacts_is_pious
		killing_buddhists_is_pious
		extinction_of_dharma_siege_bonus
	}

	special_parameters = {
		hostility_levels = {
			same_religion = hostile
		}
	}

	divergence_multiplier = 5

	character_modifier = {
		monthly_piety_gain_mult = -1
	}

	personal_tenet_modifier = {
		dread_gain_mult = 0.25
		dread_decay_mult = -0.25
		knight_effectiveness_per_dread = 0.002
	}

	personal_tenet_parameters = {
		tenet_extinction_of_dharma_execution_fulfillment
		awaiting_the_maitreya_savior
	}

	traits = {
		virtues = {
			sadistic = { weight = 30 scale = 1 }
			callous = { weight = 25 scale = 1 }
			cynical = { weight = 20 scale = 1 }
		}
		# Mappo / age of dharma decline: orthodox practice loses its salvific edge.
		sins = {
			zealous = { weight = 10 scale = 1 }
		}
	}
}

# Cranial Trophies
tenet_cranial_trophies = {
	icon = tenet_cranial_trophies

	requires_dlc_flag = all_under_heaven

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

	parameters = {
		killing_bestows_heads
		decapitation_steals_prestige_as_piety
	}

	divergence_multiplier = 5

	character_modifier = {
		jungle_advantage = 5
		jungle_attrition_mult = -0.25
		jungle_min_combat_roll = 1
		monthly_piety_gain_per_dread_add = 0.01
	}

	personal_tenet_modifier = {
		prowess = 3
	}

	personal_tenet_parameters = {
		killing_bestows_heads
		tenet_cranial_trophies_spiritual_fulfillment_from_trophies
	}

	traits = {
		virtues = {
			brave = { weight = 15 scale = 1 }
		}
		sins = {
			craven = { weight = 15 scale = 1 }
		}
	}
}

# Pursuit of Knowledge
tenet_pursuit_of_knowledge = {
	icon = tenet_pursuit_of_knowledge

	requires_dlc_flag = all_under_heaven

	is_shown = {
		has_tgp_dlc_trigger = yes
	}
	can_pick = {
		OR = {
			religion = religion:buddhism_religion
			custom_description = {
				text = requires_sinitic_family_trigger
				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 = { rite_has_tenet = tenet_pursuit_of_knowledge }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	traits = {
		virtues = {
			confucian_education = { weight = 25 scale = 1 }
			diligent = { weight = 20 scale = 1 }
		}
		sins = {
			lazy = { weight = 20 scale = 1 }
		}
	}

	parameters = {
		better_study_scheme
		tenet_pursuit_of_knowledge_study_scripture_bonus
		sanctify_artifacts_knowledge
		withering_mind_less_likely
	}

	character_modifier = {
		monthly_lifestyle_xp_gain_mult = 0.1
	}

	# On both sides: trigger accepts either
	personal_tenet_parameters = {
		tenet_pursuit_of_knowledge_monument_expedition
		tenet_pursuit_of_knowledge_study_scripture_bonus
		better_study_scheme
	}

	personal_tenet_modifier = {
		monthly_lifestyle_xp_gain_mult = 0.1
		stress_gain_mult = 0.25
	}
}

# Benevolent Governance
tenet_benevolent_governance = {
	icon = tenet_benevolent_governance

	historical_glossary = {
		first_valid = {
			desc = tenet_benevolent_governance_historical_glossary
		}
	}

	requires_dlc_flag = all_under_heaven

	is_shown = {
		has_tgp_dlc_trigger = yes
	}

	can_pick = {
		OR = {
			religion = religion:buddhism_religion
			custom_description = {
				text = requires_sinitic_family_trigger
				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 = { rite_has_tenet = tenet_benevolent_governance }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	parameters = {
		inspections_unlocked_and_costs_piety
		inspection_gives_devotion
	}

	character_modifier = {
		dread_gain_mult = -0.75
	}

	personal_tenet_modifier = {
		county_opinion_add = 10
		monthly_piety_from_buildings_mult = 0.2
	}

	personal_tenet_parameters = {
		tenet_benevolent_governance_inspection_fulfillment
		tenet_benevolent_governance_disaster_relief_fulfillment
		tenet_benevolent_governance_clemency_fulfillment
	}

	traits = {
		virtues = { 
			loyal = { weight = 15 scale = 1 }
			just = { weight = 15 scale = 1 }
		}
		sins = { 
			disloyal = { weight = 25 scale = 1 }
		}
	}
}

# Filial Piety
tenet_filial_piety = {
	icon = tenet_filial_piety 

	historical_glossary = {
		first_valid = {
			desc = tenet_filial_piety_historical_glossary
		}
	}

	requires_dlc_flag = all_under_heaven

	is_shown = {
		has_tgp_dlc_trigger = yes
	}

	can_pick = {
		OR = {
			religion = religion:buddhism_religion
			custom_description = {
				text = requires_sinitic_family_trigger
				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 = { rite_has_tenet = tenet_filial_piety }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	parameters = {
		parents_get_hooks_on_children
		children_less_likely_to_be_burdened
		sanctify_artifacts_ancestral
	}

	character_modifier = {
		opinion_of_parents = 20
	}

	personal_tenet_parameters = {
		tenet_filial_piety_child_gold_request
		tenet_filial_piety_education_completion_reward
	}

	traits = {
		# Confucian xiao - loyalty up the family hierarchy is the tenet's primary obligation.
		virtues = {
			loyal = { weight = 20 scale = 1 }
			humble = { weight = 10 scale = 1 }
		}
		sins = {
			disloyal = { weight = 10 scale = 1 }
		}
	}
}

# Harmonious Society
tenet_harmonious_society = {
	icon = tenet_harmonious_society

	historical_glossary = {
		first_valid = {
			desc = tenet_harmonious_society_historical_glossary
		}
	}

	requires_dlc_flag = all_under_heaven

	is_shown = {
		has_tgp_dlc_trigger = yes
	}

	can_pick = {
		OR = {
			religion = religion:buddhism_religion
			custom_description = {
				text = requires_sinitic_family_trigger
				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_massive
		}

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

	parameters = {
		sway_scheme_better
		sway_scheme_piety
		more_often_zealots
	}

	personal_tenet_modifier = {
		monthly_diplomacy_lifestyle_xp_gain_mult = 0.2
	}

	personal_tenet_parameters = {
		tenet_harmonious_society_sway_fulfillment
		tenet_harmonious_society_five_bonds
	}

	traits = {
		virtues = { 
			temperate = { weight = 35 scale = 1 }
		}
		sins = { 
			gluttonous = { weight = 10 scale = 1 }
		}
	}
}

# Sacred Destruction
tenet_sacred_destruction = {
	icon = tenet_sacred_destruction

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

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

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

	character_modifier = {
		prowess_per_piety_level = 1
		maa_damage_mult = 0.1
	}

	parameters = {
		successful_sieges_give_piety
		sanctify_artifacts_sacrificial
		unlock_destruction_raid_intent
	}

	personal_tenet_modifier = {
		maa_siege_value_mult = 0.1
	}

	personal_tenet_parameters = {
		unlock_destruction_raid_intent_personal
	}

	traits = {
		# Sanctified wrath is the entire premise.
		virtues = {
			wrathful = { weight = 25 scale = 2 }
		}
	}
}

# Preservation
tenet_preservation = {
	icon = tenet_preservation

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

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

	can_pick = {
		religion = religion:hinduism_religion
		custom_description = {
			text = incompatible_tenet_tenet_sacred_destruction_trigger
			NOT = { tenet: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_build_gold_cost = -0.15
		temple_citadel_holding_holding_build_speed = -0.15
	}

	parameters = {
		building_temples_gives_development
		monastic_schools_allowed_in_every_holding_type
	}

	personal_tenet_modifier = {
		monthly_piety_from_buildings_mult = 0.2
	}

	personal_tenet_parameters = {
		piety_from_sponsoring_inspiration
		spiritual_fulfillment_from_building_personal
	}

	traits = {
		virtues = {
			architect = { weight = 25 scale = 1 }
			patient = { weight = 10 scale = 1 }
		}
	}
}

# Takamin
tenet_takamin = {
	icon = tenet_bear

	historical_glossary = {
		first_valid = {
			desc = tenet_takamin_iyomante_historical_glossary
		}
	}

	requires_dlc_flag = all_under_heaven

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

	piety_cost = {
		value = faith_tenet_cost_high

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

	character_modifier = {
		taiga_travel_danger = taiga_high_danger_reduction
	}

	personal_tenet_modifier = {
		lifestyle_hunter_xp_gain_mult = 0.25
	}

	personal_tenet_parameters = {
		tenet_takamin_hunter_trait
	}
	
	parameters = {
		frequent_bear_sightings
		efficient_hunt_cornering
		allows_bear_sacrifice
		chance_to_gain_prowess_during_bear_hunts
	}
	
	traits = {
		# Ainu bear/hunter warrior cult (kamuy iyomante).
		virtues = {
			lifestyle_hunter = { weight = 25 scale = 2 }
			brave = { weight = 10 scale = 1 }
		}
		sins = {
			craven = { weight = 15 scale = 1 }
		}
	}
}

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

#tenets = {
#	icon = ""
#
#	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 = { rite_has_tenet = tenets }
#			multiply = faith_unchanged_doctrine_cost_mult
#		}
#	}

#	parameters = {
#		tenets_active = yes
#	}

#	character_modifier = {

#	}

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