############################
#Spiritualist Specialist
############################

WL_lv_z_priest = {
	category = ruler
	condition_string = RULER_JOB_TRIGGER
	building_icon = building_WL_lv_z_altar_of_rituals
	clothes_texture_index = 3

	possible_pre_triggers = {
		has_owner = yes
		is_enslaved = no
		is_being_purged = no
		is_being_assimilated = no
	}

	resources = {
		category = planet_priests
		produces = {
			unity = 5
			society_research = 5
		}
		produces = {
			trigger = {
				exists = owner
				owner = { has_valid_civic = civic_exalted_priesthood }
			}
			unity = 2
		}
		produces = {
			trigger = {
				# placeholder until I can figure out how to select the pop group doing this job
				exists = owner
				owner = { has_trait = trait_lv_zoophilic_uplift }
			}
			energy = 1
			unity = 1
		}
		upkeep = {
			consumer_goods = 2
		}
	}

	planet_modifier = {
		planet_amenities_add = 300
	}

	weight = {
		weight = @ruler_job_weight
		modifier = {
			factor = 10
			has_trait = trait_lv_zoophilic_uplift
		}
	}
}

###################################
# Spiritualist Workers
###################################

WL_lv_spiritualist_z_slave = {
	category = worker
	is_capped_by_modifier = no
	building_icon = building_WL_lv_z_altar_of_rituals
	clothes_texture_index = 2

	possible = {
		is_enslaved = yes
		owner = {
			has_civic = civic_WL_lv_zoophilic_rituals
		}
	}
	
	resources = {}
	
	planet_modifier = {
		planet_amenities_add = 100
	}	
	
	triggered_pop_modifier = {
		potential = { is_organic_species = yes }
		pop_housing_usage_add = -0.5
	}	
	
	triggered_planet_modifier = {
		potential = {
			# placeholder until I can figure out how to select the pop group doing this job
			exists = owner
			OR = {
				owner = {
					has_trait = trait_robot_domestic_protocols
					has_trait = trait_charismatic
				}
			}
		}
		modifier = {
			planet_amenities_add = 100
		}
	}	
		
	weight = {
		weight = @worker_job_weight
	}
}
