﻿
#####################################################################
# EFFECT LIST
#####################################################################
add_doctrine_polygamy = {
	if = { limit = { has_doctrine = doctrine_monogamy } remove_doctrine = doctrine_monogamy }
	if = { limit = { has_doctrine = doctrine_bigamy } remove_doctrine = doctrine_bigamy }
	if = { limit = { has_doctrine = doctrine_trigamy } remove_doctrine = doctrine_trigamy }
	md_set_doctrine_polygamy = yes
}

add_doctrine_concubines = {
	md_set_doctrine_concubines = yes
}

add_doctrine_monogamy = {
	if = { limit = { has_doctrine = doctrine_bigamy } remove_doctrine = doctrine_bigamy }
	if = { limit = { has_doctrine = doctrine_trigamy } remove_doctrine = doctrine_trigamy }
	if = { limit = { has_doctrine = doctrine_polygamy } remove_doctrine = doctrine_polygamy }
	md_set_doctrine_monogamy = yes
}

add_doctrine_ditheistic = {
	if = { limit = { has_doctrine = doctrine_monotheist } remove_doctrine = doctrine_monotheist }
	if = { limit = { has_doctrine = doctrine_henotheistic } remove_doctrine = doctrine_henotheistic }
	if = { limit = { has_doctrine = doctrine_dihenotheistic } remove_doctrine = doctrine_dihenotheistic }
	if = { limit = { has_doctrine = doctrine_tritheistic } remove_doctrine = doctrine_tritheistic }
	if = { limit = { has_doctrine = doctrine_trihenotheistic } remove_doctrine = doctrine_trihenotheistic }
	if = { limit = { has_doctrine = doctrine_polytheist } remove_doctrine = doctrine_polytheist }
	if = { limit = { has_doctrine = doctrine_kathenotheistic } remove_doctrine = doctrine_kathenotheistic }
	if = { limit = { has_doctrine = doctrine_agnostic } remove_doctrine = doctrine_agnostic }
	md_set_doctrine_ditheistic = yes
}

add_doctrine_divorce_disallowed = {
	if = { limit = { has_doctrine = doctrine_divorce_approval } remove_doctrine = doctrine_divorce_approval }
	if = { limit = { has_doctrine = doctrine_divorce_allowed } remove_doctrine = doctrine_divorce_allowed }
	md_set_doctrine_divorce_disallowed = yes
}

add_doctrine_personal = {
	if = { limit = { has_doctrine = doctrine_ethereal } remove_doctrine = doctrine_ethereal }
	if = { limit = { has_doctrine = doctrine_immortal } remove_doctrine = doctrine_immortal }
	if = { limit = { has_doctrine = doctrine_ethereal_immortal } remove_doctrine = doctrine_ethereal_immortal }
	if = { limit = { has_doctrine = doctrine_aeonic } remove_doctrine = doctrine_aeonic }
	if = { limit = { has_doctrine = doctrine_spiritual } remove_doctrine = doctrine_spiritual }
	md_set_doctrine_personal = yes
}

add_doctrine_consanguinity_unrestricted = {
	if = { limit = { has_doctrine = doctrine_consanguinity_restricted } remove_doctrine = doctrine_consanguinity_restricted }
	if = { limit = { has_doctrine = doctrine_consanguinity_cousins } remove_doctrine = doctrine_consanguinity_cousins }
	if = { limit = { has_doctrine = doctrine_consanguinity_aunt_nephew_and_uncle_niece } remove_doctrine = doctrine_consanguinity_aunt_nephew_and_uncle_niece }
	md_set_doctrine_consanguinity_unrestricted = yes
}

add_doctrine_divorce_allowed = {
	if = { limit = { has_doctrine = doctrine_divorce_approval } remove_doctrine = doctrine_divorce_approval }
	if = { limit = { has_doctrine = doctrine_divorce_disallowed } remove_doctrine = doctrine_divorce_disallowed }
	md_set_doctrine_divorce_allowed = yes
}

add_doctrine_bastardry_none = {
	if = { limit = { has_doctrine = doctrine_bastardry_legitimization } remove_doctrine = doctrine_bastardry_legitimization }
	if = { limit = { has_doctrine = doctrine_bastardry_all } remove_doctrine = doctrine_bastardry_all }
	md_set_doctrine_bastardry_none = yes
}

add_doctrine_divorce_approval = {
	if = { limit = { has_doctrine = doctrine_divorce_disallowed } remove_doctrine = doctrine_divorce_disallowed }
	if = { limit = { has_doctrine = doctrine_divorce_allowed } remove_doctrine = doctrine_divorce_allowed }
	md_set_doctrine_divorce_approval = yes
}

