Fixed bullet heal percent being displayed as 0 when <1

This commit is contained in:
Anuken
2021-07-18 12:48:57 -04:00
parent 89942416ac
commit 4ffcf252b7
2 changed files with 3 additions and 3 deletions

View File

@@ -1388,14 +1388,14 @@ public class Blocks implements ContentList{
requirements(Category.effect, with(Items.titanium, 250, Items.thorium, 125)); requirements(Category.effect, with(Items.titanium, 250, Items.thorium, 125));
size = 3; size = 3;
itemCapacity = 1000; itemCapacity = 1000;
health = size * size * 55; health = size * size * 60;
}}; }};
container = new StorageBlock("container"){{ container = new StorageBlock("container"){{
requirements(Category.effect, with(Items.titanium, 100)); requirements(Category.effect, with(Items.titanium, 100));
size = 2; size = 2;
itemCapacity = 300; itemCapacity = 300;
health = size * size * 55; health = size * size * 60;
}}; }};
unloader = new Unloader("unloader"){{ unloader = new Unloader("unloader"){{

View File

@@ -306,7 +306,7 @@ public class StatValues{
} }
if(type.healPercent > 0f){ 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){ if(type.pierce || type.pierceCap != -1){