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.