#covers the new heresies with the standard conversion decisions

decisions = {

	# Pagans can convert to the Lilithian faith if their wife or a concubine is Lilithian
	convert_to_spouse_lilithian = {
		potential = {
			is_playable = yes
			religion_group = pagan_group
			controls_religion = no
			NOT = { trait = zealous }
			OR = {
				any_spouse = {
					religion = lilithian
					hidden_tooltip = {
						is_alive = yes
					}
				}
				any_consort = {
					religion = lilithian
					hidden_tooltip = {
						is_alive = yes
					}
				}
			}
		}
		
		effect = {
			prestige = -500
			religion_authority = {
				modifier = ruler_converted_from
			}
			
			if = {
				limit = {
					trait = cynical
				}
				random = {
					chance = 60
					add_trait = sympathy_pagans
				}
			}
			if = {
				limit = {
					NOT = { trait = cynical }
				}
				random = {
					chance = 50
					add_trait = sympathy_pagans
				}
			}		
			
			religion = lilithian
			
			hidden_tooltip = {
				religion_authority = {
					modifier = ruler_converted_to
				}
			}
			piety = 200
		}
		
		revoke_allowed = {
			always = no
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	
	# Pagans can convert to the Maryite faith if their wife or a concubine is Maryite
	convert_to_spouse_maryite = {
		potential = {
			is_playable = yes
			religion_group = pagan_group
			controls_religion = no
			NOT = { trait = zealous }
			OR = {
				any_spouse = {
					religion = maryite
					hidden_tooltip = {
						is_alive = yes
					}
				}
				any_consort = {
					religion = maryite
					hidden_tooltip = {
						is_alive = yes
					}
				}
			}
		}
		
		effect = {
			prestige = -500
			religion_authority = {
				modifier = ruler_converted_from
			}
			
			if = {
				limit = {
					trait = cynical
				}
				random = {
					chance = 60
					add_trait = sympathy_pagans
				}
			}
			if = {
				limit = {
					NOT = { trait = cynical }
				}
				random = {
					chance = 50
					add_trait = sympathy_pagans
				}
			}		
			
			religion = maryite
			
			hidden_tooltip = {
				religion_authority = {
					modifier = ruler_converted_to
				}
			}
			piety = 200
		}
		
		revoke_allowed = {
			always = no
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	
}