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 <arnukren@gmail.com>
This commit is contained in:
@@ -1342,7 +1342,7 @@ public class Blocks{
|
|||||||
slagIncinerator = new ItemIncinerator("slag-incinerator"){{
|
slagIncinerator = new ItemIncinerator("slag-incinerator"){{
|
||||||
requirements(Category.crafting, with(Items.tungsten, 15));
|
requirements(Category.crafting, with(Items.tungsten, 15));
|
||||||
size = 1;
|
size = 1;
|
||||||
consumeLiquid(Liquids.slag, 2f / 60f);
|
consumeLiquid(Liquids.slag, 0f);
|
||||||
}};
|
}};
|
||||||
|
|
||||||
carbideCrucible = new HeatCrafter("carbide-crucible"){{
|
carbideCrucible = new HeatCrafter("carbide-crucible"){{
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ public class StatValues{
|
|||||||
}
|
}
|
||||||
}}).size(iconMed).padRight(3 + (amount != 0 && Strings.autoFixed(amount, 2).length() > 2 ? 8 : 0)).with(s -> withTooltip(s, liquid, false));
|
}}).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);
|
t.add(StatUnit.perSecond.localized()).padLeft(2).padRight(5).color(Color.lightGray).style(Styles.outlineLabel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user