forked from tburrows13/FreightForwarding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.lua
32 lines (27 loc) · 1.6 KB
/
settings.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
-- Set the special item cost for each bridge to 20
if data.raw["int-setting"]["bbr-fix-cost"] then
data.raw["int-setting"]["bbr-fix-cost"].allowed_values = {20}
data.raw["int-setting"]["bbr-fix-cost"].default_value = 20
data.raw["int-setting"]["bbr-fix-cost"].hidden = true
data.raw["bool-setting"]["rail-signal-on-water"].forced_value = false
data.raw["bool-setting"]["rail-signal-on-water"].hidden = true
data.raw["bool-setting"]["big-power-poles-on-water"].forced_value = false
data.raw["bool-setting"]["big-power-poles-on-water"].hidden = true
end
-- Force offshore oil, no inland oil
data.raw["bool-setting"]["deep_oil"].forced_value = true
data.raw["bool-setting"]["deep_oil"].hidden = true
data.raw["bool-setting"]["no_oil_on_land"].forced_value = true
data.raw["bool-setting"]["no_oil_on_land"].hidden = true
data.raw["bool-setting"]["no_shallow_oil"].forced_value = false
data.raw["bool-setting"]["no_shallow_oil"].hidden = true
data.raw["bool-setting"]["no_oil_for_oil_rig"].forced_value = true
data.raw["bool-setting"]["no_oil_for_oil_rig"].hidden = true
data.raw["string-setting"]["oil_richness"].allowed_values = { "good" }
data.raw["string-setting"]["oil_richness"].default_value = "good"
data.raw["string-setting"]["oil_richness"].hidden = true
-- Hide legacy IslandStart settings (settings 2 and 3 have no effect when 1 is false)
data.raw["bool-setting"]["IslandStart-enabled"].forced_value = false
data.raw["bool-setting"]["IslandStart-enabled"].hidden = true
data.raw["string-setting"]["IslandStart-perimeter-type"].hidden = true
data.raw["bool-setting"]["IslandStart-place-override"].hidden = true