living_standard_hive_mind_worker = {
	potential = {
		from = { has_ethic = ethic_gestalt_consciousness }
	}

	allow = {
		if = {
			limit = {
				from = { has_authority = auth_hive_mind }
			}
			custom_tooltip = {
				fail_text = species_is_not_hive
				has_trait = trait_hive_mind
			}
		}
		else_if = {
			limit = { from = { has_authority = auth_machine_intelligence } }
			custom_tooltip = {
				fail_text = species_is_not_machine
				OR = {
					has_trait = trait_machine_unit
					has_trait = trait_mechanical
					AND = {
						from = {
							OR = {
								has_civic = civic_machine_assimilator
								has_ascension_perk = ap_mechromancy
							}
						}
						has_trait = trait_cybernetic
					}
				}
			}
		}
		custom_tooltip = {
			fail_text = SPECIES_MUST_NOT_BE_ASSIMILATING
			NOT = {
				has_citizenship_type = {
					type = citizenship_assimilation
					country = from
				}
			}
		}
	}

	ai_will_do = {
		factor = 0
	}
}

living_standard_hive_mind_advanced_worker = {
	potential = {
		from = { has_ethic = ethic_gestalt_consciousness }
	}

	allow = {
		if = {
			limit = {
				from = { has_authority = auth_hive_mind }
			}
			custom_tooltip = {
				fail_text = species_is_not_hive
				has_trait = trait_hive_mind
			}
		}
		else_if = {
			limit = { from = { has_authority = auth_machine_intelligence } }
			custom_tooltip = {
				fail_text = species_is_not_machine
				OR = {
					has_trait = trait_machine_unit
					has_trait = trait_mechanical
					AND = {
						from = {
							OR = {
								has_civic = civic_machine_assimilator
								has_ascension_perk = ap_mechromancy
							}
						}
						has_trait = trait_cybernetic
					}
				}
			}
		}
		custom_tooltip = {
			fail_text = SPECIES_MUST_NOT_BE_ASSIMILATING
			NOT = {
				has_citizenship_type = {
					type = citizenship_assimilation
					country = from
				}
			}
		}
	}

	ai_will_do = {
		factor = 0
	}
}
