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:
parent
238901323c
commit
4fb6f4aca6
5 changed files with 48 additions and 13 deletions
|
@ -11,9 +11,6 @@ import java.util.ArrayList;
|
|||
|
||||
public class TileLesu extends EUStorageTile implements IWrenchable {
|
||||
|
||||
public int baseEU = 0;
|
||||
public int storgeBlockSize = 1000000;
|
||||
|
||||
private ArrayList<LesuNetwork> countedNetworks = new ArrayList<LesuNetwork>();
|
||||
public int connectedBlocks = 0;
|
||||
public int currentBlocks = 0;
|
||||
|
@ -51,14 +48,13 @@ public class TileLesu extends EUStorageTile implements IWrenchable {
|
|||
}
|
||||
}
|
||||
if(currentBlocks != connectedBlocks){
|
||||
maxStorage = (connectedBlocks * storgeBlockSize) + baseEU;
|
||||
output = connectedBlocks;
|
||||
maxStorage = ((connectedBlocks + 1) * ConfigTechReborn.lesuStoragePerBlock);
|
||||
output = (connectedBlocks * ConfigTechReborn.extraOutputPerLesuBlock) + ConfigTechReborn.baseLesuOutput;
|
||||
}
|
||||
|
||||
if(ticks == ConfigTechReborn.aveargeEuOutTickTime){
|
||||
euChange = -1;
|
||||
ticks = 0;
|
||||
|
||||
} else {
|
||||
ticks ++;
|
||||
if(euChange == -1){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue