portraits = {
	HiveF1 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF1.dds" }
	HiveF2 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF2.dds" }
	HiveF3 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF3.dds" }
	HiveF4 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF4.dds" }
	HiveF5 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF5.dds" }
	HiveF6 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF6.dds" }
	HiveF7 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF7.dds" }
	HiveF8 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF8.dds" }
	HiveF9 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF9.dds" }
	HiveF10 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF10.dds" }
	HiveF11 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF11.dds" }
	HiveF12 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF12.dds" }
	HiveF13 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF13.dds" }
	HiveF14 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF14.dds" }
	HiveF15 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF15.dds" }
	HiveF16 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF16.dds" }
	HiveF17 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF17.dds" }
	HiveF18 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF18.dds" }
	HiveF19 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF19.dds" }
	HiveF20 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF20.dds" }
	HiveF21 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF21.dds" }
	HiveF22 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF22.dds" }
	HiveF23 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF23.dds" }
	HiveF24 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF24.dds" }
	HiveF25 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF25.dds" }
	HiveF26 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF26.dds" }
	HiveF27 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF27.dds" }
	HiveF28 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF28.dds" }
	HiveF29 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF29.dds" }
	HiveF30 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF30.dds" }
	HiveF31 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF31.dds" }
	HiveF32 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF32.dds" }
	HiveF33 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF33.dds" }
	HiveF34 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF34.dds" }
	HiveF35 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF35.dds" }
	HiveF36 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF36.dds" }
	HiveF37 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF37.dds" }
	HiveF38 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF38.dds" }
	HiveF39 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF39.dds" }
	HiveF40 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF40.dds" }
	HiveF41 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF41.dds" }
	HiveF42 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF42.dds" }
	HiveF43 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF43.dds" }
	HiveF44 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF44.dds" }
	HiveF45 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF45.dds" }
	HiveF46 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF46.dds" }
	HiveF47 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF47.dds" }
	HiveF48 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF48.dds" }
	HiveF49 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF49.dds" }
	HiveF50 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF50.dds" }
	HiveF51 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF51.dds" }
	HiveF52 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF52.dds" }
	HiveF53 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF53.dds" }
	HiveF54 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF54.dds" }
	HiveF55 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF55.dds" }
	HiveF56 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF56.dds" }
	HiveF57 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF57.dds" }
	HiveF58 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF58.dds" }
	HiveF59 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF59.dds" }
	HiveF60 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF60.dds" }
	HiveF61 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF61.dds" }
	HiveF62 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF62.dds" }
	HiveF63 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF63.dds" }
	HiveF64 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF64.dds" }
	HiveF65 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF65.dds" }
	HiveF66 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF66.dds" }
	HiveF67 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF67.dds" }
	HiveF68 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF68.dds" }
	HiveF69 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF69.dds" }
	HiveF70 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF70.dds" }
	HiveF71 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF71.dds" }
	HiveF72 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF72.dds" }
	HiveF73 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF73.dds" }
	HiveF74 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF74.dds" }
	HiveF75 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF75.dds" }
	HiveF76 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF76.dds" }
	HiveF77 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF77.dds" }
	HiveF78 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF78.dds" }
	HiveF79 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF79.dds" }
	HiveF80 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF80.dds" }
	HiveF81 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF81.dds" }
	HiveF82 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF82.dds" }
	HiveF83 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF83.dds" }
	HiveF84 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF84.dds" }
	HiveF85 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF85.dds" }
	HiveF86 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveF86.dds" }
	HiveH1 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveH1.dds" }
	HiveH2 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveH2.dds" }
	HiveH3 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveH3.dds" }
	HiveH4 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveH4.dds" }
	HiveH5 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveH5.dds" }
	HiveH6 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveH6.dds" }
	HiveH7 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveH7.dds" }
	HiveH8 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveH8.dds" }
	HiveH9 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveH9.dds" }
	HiveH10 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveH10.dds" }
	HiveH11 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveH11.dds" }
	HiveM1 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveM1.dds" }
	HiveM2 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveM2.dds" }
	HiveM3 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveM3.dds" }
	HiveM4 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveM4.dds" }
	HiveM5 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveM5.dds" }
	HiveM6 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveM6.dds" }
	HiveM7 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveM7.dds" }
	HiveM8 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveM8.dds" }
	HiveM9 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveM9.dds" }
	HiveM10 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveM10.dds" }
	HiveM11 = { greeting_sound = "plantoid_greetings" texturefile = "gfx/models/portraits/Xenomorphs/HiveM11.dds" }
}

