protected override bool TryExecuteWorker(IncidentParms parms) { if (!settings.Active) { return(false); } Map map = parms.target as Map; List <Pawn> pawns = map.mapPawns.FreeColonists.ToList(); int num = Rand.Range(1, pawns.Count - 1); for (int i = 0; i < num; i++) { Pawn pawn = pawns.RandomElement(); HediffSet set = pawn.health.hediffSet; BodyPartRecord part = set.GetBrain(); pawn.health.AddHediff(HediffDefOfLocal.NeurofibromatousWorms, part); } Find.LetterStack.ReceiveLetter(def.label.Translate(), def.letterText.Translate(num, HediffDefOfLocal.NeurofibromatousWorms.label.Translate()), LetterDefOf.NegativeEvent); return(true); }