Gene Locked Recipes and Buildings - SmArtKar/AthenaFramework GitHub Wiki
GeneLockedRecipeExtension
prevents pawns without specified genes or xenotype from building certain objects or using recipes
public class GeneLockedRecipeExtension : DefModExtension
{
// List of genes that a pawn must have to build this building or use the recipe
public List<GeneDef> requiredGenes;
// Xenotype that the pawn must have to build this building or use the recipe
public XenotypeDef requiredXenotype;
// Message that's displayed when a pawn without required genes/xenotype tries to use the recipe
public string cantReason = "Incompatible body structure";
}