﻿##########################
# Ibadi Faith Tenets #
##########################

tenet_kitman = {
	icon = core_tenet_kitman

	name = tenet_kitman_name
	desc = tenet_kitman_desc

	is_shown = {
		religion_tag = islam_religion
	}

	can_pick = {
		custom_description = {
			text = tenet_kitman_muhakkima_trigger
			doctrine:muhammad_succession_muhakkima_doctrine = {
				is_in_list = selected_doctrines
			}
		}
		custom_description = {
			text = doctrine_no_head_of_faith_trigger
			doctrine:doctrine_no_head = {
				is_in_list = selected_doctrines
			}
		}
		custom_description = {
			text = incompatible_tenet_false_conversion_sanction_trigger
			NOT = {
				doctrine:tenet_false_conversion_sanction = {
					is_in_list = selected_doctrines
				}
			}
		}
	}

	piety_cost = {
		value = faith_tenet_cost_mid

		if = {
			limit = {
				has_doctrine = tenet_kitman
			}
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	parameters = {
		tenet_adaptive_conversion_resistance = yes
	}

	character_modifier = {
		monthly_learning_lifestyle_xp_gain_mult = 0.1
		different_faith_liege_opinion = 10
		opinion_of_different_faith_liege = 10
	}
}
###############
# Pentecostal #
###############
tenet_gifts_of_the_spirit = {
	icon = core_tenet_esotericism

	name = tenet_gifts_of_the_spirit_name
	desc = tenet_gifts_of_the_spirit_desc

	is_shown = {
		OR = {
			religion_tag = christianity_religion
			has_doctrine = tenet_gifts_of_the_spirit
		}
	}

	piety_cost = {
		value = faith_tenet_cost_low

		if = {
			limit = {
				has_doctrine = tenet_gifts_of_the_spirit
			}
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	parameters = {
		tenet_esotericism_mystic_education = yes
	}

	traits = {
		virtues = {
			zealous
			lifestyle_mystic = {
				weight = 1
			}
		}
		sins = {
			cynical
		}
	}

	character_modifier = {
		monthly_piety_gain_mult = 0.1
		stress_loss_mult = 0.1
	}
}
#####################
# Evangelicalism    #
#####################
tenet_born_again = {
	icon = core_tenet_consolamentum

	name = tenet_born_again_name
	desc = tenet_born_again_desc

	is_shown = {
		OR = {
			religion_tag = christianity_religion
			has_doctrine = tenet_born_again
		}
	}

	piety_cost = {
		value = faith_tenet_cost_low

		if = {
			limit = {
				has_doctrine = tenet_born_again
			}
			multiply = faith_unchanged_doctrine_cost_mult
		}
	}

	traits = {
		virtues = {
			zealous = 2
		}
		sins = {
			cynical = 2
		}
	}

	character_modifier = {
		monthly_piety_gain_mult = 0.05
		stress_loss_mult = 0.10
	}
}

##########################
# Base game changes #
##########################

tenet_adorcism = {
	icon = core_tenet_adorcism

	piety_cost = {
		value = faith_tenet_cost_low

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

	is_shown = {
		OR = {
			religion_tag = west_african_bori_religion
			religion_tag = akom_religion
			religion_tag = muism_religion
			religion_tag = dab_qhuas_religion
			religion_tag = shamanism_religion
			religion_tag = vietnamese_folk_religion
			has_doctrine = tenet_adorcism #If you already have it
		}
	}
	name = {
		first_valid = {
			triggered_desc = {
				trigger = {
					religion_tag = vietnamese_folk_religion
				}
				desc = tenet_hau_dong_name
			}
			desc = tenet_adorcism_name
		}
	}

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					religion_tag = vietnamese_folk_religion
				}
				desc = tenet_hau_dong_desc
			}
			desc = tenet_adorcism_desc
		}
	}

	parameters = {
		spirit_possession_active = yes
	}

	traits = {
		virtues = { possessed_1 = 2 possessed_genetic = 2 }
	}
}