############################
###  Motherly Hive Jobs  ###
############################

WL_lv_hive_sanctuary_mature_queen = {
	category = WL_lv_motherly_drone
	condition_string = DRONE_JOB_TRIGGER
	building_icon = building_WL_lv_hive_mating_sanctuary
	
	possible_pre_triggers = {
		has_owner = yes
		is_enslaved = no
		is_being_purged = no
		is_being_assimilated = no
	}
		
	possible = {
		drone_job_check_trigger = yes
	}
		
	country_modifier = {
		# empire_size_mult = -0.03
		empire_size_add = -3
	}

	planet_modifier = {
		bonus_pop_growth_mult = 0.20
		planet_stability_add = 20
		planet_crime_add = -10
		planet_crime_mult = -0.10
		pop_happiness = 0.2
	}
	
	resources = {
		category = planet_jobs
		produces = {
			unity = 12
			society_research = 20
		}
		upkeep = {
			trigger = { 
				is_organic_species = yes
				is_lithoid = no
			}
			food = 4
		}
		upkeep = {
			trigger = { is_lithoid = yes }
			minerals = 3
		}
	}
		
	weight = {
		weight = @ruler_job_weight
		modifier = {
			factor = 20
			planet = {
				any_owned_pop_job = { has_job_type = WL_lv_hive_livestock_breeding_pop }
				owner = { NOT = { has_deficit = food } }
			}
		}
	}
}

WL_lv_hive_sanctuary_young_queen = {
	category = WL_lv_motherly_drone
	condition_string = DRONE_JOB_TRIGGER
	building_icon = building_WL_lv_hive_mating_sanctuary
	
	possible_pre_triggers = {
		has_owner = yes
		is_enslaved = no
		is_being_purged = no
		is_being_assimilated = no
	}
		
	possible = {
		drone_job_check_trigger = yes
	}
		
	country_modifier = {
		# empire_size_mult = -0.03
		empire_size_add = -1
	}

	planet_modifier = {
		bonus_pop_growth_mult = 0.02
		pop_happiness = 0.01
	}
	
	resources = {
		category = planet_jobs
		produces = {
			unity = 3
			society_research = 5
		}

		upkeep = {
			trigger = { 
				is_organic_species = yes
				is_lithoid = no
			}
			food = 1
		}
		upkeep = {
			trigger = { is_lithoid = yes }
			minerals = 1
		}
	}
		
	weight = {
		weight = @complex_drone_job_weight
		modifier = {
			factor = 20
			planet = {
				any_owned_pop_job = { has_job_type = WL_lv_hive_livestock_breeding_pop }
				owner = { NOT = { has_deficit = food } }
			}
		}
	}
}

WL_lv_hive_sanctuary_breeder = {
	category = simple_drone
	condition_string = DRONE_JOB_TRIGGER
	building_icon = building_WL_lv_hive_breeders_complex
	
	possible_pre_triggers = {
		has_owner = yes
		is_enslaved = no
		is_being_purged = no
		is_being_assimilated = no
	}
		
	possible = {
		drone_job_check_trigger = yes
	}
	
	planet_modifier = {
		planet_amenities_add = 200
		pop_happiness = 0.03
	}
		
	resources = {
		category = planet_jobs
		produces = {
			consumer_goods = 10
		}
		
		upkeep = {
			trigger = { 
				is_organic_species = yes
				is_lithoid = no
			}
			food = 1
			minerals = 8
		}
		upkeep = {
			trigger = { is_lithoid = yes }
			minerals = 9
		}
	}
		
	weight = {
		weight = @spawner_drone_job_weight
		modifier = {
			factor = 20
			planet = {
				any_owned_pop_job = { has_job_type = WL_lv_hive_livestock_breeding_pop }
				owner = { NOT = { has_deficit = minerals } }
			}
		}
	}
}

##############################

