Page 1 of 1

[0.18.36] Set energy doesn't work on misc types

Posted: Tue Jul 21, 2020 5:07 am
by wasmoo
I attempted to set the energy levels of certain entities from an on_tick() function.

Code: Select all

function setEnergy(entity)
    entity.energy = 999999999
end
The following types of entities could not achieve full power, even when energy was set very high:
  • lamp
  • decider-combinator
  • arithmetic-combinator
  • programmable-speaker

Re: [0.18.36] Set energy doesn't work on misc types

Posted: Tue Jul 21, 2020 2:32 pm
by Rseding91
Thanks for the report however that's all working correctly:

* Lamps have special power logic and only function when connected to electric networks

* Combinators and speakers have a power buffer of 1 tick, so unless you pause the game (or set the energy each tick) they will consume the power you set before you ever see it in the tooltip. They do work to set the power.