WL_lv_motherly_drone = {
	rank = 0

	change_job_threshold = 1.25
	
	assign_to_pop = {
		planet = {
			exists = owner
			owner = {
				is_gestalt = yes
				OR = {
					has_civic = civic_WL_lv_motherly_hive	
					has_origin = origin_WL_lv_motherly_hive
				}
			}
		}
		OR = {
			has_job_type = WL_lv_hive_sanctuary_mature_queen
			has_job_type = WL_lv_hive_sanctuary_young_queen
		}
	}
	
	weight = { weight = 2 }

	pop_modifier = {
		pop_housing_usage_base = 1
		pop_amenities_usage_no_happiness_base = 1
	}

	# scope: pop to be resettled
	allow_resettlement = {
		always = yes
	}

	resettlement_cost = {
		food = 25
		energy = 100
	}

	resources = {
		category = pop_category_drones

		upkeep = {
			trigger = {
				is_organic_species = yes
				is_lithoid = no
			}
			food = @living_standard_food_normal
		}

		upkeep = {
			trigger = {
				is_organic_species = yes
				is_lithoid = yes
			}
			minerals = @living_standard_food_normal
		}

		upkeep = {
			trigger = {
				is_robotic_species = yes
			}
			energy = @living_standard_energy_normal
		}

		produces = {
			trigger = {
				is_lithoid = yes
				has_trait = trait_lithoid_scintillating
			}
			rare_crystals = @lithoid_trait_resource_production
		}

		produces = {
			trigger = {
				is_lithoid = yes
				has_trait = trait_lithoid_gaseous_byproducts
			}
			exotic_gases = @lithoid_trait_resource_production
		}

		produces = {
			trigger = {
				is_lithoid = yes
				has_trait = trait_lithoid_volatile_excretions
			}
			volatile_motes = @lithoid_trait_resource_production
		}
	}
}

WL_lv_motherly_hive_xeno_pop_01 = {
	rank = 0

	change_job_threshold = 1.25

	assign_to_pop_group = {
		planet = {
			exists = owner
			owner = { 
				is_gestalt = yes 
				OR = {	
					has_civic = civic_WL_lv_motherly_hive	
					has_origin = origin_WL_lv_motherly_hive
				}
			}
		}
		is_being_purged = no
		OR = {
			has_job_type = WL_lv_hive_xeno_breeding_pop 
			has_job_type = WL_lv_hive_livestock_breeding_pop
			has_job_type = WL_lv_hive_xeno_special_pop
		}
		NOT	= { has_trait = trait_WL_lv_mother_hive_mind }
	}
	
	weight = {
		weight = 1000
	}

	# scope: pop to be resettled
	allow_resettlement = {
		always = yes
	}

	resettlement_cost = {
		energy = 50
		food = 50
	}

	pop_modifier = {
		pop_political_power = 10
		pop_housing_usage_base = 1
		pop_amenities_usage_no_happiness_base = 1
	}
	
	resources = {
		category = pop_category_bio_trophy
		upkeep = {
			trigger = { is_lithoid = no }
			food = @living_standard_food_normal
			consumer_goods = @living_standard_luxuries_very_high
		}

		upkeep = {
			trigger = { is_lithoid = yes }
			minerals = @living_standard_food_normal
			consumer_goods = @living_standard_luxuries_very_high
		}

		produces = {
			trigger = {
				is_lithoid = yes
				has_trait = trait_lithoid_scintillating
			}
			rare_crystals = @lithoid_trait_resource_production
		}

		produces = {
			trigger = {
				is_lithoid = yes
				has_trait = trait_lithoid_gaseous_byproducts
			}
			exotic_gases = @lithoid_trait_resource_production
		}

		produces = {
			trigger = {
				is_lithoid = yes
				has_trait = trait_lithoid_volatile_excretions
			}
			volatile_motes = @lithoid_trait_resource_production
		}
	}
}

################################
### PRIMITIVES
################################
#
#WL_lv_pre_sapients_pets = {
#	rank = 0
#	change_job_threshold = 1.25
#
#	assign_to_pop = {
#		always = no
#		is_sapient = no
#		has_trait = trait_docile
#		planet = { 
#			owner = { 
#				OR = { 
#					has_policy_flag = pre_sapients_protect
#					has_policy_flag = pre_sapients_allow
#				}
#			}
#		}
#		OR = {
#			has_job_type = WL_lv_pre_sapient_pet
#		}
#	}
#	
#	weight = {
#		weight = 1200000
#	}
#
#	pop_modifier = {
#		pop_political_power = -10
#	}
#
#	resettlement_cost = {
#		food = 100
#	}
#
#	# scope: pop to be resettled
#	allow_resettlement = {
#		always = yes
#	}
#	
#	resources = {
#		category = pop_category_pre_sapients
#
#		# Organic Upkeep
#		upkeep = {
#			trigger = { is_lithoid = no }
#			food = @living_standard_food_normal
#			consumer_goods = @living_standard_luxuries_very_high
#		}
#
#		upkeep = {
#			trigger = { is_lithoid = yes }
#			minerals = @living_standard_food_normal
#			consumer_goods = @living_standard_luxuries_very_high
#		}
#
#
#	}
#}