Ammo/shot display

This commit is contained in:
Anuken
2020-12-22 14:02:19 -05:00
parent f3d5cb315e
commit a44f3c379f
7 changed files with 15 additions and 8 deletions

View File

@@ -113,6 +113,7 @@ public class Turret extends ReloadTurret{
stats.add(Stat.reload, 60f / reloadTime * (alternate ? 1 : shots), StatUnit.none);
stats.add(Stat.targetsAir, targetAir);
stats.add(Stat.targetsGround, targetGround);
if(ammoPerShot != 1) stats.add(Stat.ammoUse, ammoPerShot, StatUnit.perShot);
}
@Override

View File

@@ -56,7 +56,7 @@ public class SolidPump extends Pump{
stats.remove(Stat.output);
stats.add(Stat.output, result, 60f * pumpAmount, true);
if(attribute != null){
stats.add(baseEfficiency > 0.0001f ? Stat.affinities : Stat.tiles, attribute);
stats.add(baseEfficiency > 0.0001f ? Stat.affinities : Stat.tiles, attribute, floating, 1f, baseEfficiency <= 0.001f);
}
}