-
Notifications
You must be signed in to change notification settings - Fork 21
/
data.lua
18 lines (13 loc) · 1.22 KB
/
data.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require("config")
-- Select the science pack config file as requested. Initial data file.
sciencepackConfig = "tweaks." .. sciencecosttweaker.options.sciencePackConfig .. ".0_initial"
require(sciencepackConfig)
if (sciencecosttweaker.options.difficultyEvo ~= "noadjustment") then
-- Select the cost file depending on which one is requested.
evoConfig = "configs.evolutions." .. sciencecosttweaker.options.difficultyEvo
require(evoConfig)
-- Adjust evolution factor according to the config option chosen.
data.raw["map-settings"]["map-settings"]["enemy_evolution"].time_factor = data.raw["map-settings"]["map-settings"]["enemy_evolution"].time_factor * sciencecosttweaker.options.adjustEvolution.timeMultiplier; -- vanilla default: 0.000008
data.raw["map-settings"]["map-settings"]["enemy_evolution"].pollution_factor = data.raw["map-settings"]["map-settings"]["enemy_evolution"].pollution_factor * sciencecosttweaker.options.adjustEvolution.pollutionMultiplier; -- vanilla default: 0.00003
data.raw["map-settings"]["map-settings"]["enemy_evolution"].destroy_factor = data.raw["map-settings"]["map-settings"]["enemy_evolution"].destroy_factor * sciencecosttweaker.options.adjustEvolution.killNestsMultiplier; -- vanilla default: 0.005
end