mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-08-03 16:39:37 +07:00
Power amount message for buffered blocks
This commit is contained in:
@ -378,6 +378,7 @@ blocks.ammo = Ammo
|
||||
bar.drillspeed = Drill Speed: {0}/s
|
||||
bar.efficiency = Efficiency: {0}%
|
||||
bar.powerbalance = Power: {0}/s
|
||||
bar.poweramount = Power: {0}
|
||||
bar.poweroutput = Power Output: {0}
|
||||
bar.items = Items: {0}
|
||||
bar.liquid = Liquid
|
||||
|
@ -420,7 +420,7 @@ public class Block extends BlockStorage{
|
||||
boolean buffered = consumes.getPower().isBuffered;
|
||||
float capacity = consumes.getPower().powerCapacity;
|
||||
|
||||
bars.add("power", entity -> new Bar(() -> buffered ? Core.bundle.format("bar.powerbalance", Float.isNaN(entity.power.satisfaction * capacity) ? "<ERROR>" : (int)(entity.power.satisfaction * capacity)) :
|
||||
bars.add("power", entity -> new Bar(() -> buffered ? Core.bundle.format("bar.poweramount", Float.isNaN(entity.power.satisfaction * capacity) ? "<ERROR>" : (int)(entity.power.satisfaction * capacity)) :
|
||||
Core.bundle.get("bar.power"), () -> Pal.powerBar, () -> entity.power.satisfaction));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user