ElectricEnergySource - drain

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
kubiix
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon Jul 20, 2020 10:54 am
Contact:

ElectricEnergySource - drain

Post 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?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: ElectricEnergySource - drain

Post 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.
If you want to get ahold of me I'm almost always on Discord.

kubiix
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon Jul 20, 2020 10:54 am
Contact:

Re: ElectricEnergySource - drain

Post 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.

Post Reply

Return to “Modding discussion”