mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 22:42:41 -08:00
Heat icon
This commit is contained in:
parent
5a44bf6023
commit
ff115ee376
3 changed files with 13 additions and 5 deletions
|
|
@ -1808,7 +1808,7 @@ public class Blocks{
|
|||
requirements(Category.effect, with(Items.silicon, 150, Items.oxide, 40, Items.thorium, 60));
|
||||
outlineColor = Pal.darkOutline;
|
||||
|
||||
range = 180f;
|
||||
range = 200f;
|
||||
size = 3;
|
||||
buildSpeed = 1.5f;
|
||||
|
||||
|
|
@ -5615,7 +5615,7 @@ public class Blocks{
|
|||
requirements(Category.units, with(Items.silicon, 100, Items.beryllium, 150, Items.tungsten, 80));
|
||||
regionSuffix = "-dark";
|
||||
hasPower = true;
|
||||
buildSpeed = 0.5f;
|
||||
buildSpeed = 0.6f;
|
||||
consumePower(2f);
|
||||
size = 3;
|
||||
//TODO expand this list
|
||||
|
|
@ -5627,7 +5627,7 @@ public class Blocks{
|
|||
requirements(Category.units, with(Items.silicon, 150, Items.oxide, 150, Items.tungsten, 200, Items.phaseFabric, 40));
|
||||
regionSuffix = "-dark";
|
||||
hasPower = true;
|
||||
buildSpeed = 0.6f;
|
||||
buildSpeed = 0.75f;
|
||||
maxBlockSize = 4;
|
||||
minBlockSize = 3;
|
||||
size = 5;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
package mindustry.world.meta;
|
||||
|
||||
import arc.*;
|
||||
import arc.util.*;
|
||||
import mindustry.gen.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
@ -18,7 +20,7 @@ public class StatUnit{
|
|||
itemsSecond = new StatUnit("itemsSecond"),
|
||||
liquidUnits = new StatUnit("liquidUnits"),
|
||||
powerUnits = new StatUnit("powerUnits"),
|
||||
heatUnits = new StatUnit("heatUnits"),
|
||||
heatUnits = new StatUnit("heatUnits", "[red]" + Iconc.waves + "[]"),
|
||||
degrees = new StatUnit("degrees"),
|
||||
seconds = new StatUnit("seconds"),
|
||||
minutes = new StatUnit("minutes"),
|
||||
|
|
@ -33,6 +35,7 @@ public class StatUnit{
|
|||
|
||||
public final boolean space;
|
||||
public final String name;
|
||||
public @Nullable String icon;
|
||||
|
||||
public StatUnit(String name, boolean space){
|
||||
this.name = name;
|
||||
|
|
@ -43,6 +46,11 @@ public class StatUnit{
|
|||
this(name, true);
|
||||
}
|
||||
|
||||
public StatUnit(String name, String icon){
|
||||
this(name, true);
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
public String localized(){
|
||||
if(this == none) return "";
|
||||
return Core.bundle.get("unit." + name.toLowerCase(Locale.ROOT));
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ public class StatValues{
|
|||
|
||||
public static StatValue number(float value, StatUnit unit, boolean merge){
|
||||
return table -> {
|
||||
String l1 = fixValue(value), l2 = (unit.space ? " " : "") + unit.localized();
|
||||
String l1 = (unit.icon == null ? "" : unit.icon + " ") + fixValue(value), l2 = (unit.space ? " " : "") + unit.localized();
|
||||
|
||||
if(merge){
|
||||
table.add(l1 + l2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue