Fix janky sublimate ammo display (#8469)
This commit is contained in:
@@ -33,7 +33,10 @@ public class ContinuousLiquidTurret extends ContinuousTurret{
|
|||||||
|
|
||||||
stats.remove(Stat.ammo);
|
stats.remove(Stat.ammo);
|
||||||
//TODO looks bad
|
//TODO looks bad
|
||||||
stats.add(Stat.ammo, StatValues.number(liquidConsumed * 60f, StatUnit.perSecond, true));
|
stats.add(Stat.ammo, table -> {
|
||||||
|
table.row();
|
||||||
|
StatValues.number(liquidConsumed * 60f, StatUnit.perSecond, true).display(table);
|
||||||
|
});
|
||||||
stats.add(Stat.ammo, StatValues.ammo(ammoTypes));
|
stats.add(Stat.ammo, StatValues.ammo(ammoTypes));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -51,10 +51,10 @@ public class StatValues{
|
|||||||
String l1 = (unit.icon == null ? "" : unit.icon + " ") + fixValue(value), l2 = (unit.space ? " " : "") + unit.localized();
|
String l1 = (unit.icon == null ? "" : unit.icon + " ") + fixValue(value), l2 = (unit.space ? " " : "") + unit.localized();
|
||||||
|
|
||||||
if(merge){
|
if(merge){
|
||||||
table.add(l1 + l2);
|
table.add(l1 + l2).left();
|
||||||
}else{
|
}else{
|
||||||
table.add(l1);
|
table.add(l1).left();
|
||||||
table.add(l2);
|
table.add(l2).left();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user