Hid 0-damage stat to prevent confusion

This commit is contained in:
Anuken
2019-03-28 19:20:09 -04:00
parent bffae90022
commit fbb3240ebb

View File

@ -32,7 +32,10 @@ public class AmmoListValue<T extends UnlockableContent> implements StatValue{
table.add(t.localizedName()).padRight(10).left().top();
table.table("underline", bt -> {
bt.left().defaults().padRight(3).left();
bt.add(Core.bundle.format("bullet.damage", type.damage));
if(type.damage > 0){
bt.add(Core.bundle.format("bullet.damage", type.damage));
}
if(type.splashDamage > 0){
sep(bt, Core.bundle.format("bullet.splashdamage", (int)type.splashDamage, Strings.toFixed(type.splashDamageRadius / tilesize, 1)));