military_service_full = {
	potential = {
		if = {
			limit = {
				from = { has_authority = auth_machine_intelligence }
			}
			OR = {
				has_trait = trait_machine_unit
				has_trait = trait_mechanical
				has_trait = trait_cybernetic
			}
		}
	}

	allow = {
		hidden_trigger = { exists = from }
		custom_tooltip = {
			fail_text = MACHINE_NO_PURE_ORGANIC_SOLDIERS
			if = {
				limit = {
					from = { has_authority = auth_machine_intelligence }
				}
				OR = {
					has_trait = trait_mechanical
					has_trait = trait_machine_unit
					AND = {
						has_trait = trait_cybernetic
						from = {
							OR = { 
                                has_civic = civic_machine_assimilator
                                has_ascension_perk = ap_organo_machine_interfacing_assimilator
                            }
						}
					}
				}
			}
		}
		custom_tooltip = {
			fail_text = is_undesirables_tooltip
			NOR = {
				has_citizenship_type = { country = from type = citizenship_purge_machine }
				has_citizenship_type = { country = from type = citizenship_purge }
			}
		}
		custom_tooltip = {
			fail_text = is_slaves_tooltip
			NOT = { has_citizenship_type = { country = from type = citizenship_slavery } }
		}
		custom_tooltip = {
			fail_text = is_serviles_tooltip
			NOT = { has_trait = trait_syncretic_proles }
		}
		custom_tooltip = {
			fail_text = is_servitude_tooltip
			NOT = { has_citizenship_type = { country = from type = citizenship_robot_servitude } }
		}
		if = {
			limit = {
				from = {
					NOT = { has_origin = origin_synthetic_fertility }
				}
				has_trait = trait_mechanical
			}
			custom_tooltip = {
				fail_text = too_alien
				OR = {
					is_same_species = from
					from = {
						AND = {
							has_valid_civic = civic_selective_kinship
							is_same_species_class = root
						}
					}
					from = {
						NOR = {
							has_ethic = ethic_xenophobe
							has_ethic = ethic_fanatic_xenophobe
						}
					}
				}
			}
		}
		custom_tooltip = {
			fail_text = "HIVE_MIND_SPECIES_CITIZENS_ONLY"
			OR = {
				NOT = { from = { has_authority = auth_hive_mind } }
				has_trait = trait_hive_mind
			}
		}
		custom_tooltip = {
			fail_text = NON_MACHINE_SPECIES_NEED_PREREQ_TECH
			if = {
				limit = {
					OR = {
						has_trait = trait_mechanical
						has_trait = trait_machine_unit
					}
				}
				from = {
					OR = {
						has_authority = auth_machine_intelligence
						is_individual_machine = yes
						has_technology = tech_droid_workers
					}
				}
			}
		}
		custom_tooltip = {
			fail_text = nerve_stapled_cannot_lead_armies
			NOT = { has_trait = trait_nerve_stapled }
		}
		custom_tooltip = {
			fail_text = nerve_stapled_cannot_lead_armies
			NOT = { has_trait = trait_robot_suppressed }
		}
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 0
			from = { has_valid_ai_personality = no }
		}
		modifier = {
			factor = 0
			from = {
				has_valid_ai_personality = yes
				NOT = {
					has_ai_personality_behaviour = multispecies
				}
			}
		}
	}
}
