Here are three parts of code of vanilla 0.16.51:
Code: Select all
data.raw["rocket-silo"]["rocket-silo"].energy_usage = "250kW"
data.raw["rocket-silo"]["rocket-silo"].idle_energy_usage = "10KW"
Code: Select all
data.raw.inserter.inserter.energy_source.type = "electric"
data.raw.inserter.inserter.energy_source.usage_priority = "secondary-input"
data.raw.inserter.inserter.energy_source.drain = "0.4kW"
Code: Select all
data.raw["electric-turret"]["laser-turret"].energy_source.type = "electric"
data.raw["electric-turret"]["laser-turret"].energy_source.buffer_capacity = "801kJ"
data.raw["electric-turret"]["laser-turret"].energy_source.input_flow_limit = "9600kW"
data.raw["electric-turret"]["laser-turret"].energy_source.drain = "24kW"
data.raw["electric-turret"]["laser-turret"].energy_source.usage_priority = "primary-input"
Is it possible to add energy_usage and idle_energy_usage to all entities instead of drain? As you read this, you probably can't see common difference between them.
Drain: the energy, that entity takes 100% of time, there is no difference works this entity or not. So total energy in this situation is energy_usage+drain.
Energy usage is the power of working entity: this power is consumption power when this entity works, but apart from grain energy.
Idle energy usage is the power, what this energy takes when it doesn't work. Instead of drain, this power has no affect on working machine.
So, why we have drain power, when we can define separately energy_usage and idle_energy_usage?