Very minor modification to resource-autoplace.lua
Posted: Mon Mar 02, 2020 1:33 pm
Requesting that line 98 of the resource-autoplace.lua library function is changed from:
to:
This allows us to pass in a parameter modifying the relative frequency of specific ore patches without having to mess around with density, spots, all that black magic that's hard to understand. It will have no effect at all unless any mod starts specifying that parameter.
There are other parameters which do affect frequency but very chaotically, and I needed a way to influence patch frequency of a specific resource in the exact same way as the frequency slider in the map generation settings.
I can copy this library but it would lag behind any other changes made in the base game.
Code: Select all
local frequency_multiplier = control_setting.frequency_multiplier
Code: Select all
local frequency_multiplier = control_setting.frequency_multiplier * (params.frequency_multiplier or 1)
There are other parameters which do affect frequency but very chaotically, and I needed a way to influence patch frequency of a specific resource in the exact same way as the frequency slider in the map generation settings.
I can copy this library but it would lag behind any other changes made in the base game.