public override IEnumerable <BodyPartDef> Options() => ContentsUtility.onlyAvailable ? ContentsUtility.AvailableInGame( t => (t as Pawn)?.health.hediffSet.GetMissingPartsCommonAncestors().Select(h => h.Part.def) ?? Enumerable.Empty <BodyPartDef>()) : base.Options();
public override IEnumerable <ThingDef> Options() => ContentsUtility.onlyAvailable ? ContentsUtility.AvailableInGame(t => t.Stuff) : DefDatabase <ThingDef> .AllDefsListForReading.Where(d => d.IsStuff);