-
Notifications
You must be signed in to change notification settings - Fork 4
/
settings-updates.lua
87 lines (76 loc) · 3.32 KB
/
settings-updates.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
local function change_string(name, value)
local settingitem = data.raw["string-setting"][name]
if settingitem then
settingitem.hidden = true
settingitem.allowed_values = { value }
settingitem.default_value = value
settingitem.forced_value = value
end
end
local function change_bool(name, value)
local settingitem = data.raw["bool-setting"][name]
if settingitem then
settingitem.hidden = true
settingitem.allowed_values = { value }
settingitem.default_value = value
settingitem.forced_value = value
end
end
local function change_double(name, value)
local settingitem = data.raw["int-setting"][name]
if settingitem then
settingitem.hidden = true
settingitem.allowed_values = { value }
settingitem.default_value = value
settingitem.forced_value = value
end
end
local alien_biomes_settings = {
["alien-biomes-include-dirt-aubergine"] = "Enabled",
["alien-biomes-include-dirt-beige"] = "Enabled",
["alien-biomes-include-dirt-black"] = "Enabled",
["alien-biomes-include-dirt-brown"] = "Enabled",
["alien-biomes-include-dirt-cream"] = "Enabled",
["alien-biomes-include-dirt-dustyrose"] = "Enabled",
["alien-biomes-include-dirt-grey"] = "Enabled",
["alien-biomes-include-dirt-purple"] = "Enabled",
["alien-biomes-include-dirt-red"] = "Enabled",
["alien-biomes-include-dirt-tan"] = "Enabled",
["alien-biomes-include-dirt-violet"] = "Enabled",
["alien-biomes-include-dirt-white"] = "Enabled",
["alien-biomes-include-frozen"] = "Enabled",
["alien-biomes-include-grass-blue"] = "Enabled",
["alien-biomes-include-grass-green"] = "Enabled",
["alien-biomes-include-grass-mauve"] = "Enabled",
["alien-biomes-include-grass-olive"] = "Enabled",
["alien-biomes-include-grass-orange"] = "Enabled",
["alien-biomes-include-grass-purple"] = "Enabled",
["alien-biomes-include-grass-red"] = "Enabled",
["alien-biomes-include-grass-turquoise"] = "Enabled",
["alien-biomes-include-grass-violet"] = "Enabled",
["alien-biomes-include-grass-yellow"] = "Enabled",
["alien-biomes-include-sand-aubergine"] = "Enabled",
["alien-biomes-include-sand-beige"] = "Enabled",
["alien-biomes-include-sand-black"] = "Enabled",
["alien-biomes-include-sand-brown"] = "Enabled",
["alien-biomes-include-sand-cream"] = "Enabled",
["alien-biomes-include-sand-dustyrose"] = "Enabled",
["alien-biomes-include-sand-grey"] = "Enabled",
["alien-biomes-include-sand-purple"] = "Enabled",
["alien-biomes-include-sand-red"] = "Enabled",
["alien-biomes-include-sand-tan"] = "Enabled",
["alien-biomes-include-sand-violet"] = "Enabled",
["alien-biomes-include-sand-white"] = "Enabled",
["alien-biomes-include-volcanic-blue"] = "Enabled",
["alien-biomes-include-volcanic-green"] = "Enabled",
["alien-biomes-include-volcanic-orange"] = "Enabled",
["alien-biomes-include-volcanic-purple"] = "Enabled",
["alien-biomes-include-inland-shallows"] = "Enabled",
["alien-biomes-include-coastal-shallows"] = "Enabled",
--["alien-biomes-disable-vegetation"] = "Disabled",
--["alien-biomes-include-rivers"] = "Disabled"
}
for name, setting in pairs(alien_biomes_settings) do
change_string(name, setting)
end
change_double("tile-speed-reduction", 100)