public override void Update() { efficiency = Main.dayTime ? (float)(Main.time < 13500 ? Main.time / 13500 : 13500 / (Main.time - 13500)) * 100f : 0; energy.ModifyEnergyStored((long)(10 * efficiency)); Utility.SendTEData(this); }
public override void Update() { //int reverseHeight = Main.maxTilesY - Position.Y + 1; //energyGen = Math.Min(reverseHeight, energy.GetCapacity() - energy.GetEnergy()); energy.ModifyEnergyStored(100); Utility.SendTEData(this); }
public void AddTile(Wire tile) { if (!tiles.Contains(tile)) { energy.AddCapacity(tile.maxIO * 2); energy.ModifyEnergyStored(tile.grid.GetEnergySharePerNode()); tile.grid = this; tiles.Add(tile); } }