Code: Select all
LuaEntityPrototype::max_energy_usage
Code: Select all
LuaEntityPrototype::energy_usage
When calling
Code: Select all
LuaEntity::energy
When not fully powered, the value matches the consumption in the power statistics GUI.
My goal is to retrieve a percentage of available power to that entity.