decision_planet_WL_lv_spiritualist_great_z_ritual = {
	owned_planets_only = yes
	sound = event_swarm_started
	icon = decision_planet_WL_lv_great_z_ritual	
	
	resources = {
		category = decisions
		cost = {
			influence = 100
			food = 320
		}
	}

	potential = {
		exists = owner
		owner ={
			is_ai = no
			has_civic = civic_WL_lv_zoophilic_rituals
		}
		NOR = {
			owner = { has_civic = civic_fanatic_purifiers } 
			owner = { has_civic = civic_machine_terminator }
			owner = { has_civic = civic_hive_devouring_swarm }
			is_planet_class = pc_machine
			is_planet_class = pc_relic
			is_planet_class = pc_hive
			has_modifier = WL_lv_country_great_z_ritual
		}
		has_building = building_WL_lv_z_altar_of_rituals
	}

	allow = {
		exists = owner
		owner ={
			is_ai = no
			has_civic = civic_WL_lv_zoophilic_rituals
			has_country_resource = { type = sr_WL_lv_exotic_fauna amount > 0 }
			NOT = {
				any_owned_planet = { has_modifier = WL_lv_planet_great_z_ritual }
			}
		any_owned_pop_job = { has_job_type = WL_lv_z_priest }
		}
	}
	
	effect = {
		add_modifier = { modifier = "WL_lv_planet_great_z_ritual" days = 360 }
		owner = {	add_modifier = { modifier = "WL_lv_country_great_z_ritual" days = 1800 } }
		hidden_effect = {
			planet_event = { id = WL_lv_decision_events.300 }
		}
	}
	
	ai_weight = { 
		weight = 0
	}
}

decision_planet_WL_lv_spiritualist_ruler_z_ritual_sacrament = {	
	owned_planets_only = yes
	sound = event_swarm_started
	icon = decision_planet_WL_lv_great_z_ritual	

	resources = {
		category = decisions
		cost = {
			influence = 12
			food = 25
		}
	}
	
	potential = {
		exists = owner
		owner ={
			is_ai = no
			has_civic = civic_WL_lv_zoophilic_rituals
			ruler = {
				NOT = { has_trait = leader_trait_ruler_WL_lv_zoophile }
			}
			is_at_war = no
		}
		NOR = {
			is_planet_class = pc_machine
			is_planet_class = pc_relic
			is_planet_class = pc_hive
		}
		has_building = building_WL_lv_z_altar_of_rituals
		any_owned_pop_group = { has_job_type = WL_lv_z_priest }
	}
	
	effect = {
		hidden_effect = {
			planet_event = { id = WL_lv_decision_events.301 }
		}
	}
	
	ai_weight = { 
		weight = 10000
	}
}