mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 18:46:43 +00:00
Charging energy from biomass now looks up value in config.properties
This commit is contained in:
parent
7ee361b0bc
commit
cd8d883134
@ -39,7 +39,8 @@ public class CubotInventory extends CpuHardware {
|
|||||||
|
|
||||||
} else if (a == INV_CLEAR) {
|
} else if (a == INV_CLEAR) {
|
||||||
if (cubot.getHeldItem() == 0x0001) {
|
if (cubot.getHeldItem() == 0x0001) {
|
||||||
cubot.storeEnergy(4000);
|
int energy = GameServer.INSTANCE.getConfig().getInt("biomassEnergyValue");
|
||||||
|
cubot.storeEnergy(energy);
|
||||||
cubot.setHeldItem(0);
|
cubot.setHeldItem(0);
|
||||||
}
|
}
|
||||||
else if (cubot.spendEnergy(100)) {
|
else if (cubot.spendEnergy(100)) {
|
||||||
|
@ -44,6 +44,8 @@ minBiomassRespawnCount=2
|
|||||||
# Maximum biomass blob count for the WorldGenerator
|
# Maximum biomass blob count for the WorldGenerator
|
||||||
maxBiomassCount=10
|
maxBiomassCount=10
|
||||||
maxBiomassRespawnCount=6
|
maxBiomassRespawnCount=6
|
||||||
|
# Energy generated by consuming biomass
|
||||||
|
biomassEnergyValue=1000
|
||||||
# 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