portrait_groups = {
	xenomorph = {
		default = HiveF6

		# Main empire/ruler setup portrait pool.
		# HiveF6 is the startup/default portrait. Phenotype variants are limited to leader-capable portraits.
		game_setup = {
			add = {
				trigger = {
					ruler = { gender = female }
					NOT = { species = { has_trait = trait_lv_all_male } }
				}
				portraits = {
					HiveF5 HiveF6 HiveF11 HiveF20 HiveF21 HiveF23 HiveF27 HiveF30
					HiveF32 HiveF36 HiveF37 HiveF44 HiveF60 HiveF62 HiveF64 HiveF63
					HiveF65
				}
			}
			add = {
				trigger = {
					ruler = { gender = male }
					NOT = { species = { has_trait = trait_lv_all_female } }
				}
				portraits = {
					HiveM1 HiveM2 HiveM3 HiveM4
				}
			}
			add = {
				trigger = {
					NOR = {
						species = { has_trait = trait_lv_all_female }
						species = { has_trait = trait_lv_all_male }
					}
				}
				portraits = {
					HiveH1 HiveH4 HiveH5 HiveH2
				}
			}
		}

		# Species portrait tile.
		# Keep this single so Xenomorphs appear as one selectable species portrait.
		species = {
			add = {
				portraits = {
					HiveF6
				}
			}
		}

		# Stellaris 4.0 planet-pop portrait scope.
		# Pop portraits are separated from leader portraits.
		# All Female: only HiveF pop portraits.
		# All Male: only HiveM pop portraits.
		# Neither trait: HiveF, HiveM, and HiveH pop portraits can all appear.
		pop_group = {
			add = {
				trigger = {
					OR = {
						has_trait = trait_lv_all_female
						species = { species_gender = female }
					}
				}
				portraits = {
					HiveF1 HiveF2 HiveF3 HiveF4 HiveF7 HiveF8 HiveF9 HiveF10
					HiveF12 HiveF13 HiveF14 HiveF15 HiveF16 HiveF17 HiveF18 HiveF19
					HiveF22 HiveF24 HiveF25 HiveF26 HiveF28 HiveF29 HiveF31 HiveF33
					HiveF34 HiveF35 HiveF38 HiveF39 HiveF40 HiveF41 HiveF42 HiveF43
					HiveF45 HiveF46 HiveF47 HiveF48 HiveF49 HiveF50 HiveF51 HiveF52
					HiveF53 HiveF54 HiveF55 HiveF56 HiveF57 HiveF58 HiveF59 HiveF61
					HiveF66 HiveF67 HiveF68 HiveF69 HiveF70 HiveF71 HiveF72 HiveF73
					HiveF74 HiveF75 HiveF76 HiveF77 HiveF78 HiveF79 HiveF80 HiveF81
					HiveF82 HiveF83 HiveF84 HiveF85 HiveF86
				}
			}
			add = {
				trigger = {
					OR = {
						has_trait = trait_lv_all_male
						species = { species_gender = male }
					}
				}
				portraits = {
					HiveM5 HiveM6 HiveM7 HiveM8 HiveM9 HiveM10 HiveM11
				}
			}
			add = {
				trigger = {
					NOR = {
						has_trait = trait_lv_all_female
						has_trait = trait_lv_all_male
						species = { species_gender = female }
						species = { species_gender = male }
					}
				}
				portraits = {
					HiveF1 HiveF2 HiveF3 HiveF4 HiveF7 HiveF8 HiveF9 HiveF10
					HiveF12 HiveF13 HiveF14 HiveF15 HiveF16 HiveF17 HiveF18 HiveF19
					HiveF22 HiveF24 HiveF25 HiveF26 HiveF28 HiveF29 HiveF31 HiveF33
					HiveF34 HiveF35 HiveF38 HiveF39 HiveF40 HiveF41 HiveF42 HiveF43
					HiveF45 HiveF46 HiveF47 HiveF48 HiveF49 HiveF50 HiveF51 HiveF52
					HiveF53 HiveF54 HiveF55 HiveF56 HiveF57 HiveF58 HiveF59 HiveF61
					HiveF66 HiveF67 HiveF68 HiveF69 HiveF70 HiveF71 HiveF72 HiveF73
					HiveF74 HiveF75 HiveF76 HiveF77 HiveF78 HiveF79 HiveF80 HiveF81
					HiveF82 HiveF83 HiveF84 HiveF85 HiveF86 HiveM5 HiveM6 HiveM7
					HiveM8 HiveM9 HiveM10 HiveM11 HiveH3 HiveH6 HiveH7 HiveH8
					HiveH9 HiveH10 HiveH11
				}
			}
		}

		# Leader portrait variants.
		# Leader portraits are intentionally not included in pop_group.
		leader = {
			add = {
				trigger = {
					gender = female
					NOT = { species = { has_trait = trait_lv_all_male } }
				}
				portraits = {
					HiveF5 HiveF6 HiveF11 HiveF20 HiveF21 HiveF23 HiveF27 HiveF30
					HiveF32 HiveF36 HiveF37 HiveF44 HiveF60 HiveF62 HiveF64 HiveF63
					HiveF65
				}
			}
			add = {
				trigger = {
					gender = male
					NOT = { species = { has_trait = trait_lv_all_female } }
				}
				portraits = {
					HiveM1 HiveM2 HiveM3 HiveM4
				}
			}
			add = {
				trigger = {
					NOR = {
						species = { has_trait = trait_lv_all_female }
						species = { has_trait = trait_lv_all_male }
					}
				}
				portraits = {
					HiveH1 HiveH4 HiveH5 HiveH2
				}
			}
		}

		# Ruler portrait variants use the same restricted leader-capable pools.
		ruler = {
			add = {
				trigger = {
					gender = female
					NOT = { species = { has_trait = trait_lv_all_male } }
				}
				portraits = {
					HiveF5 HiveF6 HiveF11 HiveF20 HiveF21 HiveF23 HiveF27 HiveF30
					HiveF32 HiveF36 HiveF37 HiveF44 HiveF60 HiveF62 HiveF64 HiveF63
					HiveF65
				}
			}
			add = {
				trigger = {
					gender = male
					NOT = { species = { has_trait = trait_lv_all_female } }
				}
				portraits = {
					HiveM1 HiveM2 HiveM3 HiveM4
				}
			}
			add = {
				trigger = {
					NOR = {
						species = { has_trait = trait_lv_all_female }
						species = { has_trait = trait_lv_all_male }
					}
				}
				portraits = {
					HiveH1 HiveH4 HiveH5 HiveH2
				}
			}
		}
	}
}
