Add energy usage for fluid grids

This commit is contained in:
Raoul Van den Berge
2016-08-13 17:16:55 +02:00
parent b153f56046
commit 980c5ddf1a
2 changed files with 4 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ public final class RefinedStorage {
public int gridUsage; public int gridUsage;
public int craftingGridUsage; public int craftingGridUsage;
public int patternGridUsage; public int patternGridUsage;
public int fluidGridUsage;
public int networkTransmitterUsage; public int networkTransmitterUsage;
public float networkTransmitterPerBlockUsage; public float networkTransmitterPerBlockUsage;
public int networkReceiverUsage; public int networkReceiverUsage;
@@ -111,6 +112,7 @@ public final class RefinedStorage {
gridUsage = config.getInt("grid", "energy", 2, 0, Integer.MAX_VALUE, "The energy used by Grids"); gridUsage = config.getInt("grid", "energy", 2, 0, Integer.MAX_VALUE, "The energy used by Grids");
craftingGridUsage = config.getInt("craftingGrid", "energy", 4, 0, Integer.MAX_VALUE, "The energy used by Crafting Grids"); craftingGridUsage = config.getInt("craftingGrid", "energy", 4, 0, Integer.MAX_VALUE, "The energy used by Crafting Grids");
patternGridUsage = config.getInt("patternGrid", "energy", 3, 0, Integer.MAX_VALUE, "The energy used by Pattern Grids"); patternGridUsage = config.getInt("patternGrid", "energy", 3, 0, Integer.MAX_VALUE, "The energy used by Pattern Grids");
fluidGridUsage = config.getInt("fluidGrid", "energy", 2, 0, Integer.MAX_VALUE, "The energy used by Fluid Grids");
networkTransmitterUsage = config.getInt("networkTransmitter", "energy", 50, 0, Integer.MAX_VALUE, "The base energy used by Network Transmitters"); networkTransmitterUsage = config.getInt("networkTransmitter", "energy", 50, 0, Integer.MAX_VALUE, "The base energy used by Network Transmitters");
networkTransmitterPerBlockUsage = config.getFloat("networkTransmitterPerBlock", "energy", 4, 0, Float.MAX_VALUE, "The additional energy per block that the Network Transmitter uses, gets rounded up"); networkTransmitterPerBlockUsage = config.getFloat("networkTransmitterPerBlock", "energy", 4, 0, Float.MAX_VALUE, "The additional energy per block that the Network Transmitter uses, gets rounded up");
networkReceiverUsage = config.getInt("networkReceiver", "energy", 15, 0, Integer.MAX_VALUE, "The energy used by Network Receivers"); networkReceiverUsage = config.getInt("networkReceiver", "energy", 15, 0, Integer.MAX_VALUE, "The energy used by Network Receivers");

View File

@@ -167,6 +167,8 @@ public class TileGrid extends TileNode implements IGrid {
return RefinedStorage.INSTANCE.craftingGridUsage; return RefinedStorage.INSTANCE.craftingGridUsage;
case PATTERN: case PATTERN:
return RefinedStorage.INSTANCE.patternGridUsage; return RefinedStorage.INSTANCE.patternGridUsage;
case FLUID:
return RefinedStorage.INSTANCE.fluidGridUsage;
default: default:
return 0; return 0;
} }