Beacon distribution effects
Posted: Wed Oct 18, 2017 8:21 pm
![Image](https://forums.factorio.com/images/ext/7d3a267aa618611fa81c975174caeeb0.png)
(The things on the orange box above)
You can already get a beacon's distribution efficiency on 0.15 with LuaEntityPrototype.distribution_effectivity, but to get a beacon's several effects currently you need to:
* Get the beacon's module inventory
* Iterate each module, get their effects which are part of its prototype, and add them
* Multiply by the beacon's distribution effectivity
If it's feasible for LuaEntity to have a read-only table of the summed effects (multiplied by the distribution effectivity or not, my issue here is the performance penalty on iterating on an inventory and checking module's prototypes), that'd be very helpful. Thank you!