public override void Tick() { if (!this.IsHashIntervalTick(60)) { return; } neighCooler = AdjacentCooler(); if (compPowerTrader.PowerOn && neighCooler != null && !VecNorth.Impassable()) { isAvailable = true; compPowerTrader.PowerOutput = -compPowerTrader.Props.basePowerConsumption; } else { isAvailable = false; compPowerTrader.PowerOutput = -compPowerTrader.Props.basePowerConsumption * 0.1f; } }
public override void Tick() { if (!this.IsHashIntervalTick( 60 )) { return; } neighCooler = AdjacentCooler(); if (compPowerTrader.PowerOn && neighCooler != null && !VecNorth.Impassable()) { isAvailable = true; compPowerTrader.PowerOutput = -compPowerTrader.Props.basePowerConsumption; } else { isAvailable = false; compPowerTrader.PowerOutput = -compPowerTrader.Props.basePowerConsumption*0.1f; } }