###################################
###  Spiritualist Buildings     ###
###################################

building_WL_lv_z_altar_of_rituals = {		
	base_buildtime = @b2_time
	planet_limit = 1
	category = government

	building_sets = {
		government
		unity
		lv_sex_set
	}
	
	potential = {
		exists = owner
		owner = {
			OR = {
				has_civic = civic_WL_lv_zoophilic_rituals
			}
		}
		NOT = {
			is_planet_class = pc_machine
			is_planet_class = pc_relic
			is_planet_class = pc_hive
		}
	}
	
	destroy_trigger = {
		exists = owner
		owner = {
			NOR = {
				has_civic = civic_WL_lv_zoophilic_rituals		
			}
		}
	}
	
	resources = {
    category = planet_buildings
    cost = {
			minerals = @b1_minerals
			food = 300
		}
    upkeep = {
			food = 4
		}
	}
	
	planet_modifier = {
		job_WL_lv_z_priest_add = 100
		pop_happiness = 0.1
		pop_ethic_spiritualist_attraction_mult = 0.10
	}
	
	ai_weight_coefficient = 1

	ai_resource_production = {
		energy = 1
		trigger = {
			always = yes
		}
	}
}
