public static HediffDef GetImplantHediffDef(this ThingDef thingDef) { // Get hediff for implant var recipeDef = thingDef.GetImplantRecipeDef(); return(recipeDef?.addsHediff); }