From 4f08873bb9fe69fd7ff6cc9ef18cac03c996b263 Mon Sep 17 00:00:00 2001 From: SomeonesShade Date: Sat, 5 Oct 2024 03:33:06 +0800 Subject: [PATCH] Slag Incinerator Rework: No Slag Consumption Rate (#10197) * Slag Incinerator: No Slag Consumption Rate * If Amount = 0 in LiquidDisplay, Don't display /sec * reinstated changes * Delete core/src/mindustry/ui/LiquidDisplay.java --------- Co-authored-by: Anuken --- core/src/mindustry/content/Blocks.java | 2 +- core/src/mindustry/world/meta/StatValues.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/content/Blocks.java b/core/src/mindustry/content/Blocks.java index 6fac7f0e9b2b..30089d8c22e0 100644 --- a/core/src/mindustry/content/Blocks.java +++ b/core/src/mindustry/content/Blocks.java @@ -1342,7 +1342,7 @@ public static void load(){ slagIncinerator = new ItemIncinerator("slag-incinerator"){{ requirements(Category.crafting, with(Items.tungsten, 15)); size = 1; - consumeLiquid(Liquids.slag, 2f / 60f); + consumeLiquid(Liquids.slag, 0f); }}; carbideCrucible = new HeatCrafter("carbide-crucible"){{ diff --git a/core/src/mindustry/world/meta/StatValues.java b/core/src/mindustry/world/meta/StatValues.java index ac422e90d7fc..e05c129ea3de 100644 --- a/core/src/mindustry/world/meta/StatValues.java +++ b/core/src/mindustry/world/meta/StatValues.java @@ -152,7 +152,7 @@ public static Table displayLiquid(Liquid liquid, float amount, boolean perSecond } }}).size(iconMed).padRight(3 + (amount != 0 && Strings.autoFixed(amount, 2).length() > 2 ? 8 : 0)).with(s -> withTooltip(s, liquid, false)); - if(perSecond){ + if(perSecond && amount != 0){ t.add(StatUnit.perSecond.localized()).padLeft(2).padRight(5).color(Color.lightGray).style(Styles.outlineLabel); }