How to access properties of a prototype in control.lua
Posted: Tue Feb 19, 2019 3:36 pm
I'm making my first mod recently, and I need to access properties of a prototype which is not listed in the properties of a LuaEntityPrototype.
For example, I need too know the energy_consumption of a boiler (seehttps://wiki.factorio.com/Prototype/Boiler), but data.raw["boiler"]["boiler"]["energy_consumption"] is unavailable in control.lua. What should I do?
For example, I need too know the energy_consumption of a boiler (seehttps://wiki.factorio.com/Prototype/Boiler), but data.raw["boiler"]["boiler"]["energy_consumption"] is unavailable in control.lua. What should I do?