Code: Select all
LuaEntityPrototype::max_energy_usageCode: Select all
LuaEntityPrototype::energy_usageWhen calling
Code: Select all
LuaEntity::energyWhen 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.
