﻿
	###### NEOW TENETS ######
	
	
	### DIVINE OPULENCE ###
	
	tenet_divine_opulence = {
		icon = tenet_ritual_hospitality

		piety_cost = {
			value = faith_tenet_cost_low
			# Multiplier for keeping same tenet
			if = {
				limit = { rite_has_tenet = tenet_divine_opulence }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			believes_in_harmony_with_nature_invisible
			piety_from_feasts_active
			mandatory_feast_attendance
			allows_brewery
			no_unfaithfulness_penalty_active
			tenet_polyamory_romance_seduction_scheme_bonus
		}
		personal_tenet_parameters = {
			tenet_polyamory_romance_seduction_fulfillment
			tenet_exaltation_of_pain_wounded_spiritual_fulfillment
			tenet_polyamory_new_beloved
			self_mutilation_active
		}

		character_modifier = {
			county_opinion_add = -10
			vassal_opinion = 10
			stress_loss_mult = 0.25
		}
	}
	
	
	### SYMPHONIA ###
	
	tenet_symphonia = {
		icon = tenet_symphonia

		name = {
			first_valid = {
				triggered_desc = {
					trigger = { rite_religion_tag = octobrist_religion }
					desc = tenet_symphonia_name
				}
				triggered_desc = {
					trigger = { pam_latin_as_liturgical_language_trigger = yes }
					desc = tenet_symphonia_latin_name
				}
				triggered_desc = {
					trigger = { pam_greek_as_liturgical_language_trigger = yes }
					desc = tenet_symphonia_greek_name
				}
				desc = tenet_symphonia_default_name
			}
		}

		desc = {
			first_valid = {
				triggered_desc = {
					trigger = { pam_latin_as_liturgical_language_trigger = yes }
					desc = tenet_symphonia_latin_desc
				}
				triggered_desc = {
					trigger = { pam_greek_as_liturgical_language_trigger = yes }
					desc = tenet_symphonia_greek_desc
				}
				desc = tenet_symphonia_default_desc
			}
		}

		historical_glossary = {
			first_valid = {
				triggered_desc = {
					trigger = { pam_latin_as_liturgical_language_trigger = yes }
					desc = tenet_symphonia_latin_historical_glossary
				}
				triggered_desc = {
					trigger = { pam_greek_as_liturgical_language_trigger = yes }
					desc = tenet_symphonia_greek_historical_glossary
				}
				desc = tenet_symphonia_default_historical_glossary
			}
		}

		piety_cost = {
			if = {
				limit = {
					OR = {
						rite_religion_tag = eastern_orthodox_religion
						rite_religion_tag = octobrist_religion
					}
				}
				value = faith_tenet_cost_low
			}
			else = { value = faith_tenet_cost_mid }
			# Multiplier for keeping the same tenet.
			if = {
				limit = { rite_has_tenet = tenet_symphonia }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		requires_dlc_flag = by_god_alone

		is_shown = {
			has_pam_dlc_trigger = yes
		}

		can_pick = {
			OR = {
			religion = religion:protestant_religion
			religion = religion:catholic_religion
			religion = religion:eastern_orthodox_religion
			religion = religion:oriental_orthodox_religion
			religion = religion:octobrist_religion
			}
		}

		# Mutual respect between the priesthood and the ruler, not state domination of the Church.
		character_modifier = {
			tyranny_gain_mult = -0.25
			vassal_opinion = 5
		}

		county_modifier = {
			county_opinion_add = 5
			monthly_county_control_growth_factor = 0.05
		}

		personal_tenet_modifier = {
			monthly_legitimacy_add = 0.10
		}

		parameters = {
			temporal_condemnation_enabled
			legalism_reduced_faction_virtues
			legalism_increased_faction_sins
			neow_theocrats_can_use_secular_cbs
		}

		personal_tenet_parameters = {
			tenet_symphonia_puppeting_cost_reduction
		}

		traits = {
			virtues = {
				just = { weight = 20 scale = 2 }
				humble = { weight = 10 scale = 1 }
			}
			sins = {
				arbitrary = { weight = 20 scale = 2 }
				arrogant = { weight = 10 scale = 1 }
			}
		}
	}


	### ICONODULISM ###
	
#	tenet_iconodulism = { # Dulia is a bga tenet, retool later
#		icon = tenet_iconodulism
#
#	piety_cost = {
#		if = {
#			limit = {
#				OR = {
#					rite.religion = eastern_orthodox_religion
#					rite.religion = oriental_orthodox_religion
#					rite.religion = catholic_religion
#				}
#			}
#			value = faith_tenet_cost_low
#		}
#		else_if = {
#			limit = {
#				OR = {
#					rite.religion = protestant_religion
#					rite.religion = judaism_religion
#					rite.religion = islam_religion
#				}
#			}
#			value = faith_tenet_cost_high
#		}
#		else = {
#			value = faith_tenet_cost_mid
#		}
#
#		# Multiplier for keeping same tenet
#		if = {
#			limit = {
#				rite_has_tenet = tenet_iconodulism
#			}
#			multiply = faith_unchanged_doctrine_cost_mult
#		}
#	}
#
#	name = {
#		first_valid = {
#			triggered_desc = {
#				trigger = {
#					OR = {
#						rite.religion = eastern_orthodox_religion
#						rite.religion = oriental_orthodox_religion
#					}
#				}
#				desc = tenet_iconodulism_orthodox_name
#			}
#			desc = tenet_iconodulism_name
#		}
#	}
#
#	desc = {
#		first_valid = {
#			triggered_desc = {
#				trigger = {
#					OR = {
#						rite.religion = eastern_orthodox_religion
#						rite.religion = oriental_orthodox_religion
#					}
#				}
#				desc = tenet_iconodulism_orthodox_desc
#			}
#			desc = tenet_iconodulism_desc
#		}
#	}
#
#	can_pick = {
#		custom_description = {
#			text = incompatible_tenet_aniconism_trigger
#			NOT = {
#				doctrine:tenet_aniconism = {
#					is_in_list = selected_doctrines
#				}
#			}
#		}
#	}
#
#	character_modifier = {
#		church_holding_build_speed = 0.2
#		church_holding_build_gold_cost = 0.2
#		church_holding_holding_build_speed = 0.2
#		church_holding_holding_build_gold_cost = 0.2
#	}
#
#	parameters = {
#		destroying_artifacts_costs_piety
#		neow_piety_from_temple_construction
#		building_temples_gives_development
#		more_fervor_on_church_construction
#		}
#	}
	
	
	### ARMED RESISTANCE ###
	
	tenet_armed_resistance = {
		icon = tenet_armed_resistance
		
		piety_cost = {
			value = faith_tenet_cost_low
			# Multiplier for keeping same tenet
			if = {
				limit = { rite_has_tenet = tenet_armed_resistance }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			sanctioned_false_conversion_county_resistance
			sanctioned_false_conversion
			peasant_and_populist_factions_more_common
			clergy_can_fight
		}

		personal_tenet_parameters = {
			clergy_can_fight_personal
		}
		character_modifier = {
			hills_attrition_mult = -0.2
			hills_levy_size = 0.2
			hills_advantage = 4
			forest_attrition_mult = -0.2
			forest_levy_size = 0.2
			forest_advantage = 4
		}

	}
	
	
	### RULE THE WAVES ###
	
	tenet_rule_the_waves = {
		icon = tenet_rule_the_waves
		
		piety_cost = {
			value = faith_tenet_cost_low
			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_rule_the_waves }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
		
		name = {
			first_valid = {
			#	triggered_desc = {
			#		trigger = {
			#			religion = american_religion
			#		}
			#		desc = tenet_rule_the_waves_american_name
			#	}
				desc = tenet_rule_the_waves_name
			}
		}

		desc = {
			first_valid = {
				#triggered_desc = {
				#	trigger = {
				#		religion = american_religion
				#	}
				#	desc = tenet_rule_the_waves_american_desc
				#}
				desc = tenet_rule_the_waves_desc
			}
		}

		parameters = {
			warmonger
			conquest_cb_enabled
			clergy_can_fight
			sanctify_artifacts_weapons
			divine_the_stars_active		
			tenet_astrology_auspicious_timing
		}
		personal_tenet_parameters = {
			divine_the_stars_active
			tenet_astrology_divination_bonus
		}
		character_modifier = {
			title_creation_cost_mult = -0.25			
			naval_movement_speed_mult = 0.15
			sea_travel_danger = medium_sea_danger_reduction
		}
		traits = {
			virtues = {
				brave = { weight = 20 scale = 1 }
			}
			sins = {
				craven = { weight = 20 scale = 1 }
			}
		}		
	}
	
	
	### TERROR OF THE SEAS ###
	
	tenet_terror_of_the_seas = {
		icon = tenet_terror_of_the_seas
		
		piety_cost = {
			value = faith_tenet_cost_mid

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

		is_shown = {
			always = yes
		}

		parameters = {
			can_raid_at_sea_even_if_feudal
			piety_for_forced_conversions_active
			unlock_varangian_adventurer_cb
			
			unlock_voluntary_laampdom_faith
		}
		character_modifier = {
			raid_speed = 0.50
			no_disembark_penalty
			domain_tax_mult = -0.2
		}
	}
	
	
	### RIGHTEOUS FURY ###
	
	tenet_righteous_fury = {
		icon = tenet_righteous_fury

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

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

		can_pick = {
			custom_description = {
				text = incompatible_tenet_pacifism_trigger
				NOT = { doctrine:tenet_pacifism = { is_in_list = selected_doctrines } }
			}
		}

		character_modifier = {
			prowess_per_piety_level = 1
			maa_damage_mult = 0.1
		}
		
		parameters = {
			successful_sieges_give_piety
			human_sacrifice_active
		}
		
		traits = {
			virtues = {
				wrathful = { weight = 10 scale = 1 }
			}
		}
	}
	
	
	### PEACEKEEPING ###
	
	tenet_peacekeeping = {
		icon = tenet_peacekeeping
		
		piety_cost = {
			value = faith_tenet_cost_low
			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_peacekeeping }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			holy_wars_forbidden
			pacifist_opinion_active
			opinion_of_pacifist_opinion_active = 20
			#piety_from_long_peace = 1
			mendicant_preachers_conversion_active
			unlock_voluntary_laampdom_faith
		}

		traits = {
			virtues = {
				calm = { weight = 10 scale = 1 }
			}
			sins = {
				wrathful = { weight = 20 scale = 2 }
			}
		}
		
		character_modifier = {
			domain_limit = 1
			ai_war_chance = -0.25
			ai_war_cooldown = 5
		}
	}
	
	### LET THE POPPIES GROW ### - retool into a cheaper funeral tenet?
	
	tenet_let_the_poppies_grow = {
		icon = tenet_let_the_poppies_grow

		piety_cost = {
			value = faith_tenet_cost_low
			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_let_the_poppies_grow }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			believes_in_harmony_with_nature_invisible
			cremation_funeral
			less_plague_spread_culture
		}

		character_modifier = {
			health = 0.1
			build_gold_cost = 0.15
			county_opinion_add = 15
		}
	}
	
	
	### DRUIDRY ###
	
	tenet_druidry = {
		icon = tenet_sanctity_of_nature

		piety_cost = {
			if = {
				limit = {
					rite.religion = druidic_religion

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

				}
				value = faith_tenet_cost_mid
			}

			# Multiplier for keeping same tenet
			if = {
				limit = { rite_has_tenet = tenet_druidry }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
		can_pick = {
			custom_description = {
				text = incompatible_tenet_sanctity_of_nature_trigger
				NOT = { tenet:tenet_sanctity_of_nature = { is_in_list = selected_doctrines } }
				rite_religion_tag = druidic_religion
			}
		}
		parameters = {
			believes_in_harmony_with_nature_invisible
		}
		
		traits = {
			virtues = { 
				lifestyle_mystic = { 
					scale = 3
					weight = 2 
				} 
			}
		}

		character_modifier = {
			forest_advantage = 5
			forest_development_growth_factor = 0.15
			forest_levy_size = 0.25
			wetlands_advantage = 5
			wetlands_development_growth_factor = 0.15
			wetlands_levy_size = 0.25
			hills_advantage = 5
			hills_development_growth_factor = 0.15
			hills_levy_size = 0.25			
			holding_build_gold_cost = 0.25
			holding_build_speed = 0.25
			county_opinion_add = 5
		}
	}
	
	
	### PEOPLE OF THE BOOK ### - could be turned into a tenet that makes you like all abrahamics more
	
#	tenet_people_of_the_book = {
#		icon = tenet_legalism
#		
#		piety_cost = {
#			value = faith_tenet_cost_low
#			# Multiplier for keeping same tenet
#			if = {
#				limit = { rite_has_tenet = tenet_people_of_the_book }
#				multiply = faith_unchanged_doctrine_cost_mult
#			}
#		}
#
#		parameters = {
#			pilgrimage_decision_active
#			take_vows_active
#		}
#	}
	
	tenet_one_king_to_rule_them_all = {
		icon = tenet_one_king_to_rule_them_all
		is_shown = {
			religion = religion:europeanist_religion
		}
		can_pick = {
			religion = religion:europeanist_religion
		}
		piety_cost = {
			value = faith_tenet_cost_low
			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = one_king_to_rule_them_all }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

		parameters = {
			legalism_reduced_faction_virtues
			legalism_increased_faction_sins
			tenet_legalism_sinful_revocation
			clergy_can_fight
		}
		traits = {
			virtues = { 
				loyal = { weight = 15 scale = 1 }
				just = { weight = 15 scale = 1 }
			}
			sins = { 
				disloyal = { weight = 25 scale = 1 }
				arbitrary = { weight = 15 scale = 1 }
			}
		}
	}
	
	### CHIVALRIC IDEALS ###
	
	tenet_chivalric_ideals = {
		icon = tenet_chivalric_ideals
		
		is_shown = {
			religion = religion:europeanist_religion
		}
		can_pick = {
			religion = religion:europeanist_religion
		}
		name = {
			first_valid = {
				triggered_desc = {
					trigger = {
						rite_has_doctrine = special_doctrine_simurghi
					}
					desc = tenet_chivalric_ideals_simurghi_name
				}
				desc = tenet_chivalric_ideals_name
			}
		}

		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						rite_has_doctrine = special_doctrine_simurghi
					}
					desc = tenet_chivalric_ideals_simurghi_desc
				}
				desc = tenet_chivalric_ideals_desc
			}
		}
		piety_cost = {
			value = faith_tenet_cost_low

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

		
		character_modifier = {
			fertility = 0.1
		}

		parameters = {
			neow_better_spouses
			sanctify_artifacts_weapons
			clergy_can_fight
		}
		
		personal_tenet_modifier = {
			spouse_opinion = 25
			county_opinion_add = 10
			knight_limit = 1
			monthly_piety_gain_per_knight_mult = 0.01
		}
		
		personal_tenet_parameters = {
			unlock_voluntary_laampdom_faith
			clergy_can_fight_personal
		}
		
		traits = {
			virtues = {
				ambitious = { weight = 5 scale = 1 }
				adventurer = { weight = 15 scale = 2 }
				gallant = { weight = 25 scale = 3 }
			}
			sins = {
				callous = { weight = 5 scale = 1 }
				sadistic = { weight = 15 scale = 2 }
				gallowsbait = { weight = 25 scale = 3 }
			}
		}
	}



	###ABSURDIST###
	
#	tenet_letranger = {
#		icon = core_tenet_inner_journey
#		is_shown = {
#			religion = europeanist_religion
#		}
#		piety_cost = {
#			value = faith_tenet_cost_low
#			# Multiplier for keeping same tenet
#			if = {
#				limit = { has_doctrine = tenet_letranger }
#				multiply = faith_unchanged_doctrine_cost_mult
#			}
#		}
#
#		parameters = {
#			literalist_debate_enabled
#			meditation_mechanics_active
#		}
#
#		character_modifier = {
#			learning_per_stress_level = 2
#			ignore_opinion_of_different_faith
#		}
#
#		traits = {
#			virtues = { eccentric }
#		}
#	}
#
#	tenet_the_search_for_a_meaning = {
#		icon = core_tenet_mendicant_preachers
#		is_shown = {
#			religion = europeanist_religion
#		}
#		
#		piety_cost = {
#			value = faith_tenet_cost_low
#			# Multiplier for keeping same tenet
#			if = {
#				limit = { has_doctrine = tenet_the_search_for_a_meaning }
#				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 = {
#			reduced_stress_from_torture
#			no_unfaithfulness_penalty_active
#			unlock_voluntary_laampdom_faith
#		}
#
#		character_modifier = {
#			monthly_learning_lifestyle_xp_gain_mult = 0.2
#			tyranny_gain_mult = 0.50
#		}
#	}

	###### GENERIC #####
	
	tenet_sacred_poetry = {
		icon = tenet_sacred_poetry

		is_shown = {
			religion = religion:europeanist_religion
		}
		can_pick = {
			religion = religion:europeanist_religion
		}
		piety_cost = {
			value = faith_tenet_cost_low
			# Multiplier for keeping same tenet
			if = {
				limit = { rite_has_tenet = tenet_sacred_poetry  }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
		
		name = {
			first_valid = {
				triggered_desc = {
					trigger = {
						rite.religion = europeanist_religion
					}
					desc = tenet_sacred_poetry_europeanist_name
				}
#				triggered_desc = {
#					trigger = {
#						this = faith:nepmese_faith
#					}
#					desc = tenet_sacred_poetry_hungarian_name
#				}
				desc = tenet_sacred_poetry_name
			}
		}

		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						rite.religion = europeanist_religion
					}
					desc = tenet_sacred_poetry_europeanist_desc
				}
#				triggered_desc = {
#					trigger = {
#						this = faith:nepmese
#					}
#					desc = tenet_sacred_poetry_hungarian_desc
#				}
				desc = tenet_sacred_poetry_desc
			}
		}

		can_pick = {
			custom_description = {
				text = doctrine_pluralism_fundamentalist_trigger
				NOT = { doctrine:doctrine_pluralism_fundamentalist = { is_in_list = selected_doctrines } }
			}
		}
		parameters = {
			mendicant_preachers_conversion_active
			unlock_voluntary_laampdom_faith
		}
		character_modifier = {
			tyranny_gain_mult = -0.1
			dread_decay_mult = 0.15
		}

		personal_tenet_parameters = {
			tenet_ritual_hospitality_invite_to_court_acceptance
			tenet_ritual_hospitality_free_guest_recruitment
			tenet_ritual_hospitality_feast_toast_friendship
		}
		county_modifier = {
			monthly_county_control_growth_factor = 0.05
		}
		traits = {
			virtues = { 
				lifestyle_poet = { 
					scale = 2
					weight = 1 
				} 
			}
		}
	}
	
	
	### DIVINE PROGRESS ###
	
	tenet_divine_progress = {
		icon = tenet_divine_progress

		is_shown = {
			religion = religion:europeanist_religion
		}
		can_pick = {
			religion = religion:europeanist_religion
		}
		piety_cost = {
			value = faith_tenet_cost_low
			# Multiplier for keeping same tenet
			if = {
				limit = { rite_has_tenet = tenet_divine_progress  }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
		
		name = {
			first_valid = {
				triggered_desc = {
					trigger = {
						rite.religion = judaism_religion
					}
					desc = tenet_divine_progress_jewish_name
				}
				desc = tenet_divine_progress_name
			}
		}

		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						rite.religion = judaism_religion
					}
					desc = tenet_divine_progress_jewish_desc
				}
				desc = tenet_divine_progress_desc
			}
		}


		character_modifier = {
			monthly_learning_lifestyle_xp_gain_mult = 0.1
			learning_per_stress_level = 2
		}
		parameters = {
			divine_the_stars_active
			scholasticism_is_holy
			sanctify_artifacts_celestial
			sanctify_artifacts_weapons
			sanctify_artifacts_luxurious
		}
		personal_tenet_parameters = {
			divine_the_stars_active
		}

		traits = {
			virtues = { ambitious = { weight = 15 scale = 1 } erudite = { weight = 15 scale = 1 } eccentric = { weight = 15 scale = 1 } }
			sins = { content = { weight = 15 scale = 1 } }
		}
		parameters = {
			neow_innovation_from_learning_traits
		}
	}

	##### CALVINIST ######

	tenet_five_points = {
		icon = tenet_five_points
		can_pick = {
			custom_description = {
				text = incompatible_doctrine_mummification_trigger
				NOT = { doctrine:doctrine_funeral_mummification = { is_in_list = selected_doctrines } }
			}
		}
		piety_cost = {
			if = {
				limit = {
					religion = protestant_religion
				}
				value = faith_tenet_cost_low
			}
			else = {
				value = faith_tenet_cost_massive
			}
			# Multiplier for keeping same tenet
			if = {
				limit = { has_doctrine = tenet_five_points }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
		parameters = {
			reforging_artifacts_costs_piety
			destroying_artifacts_is_pious
			literalist_debate_enabled
		}
		
		personal_tenet_parameters = {
			tenet_scholasticism_scholar_trait
		}
		traits = {
			virtues = {
				erudite = { weight = 20 scale = 1 }
			}
		}
	}
	
	
	### THEOMONARCHY ###

	tenet_theomonarchy = {
		icon = tenet_legal_pronouncements
		
		piety_cost = {
			if = {
				limit = {
					rite.religion = protestant_religion
				}
				value = faith_tenet_cost_low
			}
			else = {
				value = faith_tenet_cost_massive
			}

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

		parameters = {
			temporal_condemnation_enabled
			religious_legal_pronouncements_law_cost_reduction
			tenet_communion_denied_sacrament
			has_access_to_theomonarchy_succession
		}
		
		personal_tenet_modifier = {
			monthly_stewardship_lifestyle_xp_gain_mult = 0.1
			tyranny_gain_mult = -0.2
		}

		traits = {
			sins = {
				excommunicated = { weight = 35 scale = 3 }
			}
		}
	}

tenet_sacramental_herbs = {
	icon = tenet_weed
	piety_cost = {
		value = faith_tenet_cost_mid
		if = {
			limit = { rite_has_tenet = tenet_sacramental_herbs }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}
	traits = {
		virtues = { hashishiyah = { weight = 20 scale = 1 } }
	}
	character_modifier = {
		stress_loss_mult = 0.3
	}
	parameters = {
		tenet_sacramental_herbs_active
		tenet_esotericism_mystic_education
		tenet_esotericism_eccentric_education
		tenet_esotericism_eccentric_bonuses
	}
	personal_tenet_parameters = {
		tenet_esotericism_seek_spiritual_mysteries
	}
}

tenet_the_search_for_a_meaning = {
	icon = tenet_mendicant_preachers
	is_shown = {
		religion = religion:europeanist_religion
	}
	can_pick = {
		religion = religion:europeanist_religion
	}
	piety_cost = {
		value = faith_tenet_cost_low
		if = {
			limit = { rite_has_tenet = tenet_militant_vows }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}
	parameters = {
		reduced_stress_from_torture
		no_unfaithfulness_penalty_active
		unlock_voluntary_laampdom_faith
		torturing_prisoners_grants_piety
	}

	divergence_multiplier = 3

	personal_tenet_parameters = {
		tenet_exaltation_of_pain_flagellant_trait
		self_mutilation_active
		tenet_exaltation_of_pain_wounded_spiritual_fulfillment
		reduced_stress_from_torture
		consolamentum_grief_immunity
	}
	personal_tenet_modifier = {
		monthly_learning_lifestyle_xp_gain_mult = 0.2
		tyranny_gain_mult = 0.50
		stress_gain_mult = -0.15
	}
	character_modifier = {
		monthly_learning_lifestyle_xp_gain_mult = 0.1
	}
}
tenet_militant_vows = {
	icon = tenet_warrior_monks
	piety_cost = {
		value = faith_tenet_cost_low
		if = {
			limit = { rite_has_tenet = tenet_militant_vows }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}
	parameters = {
		clergy_can_fight
		NEOW_can_build_citadels
		great_holy_wars_active_if_reformed
	}
	personal_tenet_parameters = {
		clergy_can_fight_personal
	}
	traits = {
		virtues = { temperate = { weight = 20 scale = 1 } zealous = { weight = 10 scale = 1 } }
		sins = { gluttonous = { weight = 20 scale = 1 } }
	}
	character_modifier = { 
		holy_order_hire_cost_mult = -0.25 
		prowess_per_piety_level = 1
	}
}

tenet_custodianship = {
	icon = tenet_custodianship

	# Liturgical-language names and glossaries follow the PAM Christian-tenet pattern.
	name = {
		first_valid = {
			triggered_desc = {
				trigger = { pam_latin_as_liturgical_language_trigger = yes }
				desc = tenet_custodianship_latin_name
			}
			triggered_desc = {
				trigger = { pam_greek_as_liturgical_language_trigger = yes }
				desc = tenet_custodianship_greek_name
			}
			desc = tenet_custodianship_default_name
		}
	}

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { pam_latin_as_liturgical_language_trigger = yes }
				desc = tenet_custodianship_latin_desc
			}
			triggered_desc = {
				trigger = { pam_greek_as_liturgical_language_trigger = yes }
				desc = tenet_custodianship_greek_desc
			}
			desc = tenet_custodianship_default_desc
		}
	}

	historical_glossary = {
		first_valid = {
			triggered_desc = {
				trigger = { pam_latin_as_liturgical_language_trigger = yes }
				desc = tenet_custodianship_latin_historical_glossary
			}
			triggered_desc = {
				trigger = { pam_greek_as_liturgical_language_trigger = yes }
				desc = tenet_custodianship_greek_historical_glossary
			}
			desc = tenet_custodianship_default_historical_glossary
		}
	}

	piety_cost = {
		if = {
			limit = {
				rite.religion = 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_custodianship }
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	is_shown = {
		OR = {
		religion = religion:protestant_religion
		religion = religion:catholic_religion
		religion = religion:eastern_orthodox_religion
		religion = religion:oriental_orthodox_religion
		}
	}

	can_pick = {
		OR = {
		religion = religion:protestant_religion
		religion = religion:catholic_religion
		religion = religion:eastern_orthodox_religion
		religion = religion:oriental_orthodox_religion
		}
		NOT = { doctrine:doctrine_funeral_mummification = { is_in_list = selected_doctrines } }
		custom_description = {
			text = incompatible_tenet_sanctity_of_nature_trigger
			NOT = { tenet:tenet_sanctity_of_nature = { is_in_list = selected_doctrines } }
		}
	}

	parameters = {
		believes_in_harmony_with_nature_invisible
		healthier_children_active
		tenet_sanctity_of_nature_preserve_wilderness
		can_build_edenic_garden
	}

	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
		wetlands_advantage = 5
		wetlands_levy_size = 0.2
	}
	
	county_modifier = {
		county_opinion_add = 5
	}

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