﻿
	###### 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 = yes
			piety_from_feasts_active = yes
			mandatory_feast_attendance = yes
			allows_brewery = yes
		}

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

			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 same tenet
			if = {
				limit = { rite_has_tenet = tenet_symphonia }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}
			
		name = {
			first_valid = {
				triggered_desc = {
					trigger = {
						rite_religion_tag = octobrist_religion 
					}
					desc = tenet_symphonia_name
				}
				desc = tenet_symphonia_name
			}
		}

		can_pick = {
			always = yes
		}

		character_modifier = {
			tyranny_gain_mult = 0.50
			monthly_county_control_growth_factor = 0.20
		}

		parameters = {
			temporal_condemnation_enabled = yes
			legalism_reduced_faction_virtues = yes
			legalism_increased_faction_sins = yes
			excommunication_active = yes
		}

		traits = {
			virtues = {
				just = { weight = 20 scale = 2 }
			}
			sins = {
				arbitrary = { weight = 20 scale = 2 }
			}
		}
	}


	### ICONODULISM ###
	
#	tenet_iconodulism = { # Dulia is a bga tenet, retool later
#		icon = tenet_iconodulism
#
#	piety_cost = {
#		if = {
#			limit = {
#				OR = {
#					rite_religion_tag = eastern_orthodox_religion
#					rite_religion_tag = oriental_orthodox_religion
#					rite_religion_tag = catholic_religion
#				}
#			}
#			value = faith_tenet_cost_low
#		}
#		else_if = {
#			limit = {
#				OR = {
#					rite_religion_tag = protestant_religion
#					rite_religion_tag = judaism_religion
#					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_iconodulism
#			}
#			multiply = faith_unchanged_doctrine_cost_mult
#		}
#	}
#
#	name = {
#		first_valid = {
#			triggered_desc = {
#				trigger = {
#					OR = {
#						rite_religion_tag = eastern_orthodox_religion
#						rite_religion_tag = oriental_orthodox_religion
#					}
#				}
#				desc = tenet_iconodulism_orthodox_name
#			}
#			desc = tenet_iconodulism_name
#		}
#	}
#
#	desc = {
#		first_valid = {
#			triggered_desc = {
#				trigger = {
#					OR = {
#						rite_religion_tag = eastern_orthodox_religion
#						rite_religion_tag = 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 = yes
#		neow_piety_from_temple_construction = yes
#		building_temples_gives_development = yes
#		more_fervor_on_church_construction = yes
#		}
#	}
	
	
	### 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 = yes
		}

		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_tag = american_religion
			#		}
			#		desc = tenet_rule_the_waves_american_name
			#	}
				desc = tenet_rule_the_waves_name
			}
		}

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

		parameters = {
			warmonger
			conquest_cb_enabled
			invasion_cb_enabled
			great_holy_wars_active_if_reformed
			clergy_can_fight
			sanctify_artifacts_weapons
			can_travel_along_rivers = yes			
		}
		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 = yes
			piety_for_forced_conversions_active = yes
			unlock_varangian_adventurer_cb = yes
			
			unlock_voluntary_laampdom_faith = yes
		}
		character_modifier = {
			raid_speed = 0.50
			no_disembark_penalty = yes
			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 = yes
			human_sacrifice_active = yes
		}
		
		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 = core_tenet_peacekeeping }
				multiply = faith_unchanged_doctrine_cost_mult
			}
		}

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

		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 = yes
			cremation_funeral = yes
			less_plague_spread_culture = yes
		}

		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_tag = 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 = yes
		}
		
		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 = yes
#			take_vows_active = yes
#		}
#	}
	
	
	### CHIVALRIC IDEALS ###
	
	tenet_chivalric_ideals = {
		icon = tenet_chivalric_ideals
		
		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
			}
		}

		can_pick = {
			always = yes
		}	
		
		character_modifier = {
			fertility = 0.1
		}

		parameters = {
			neow_better_spouses = yes
		}
		
		personal_tenet_modifier = {
			spouse_opinion = 25
			county_opinion_add = 10
		}
		
		personal_tenet_parameters = {
			unlock_voluntary_laampdom_faith = yes
		}
		
		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_tag = novelist_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 = yes
#			meditation_mechanics_active = yes
#		}
#
#		character_modifier = {
#			learning_per_stress_level = 2
#			ignore_opinion_of_different_faith = yes
#		}
#
#		traits = {
#			virtues = { eccentric }
#		}
#	}
#
#	tenet_the_search_for_a_meaning = {
#		icon = core_tenet_mendicant_preachers
#		is_shown = {
#			religion_tag = novelist_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 = yes
#			no_unfaithfulness_penalty_active = yes
#			unlock_voluntary_laampdom_faith = yes
#		}
#
#		character_modifier = {
#			monthly_learning_lifestyle_xp_gain_mult = 0.2
#			tyranny_gain_mult = 0.50
#		}
#	}

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

		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_tag = 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_tag = 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 = yes
			unlock_voluntary_laampdom_faith = yes
		}
		traits = {
			virtues = { 
				lifestyle_poet = { 
					scale = 2
					weight = 1 
				} 
			}
		}
	}
	
	
	### DIVINE PROGRESS ###
	
	tenet_divine_progress = {
		icon = core_tenet_divine_progress

		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_tag = judaism_religion
					}
					desc = tenet_divine_progress_jewish_name
				}
				desc = tenet_divine_progress_name
			}
		}

		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						rite_religion_tag = judaism_religion
					}
					desc = tenet_divine_progress_jewish_desc
				}
				desc = tenet_divine_progress_desc
			}
		}

		can_pick = {
			always = yes
		}

		character_modifier = {
			monthly_learning_lifestyle_xp_gain_mult = 0.1
		}

		traits = {
			virtues = { ambitious }
			sins = { content }
		}
		parameters = {
			neow_innovation_from_learning_traits = yes
		}
	}

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

	tenet_five_points = {
		icon = core_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_tag = 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 = yes
			destroying_artifacts_is_pious = yes
			literalist_debate_enabled = yes
		}
		
		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_tag = 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 }
			}
		}
	}