Page 1 of 1

[MOD API] Expand the EnergySource with a 'solar' type

Posted: Wed Jan 22, 2020 1:51 pm
by everything-narrative
TL;DR
Add a 'solar' type to the EnergySource prototype, allowing for entitties that generate free power with the same intensity curve/duty cycle pattern as vanilla solar panels.
What ?
Currently there is no way to define custom solar-powered entities without resorting to silly Lua-based workarounds. The proposed EnergySource type would basically be a 'void' energy source with that same day-night intensity curve (70% duty-cycle) as vanilla solar panels.
Why ?
There are currently several mods implementing various kinds of solar-powered entities which do not fall under the SolarPanel prototype, which all have to work around this shortcoming of the EnergySource interface.