make air generator more configurable
This commit is contained in:
parent
a1f39a1ea6
commit
a7fb566416
2 changed files with 12 additions and 4 deletions
|
@ -8,12 +8,12 @@ import cr0s.warpdrive.WarpDrive;
|
||||||
import cr0s.warpdrive.conf.WarpDriveConfig;
|
import cr0s.warpdrive.conf.WarpDriveConfig;
|
||||||
|
|
||||||
public class TileEntityAirGenerator extends TileEntityAbstractEnergy {
|
public class TileEntityAirGenerator extends TileEntityAbstractEnergy {
|
||||||
private final int EU_PER_NEWAIRBLOCK = 12;
|
private final int EU_PER_NEWAIRBLOCK = WarpDriveConfig.AG_EU_PER_NEWAIRBLOCK;
|
||||||
private final int EU_PER_EXISTINGAIRBLOCK = 4; // 1 solar = 1 EU/t
|
private final int EU_PER_EXISTINGAIRBLOCK = WarpDriveConfig.AG_EU_PER_EXISTINGAIRBLOCK;
|
||||||
private final int MAX_ENERGY_VALUE = 8 * EU_PER_NEWAIRBLOCK;
|
private final int MAX_ENERGY_VALUE = WarpDriveConfig.AG_MAX_ENERGY;
|
||||||
|
|
||||||
private int cooldownTicks = 0;
|
private int cooldownTicks = 0;
|
||||||
private final int AIR_GENERATION_TICKS = 40;
|
private final int AIR_GENERATION_TICKS = WarpDriveConfig.AG_AIR_GENERATION_TICKS;
|
||||||
private final int START_CONCENTRATION_VALUE = 15;
|
private final int START_CONCENTRATION_VALUE = 15;
|
||||||
|
|
||||||
public TileEntityAirGenerator() {
|
public TileEntityAirGenerator() {
|
||||||
|
|
|
@ -204,6 +204,10 @@ public class WarpDriveConfig {
|
||||||
|
|
||||||
// Air generator
|
// Air generator
|
||||||
public static int AG_RF_PER_CANISTER = 20;
|
public static int AG_RF_PER_CANISTER = 20;
|
||||||
|
public static int AG_EU_PER_NEWAIRBLOCK = 12;
|
||||||
|
public static int AG_EU_PER_EXISTINGAIRBLOCK = 4;
|
||||||
|
public static int AG_MAX_ENERGY = 4000;
|
||||||
|
public static int AG_AIR_GENERATION_TICKS = 40;
|
||||||
|
|
||||||
// IC2 Reactor monitor
|
// IC2 Reactor monitor
|
||||||
public static int RM_MAX_ENERGY = 1000000;
|
public static int RM_MAX_ENERGY = 1000000;
|
||||||
|
@ -444,6 +448,10 @@ public class WarpDriveConfig {
|
||||||
|
|
||||||
// Air generator
|
// Air generator
|
||||||
AG_RF_PER_CANISTER = config.get("Air Generator", "energy_per_canister", AG_RF_PER_CANISTER).getInt();
|
AG_RF_PER_CANISTER = config.get("Air Generator", "energy_per_canister", AG_RF_PER_CANISTER).getInt();
|
||||||
|
AG_EU_PER_NEWAIRBLOCK = config.get("Air Generator", "eu_per_new_air_block", AG_EU_PER_NEWAIRBLOCK).getInt();
|
||||||
|
AG_EU_PER_EXISTINGAIRBLOCK = config.get("Air Generator", "eu_per_existing_air_block", AG_EU_PER_EXISTINGAIRBLOCK).getInt();
|
||||||
|
AG_MAX_ENERGY = config.get("Air Generator", "max_energy", AG_MAX_ENERGY).getInt();
|
||||||
|
AG_AIR_GENERATION_TICKS = config.get("Air Generator", "air_generation_ticks", AG_AIR_GENERATION_TICKS).getInt();
|
||||||
|
|
||||||
// Reactor monitor
|
// Reactor monitor
|
||||||
RM_MAX_ENERGY = config.get("Reactor Monitor", "max_rm_energy", RM_MAX_ENERGY).getInt();
|
RM_MAX_ENERGY = config.get("Reactor Monitor", "max_rm_energy", RM_MAX_ENERGY).getInt();
|
||||||
|
|
Loading…
Reference in a new issue