static void Postfix(ref Thing __result) { ThingWithComps twc = __result as ThingWithComps; if (twc != null) { CustomThingDef def = twc.def as CustomThingDef; if (def != null && !def.followStuffColor) { twc.SetColor(Color.white); twc.SetColor(Color.black); twc.SetColor(Color.white); } } }
static void Prefix(ref Thing product) { ThingWithComps twc = product as ThingWithComps; if (twc != null) { CustomThingDef def = twc.def as CustomThingDef; if (def != null && !def.followStuffColor) { twc.SetColor(Color.white); } } }