using rjw; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Verse; namespace rjwquirks.Modules.Quirks.Comps { // Adds quirk comp to all races [StaticConstructorOnStartup] public static class CompAdder { static CompAdder() { foreach (ThingDef thingDef in DefDatabase.AllDefs.Where(thingDef => thingDef.race != null && !thingDef.race.Animal )) { thingDef.comps.Add(new CompProperties_QuirkSet()); } } } }