Page 1 of 1

ElectricEnergySource - drain

Posted: Wed Nov 08, 2023 9:34 pm
by kubiix
Currently I am working on my prototype parser of data-raw-dump.json and I am missing something about ElectricEnergySource - drain property.

Documentation tells that it is optional, but there is no mention about default value or behavior.

For example both Electric Mining Drill and Assembling Machine 1 are without this property, but in game Minimg Drill has no Minimal energy and Assembling Machine 1 has 2.5kW

Are there some rules, how this is applied on different Entity Types, or how can I get this information from raw data?

Re: ElectricEnergySource - drain

Posted: Wed Nov 08, 2023 9:44 pm
by Rseding91
It is different per entity type and as far as I know there is no way to get it on the Lua side.

Re: ElectricEnergySource - drain

Posted: Wed Nov 08, 2023 10:07 pm
by kubiix
Actualy found mention about default drain on crafter prototype page that it takes 1/30 of energy usage when the energy source is electric.