From 4ffcf252b76f85d5e14055f971d6d1731c61ad11 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 18 Jul 2021 12:48:57 -0400 Subject: [PATCH] Fixed bullet heal percent being displayed as 0 when <1 --- core/src/mindustry/content/Blocks.java | 4 ++-- core/src/mindustry/world/meta/StatValues.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/mindustry/content/Blocks.java b/core/src/mindustry/content/Blocks.java index e4c421659a..fdea93ae4a 100644 --- a/core/src/mindustry/content/Blocks.java +++ b/core/src/mindustry/content/Blocks.java @@ -1388,14 +1388,14 @@ public class Blocks implements ContentList{ requirements(Category.effect, with(Items.titanium, 250, Items.thorium, 125)); size = 3; itemCapacity = 1000; - health = size * size * 55; + health = size * size * 60; }}; container = new StorageBlock("container"){{ requirements(Category.effect, with(Items.titanium, 100)); size = 2; itemCapacity = 300; - health = size * size * 55; + health = size * size * 60; }}; unloader = new Unloader("unloader"){{ diff --git a/core/src/mindustry/world/meta/StatValues.java b/core/src/mindustry/world/meta/StatValues.java index fc2ff2609d..4926ed3516 100644 --- a/core/src/mindustry/world/meta/StatValues.java +++ b/core/src/mindustry/world/meta/StatValues.java @@ -306,7 +306,7 @@ public class StatValues{ } if(type.healPercent > 0f){ - sep(bt, Core.bundle.format("bullet.healpercent", (int)type.healPercent)); + sep(bt, Core.bundle.format("bullet.healpercent", Strings.autoFixed(type.healPercent, 2))); } if(type.pierce || type.pierceCap != -1){