Added a missing config option for Crafter Manager energy usage.

This commit is contained in:
raoulvdberge
2018-05-31 16:40:56 +02:00
parent 6dea32a192
commit e5b0336c56
3 changed files with 4 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ public final class RSConfig {
public int crafterUsage;
public int crafterPerPatternUsage;
public int craftingMonitorUsage;
public int crafterManagerUsage;
public int destructorUsage;
public int detectorUsage;
public int diskDriveUsage;
@@ -144,6 +145,7 @@ public final class RSConfig {
crafterUsage = config.getInt("crafter", ENERGY, 2, 0, Integer.MAX_VALUE, "The base energy used by Crafters");
crafterPerPatternUsage = config.getInt("crafterPerPattern", ENERGY, 1, 0, Integer.MAX_VALUE, "The additional energy used per Pattern in a Crafter");
craftingMonitorUsage = config.getInt("craftingMonitor", ENERGY, 2, 0, Integer.MAX_VALUE, "The energy used by Crafting Monitors");
crafterManagerUsage = config.getInt("crafterManagerUsage", ENERGY, 4, 0, Integer.MAX_VALUE, "The energy used by Crafter Managers");
destructorUsage = config.getInt("destructor", ENERGY, 1, 0, Integer.MAX_VALUE, "The energy used by Destructors");
detectorUsage = config.getInt("detector", ENERGY, 2, 0, Integer.MAX_VALUE, "The energy used by Detectors");
diskDriveUsage = config.getInt("diskDrive", ENERGY, 0, 0, Integer.MAX_VALUE, "The base energy used by Disk Drives");

View File

@@ -22,7 +22,7 @@ public class NetworkNodeCrafterManager extends NetworkNode {
@Override
public int getEnergyUsage() {
return 0; // TODO: config
return RS.INSTANCE.config.crafterManagerUsage;
}
@Override