private void TryHealRandomPermanentWound() { if (base.Pawn.health.hediffSet.hediffs.Where((Hediff hd) => hd.IsPermanent() || hd.def.chronic).TryRandomElement(out Hediff result)) { HealthUtility.CureHediff(result); if (PawnUtility.ShouldSendNotificationAbout(base.Pawn)) { Messages.Message("MessagePermanentWoundHealed".Translate(parent.LabelCap, base.Pawn.LabelShort, result.Label, base.Pawn.Named("PAWN")), base.Pawn, MessageTypeDefOf.PositiveEvent); } } }