CHanged default energy value for biomass to 4000 + code styling

This commit is contained in:
simon 2018-01-01 15:21:39 -05:00
parent 0f7b40f3ae
commit 85548ec3cb
2 changed files with 3 additions and 4 deletions

View File

@ -34,7 +34,6 @@ public class CubotInventory extends CpuHardware {
int a = getCpu().getRegisterSet().getRegister("A").getValue();
if (a == INV_POLL) {
getCpu().getRegisterSet().getRegister("B").setValue(cubot.getHeldItem());
} else if (a == INV_CLEAR) {
@ -42,8 +41,8 @@ public class CubotInventory extends CpuHardware {
int energy = GameServer.INSTANCE.getConfig().getInt("biomassEnergyValue");
cubot.storeEnergy(energy);
cubot.setHeldItem(0);
}
else if (cubot.spendEnergy(100)) {
} else if (cubot.spendEnergy(100)) {
cubot.setHeldItem(0);
}
}

View File

@ -45,7 +45,7 @@ minBiomassRespawnCount=2
maxBiomassCount=10
maxBiomassRespawnCount=6
# Energy generated by consuming biomass
biomassEnergyValue=1000
biomassEnergyValue=4000
# Maximum energy of the battery hardware in kJ
battery_max_energy=60000
# Time for biomass respawn in ticks