defined_text = {
	name = GetComposerSanctumDesc
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = building_composer_sanctum_desc_machine
	}
	default = building_composer_sanctum_desc_default
}

defined_text = {
	name = GetEaterSanctumDesc
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = building_eater_sanctum_desc_machine
	}
	default = building_eater_sanctum_desc_default
}

defined_text = {
	name = GetInstrumentSanctumDesc
	text = {
		trigger = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		localization_key = building_instrument_sanctum_desc_gestalt
	}
	default = building_instrument_sanctum_desc_default
}

defined_text = {
	name = GetWhisperersSanctumDesc
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = building_whisperers_sanctum_desc_machine
	}
	default = building_whisperers_sanctum_desc_default
}

defined_text = {
	name = GetCradleSanctumDesc
	text = {
		trigger = {
			exists = owner
			owner = { is_homicidal = yes }
		}
		localization_key = building_cradle_sanctum_desc_homicidal
	}
	default = building_cradle_sanctum_desc_default
}

defined_text = {
	name = GetComposerMutationName
	text = {
		trigger = { is_robot_empire = yes }
		localization_key = utopia.3341.name.machine
	}
	default = utopia.3341.name.organic
}

defined_text = {
	name = GetComposerDegenerationName
	text = {
		trigger = {
			event_target:leader_target = {
				is_machine_species = yes
			}
		}
		localization_key = utopia.3345.name.machine
	}
	default = utopia.3345.name.organic
}

defined_text = {
	name = GetCradleChaoticAnguishName
	text = {
		trigger = {
			is_robot_empire = no
			is_gestalt = no
		}
		localization_key = utopia.3348.name.organic_non_gestalt
	}
	default = utopia.3348.name.machine_or_gestalt
}

defined_text = {
	name = GetCradleAnguishIntro
	text = {
		trigger = {
			is_homicidal = yes
		}
		localization_key = utopia.3348.desc_intro_homicidal
	}
	default = utopia.3348.desc_intro_homicidal
}

defined_text = {
	name = GetLavishLifestyleEventName
	text = {
		trigger = {
			is_gestalt = yes
		}
		localization_key = utopia.3350.name.gestalt
	}
	default = utopia.3350.name.individual
}

defined_text = {
	name = GetLatentPsionicTraitDesc
	text = {
		trigger = {
			exists = owner
			owner = { is_robot_empire = yes }
		}
		localization_key = trait_latent_psionic_desc_machine
	}
	default = trait_latent_psionic_desc_organic
}

