forked from dtandersen/AdequateBotStart
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsettings.lua
More file actions
48 lines (47 loc) · 1.15 KB
/
Copy pathsettings.lua
File metadata and controls
48 lines (47 loc) · 1.15 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
data:extend({
{
type = "int-setting",
name = "starting-robot-count",
setting_type = "runtime-global",
default_value = 50,
minimum_value = 50,
maximum_value = 500,
order = "01"
},
{
type = "int-setting",
name = "faster-robots",
setting_type = "runtime-global",
default_value = 0,
minimum_value = 0,
maximum_value = 6,
order = "02"
},
{
type = "bool-setting",
name = "shield-start",
setting_type = "runtime-global",
default_value = false,
order = "04"
},
{
type = "bool-setting",
name = "defense-start",
setting_type = "runtime-global",
default_value = false,
order = "05"
}
})
local has_quality = mods["quality"] and true or false
data:extend{
-- Other settings
{
type = "string-setting",
name = "mbs-quality",
setting_type = "runtime-global",
default_value = "normal",
allowed_values = has_quality and { "normal", "uncommon", "rare", "epic", "legendary" } or {"normal"},
hidden = not has_quality,
order = "03"
},
}