fixed wave, clean clean up

This commit is contained in:
sharlotte
2021-08-05 14:28:58 +09:00
parent 65d7bd1350
commit 680972234f
3 changed files with 17 additions and 17 deletions

View File

@@ -66,7 +66,7 @@ public class BarInfo {
numbers.set(0, healthc.healthf());
}
if(target instanceof Turret.TurretBuild turret){
strings.set(1, Core.bundle.format("shar-stat.reload", Strings.fixed((turret.reload / ((Turret)turret.block).reloadTime) * 100f, 1)));
colors.set(1, Pal.accent.cpy().lerp(Color.orange, Mathf.clamp((turret.reload / ((Turret)turret.block).reloadTime))));
@@ -226,7 +226,6 @@ public class BarInfo {
}
if(target instanceof Unit unit && target instanceof Payloadc pay && unit.type != null){
strings.set(4, Core.bundle.format("shar-stat.payloadCapacity", format(Mathf.round(Mathf.sqrt(pay.payloadUsed()))), format(Mathf.round(Mathf.sqrt(unit.type().payloadCapacity)))));
colors.set(4, Pal.items);