# Rows print in alphabetical order, each naming the highest-weight unlock the empire has.
defined_text = {
	name = GetConsecrateAstralScar
	random = no
	text = {
		trigger = {
			can_consecrate_astral_scar = yes
			has_origin = origin_riftworld
		}
		weight = 50
		localization_key = consecrate_target_astral_scar_riftworld
	}
	text = {
		trigger = {
			can_consecrate_astral_scar = yes
			has_civic = civic_dimensional_worship
		}
		weight = 40
		localization_key = consecrate_target_astral_scar_dimensional_worship
	}
	text = {
		trigger = {
			can_consecrate_astral_scar = yes
			has_civic = civic_corporate_dimensional_worship
		}
		weight = 35
		localization_key = consecrate_target_astral_scar_dimensional_enterprise
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetConsecrateBlackHole
	random = no
	text = {
		trigger = {
			can_consecrate_black_hole = yes
			has_country_flag = worm_tomb_ending
		}
		weight = 60
		localization_key = consecrate_target_black_hole_worm
	}
	text = {
		trigger = {
			can_consecrate_black_hole = yes
			has_valid_civic = civic_dark_consortium
		}
		weight = 40
		localization_key = consecrate_target_black_hole_dark_consortium
	}
	text = {
		trigger = {
			can_consecrate_black_hole = yes
			has_valid_civic = civic_corporate_dark_consortium
		}
		weight = 35
		localization_key = consecrate_target_black_hole_shadow_corporation
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetConsecrateMoltenWorld
	random = no
	text = {
		trigger = {
			can_consecrate_molten_world = yes
			has_origin = origin_arc_welders
		}
		weight = 50
		localization_key = consecrate_target_molten_world_arc_welders
	}
	text = {
		trigger = {
			can_consecrate_molten_world = yes
			has_origin = origin_cybernetic_creed
		}
		weight = 45
		localization_key = consecrate_target_molten_world_cybernetic_creed
	}
	text = {
		trigger = {
			can_consecrate_molten_world = yes
			has_valid_civic = civic_pyrolatry
		}
		weight = 40
		localization_key = consecrate_target_molten_world_fire_cult
	}
	text = {
		trigger = {
			can_consecrate_molten_world = yes
			has_trait = trait_infernal
		}
		weight = 30
		localization_key = consecrate_target_molten_world_thermophile
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetConsecrateNaniteWorld
	random = no
	text = {
		trigger = {
			can_consecrate_nanite_world = yes
			OR = {
				has_surveyed_class = pc_nanotech
				has_surveyed_class = pc_gray_goo
			}
		}
		localization_key = consecrate_target_nanite_world_nanotech
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetConsecrateOceanWorld
	random = no
	text = {
		trigger = {
			can_consecrate_ocean_world = yes
			has_trait = trait_aquatic
		}
		weight = 30
		localization_key = consecrate_target_ocean_world_aquatic
	}
	text = {
		trigger = {
			can_consecrate_ocean_world = yes
			has_trait = trait_robot_aquatic
		}
		weight = 25
		localization_key = consecrate_target_ocean_world_waterproof
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetConsecrateOrbitalHabitat
	random = no
	text = {
		trigger = {
			can_consecrate_orbital_habitat = yes
			has_origin = origin_void_dwellers
		}
		weight = 50
		localization_key = consecrate_target_orbital_habitat_void_dwellers
	}
	text = {
		trigger = {
			can_consecrate_orbital_habitat = yes
			has_origin = origin_void_machines
		}
		weight = 45
		localization_key = consecrate_target_orbital_habitat_voidforged
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetConsecrateRelicWorld
	random = no
	text = {
		trigger = {
			can_consecrate_relic_world = yes
			has_origin = origin_remnants
		}
		weight = 50
		localization_key = consecrate_target_relic_world_remnants
	}
	text = {
		trigger = {
			can_consecrate_relic_world = yes
			is_memorialist_empire = yes
		}
		weight = 40
		localization_key = consecrate_target_relic_world_memorialists
	}
	text = {
		trigger = {
			can_consecrate_relic_world = yes
			has_valid_civic = civic_scavengers
		}
		weight = 30
		localization_key = consecrate_target_relic_world_scavengers
	}
	text = {
		trigger = {
			can_consecrate_relic_world = yes
			has_valid_civic = civic_corporate_scavengers
		}
		weight = 25
		localization_key = consecrate_target_relic_world_refurbishment_division
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetConsecrateRingSegment
	random = no
	text = {
		trigger = {
			can_consecrate_ring_segment = yes
		}
		localization_key = consecrate_target_ring_segment_shattered_ring
	}
	default = BLANK_STRING
}
defined_text = {
	name = GetConsecrateLivingSeaWorld
	random = no
	text = {
		trigger = {
			can_consecrate_living_sea_world = yes
			any_planet_within_border = {
				has_modifier = living_sea
			}
		}
		localization_key = consecrate_target_living_sea_world_psionic
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetConsecrateShroudedWorld
	random = no
	text = {
		trigger = {
			can_consecrate_shrouded_world = yes
			has_origin = origin_shroudwalker_apprentice
		}
		weight = 50
		localization_key = consecrate_target_shrouded_world_shroudwalker_apprentice
	}
	text = {
		trigger = {
			can_consecrate_shrouded_world = yes
			has_valid_civic = civic_chosen
		}
		weight = 40
		localization_key = consecrate_target_shrouded_world_chosen
	}
	text = {
		trigger = {
			can_consecrate_shrouded_world = yes
			has_valid_civic = civic_hive_chosen
		}
		weight = 39
		localization_key = consecrate_target_shrouded_world_chosen_many
	}
	text = {
		trigger = {
			can_consecrate_shrouded_world = yes
			has_valid_civic = civic_machine_chosen
		}
		weight = 38
		localization_key = consecrate_target_shrouded_world_apostle_network
	}
	text = {
		trigger = {
			can_consecrate_shrouded_world = yes
			has_valid_civic = civic_corporate_chosen
		}
		weight = 37
		localization_key = consecrate_target_shrouded_world_chosen_executives
	}
	text = {
		trigger = {
			can_consecrate_shrouded_world = yes
			has_any_covenant = yes
		}
		weight = 10
		localization_key = consecrate_target_shrouded_world_covenant
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetConsecrateTombWorld
	random = no
	text = {
		trigger = {
			can_consecrate_tomb_world = yes
			has_origin = origin_post_apocalyptic
		}
		weight = 50
		localization_key = consecrate_target_tomb_world_post_apocalyptic
	}
	text = {
		trigger = {
			can_consecrate_tomb_world = yes
			has_origin = origin_post_apocalyptic_machines
		}
		weight = 45
		localization_key = consecrate_target_tomb_world_radioactive_rovers
	}
	text = {
		trigger = {
			can_consecrate_tomb_world = yes
			is_memorialist_empire = yes
		}
		weight = 40
		localization_key = consecrate_target_tomb_world_memorialists
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetConsecrateToxicWorld
	random = no
	text = {
		trigger = {
			can_consecrate_toxic_world = yes
		}
		localization_key = consecrate_target_toxic_world_toxic_knights
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetConsecrateViridescentLightbringer
	random = no
	text = {
		trigger = {
			can_consecrate_toxic_world = yes
			has_surveyed_class = pc_toxoid_star
		}
		localization_key = consecrate_target_viridescent_lightbringer_toxic_knights
	}
	default = BLANK_STRING
}

defined_text = {
	name = GetConsecrateVolcanicWorld
	random = no
	text = {
		trigger = {
			can_consecrate_volcanic_world = yes
		}
		localization_key = consecrate_target_volcanic_world_fire_cult
	}
	default = BLANK_STRING
}
