-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.lua
431 lines (403 loc) · 20.9 KB
/
data.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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
require("prototypes.technology.robotcapacity")
require("prototypes.technology.crafting-speed")
require("prototypes.technology.run-speed")
require("prototypes.waterfill.waterfill")
require("prototypes.rocket-silo")
--transport
--Comp Solars and accumulators
require("prototypes.compact-solar.advanced-accumulator")
require("prototypes.compact-solar.elite-accumulator")
require("prototypes.compact-solar.ultimate-accumulator")
require("prototypes.compact-solar.advanced-solar")
require("prototypes.compact-solar.elite-solar")
require("prototypes.compact-solar.ultimate-solar")
require("prototypes.compact-solar.compact-solar-technology")
if data.raw["assembling-machine"]["y-crusher"] then
require("prototypes.smart-stack.inserter-vfast-ns")
require("prototypes.smart-stack.inserter-vfast")
require("prototypes.tele-bots.tele-bots-technology")
require("prototypes.tele-bots.robot-logic_3")
require("prototypes.tele-bots.robot-cons_3")
end
if data.raw["recipe"]["yir_coins_gen1_recipe"] then
require("prototypes.4aw-cargowagons.4aw_ironore")
require("prototypes.4aw-cargowagons.4aw_copperore")
require("prototypes.4aw-cargowagons.4aw_stone")
require("prototypes.4aw-cargowagons.4aw_coal")
require("prototypes.4aw-cargowagons.4aw_saphiriteore")
require("prototypes.4aw-cargowagons.4aw_jivoliteore")
require("prototypes.4aw-cargowagons.4aw_stiratiteore")
require("prototypes.4aw-cargowagons.4aw_crotinniumore")
require("prototypes.4aw-cargowagons.4aw_rubyteore")
require("prototypes.4aw-cargowagons.4aw_bobmoniumore")
end
require("prototypes.advanced-equipment.advanced-equipment")
require("prototypes.advanced-equipment.vehicle-equipment")
if data.raw["module"]["speed-module-8"] then
require("prototypes.advanced-equipment.advanced-equipment-recipes-bobs")
else
require("prototypes.advanced-equipment.advanced-equipment-recipes")
end
require("prototypes.void-chest.void-chest")
require("prototypes.void-pipe.void-pipe")
--for i, a in pairs(data.raw["fluid"]) do
-- a.auto_barrel = true
--end
data.raw.item["sulfur"].stack_size = 200
data.raw["rail-planner"]["rail"].stack_size = 200
data.raw.item["uranium-ore"].stack_size = 200
data.raw.item["iron-ore"].stack_size = 200
data.raw.item["copper-ore"].stack_size = 200
data.raw.item["coal"].stack_size = 200
data.raw.item["stone"].stack_size = 200
data.raw.item["wood"].stack_size = 500
data.raw.item["copper-cable"].stack_size = 500
data.raw.item["stone-brick"].stack_size = 10000
data.raw.item["iron-plate"].stack_size = 200
data.raw.item["steel-plate"].stack_size = 200
data.raw.item["copper-plate"].stack_size = 200
data.raw.item["pipe"].stack_size = 100
data.raw.item["steam-engine"].stack_size = 50
data.raw.item["hazard-concrete"].stack_size = 10000
data.raw.item["landfill"].stack_size = 10000
data.raw.item["concrete"].stack_size = 10000
data.raw.item["refined-concrete"].stack_size = 10000
data.raw.item["refined-hazard-concrete"].stack_size = 10000
data.raw.item["rocket-fuel"].stack_size = 100
data.raw.item["low-density-structure"].stack_size = 100
data.raw.item["rocket-control-unit"].stack_size = 100
data.raw.item["solid-fuel"].stack_size = 200
require("prototypes.labs.labs")
require("prototypes.transport.pipe-ground-1-30")
require("prototypes.transport.pipe-ground-1-50")
require("prototypes.transport.transport-belt-ground-1-30")
require("prototypes.transport.transport-belt-ground-2-30")
require("prototypes.transport.transport-belt-ground-3-30")
require("prototypes.transport.transport-belt-ground-1-50")
require("prototypes.transport.transport-belt-ground-2-50")
require("prototypes.transport.transport-belt-ground-3-50")
data.raw["gun"]["artillery-wagon-cannon"]["attack_parameters"].range = 12 * 32
require("prototypes.energy-void.energy-void")
require("prototypes.transport.tech")
require("prototypes.groups.item-groups-transport")
data.raw.gun["submachine-gun"].attack_parameters.sound = {{filename = "__CMod__/sounds/submachinegun.ogg", volume = 1 }}
data.raw.character.character.inventory_size = 180
if not settings.startup["lite_mode"].value then
require("prototypes.technology.insterter-capacity-bonus")
data.raw.tool["automation-science-pack"].stack_size = 2000
data.raw.tool["logistic-science-pack"].stack_size = 2000
data.raw.tool["chemical-science-pack"].stack_size = 2000
data.raw.tool["military-science-pack"].stack_size = 2000
data.raw.tool["production-science-pack"].stack_size = 2000
data.raw.tool["utility-science-pack"].stack_size = 2000
data.raw.tool["space-science-pack"].stack_size = 2000
data.raw.item["sulfur"].stack_size = 200
data.raw["rail-planner"]["rail"].stack_size = 200
data.raw.item["uranium-ore"].stack_size = 200
data.raw.item["iron-ore"].stack_size = 200
data.raw.item["copper-ore"].stack_size = 200
data.raw.item["coal"].stack_size = 200
data.raw.item["stone"].stack_size = 200
data.raw.item["wood"].stack_size = 500
data.raw.item["copper-cable"].stack_size = 500
data.raw.item["stone-brick"].stack_size = 10000
data.raw.item["iron-plate"].stack_size = 200
data.raw.item["steel-plate"].stack_size = 200
data.raw.item["copper-plate"].stack_size = 200
data.raw.item["pipe"].stack_size = 100
data.raw.item["steam-engine"].stack_size = 50
data.raw.item["hazard-concrete"].stack_size = 10000
data.raw.item["landfill"].stack_size = 10000
data.raw.item["concrete"].stack_size = 10000
data.raw.item["refined-concrete"].stack_size = 10000
data.raw.item["refined-hazard-concrete"].stack_size = 10000
data.raw.item["rocket-fuel"].stack_size = 100
data.raw.item["low-density-structure"].stack_size = 100
data.raw.item["rocket-control-unit"].stack_size = 100
data.raw.module["speed-module"].stack_size = 100
data.raw.module["speed-module-2"].stack_size = 100
data.raw.module["speed-module-3"].stack_size = 100
data.raw.module["productivity-module"].stack_size = 100
data.raw.module["productivity-module-2"].stack_size = 100
data.raw.module["productivity-module-3"].stack_size = 100
data.raw.module["effectivity-module"].stack_size = 100
data.raw.module["effectivity-module-2"].stack_size = 100
data.raw.module["effectivity-module-3"].stack_size = 100
data.raw.item["beacon"].stack_size = 50
data.raw["fluid"]["steam"].auto_barrel = true
end
if data.raw["assembling-machine"]["y-crusher"] then
data.raw.item["yi_beacon"].se_allow_in_space = true
end
data.raw["utility-sounds"]["default"]["armor_insert"] = {{filename = "__CMod__/sounds/xp-hardware-insert.ogg"}}
data.raw["utility-sounds"]["default"]["armor_remove"] = {{filename = "__CMod__/sounds/xp-hardware-remove.ogg"}}
if data.raw["fluid"]["lithia-water"] then
for i,v in ipairs({"hydrogen", "oxygen", "nitrogen", "chlorine", "hydrogen-chloride", "nitrogen-dioxide", "liquid-air"}) do
data.raw["fluid"][v].auto_barrel = true
end
end
if data.raw["item"]["raw-rare-metals"] then
data.raw.item["wood"].stack_size = 500
else
if data.raw["fluid"]["ammonia"] then
for i,v in ipairs({"ammonia", "nitric-oxide", "nitrogen-dioxide"}) do
data.raw["fluid"][v].auto_barrel = true
end
end
end
if data.raw.container["subspace-item-injector"] then
data.raw.container["subspace-item-injector"].collision_box = {{-1.2, -1.2}, {1.2, 1.2}}
data.raw.container["subspace-item-injector"].selection_box = {{-1.5, -1.5}, {1.5, 1.5}}
data.raw.container["subspace-item-injector"]["picture"].layers = {
{
filename = "__subspace_storage__/graphics/entity/item-injector.png",
width = 254,
height = 242,
scale = 0.36,
shift = util.by_pixel(0.0, 0.4),
hr_version = {
filename = "__subspace_storage__/graphics/entity/item-injector-hr.png",
width = 506,
height = 483,
shift = util.by_pixel_hr(0.0, 0.6),
scale = 0.18,
},
},
{
filename = "__subspace_storage__/graphics/entity/item-shadow.png",
width = 111,
height = 201,
scale = 0.36,
shift = util.by_pixel(63.54, 7.38),
draw_as_shadow = true,
hr_version = {
filename = "__subspace_storage__/graphics/entity/item-shadow-hr.png",
width = 222,
height = 401,
shift = util.by_pixel_hr(127.44, 14.94),
scale = 0.18,
draw_as_shadow = true,
}}}
data.raw["logistic-container"]["subspace-item-extractor"].collision_box = {{-1.2, -1.2}, {1.2, 1.2}}
data.raw["logistic-container"]["subspace-item-extractor"].selection_box = {{-1.5, -1.5}, {1.5, 1.5}}
data.raw["logistic-container"]["subspace-item-extractor"]["picture"].layers = {
{
filename = "__subspace_storage__/graphics/entity/item-extractor.png",
width = 254,
height = 242,
scale = 0.36,
shift = util.by_pixel(0.0, 0.36),
hr_version = {
filename = "__subspace_storage__/graphics/entity/item-extractor-hr.png",
width = 506,
height = 483,
shift = util.by_pixel_hr(0.0, 0.54),
scale = 0.18,
}
},
{
filename = "__subspace_storage__/graphics/entity/item-shadow.png",
width = 111,
height = 201,
scale = 0.36,
shift = util.by_pixel(63.54, 7.38),
draw_as_shadow = true,
hr_version = {
filename = "__subspace_storage__/graphics/entity/item-shadow-hr.png",
width = 222,
height = 401,
shift = util.by_pixel_hr(127.44, 14.94),
scale = 0.18,
draw_as_shadow = true,
}}}
data.raw["storage-tank"]["subspace-fluid-injector"].collision_box = {{-1.2, -1.2}, {1.2, 1.2}}
data.raw["storage-tank"]["subspace-fluid-injector"].selection_box = {{-1.5, -1.5}, {1.5, 1.5}}
data.raw["storage-tank"]["subspace-fluid-injector"]["fluid_box"].pipe_connections = {{type = "input", position = {0, -2}}, {type = "input", position = {0, 2}}, {type = "input", position = {2, 0}}, {type = "input", position = {-2, 0}}}
data.raw["storage-tank"]["subspace-fluid-injector"]["pictures"]["picture"].layers = {
{
filename = "__subspace_storage__/graphics/entity/fluid-injector.png",
width = 256,
height = 268,
scale = 0.36,
shift = util.by_pixel(0.0, 0.0),
hr_version = {
filename = "__subspace_storage__/graphics/entity/fluid-injector-hr.png",
width = 512,
height = 534,
shift = util.by_pixel_hr(0.0, 0.0),
scale = 0.18,
}
},
{
filename = "__subspace_storage__/graphics/entity/fluid-shadow.png",
width = 354,
height = 226,
scale = 0.36,
shift = util.by_pixel(19.8, 9),
draw_as_shadow = true,
hr_version = {
filename = "__subspace_storage__/graphics/entity/fluid-shadow-hr.png",
width = 708,
height = 453,
shift = util.by_pixel_hr(40, 18.135),
scale = 0.18,
draw_as_shadow = true,
}}}
data.raw["assembling-machine"]["subspace-fluid-extractor"].fluid_boxes = {
{
production_type = "output",
pipe_covers = pipecoverspictures(),
base_area = 250,
base_level = 1,
pipe_connections = {
{ type = "output", position = {-2, 0} },
{ type = "output", position = {2, 0} },
{ type = "output", position = {0, 2} },
{ type = "output", position = {0, -2} },
},
},
off_when_no_fluid_recipe = false,
}
data.raw["assembling-machine"]["subspace-fluid-extractor"].collision_box = {{-1.2, -1.2}, {1.2, 1.2}}
data.raw["assembling-machine"]["subspace-fluid-extractor"].selection_box = {{-1.5, -1.5}, {1.5, 1.5}}
data.raw["assembling-machine"]["subspace-fluid-extractor"]["animation"].layers = {
{
filename = "__subspace_storage__/graphics/entity/fluid-extractor.png",
width = 256,
height = 268,
scale = 0.36,
shift = util.by_pixel(0.0, 0.0),
hr_version = {
filename = "__subspace_storage__/graphics/entity/fluid-extractor-hr.png",
width = 512,
height = 534,
shift = util.by_pixel_hr(0.0, 0.0),
scale = 0.18,
},
},
{
filename = "__subspace_storage__/graphics/entity/fluid-shadow.png",
width = 354,
height = 226,
scale = 0.36,
shift = util.by_pixel(19.8, 9),
draw_as_shadow = true,
hr_version = {
filename = "__subspace_storage__/graphics/entity/fluid-shadow-hr.png",
width = 708,
height = 453,
shift = util.by_pixel_hr(40.0, 18.18),
scale = 0.18,
draw_as_shadow = true,
}}}
data.raw.accumulator["subspace-electricity-injector"].collision_box = {{-1.2, -1.2}, {1.2, 1.2}}
data.raw.accumulator["subspace-electricity-injector"].selection_box = {{-1.5, -1.5}, {1.5, 1.5}}
data.raw.accumulator["subspace-electricity-injector"]["picture"].layers = {
{
filename = "__subspace_storage__/graphics/entity/electricity-injector.png",
width = 256,
height = 251,
scale = 0.36,
shift = util.by_pixel(0.0, 0.54),
hr_version = {
filename = "__subspace_storage__/graphics/entity/electricity-injector-hr.png",
width = 512,
height = 502,
shift = util.by_pixel_hr(0.0, 1.08),
scale = 0.18,
},
},
{
filename = "__subspace_storage__/graphics/entity/electricity-shadow.png",
width = 345,
height = 229,
scale = 0.36,
shift = util.by_pixel(21.42, 4.5),
draw_as_shadow = true,
hr_version = {
filename = "__subspace_storage__/graphics/entity/electricity-shadow-hr.png",
width = 693,
height = 457,
shift = util.by_pixel_hr(42.66, 9.18),
scale = 0.18,
draw_as_shadow = true,
}}}
data.raw.accumulator["subspace-electricity-extractor"].collision_box = {{-1.2, -1.2}, {1.2, 1.2}}
data.raw.accumulator["subspace-electricity-extractor"].selection_box = {{-1.5, -1.5}, {1.5, 1.5}}
data.raw.accumulator["subspace-electricity-extractor"]["picture"].layers = {
{
filename = "__subspace_storage__/graphics/entity/electricity-extractor.png",
width = 256,
height = 251,
scale = 0.36,
shift = util.by_pixel(0.0, 0.54),
hr_version = {
filename = "__subspace_storage__/graphics/entity/electricity-extractor-hr.png",
width = 512,
height = 502,
shift = util.by_pixel_hr(0.0, 1.8),
scale = 0.18,
},
},
{
filename = "__subspace_storage__/graphics/entity/electricity-shadow.png",
width = 345,
height = 229,
scale = 0.36,
shift = util.by_pixel(21.42, 4.5),
draw_as_shadow = true,
hr_version = {
filename = "__subspace_storage__/graphics/entity/electricity-shadow-hr.png",
width = 693,
height = 457,
shift = util.by_pixel_hr(42.66, 9.18),
scale = 0.18,
draw_as_shadow = true,
}}}
end
if data.raw["recipe"]["solid-plastic"] then
data.raw["recipe"]["solid-plastic"].category = "chemistry"
data.raw["recipe"]["solid-plastic"]["normal"].ingredients ={{type="fluid", name="liquid-plastic", amount=5}}
data.raw["recipe"]["solid-plastic"]["expensive"].ingredients ={{type="fluid", name="liquid-plastic", amount=10}}
data:extend({{type = "recipe",name = "bob-resin-wood",category = "crafting-machine",subgroup = "bob-resource",energy_required = 1,ingredients = {{ "wood", 1},},result = "resin"}})
data:extend({{type = "recipe",name = "rocket-fuel",category = "chemistry",energy_required = 30,ingredients = {{"rocket-fuel-capsule", 1},{ "rocket-oxidizer-capsule", 1}},result = "rocket-fuel"}})
data.raw["assembling-machine"]["advanced-chemical-plant"]. module_specification = {module_slots = 4}
data.raw["assembling-machine"]["advanced-chemical-plant-2"]. module_specification = {module_slots = 6}
data.raw["assembling-machine"]["gas-refinery"]. module_specification = {module_slots = 3}
data.raw["assembling-machine"]["gas-refinery-2"]. module_specification = {module_slots = 4}
data.raw["assembling-machine"]["gas-refinery-3"]. module_specification = {module_slots = 5}
data.raw["assembling-machine"]["gas-refinery-4"]. module_specification = {module_slots = 6}
data.raw["assembling-machine"]["angels-chemical-plant"]. module_specification = {module_slots = 3}
data.raw["assembling-machine"]["angels-chemical-plant-2"]. module_specification = {module_slots = 4}
data.raw["assembling-machine"]["angels-chemical-plant-3"]. module_specification = {module_slots = 5}
data.raw["assembling-machine"]["angels-chemical-plant-4"]. module_specification = {module_slots = 6}
data.raw["assembling-machine"]["angels-electrolyser"]. module_specification = {module_slots = 3}
data.raw["assembling-machine"]["angels-electrolyser-2"]. module_specification = {module_slots = 4}
data.raw["assembling-machine"]["angels-electrolyser-3"]. module_specification = {module_slots = 5}
data.raw["assembling-machine"]["angels-electrolyser-4"]. module_specification = {module_slots = 6}
data.raw["assembling-machine"]["gas-refinery-small"]. module_specification = {module_slots = 3}
data.raw["assembling-machine"]["gas-refinery-small-2"]. module_specification = {module_slots = 4}
data.raw["assembling-machine"]["gas-refinery-small-3"]. module_specification = {module_slots = 5}
data.raw["assembling-machine"]["gas-refinery-small-4"]. module_specification = {module_slots = 6}
data.raw["assembling-machine"]["separator"]. module_specification = {module_slots = 3}
data.raw["assembling-machine"]["separator-2"]. module_specification = {module_slots = 4}
data.raw["assembling-machine"]["separator-3"]. module_specification = {module_slots = 5}
data.raw["assembling-machine"]["separator-4"]. module_specification = {module_slots = 6}
data.raw["assembling-machine"]["steam-cracker"]. module_specification = {module_slots = 3}
data.raw["assembling-machine"]["steam-cracker-2"]. module_specification = {module_slots = 4}
data.raw["assembling-machine"]["steam-cracker-3"]. module_specification = {module_slots = 5}
data.raw["assembling-machine"]["steam-cracker-4"]. module_specification = {module_slots = 6}
local productivity_item_list = { "liquid-ferric-chloride-solution", "liquid-cupric-chloride-solution", "dirt-water-separation", "dirt-water-separation-2", "water-separation", "water-separation-2", "water-gas-shift-1", "water-gas-shift-2", "carbon-separation-1", "carbon-separation-2", "coke-purification", "coal-crushed", "solid-coke", "coke-purification-2", "solid-coke-sulfur", "pellet-coke", "coal-cracking-1", "coal-cracking-2", "coal-cracking-3", "gas-separation", "gas-refining", "gas-fractioning", "gas-fractioning-synthesis", "gas-fractioning-condensates", "gas-fractioning-residual", "condensates-refining", "gas-synthesis-separation", "gas-synthesis-methanation", "oil-separation", "oil-refining", "advanced-oil-refining", "residual-oil-refining", "condensates-oil-refining", "steam-cracking-naphtha", "steam-cracking-mineral-oil", "steam-cracking-fuel-oil", "mineral-oil-lubricant", "steam-cracking-methane", "steam-cracking-ethane", "steam-cracking-butane", "catalyst-steam-cracking-butane", "catalyst-steam-cracking-naphtha", "liquid-polyethylene-catalyst", "gas-formaldehyde-catalyst", "liquid-phenol-catalyst", "gas-propene-synthesis", "liquid-ethylbenzene-catalyst", "liquid-bisphenol-a", "cumene-process", "liquid-ethylene-carbonate", "gas-ethylene-oxide", "water-saline-separation", "solid-salt-separation", "gas-chlor-methane", "gas-hydrogen-chloride", "liquid-hydrochloric-acid", "gas-allylchlorid", "gas-epichlorhydrin", "liquid-glycerol", "solid-sodium-perchlorate", "liquid-hydrochloric-acid-solid-sodium-sulfate", "solid-sodium-hydroxide-solid-sodium-sulfate", "angels-hydrogen-sulfide-enrichment", "angels-heavy-water-extraction", "angels-heavy-water-cooling", "angels-heavy-water-separation", "angels-heavy-water-separation-2", "solid-plastic", "solid-resin", "solid-rubber", "solid-calcium-chloride", "gas-acid-catalyst", "solid-sulfur", "gas-sulfur-dioxide", "gas-sulfur-dioxide-calcium-sulfate", "liquid-sulfuric-acid", "liquid-hydrofluoric-acid", "liquid-hydrogen-fluoride", "gas-hydrogen-fluoride", "angels-sulfur-scrubber", "air-separation", "gas-nitrogen-dioxide", "gas-ammonium-chloride", "gas-urea", "liquid-nitric-acid", "gas-monochloramine", "gas-methylamine", "gas-dimethylamine", "gas-dimethylhydrazine", "solid-sodium-nitrate-processing", "sodium-nitrate-acid-processing", "gas-phosgene", "rocket-oxidizer-capsule", "rocket-fuel-capsule"}
for _, module in pairs(data.raw.module) do
if module.effect and module.limitation then
for effect_name in pairs(module.effect) do
if effect_name == "productivity"then
for _, item in pairs( productivity_item_list) do
table.insert(module.limitation, item)
end
break
end
end
end
end
end