Merge pull request #2906 from Quezler/patch-53

Visualize maximum amount of power node wires
This commit is contained in:
Anuken
2020-10-11 10:19:58 -04:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@@ -112,6 +112,12 @@ public class PowerNode extends PowerBlock{
(UI.formatAmount((int)entity.power.graph.getLastPowerStored())), UI.formatAmount((int)entity.power.graph.getLastCapacity())),
() -> Pal.powerBar,
() -> Mathf.clamp(entity.power.graph.getLastPowerStored() / entity.power.graph.getLastCapacity())));
bars.add("connections", entity -> new Bar(() ->
Core.bundle.format("bar.powerlines", entity.power.links.size, maxNodes),
() -> Pal.items,
() -> (float)entity.power.links.size / (float)maxNodes
));
}
@Override