// Token: 0x0600003F RID: 63 RVA: 0x00003460 File Offset: 0x00001660 public static bool IsDisabled(ThingWithComps checkThing) { if (checkThing.IsBrokenDown()) { return(true); } var compFlickable = checkThing.TryGetComp <CompFlickable>(); if (compFlickable != null && !compFlickable.SwitchIsOn) { return(true); } var compPowerTrader = checkThing.TryGetComp <CompPowerTrader>(); if (compPowerTrader != null && !compPowerTrader.PowerOn) { return(true); } var compRefuelable = checkThing.TryGetComp <CompRefuelable>(); return(compRefuelable != null && !compRefuelable.HasFuel); }
public static bool IsOnAndNotBrokenDown(this ThingWithComps thing) { if (FlickUtility.WantsToBeOn(thing) && !thing.IsBrokenDown()) { return(true); } return(false); }