The average lightning power density entry of a planet in the factoriopedia doesn't change with multiplier_surface_property. The actual lightning frequency still seems to be correctly affected by it, so the entry in factoriopedia must be wrong.
On that note, how is this number calculated by the game?
[Bilka] [2.0.76] LightningProperties multiplier_surface_property not taken into account by factoriopedia
-
radical_larry
- Burner Inserter

- Posts: 19
- Joined: Wed Dec 04, 2024 1:52 am
- Contact:
Re: [Bilka] [2.0.76] LightningProperties multiplier_surface_property not taken into account by factoriopedia
Thanks for the report, fixed for 2.1.
The value in the tooltip (in 2.1) is calculated the following way:
from the lightning properties, get all lightning type's "energy" and average those. get the multiplier from multiplier_surface_property. lerp between lightning_multiplier_at_day and lightning_multiplier_at_night with the default average darkness to get that multiplier. multiply all those with the lightnings_per_chunk_per_tick to get energy per tick per chunk, then divide by (32*32) to get the per tile value (then do the conversion per tick -> watt for display)
2.0.77 doesn't consider multiplier_surface_property at all and uses the default average darkness directly instead of doing the lerp with the multipliers
The value in the tooltip (in 2.1) is calculated the following way:
from the lightning properties, get all lightning type's "energy" and average those. get the multiplier from multiplier_surface_property. lerp between lightning_multiplier_at_day and lightning_multiplier_at_night with the default average darkness to get that multiplier. multiply all those with the lightnings_per_chunk_per_tick to get energy per tick per chunk, then divide by (32*32) to get the per tile value (then do the conversion per tick -> watt for display)
2.0.77 doesn't consider multiplier_surface_property at all and uses the default average darkness directly instead of doing the lerp with the multipliers
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
