-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathdata-updates.lua
220 lines (198 loc) · 6.64 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
if mods.pyindustry then
require "prototypes/updates/pyindustry-updates"
end
require "prototypes/updates/base-updates"
require "prototypes/updates/entity-updates"
require "prototypes/technologies/stacking-belts"
ITEM("automation-science-pack", "tool"):set("icon", "__pycoalprocessinggraphics__/graphics/icons/science-pack-1.png")
ITEM("automation-science-pack", "tool"):set("icon_size", 64)
ITEM("logistic-science-pack", "tool"):set("icon", "__pycoalprocessinggraphics__/graphics/icons/science-pack-2.png")
ITEM("logistic-science-pack", "tool"):set("icon_size", 64)
ITEM("chemical-science-pack", "tool"):set("icon", "__pycoalprocessinggraphics__/graphics/icons/science-pack-3.png")
ITEM("chemical-science-pack", "tool"):set("icon_size", 64)
ITEM("lab"):set("icon", "__pycoalprocessinggraphics__/graphics/icons/lab-mk01.png")
ITEM("lab"):set("icon_size", 64)
ITEM("electric-engine-unit"):set("icon", "__pycoalprocessinggraphics__/graphics/icons/electric-engine-unit.png")
ITEM("electric-engine-unit"):set("icon_size", 64)
RECIPE("small-electric-pole"):replace_result("small-electric-pole", {"small-electric-pole", amount = 1})
RECIPE("medium-electric-pole"):add_ingredient {type = "item", name = "niobium-plate", amount = 1}:replace_ingredient("copper-plate", {"copper-cable", 5}):replace_ingredient("iron-stick", {"nbfe-alloy", 2}):remove_ingredient("steel-plate")
RECIPE("big-electric-pole"):remove_ingredient("steel-plate"):remove_ingredient("copper-plate"):add_ingredient {type = "item", name = "niobium-plate", amount = 2}:add_ingredient {type = "item", name = "copper-cable", amount = 15}:replace_ingredient("iron-stick", {"steel-plate", 6})
RECIPE("chemical-plant"):remove_unlock("oil-processing"):set_fields {hidden = true}
ENTITY("chemical-plant"):set_fields {hidden = true}
ITEM("chemical-plant"):set_fields {hidden = true}
RECIPE("pump"):remove_unlock("fluid-handling"):add_unlock("engine")
require "prototypes/recipes/fuel-canister-recipes"
--remove base game oil processing stuff
require "prototypes/updates/base-oil"
--move barrels below everything else in intermediate tab
data.raw["item-subgroup"]["fill-barrel"].order = "y"
data.raw["item-subgroup"]["barrel"].order = "z"
--add handcrafting to player character
for _, player_type in pairs {"character", "god-controller"} do
for _, player in pairs(data.raw[player_type]) do
player.crafting_categories = player.crafting_categories or {}
table.insert(player.crafting_categories, "handcrafting")
player.crafting_categories = table.dedupe(player.crafting_categories)
end
end
data.raw["item-subgroup"]["science-pack"].group = "production"
data.raw["item-subgroup"]["science-pack"].order = "y"
--gather recipes for module changes
local recipes_list =
{
"active-carbon",
"air-pollution",
"alien-sample01",
"anthraquinone",
"aromatics-to-lubricant",
"aromatics-to-plastic",
"aromatics-to-rubber",
"aromatics",
"aromatics2",
"aromaticsolefin",
"ash-separation",
"bio-sample01",
"bonemeal",
"boron-trioxide",
"cladded-core",
"cladding",
"co2-organics",
"co2",
"coal-briquette",
"coal-fawogae",
"coal-gas-from-coke",
"coal-gas-from-wood",
"coal-gas",
"coaldust-ash",
"coarse-classification",
"coke-coal",
"combustion-mixture2",
"combustion-olefin",
"concrete-richclay",
"copper-coating",
"creosote-to-aromatics",
"creosote",
"crushed-copper",
"crushed-iron",
"crushing-copper",
"crushing-iron",
"diborane",
"dirty-reaction",
"drill-head",
"equipment-chassi",
"eva-ree-dust",
"explosive-glycerol",
"extract-coarse",
"extract-gravel",
"extract-richdust",
"extract-sand",
"extract-stone",
"extract-sulfur",
"fawogae-substrate",
"fawogae",
"fuelrod-mk01",
"glycerol-syngas",
"ground-sample01",
"heavy-oil_from_coal-gas",
"heavy-oleo",
"heavyoil-to-coal-gas",
"iron-oxide",
"kevlar-coating",
"kevlar",
"lab-instrument",
"light-oil_from_syngas",
"lightoil-to-syngas",
"lime",
"lithium-peroxide",
"log-organics",
"log-wood",
"log1",
"log2",
"log3",
"log4",
"log5",
"log6",
"making-chromium",
"mukmoux-fat",
"nas-battery",
"nbfe-coating",
"nexelit-cartridge",
"nichrome",
"niobium-complex",
"niobium-concentrate",
"niobium-dust",
"niobium-ore",
"niobium-oxide",
"niobium-powder",
"olefin-petgas",
"olefin",
"oleo-gasification",
"oleo-heavy",
"oleo-methanol",
"oleo-solidfuel",
"oleochemicals-crude-oil",
"oleochemicals-distilation",
"oleochemicals",
"optical-fiber",
"organic-solvent",
"organics-from-wood",
"organics-processing",
"petgas-from-refsyngas",
"petgas-methanol",
"petgas-to-refsyngas",
"ppd",
"ralesia-seeds",
"ralesia",
"raw-borax",
"ref-to-light-oil",
"refolefin",
"refsyngas-from-meth-canister",
"refsyngas-from-meth",
"rich-clay",
"rich-re",
"richdust-separation",
"sand-brick",
"sand-classification",
"saturated-nexelit-cartridge-regen",
"slacked-lime",
"soil-separation",
"soil",
"stone-distilation",
"sulfur-crudeoil",
"sulfur-heavyoil",
"sulfur-lightoil",
"sulfur-petgas",
"sulfuric-petgas",
"tailings-borax-niobium",
"tailings-classification",
"tailings-copper-iron",
"tailings-dust",
"tailings-separation",
"tpa",
"wood-to-coal",
"zinc-chloride",
}
table.insert(recipes_list, "niobium-plate")
--adding to module limitation list
py.allow_productivity(recipes_list)
RECIPE("beacon")
:add_ingredient {"sc-engine", 2}
:add_ingredient {"magnetic-ring", 10}
:add_ingredient {"intelligent-unit", 1}
:add_ingredient {"parametric-oscilator", 1}
:add_ingredient {"biopolymer", 10}
:add_ingredient {"super-alloy", 10}:remove_ingredient {"steel-plate"}
:add_ingredient {"tower-mk04", 1}
:add_ingredient {"processing-unit", 5}:remove_ingredient {"electronic-circuit"}:remove_ingredient {"advanced-circuit"}
:add_ingredient {"metastable-quasicrystal", 1}
:add_ingredient {type = "fluid", name = "r4", amount = 100}
if mods.pyalternativeenergy then data.raw.recipe.beacon.category = "crafting-with-fluid" end
RECIPE("beacon-mk01")
:add_ingredient {"self-assembly-monolayer", 1}
:add_ingredient {"mechanical-parts-02", 1}
:add_ingredient {"eva", 10}
:add_ingredient {"stainless-steel", 10}:remove_ingredient {"steel-plate"}
:add_ingredient {"tower-mk02", 1}
if register_cache_file ~= nil then
register_cache_file({"pycoalprocessing"}, "__pycoalprocessing__/cached-configs/pycoalprocessing.lua")
end