﻿### NUDITY DOCTRINES
doctrine_mz_no_nudity = {
	piety_cost = {
		value = 0
		if = {
			limit = { has_doctrine = doctrine_mz_no_nudity }
			value = 0
		}
		else_if = {
			limit = { has_doctrine = special_doctrine_naked_priests }
			value = 100
		}
		else_if = {
			limit = { has_doctrine = doctrine_mz_full_nudity }
			value = 200
		}
	}
	parameters = {
		mz_no_nudity_active = yes # Has no effect but generates a tooltip
	}
}

special_doctrine_naked_priests = {
	piety_cost = {
		value = 0
		if = {
			limit = { has_doctrine = special_doctrine_naked_priests }
			value = 0
		}
		else_if = {
			limit = { has_doctrine = doctrine_mz_full_nudity }
			value = 100
		}
		else_if = {
			limit = { has_doctrine = doctrine_mz_no_nudity }
			value = 100
		}
	}
	parameters = {
		naked_priests_active = yes
	}
}

doctrine_mz_full_nudity = {
	piety_cost = {
		value = 0
		if = {
			limit = { has_doctrine = doctrine_mz_full_nudity }
			value = 0
		}
		else_if = {
			limit = { has_doctrine = special_doctrine_naked_priests }
			value = 100
		}
		else_if = {
			limit = { has_doctrine = doctrine_mz_no_nudity }
			value = 200
		}
	}
	parameters = {
		naked_adherents_active = yes
	}
}

### CONSANGUINITY
doctrine_consanguinity_dynastic = {
	piety_cost = {
		value = faith_doctrine_cost_high
		if = {
			limit = { has_doctrine = doctrine_consanguinity_restricted }
			multiply = faith_unchanged_doctrine_cost_mult
		}
		else_if = {
			limit = { has_doctrine = doctrine_consanguinity_aunt_nephew_and_uncle_niece }
			multiply = faith_changed_doctrine_cost_mult_two_step
		}
		else_if = {
			limit = { has_doctrine = doctrine_consanguinity_unrestricted }
			multiply = faith_changed_doctrine_cost_mult_three_step
		}
		else_if = {
			limit = { has_doctrine = tenet_divine_marriage }
			multiply = faith_changed_doctrine_cost_mult_four_step
		}
	}
	parameters = {
		consanguinity_restricted_dynastic_marriage = yes
		consanguinity_restricted_marriage = yes
		consanguinity_restricted_close_kin_incest = yes
	}
}

doctrine_consanguinity_restricted = {
	piety_cost = {
		value = faith_doctrine_cost_high
		if = {
			limit = { has_doctrine = doctrine_consanguinity_restricted }
			multiply = faith_unchanged_doctrine_cost_mult
		}
		else_if = {
			limit = { has_doctrine = doctrine_consanguinity_aunt_nephew_and_uncle_niece }
			multiply = faith_changed_doctrine_cost_mult_two_step
		}
		else_if = {
			limit = { has_doctrine = doctrine_consanguinity_unrestricted }
			multiply = faith_changed_doctrine_cost_mult_three_step
		}
		else_if = {
			limit = { has_doctrine = tenet_divine_marriage }
			multiply = faith_changed_doctrine_cost_mult_four_step
		}			
	}
	parameters = {
		consanguinity_restricted_marriage = yes
		consanguinity_restricted_close_kin_incest = yes
	}
}

doctrine_consanguinity_cousins = {
	piety_cost = {
		value = faith_doctrine_cost_high
		if = {
			limit = { has_doctrine = doctrine_consanguinity_cousins }
			multiply = faith_unchanged_doctrine_cost_mult
		}
		else_if = {
			limit = { has_doctrine = doctrine_consanguinity_unrestricted }
			multiply = faith_changed_doctrine_cost_mult_two_step
		}
		else_if = {
			limit = { has_doctrine = tenet_divine_marriage }
			multiply = faith_changed_doctrine_cost_mult_three_step
		}			
	}
	parameters = {
		consanguinity_cousins_marriage = yes
		consanguinity_cousins_incest = yes
		allows_cousin_marriage = yes
	}
}

doctrine_consanguinity_aunt_nephew_and_uncle_niece = {
	piety_cost = {
		value = faith_doctrine_cost_high
		if = {
			limit = { has_doctrine = doctrine_consanguinity_aunt_nephew_and_uncle_niece }
			multiply = faith_unchanged_doctrine_cost_mult
		}
		else_if = {
			limit = { has_doctrine = doctrine_consanguinity_restricted }
			multiply = faith_changed_doctrine_cost_mult_two_step
		}
		else_if = {
			limit = { has_doctrine = tenet_divine_marriage }
			multiply = faith_changed_doctrine_cost_mult_two_step
		}			
	}
	parameters = {
		consanguinity_aunt_nephew_and_uncle_niece_marriage = yes
		consanguinity_aunt_nephew_and_uncle_niece_incest = yes
		allows_cousin_marriage = yes
		allows_aunt_nephew_and_uncle_niece_marriage = yes
	}
}

### RELATIONSHIPS
doctrine_mz_monogamy = {
	piety_cost = {
		value = 0
		if = {
			limit = { has_doctrine = doctrine_mz_monogamy }
			value = 0
		}
		else_if = {
			limit = { has_doctrine = tenet_polyamory }
			value = faith_tenet_cost_high
		}
	}
	character_modifier = {
		spouse_opinion = 10
	}
}