Skip to content

Commit

Permalink
Slag Incinerator Rework: No Slag Consumption Rate (#10197)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
SomeonesShade and Anuken authored Oct 4, 2024
1 parent ac5a9f4 commit 4f08873
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/mindustry/content/Blocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -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"){{
Expand Down
2 changes: 1 addition & 1 deletion core/src/mindustry/world/meta/StatValues.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4f08873

Please sign in to comment.