﻿# Tracks the way in which Halakha is supposed to be interpreted
temple_authority_rabbinic_doctrine = { # Rabbis argue and interpret the Halakha
	doctrine_group_type = doctrine_temple_authority
	index = 0
	divergence = 50

	icon = "temple_authority_rabbinic_doctrine"

	piety_cost = {
		if = {
			limit = { rite_has_doctrine = temple_authority_rabbinic_doctrine }
			value = 0
		}
		else_if = {
			limit = { rite_has_doctrine = temple_authority_samaritan_torah_doctrine }
			value = faith_tenet_cost_mid
		}
		else = {
			value = faith_tenet_cost_low
		}
	}

	character_modifier = {
		clergy_opinion = 5
		church_holding_build_gold_cost = -0.1
	}

	parameters = {
		temple_authority_rabbinic_doctrine
	}

	special_parameters = {
		hostility_level_override = {
			temple_authority_rabbinic_doctrine = astray
			temple_authority_samaritan_torah_doctrine = evil
		}
	}
}

temple_authority_toric_doctrine = { # Rabbis are meant to interpret the literal meaning of the Torah
	doctrine_group_type = doctrine_temple_authority
	index = 1
	divergence = 50

	icon = "temple_authority_toric_doctrine"

	piety_cost = {
		if = {
			limit = { rite_has_doctrine = temple_authority_toric_doctrine }
			value = 0
		}
		else_if = {
			limit = { rite_has_doctrine = temple_authority_samaritan_torah_doctrine }
			value = faith_tenet_cost_mid
		}
		else = {
			value = faith_tenet_cost_low
		}
	}

	traits = {
		virtues = {
			erudite = { weight = 30 scale = 1 }
		}
	}

	character_modifier = {
		artifact_decay_reduction_mult = -0.1
	}

	parameters = {
		temple_authority_toric_doctrine
	}

	special_parameters = {
		hostility_level_override = {
			temple_authority_toric_doctrine = astray
			temple_authority_samaritan_torah_doctrine = evil
		}
	}
}

temple_authority_kohanim_doctrine = { # Belief that the Halakha is to be interpreted by the Kohen
	doctrine_group_type = doctrine_temple_authority
	index = 2
	divergence = 50

	icon = "temple_authority_kohanim_doctrine"

	piety_cost = {
		if = {
			limit = { rite_has_doctrine = temple_authority_kohanim_doctrine }
			value = 0
		}
		else_if = {
			limit = { rite_has_doctrine = temple_authority_samaritan_torah_doctrine }
			value = faith_tenet_cost_mid
		}
		else = {
			value = faith_tenet_cost_low
		}
	}

	character_modifier = {
		opinion_of_same_culture = 5
	}

	special_parameters = {
		hostility_level_override = {
			temple_authority_kohanim_doctrine = astray
			temple_authority_samaritan_torah_doctrine = evil
		}
	}
}

temple_authority_samaritan_torah_doctrine = { # Belief in the Samaritan Torah
	doctrine_group_type = doctrine_temple_authority
	index = 3
	divergence = 50

	icon = "temple_authority_samaritan_torah_doctrine"

	piety_cost = {
		if = {
			limit = { rite_has_doctrine = temple_authority_samaritan_torah_doctrine }
			value = 0
		}
		else = {
			value = faith_tenet_cost_mid
		}
	}

	special_parameters = {
		hostility_level_override = {
			temple_authority_samaritan_torah_doctrine = righteous
			temple_authority_rabbinic_doctrine = evil
			temple_authority_toric_doctrine = evil
			temple_authority_kohanim_doctrine = evil
		}
	}

	character_modifier = {
		different_faith_opinion = -10
		same_faith_opinion = 10
		domain_tax_same_faith_mult = 0.05
		levy_reinforcement_rate_same_faith = 0.1
	}
}
