forked from tburrows13/FreightForwarding
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.lua
More file actions
57 lines (50 loc) · 1.81 KB
/
settings.lua
File metadata and controls
57 lines (50 loc) · 1.81 KB
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
data:extend{
{
type = "bool-setting",
name = "ff-disable-default-sims",
order = "a",
setting_type = "startup",
default_value = true
},
{
type = "bool-setting",
name = "ff-revert-locomotive-fuel-category",
setting_type = "startup",
default_value = false,
order = "b",
},
}
local function force_setting(setting_type, setting_name, value)
local setting = data.raw[setting_type .. "-setting"][setting_name]
if setting then
if setting_type == "bool" then
setting.forced_value = value
else
setting.allowed_values = { value }
end
setting.default_value = value
setting.hidden = true
end
end
-- Intermodal Containers
force_setting("string", "ic-machine-size", "4×4")
force_setting("double", "ic-stack-size-multiplier", 0.5)
force_setting("double", "ic-stacks-per-container", 20)
force_setting("int", "ic-container-stack-size", 1)
force_setting("double", "ic-cargo-wagon-inventory-multiplier", 1) -- Handled in our own inventory-sizes.lua
force_setting("double", "ic-belts-per-machine", 1)
force_setting("double", "ic-container-loss-chance", 0.01)
-- Force offshore oil, no inland oil
force_setting("bool", "deep_oil", true)
force_setting("bool", "no_oil_on_land", true)
force_setting("bool", "no_shallow_oil", true)
force_setting("bool", "no_oil_for_oil_rig", true)
force_setting("string", "oil_richness", "good")
-- Increase oil rig storage to match oil tanker's
force_setting("int", "oil_rig_capacity", 250)
-- Remove military science from spiderling and patrol technologies
force_setting("bool", "sp-remove-military-requirement", true)
-- Ensure missile hovercraft exists
force_setting("bool", "enable-mcraft", true)
require "__FreightForwarding__/compatibility/beautiful-bridge-railway/settings"
require "__FreightForwarding__/compatibility/krastorio2/settings"