add_doctrine_monotheistic = {
	if = { limit = { has_doctrine = doctrine_henotheistic } remove_doctrine = doctrine_henotheistic }
	if = { limit = { has_doctrine = doctrine_dihenotheistic } remove_doctrine = doctrine_dihenotheistic }
	if = { limit = { has_doctrine = doctrine_tritheistic } remove_doctrine = doctrine_tritheistic }
	if = { limit = { has_doctrine = doctrine_trihenotheistic } remove_doctrine = doctrine_trihenotheistic }
	if = { limit = { has_doctrine = doctrine_polytheist } remove_doctrine = doctrine_polytheist }
	if = { limit = { has_doctrine = doctrine_kathenotheistic } remove_doctrine = doctrine_kathenotheistic }
	if = { limit = { has_doctrine = doctrine_agnostic } remove_doctrine = doctrine_agnostic }
	if = { limit = { has_doctrine = doctrine_ditheistic } remove_doctrine = doctrine_ditheistic }
	md_set_doctrine_monotheist = yes
}

clear_modded_doctrines = {
	#if = { limit = { has_doctrine = doctrine_monotheist } remove_doctrine = doctrine_monotheist }
	#if = { limit = { has_doctrine = doctrine_henotheistic } remove_doctrine = doctrine_henotheistic }
	#if = { limit = { has_doctrine = doctrine_ditheistic } remove_doctrine = doctrine_ditheistic }
	# if = { limit = { has_doctrine = doctrine_dihenotheistic } remove_doctrine = doctrine_dihenotheistic }
	# if = { limit = { has_doctrine = doctrine_tritheistic } remove_doctrine = doctrine_tritheistic }
	# if = { limit = { has_doctrine = doctrine_trihenotheistic } remove_doctrine = doctrine_trihenotheistic }
	# if = { limit = { has_doctrine = doctrine_polytheist } remove_doctrine = doctrine_polytheist }
	# if = { limit = { has_doctrine = doctrine_kathenotheistic } remove_doctrine = doctrine_kathenotheistic }
	#if = { limit = { has_doctrine = doctrine_syncretic_mythology } remove_doctrine = doctrine_syncretic_mythology }
	#if = { limit = { has_doctrine = doctrine_transtheistic } remove_doctrine = doctrine_transtheistic }
	#if = { limit = { has_doctrine = doctrine_agnostic } remove_doctrine = doctrine_agnostic }
	#if = { limit = { has_doctrine = doctrine_atheistic } remove_doctrine = doctrine_atheistic }
	if = { limit = { has_doctrine = doctrine_ethereal } remove_doctrine = doctrine_ethereal }
	if = { limit = { has_doctrine = doctrine_immortal } remove_doctrine = doctrine_immortal }
	if = { limit = { has_doctrine = doctrine_ethereal_immortal } remove_doctrine = doctrine_ethereal_immortal }
	if = { limit = { has_doctrine = doctrine_aeonic } remove_doctrine = doctrine_aeonic }
	if = { limit = { has_doctrine = doctrine_spiritual } remove_doctrine = doctrine_spiritual }
	if = { limit = { has_doctrine = doctrine_personal } remove_doctrine = doctrine_personal }
	if = { limit = { has_doctrine = doctrine_theistic_creation } remove_doctrine = doctrine_theistic_creation }
	if = { limit = { has_doctrine = doctrine_eternal } remove_doctrine = doctrine_eternal }
	if = { limit = { has_doctrine = doctrine_cyclic } remove_doctrine = doctrine_cyclic }
	if = { limit = { has_doctrine = doctrine_dualistic } remove_doctrine = doctrine_dualistic }
	if = { limit = { has_doctrine = doctrine_chaos_into_world } remove_doctrine = doctrine_chaos_into_world }
	if = { limit = { has_doctrine = doctrine_demigods } remove_doctrine = doctrine_demigods }
	if = { limit = { has_doctrine = doctrine_archangels } remove_doctrine = doctrine_archangels }
	if = { limit = { has_doctrine = doctrine_aspects } remove_doctrine = doctrine_aspects }
	if = { limit = { has_doctrine = doctrine_spirits } remove_doctrine = doctrine_spirits }
	if = { limit = { has_doctrine = doctrine_deities_none } remove_doctrine = doctrine_deities_none }
	if = { limit = { has_doctrine = doctrine_prophets } remove_doctrine = doctrine_prophets }
	if = { limit = { has_doctrine = doctrine_anointed_deliverer } remove_doctrine = doctrine_anointed_deliverer }
	if = { limit = { has_doctrine = doctrine_gurus } remove_doctrine = doctrine_gurus }
	if = { limit = { has_doctrine = doctrine_avatars } remove_doctrine = doctrine_avatars }
	if = { limit = { has_doctrine = doctrine_enlightened_monks } remove_doctrine = doctrine_enlightened_monks }
	if = { limit = { has_doctrine = doctrine_divine_guidance_none } remove_doctrine = doctrine_divine_guidance_none }
	if = { limit = { has_doctrine = doctrine_apocalypse } remove_doctrine = doctrine_apocalypse }
	if = { limit = { has_doctrine = doctrine_judgement_day } remove_doctrine = doctrine_judgement_day }
	if = { limit = { has_doctrine = doctrine_promised_deliverer } remove_doctrine = doctrine_promised_deliverer }
	if = { limit = { has_doctrine = doctrine_eschatology_none } remove_doctrine = doctrine_eschatology_none }
	if = { limit = { has_doctrine = doctrine_paradise } remove_doctrine = doctrine_paradise }
	if = { limit = { has_doctrine = doctrine_underworld } remove_doctrine = doctrine_underworld }
	if = { limit = { has_doctrine = doctrine_paradise_and_underworld } remove_doctrine = doctrine_paradise_and_underworld }
	if = { limit = { has_doctrine = doctrine_eternal_feast } remove_doctrine = doctrine_eternal_feast }
	if = { limit = { has_doctrine = doctrine_paramount } remove_doctrine = doctrine_paramount }
	if = { limit = { has_doctrine = doctrine_obligatory } remove_doctrine = doctrine_obligatory }
	if = { limit = { has_doctrine = doctrine_recommended } remove_doctrine = doctrine_recommended }
	if = { limit = { has_doctrine = doctrine_autonomous } remove_doctrine = doctrine_autonomous }
	if = { limit = { has_doctrine = doctrine_mandatory_atone } remove_doctrine = doctrine_mandatory_atone }
	if = { limit = { has_doctrine = doctrine_encouraged_atone } remove_doctrine = doctrine_encouraged_atone }
	if = { limit = { has_doctrine = doctrine_atonement_none } remove_doctrine = doctrine_atonement_none }
	if = { limit = { has_doctrine = doctrine_mandatory_alms } remove_doctrine = doctrine_mandatory_alms }
	if = { limit = { has_doctrine = doctrine_encouraged_alms } remove_doctrine = doctrine_encouraged_alms }
	if = { limit = { has_doctrine = doctrine_almsgiving_none } remove_doctrine = doctrine_almsgiving_none }
	if = { limit = { has_doctrine = doctrine_monogamy } remove_doctrine = doctrine_monogamy }
	if = { limit = { has_doctrine = doctrine_bigamy } remove_doctrine = doctrine_bigamy }
	if = { limit = { has_doctrine = doctrine_trigamy } remove_doctrine = doctrine_trigamy }
	if = { limit = { has_doctrine = doctrine_polygamy } remove_doctrine = doctrine_polygamy }
	if = { limit = { has_doctrine = doctrine_concubines } remove_doctrine = doctrine_concubines }
	if = { limit = { has_doctrine = doctrine_divorce_disallowed } remove_doctrine = doctrine_divorce_disallowed }
	if = { limit = { has_doctrine = doctrine_divorce_approval } remove_doctrine = doctrine_divorce_approval }
	if = { limit = { has_doctrine = doctrine_divorce_allowed } remove_doctrine = doctrine_divorce_allowed }
	if = { limit = { has_doctrine = doctrine_bastardry_none } remove_doctrine = doctrine_bastardry_none }
	if = { limit = { has_doctrine = doctrine_bastardry_legitimization } remove_doctrine = doctrine_bastardry_legitimization }
	if = { limit = { has_doctrine = doctrine_bastardry_all } remove_doctrine = doctrine_bastardry_all }
	if = { limit = { has_doctrine = doctrine_sacred_marriage } remove_doctrine = doctrine_sacred_marriage }
	if = { limit = { has_doctrine = doctrine_worldly_marriage } remove_doctrine = doctrine_worldly_marriage }
	if = { limit = { has_doctrine = doctrine_none_marriage } remove_doctrine = doctrine_none_marriage }
	if = { limit = { has_doctrine = doctrine_consanguinity_restricted } remove_doctrine = doctrine_consanguinity_restricted }
	if = { limit = { has_doctrine = doctrine_consanguinity_cousins } remove_doctrine = doctrine_consanguinity_cousins }
	if = { limit = { has_doctrine = doctrine_consanguinity_aunt_nephew_and_uncle_niece } remove_doctrine = doctrine_consanguinity_aunt_nephew_and_uncle_niece }
	if = { limit = { has_doctrine = doctrine_consanguinity_unrestricted } remove_doctrine = doctrine_consanguinity_unrestricted }
}