modifier = {
	researcher_jobs_bonus_workforce_mult = 0.10
	bureaucrat_jobs_bonus_workforce_mult = 0.10
	telepath_jobs_bonus_workforce_mult = 0.10
}

triggered_species_modifier = {
	potential = {
		exists = from
		from = { is_gestalt = no }
	}
	pop_happiness = 0.05
}
triggered_species_modifier = {
	potential = {
		exists = from
		from = { is_gestalt = yes }
	}
	pop_amenities_usage_psionic_mult = -0.1
}

triggered_pop_group_modifier = {
	potential = {
		exists = owner
		owner = {
			OR = {
				has_modifier = agenda_psionic_supremacy_finish_composer
				has_modifier = agenda_psionic_supremacy_finish_eater
				has_modifier = agenda_psionic_supremacy_finish_instrument
				has_modifier = agenda_psionic_supremacy_finish_whisperers
				has_modifier = agenda_psionic_supremacy_finish_no_covenant
			}
		}
	}
	pop_bonus_workforce_mult = 0.2
}

triggered_species_modifier = {
	potential = {
		exists = from
		from = {
			is_transcendent_authority = yes
		}
	}
	pop_cat_ruler_bonus_workforce_mult = 0.10
	specialist_and_complex_drone_cat_bonus_workforce_mult = 0.10
	worker_and_simple_drone_cat_bonus_workforce_mult = -0.10
}

triggered_planet_growth_habitability_modifier = {
	potential = {
		exists = fromfrom
		fromfrom = {
			OR = {
				has_active_tradition = tr_psionics_shroud_telekinesis
				has_active_tradition = tr_psionics_shroud_telekinesis_gestalt
			}
		}
	}
	pop_environment_tolerance = @telekinesis_mult
}

triggered_species_modifier = {
	potential = {
		exists = from
		from = {
			has_active_tradition = tr_psionics_shroud_telekinesis
		}
	}
	pop_happiness = @telekinesis_mult
}
triggered_species_modifier = {
	potential = {
		exists = from
		from = {
			has_active_tradition = tr_psionics_shroud_telekinesis_gestalt
		}
	}
	pop_amenities_usage_psionic_mult = @telekinesis_amenities_mult
}

triggered_species_modifier = {
	potential = {
		exists = from
		from = {
			is_machine_empire = yes
			is_transcendent_authority = yes
		}
	}
	planet_pops_robotics_upkeep_mult = @transcendent_machine_pop_upkeep
}

triggered_species_modifier = {
	potential = {
		exists = from
		from = {
			is_democratic_authority = yes
			is_corporeal_authority = yes
		}
	}
	pop_happiness = @corporeal_democratic_psionic_happiness
}

slave_cost = {
	energy = 1500
}

resources = {
	category = planet_pops
	upkeep = {
		trigger = {
			exists = owner
			owner = {
				has_country_flag = instrument_craving_consumer_goods
			}
			is_sapient = yes
		}
		consumer_goods = @instrument_upkeep_common
	}

	upkeep = {
		trigger = {
			exists = owner
			owner = {
				has_country_flag = instrument_craving_alloys
			}
			is_sapient = yes
		}
		alloys = @instrument_upkeep_rare
	}

	upkeep = {
		trigger = {
			exists = owner
			owner = {
				has_country_flag = instrument_craving_unity
			}
			is_sapient = yes
		}
		unity = @instrument_upkeep_rare
	}

	upkeep = {
		trigger = {
			exists = owner
			owner = {
				has_country_flag = instrument_craving_gas
			}
			is_sapient = yes
		}
		exotic_gases = @instrument_upkeep_very_rare
	}

	upkeep = {
		trigger = {
			exists = owner
			owner = {
				has_country_flag = instrument_craving_crystal
			}
			is_sapient = yes
		}
		rare_crystals = @instrument_upkeep_very_rare
	}

	upkeep = {
		trigger = {
			exists = owner
			owner = {
				has_country_flag = instrument_craving_motes
			}
			is_sapient = yes
		}
		volatile_motes = @instrument_upkeep_very_rare
	}

	upkeep = {
		trigger = {
			exists = owner
			owner = {
				has_country_flag = instrument_craving_zro
			}
			is_sapient = yes
		}
		sr_zro = @instrument_upkeep_legendary
	}

	upkeep = {
		trigger = {
			exists = owner
			owner = {
				has_country_flag = instrument_craving_dark_matter
			}
			is_sapient = yes
		}
		sr_dark_matter = @instrument_upkeep_legendary
	}

	upkeep = {
		trigger = {
			exists = owner
			owner = {
				has_country_flag = instrument_craving_living_metal
			}
			is_sapient = yes
		}
		sr_living_metal = @instrument_upkeep_epic
	}

	upkeep = {
		trigger = {
			exists = owner
			owner = {
				has_country_flag = instrument_craving_nanites
			}
			is_sapient = yes
		}
		nanites = @instrument_upkeep_epic
	}
}

assembly_score = {
	base = 0.5
	modifier = {
		add = 0.5
		from = { has_research_designation = yes }
	}
	modifier = {
		add = 0.5
		from = { has_unity_designation = yes }
	}
	modifier = {
		add = 0.5
		from = { has_building = building_order_keep }
	}
	modifier = {
		subtract = 1.5
		exists = from.owner
		from.owner = { has_ascension_perk = ap_the_flesh_is_weak }
	}
}
