mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 23:13:21 +00:00
Tweak to magnet duration.
This commit is contained in:
1 parent
0ff8b63c3a
commit
c1f2e608c1
4 files changed
+9
-8
No files matched your search
@@ -139,7 +139,7 @@ public final class Config {
|
||||
public static float farmActionEnergyUse = 40;
|
||||
public static int farmDefaultSize = 3;
|
||||
|
||||
public static int magnetPowerUsePerTickRF = 1;
|
||||
public static int magnetPowerUsePerSecondRF = 1;
|
||||
public static int magnetPowerCapacityRF = 100000;
|
||||
public static int magnetRange = 5;
|
||||
|
||||
@@ -432,8 +432,8 @@ public final class Config {
|
||||
combustionGeneratorUseOpaqueModel = config.get("Aesthetic Settings", "combustionGeneratorUseOpaqueModel", combustionGeneratorUseOpaqueModel,
|
||||
"If set to true: fluid will not be shown in combustion generator tanks. Improves FPS. ").getBoolean(combustionGeneratorUseOpaqueModel);
|
||||
|
||||
magnetPowerUsePerTickRF = config.get("Magnet Settings", "magnetPowerUsePerTickRF", magnetPowerUsePerTickRF,
|
||||
"The amount of RF power used per tick when the magnet is active").getInt(magnetPowerUsePerTickRF);
|
||||
magnetPowerUsePerSecondRF = config.get("Magnet Settings", "magnetPowerUsePerTickRF", magnetPowerUsePerSecondRF,
|
||||
"The amount of RF power used per tick when the magnet is active").getInt(magnetPowerUsePerSecondRF);
|
||||
magnetPowerCapacityRF = config.get("Magnet Settings", "magnetPowerCapacityRF", magnetPowerCapacityRF,
|
||||
"Amount of RF power stored in a fully charged magnet").getInt(magnetPowerCapacityRF);
|
||||
magnetRange = config.get("Magnet Settings", "magnetRange", magnetRange,
|
||||
|
||||
@@ -52,8 +52,8 @@ public class ItemMagnet extends ItemEnergyContainer implements IResourceTooltipP
|
||||
return EnderIO.itemMagnet.getEnergyStored(itemStack) > 0;
|
||||
}
|
||||
|
||||
public static void drainPerTickPower(ItemStack itemStack) {
|
||||
EnderIO.itemMagnet.extractEnergy(itemStack, Config.magnetPowerUsePerTickRF, false);
|
||||
public static void drainPerSecondPower(ItemStack itemStack) {
|
||||
EnderIO.itemMagnet.extractEnergy(itemStack, Config.magnetPowerUsePerSecondRF, false);
|
||||
}
|
||||
|
||||
public static ItemMagnet create() {
|
||||
|
||||
@@ -21,8 +21,8 @@ public class MagnetController implements IEntitySelector {
|
||||
ActiveMagnet mag = getActiveMagnet(event.player);
|
||||
if(mag != null) {
|
||||
doHoover(event.player);
|
||||
if(event.side == Side.SERVER) {
|
||||
ItemMagnet.drainPerTickPower(mag.item);
|
||||
if(event.side == Side.SERVER && event.player.worldObj.getWorldTime() % 20 == 0) {
|
||||
ItemMagnet.drainPerSecondPower(mag.item);
|
||||
event.player.inventory.setInventorySlotContents(mag.slot, mag.item);
|
||||
event.player.inventory.markDirty();
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ import buildcraft.api.power.PowerHandler;
|
||||
import buildcraft.api.power.PowerHandler.PowerReceiver;
|
||||
import buildcraft.api.power.PowerHandler.Type;
|
||||
import cofh.api.energy.IEnergyContainerItem;
|
||||
import crazypants.enderio.Config;
|
||||
import crazypants.enderio.EnderIO;
|
||||
import crazypants.enderio.TileEntityEio;
|
||||
import crazypants.enderio.conduit.ConnectionMode;
|
||||
@@ -39,7 +40,7 @@ import crazypants.vecmath.VecmathUtil;
|
||||
|
||||
public class TileCapacitorBank extends TileEntityEio implements IInternalPowerReceptor, IInventory, IIoConfigurable {
|
||||
|
||||
static final BasicCapacitor BASE_CAP = new BasicCapacitor(100, 500000);
|
||||
static final BasicCapacitor BASE_CAP = new BasicCapacitor(Config.capacitorBankMaxIoMJ, Config.capacitorBankMaxStorageMJ);
|
||||
|
||||
BlockCoord[] multiblock = null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user