WL_lv_hive_xeno_breeding_pop = {
	category = WL_lv_motherly_hive_xeno_pop_01
	
	is_capped_by_modifier = no
	building_icon = building_WL_lv_hive_caretaker_complex
	
	possible_pre_triggers = {
		is_enslaved = no
		is_being_purged = no
		is_being_assimilated = no
	}
		
	possible = {
		NAND = {
			has_trait = trait_hive_mind 
			OWNER = { has_policy_flag = WL_lv_m_h_maternity_personality_policy_standard }
		}
		owner = {
			OR = {
				has_civic = civic_WL_lv_motherly_hive
				has_origin = origin_WL_lv_motherly_hive
			}
		}
		NOT = { has_trait = trait_WL_lv_mother_hive_mind }
	}
	
	resources = {
		category = planet_bio_trophies
	}
		
	weight = {
		weight = 2600
		modifier = {
			factor = 100
			planet = {
				owner = {
					OR = {
						has_civic = civic_WL_lv_motherly_hive
						has_origin = origin_WL_lv_motherly_hive		
					}
				}
			}
			NOT = { has_trait = trait_WL_lv_mother_hive_mind }
		}
	}
}

##############################

WL_lv_hive_livestock_breeding_pop = {
	category = WL_lv_motherly_hive_xeno_pop_01
	
	is_capped_by_modifier = no
	building_icon = building_WL_lv_hive_caretaker_complex
	
	possible_pre_triggers = {
		is_enslaved = yes
		is_being_purged = no
		is_being_assimilated = no
	}
		
	possible = {
		NAND = { 
			has_trait = trait_hive_mind 
			OWNER = { has_policy_flag = WL_lv_m_h_maternity_personality_policy_standard }
		}
		owner = {
			OR = {
				has_civic = civic_WL_lv_motherly_hive
				has_origin = origin_WL_lv_motherly_hive
			}
		}
		NOT = { has_trait = trait_WL_lv_mother_hive_mind }
	}
	
	resources = {
		category = planet_livestock
	}
		
	weight = {
		weight = 2500
		modifier = {
			factor = 100
			planet = {
				owner = {
					OR = {
						has_civic = civic_WL_lv_motherly_hive
						has_origin = origin_WL_lv_motherly_hive		
					}
				}
			}
			NOT = { has_trait = trait_WL_lv_mother_hive_mind }
		}
	}
}

WL_lv_hive_xeno_special_pop = {
	category = WL_lv_motherly_hive_xeno_pop_01
	building_icon = building_WL_lv_hive_caretaker_complex
		
	possible_pre_triggers = {
		is_being_purged = no
		is_being_assimilated = no
	}
	
	possible = {
		NAND = { 
			has_trait = trait_hive_mind
			OWNER = { has_policy_flag = WL_lv_m_h_maternity_personality_policy_standard }
		}
		owner = {
			OR = {
				has_civic = civic_WL_lv_motherly_hive
				has_origin = origin_WL_lv_motherly_hive
			}
		}
		NOT = { has_trait = trait_WL_lv_mother_hive_mind }
	}
	
	resources = {
		category = planet_bio_trophies
		produces = {
			trigger = { 
				is_organic_species = yes
				is_lithoid = no
			}
			unity = 1
			society_research = 1
		}
		produces = {
			trigger = { is_lithoid = yes }
			unity  = 1
			physics_research = 1
		}
		produces = {
			trigger = { is_robotic_species = yes }
			engineering_research = 1
		}
	}
		
	planet_modifier = {
		planet_jobs_complex_drone_produces_mult = 0.001
		planet_jobs_simple_drone_produces_mult = 0.0025
		planet_crime_add = -1
	}
	
	weight = {
		weight = 3000
		modifier = {
			factor = 200
			planet = {
				owner = {
					OR = {
						has_civic = civic_WL_lv_motherly_hive
						has_origin = origin_WL_lv_motherly_hive		
					}
				}
			}
			NOT = { has_trait = trait_WL_lv_mother_hive_mind }
		}
	}
}