From fbb3240ebbaafea816ff338fd2f8883901c96972 Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 28 Mar 2019 19:20:09 -0400 Subject: [PATCH] Hid 0-damage stat to prevent confusion --- .../io/anuke/mindustry/world/meta/values/AmmoListValue.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/io/anuke/mindustry/world/meta/values/AmmoListValue.java b/core/src/io/anuke/mindustry/world/meta/values/AmmoListValue.java index f04e63d977..6db7cca165 100644 --- a/core/src/io/anuke/mindustry/world/meta/values/AmmoListValue.java +++ b/core/src/io/anuke/mindustry/world/meta/values/AmmoListValue.java @@ -32,7 +32,10 @@ public class AmmoListValue 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)));