-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsettings.lua
89 lines (87 loc) · 1.96 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
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
88
89
data:extend({
{
type = "string-setting",
name = "bztungsten-recipe-bypass",
setting_type = "startup",
default_value = "",
allow_blank = true,
order = "aba",
},
{
type = "string-setting",
name = "bztungsten-more-intermediates",
setting_type = "startup",
default_value = "no",
allowed_values = {"cuw", "no"},
order = "aca",
},
{
type = "string-setting",
name = "bztungsten-avoid-military",
setting_type = "startup",
default_value = "yes",
allowed_values = {"yes", "no"},
order = "ada",
},
{
type = "string-setting",
name = "bztungsten-advanced-carbon-furnace",
setting_type = "startup",
default_value = "no",
allowed_values = {"yes", "no"},
hidden = not not (mods.Krastorio2 or mods.bzfoundry),
order = "aea",
},
})
if mods.Krastorio2 then
data:extend({
{
type = "string-setting",
name = "bztungsten-mining-fluid-k2",
setting_type = "startup",
default_value = "mineral-water",
allowed_values = {"mineral-water", "water"},
order = "aga",
},
{
type = "int-setting",
name = "bztungsten-mining-fluid-amount-k2",
setting_type = "startup",
default_value = 1,
minimum_value = 1,
maximum_value = 1000,
order = "agb",
},
})
else
data:extend({
{
type = "bool-setting",
name = "bztungsten-starting-patch",
setting_type = "startup",
default_value = false,
hidden = not not mods.Krastorio2,
order = "afa",
},
{
type = "int-setting",
name = "bztungsten-mining-fluid-amount",
setting_type = "startup",
default_value = 10,
minimum_value = 1,
maximum_value = 1000,
order = "aga",
},
})
end
if mods["space-exploration"] and string.sub(mods["space-exploration"], 1, 3) >= "0.6" then
data:extend({
{
type = "bool-setting",
name = "bztungsten-se-sintering",
setting_type = "startup",
default_value = false,
order = "acm",
}
})
end