-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdata-final-fixes.lua
More file actions
41 lines (38 loc) · 1.56 KB
/
Copy pathdata-final-fixes.lua
File metadata and controls
41 lines (38 loc) · 1.56 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
data.raw.technology["tar-processing"].ignore_tech_cost_multiplier = true
data.raw.technology["engine"].ignore_tech_cost_multiplier = true
data.raw.technology["ash-separation"].ignore_tech_cost_multiplier = true
data.raw.technology["concrete"].ignore_tech_cost_multiplier = true
data.raw.technology["crusher"].ignore_tech_cost_multiplier = true
for name, recipe in pairs(data.raw.recipe) do
if recipe.category == "py-incineration" or recipe.category == "py-runoff" then
if name == "water-pyvoid-fluid" then
recipe.energy_required = 20
elseif name == "zipir1-pyvoid" or name == "zipir1-pyvoid-hatchery" then
recipe.enabled = false
recipe.category = "hpf"
recipe.flags = {}
recipe.hidden = nil
else
data.raw.recipe[name] = nil
end
elseif recipe.category == "py-venting" then
recipe.ingredients[1].amount = 50
RECIPE(name):add_ingredient {name = "filtration-media", amount = 1, type = "item"}:add_unlock("filtration")
data.raw.recipe[name].energy_required = 0.5
recipe.enabled = false
recipe.flags = {}
recipe.hidden = nil
end
end
if type(data.data_crawler) == "string" and string.sub(data.data_crawler, 1, 5) == "yafc " then
data.script_enabled = data.script_enabled or {}
table.insert(data.script_enabled, {
type = "item",
name = "burner-mining-drill",
})
table.insert(data.script_enabled, {
type = "item",
name = "offshore-pump",
})
end
RECIPE("zipir1-pyvoid"):add_unlock("zipir")