-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
data-updates.lua
74 lines (71 loc) · 2.23 KB
/
data-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
lazyAPI.get_stage() -- in order to get this stage internally
--#region set tags
local add_tags = lazyAPI.base.add_tags
local recipes = data.raw.recipe
local items = data.raw.item
for _, v in pairs(lazyAPI.materials) do
local name = v .. "-wire"
add_tags(recipes[name], "wire")
add_tags(items[name], "wire")
name = v .. "-cable"
add_tags(recipes[name], "cable")
add_tags(items[name], "cable")
name = v .. "-gear-wheel"
add_tags(recipes[name], "gear")
add_tags(items[name], "gear")
name = v .. "-plate"
add_tags(recipes[name], "plate")
add_tags(items[name], "plate")
name = v .. "-plate-heavy"
add_tags(recipes[name], "plate")
add_tags(items[name], "plate")
name = v .. "-cartridge"
add_tags(recipes[name], "cartridge")
add_tags(items[name], "cartridge")
name = v .. "-magazine"
add_tags(recipes[name], "magazine")
add_tags(data.raw.ammo[name], "magazine")
name = v .. "-ingot"
add_tags(recipes[name], "ingot")
add_tags(items[name], "ingot")
name = v .. "-stick"
add_tags(recipes[name], "rod")
add_tags(items[name], "rod")
name = v .. "-rod"
add_tags(recipes[name], "rod")
add_tags(items[name], "rod")
name = v .. "-beam"
add_tags(recipes[name], "beam")
add_tags(items[name], "beam")
name = v .. "-pellet"
add_tags(recipes[name], "pellet")
add_tags(items[name], "pellet")
name = v .. "-frame-small"
add_tags(recipes[name], "frame")
add_tags(items[name], "frame")
name = v .. "-frame-medium"
add_tags(recipes[name], "frame")
add_tags(items[name], "frame")
name = v .. "-frame-large"
add_tags(recipes[name], "frame")
add_tags(items[name], "frame")
name = v .. "-motor"
add_tags(recipes[name], "motor")
add_tags(items[name], "motor")
name = v .. "-piston"
add_tags(recipes[name], "piston")
add_tags(items[name], "piston")
name = v .. "-board"
add_tags(recipes[name], "circuit") -- perhaps wrong
add_tags(items[name], "circuit") -- perhaps wrong
end
add_tags(recipes["copper-cable"], "wire")
add_tags(items["copper-cable"], "wire")
for _, v in pairs{"advanced", "electronic"} do
local name = v .. "-circuit"
add_tags(recipes[name], "circuit")
add_tags(items[name], "circuit")
end
add_tags(recipes["processing-unit"], "circuit")
add_tags(items["processing-unit"], "circuit")
--#endregion