mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 18:46:43 +00:00
CHanged default energy value for biomass to 4000 + code styling
This commit is contained in:
parent
0f7b40f3ae
commit
85548ec3cb
@ -34,7 +34,6 @@ public class CubotInventory extends CpuHardware {
|
|||||||
int a = getCpu().getRegisterSet().getRegister("A").getValue();
|
int a = getCpu().getRegisterSet().getRegister("A").getValue();
|
||||||
|
|
||||||
if (a == INV_POLL) {
|
if (a == INV_POLL) {
|
||||||
|
|
||||||
getCpu().getRegisterSet().getRegister("B").setValue(cubot.getHeldItem());
|
getCpu().getRegisterSet().getRegister("B").setValue(cubot.getHeldItem());
|
||||||
|
|
||||||
} else if (a == INV_CLEAR) {
|
} else if (a == INV_CLEAR) {
|
||||||
@ -42,8 +41,8 @@ public class CubotInventory extends CpuHardware {
|
|||||||
int energy = GameServer.INSTANCE.getConfig().getInt("biomassEnergyValue");
|
int energy = GameServer.INSTANCE.getConfig().getInt("biomassEnergyValue");
|
||||||
cubot.storeEnergy(energy);
|
cubot.storeEnergy(energy);
|
||||||
cubot.setHeldItem(0);
|
cubot.setHeldItem(0);
|
||||||
}
|
|
||||||
else if (cubot.spendEnergy(100)) {
|
} else if (cubot.spendEnergy(100)) {
|
||||||
cubot.setHeldItem(0);
|
cubot.setHeldItem(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ minBiomassRespawnCount=2
|
|||||||
maxBiomassCount=10
|
maxBiomassCount=10
|
||||||
maxBiomassRespawnCount=6
|
maxBiomassRespawnCount=6
|
||||||
# Energy generated by consuming biomass
|
# Energy generated by consuming biomass
|
||||||
biomassEnergyValue=1000
|
biomassEnergyValue=4000
|
||||||
# Maximum energy of the battery hardware in kJ
|
# Maximum energy of the battery hardware in kJ
|
||||||
battery_max_energy=60000
|
battery_max_energy=60000
|
||||||
# Time for biomass respawn in ticks
|
# Time for biomass respawn in ticks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user