Fixed some LESU things

EU/t and capacity are now config-driven. Note that while the "max-eu" updates when you remove LESU storage blocks, it's currently retaining the highest EU/t you get, so if you remove blocks, the GUI still says it has the same EU/t you had before you removed them. Also shortened EU display.
This commit is contained in:
joflashstudios 2015-06-19 22:31:56 -04:00
parent 238901323c
commit 4fb6f4aca6
5 changed files with 48 additions and 13 deletions

View file

@ -116,7 +116,11 @@ public class ChargeHud
private String GetEUString(double euValue)
{
if (euValue > 1000) {
if (euValue > 1000000) {
double tenX = Math.round(euValue / 100000);
return Double.toString(tenX / 10.0).concat(" m EU");
}
else if (euValue > 1000) {
double tenX = Math.round(euValue / 100);
return Double.toString(tenX / 10.0).concat(" k EU");
}