-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdata-final-fixes.lua
60 lines (45 loc) · 1.87 KB
/
data-final-fixes.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
require("modules")
require("tungsten-recipe-final-stacking")
require("tungsten-recipe-final-rrr")
-- require("tungsten-recipe-final-5d")
local util = require("__bztungsten__.data-util");
-- Only burners can make tungsten carbide in vanilla
for i, entity in pairs(data.raw.furnace) do
if entity.energy_source.type == "burner" then
if entity.name == "advanced-carbon-furnace" then
table.insert(entity.crafting_categories, "smelting-carbon")
end
for j, category in pairs(entity.crafting_categories) do
if category == "smelting" or category == "double-smelting" then
if entity.name == "double-steel-furnace" then
table.insert(entity.crafting_categories, "double-smelting-carbon")
else
table.insert(entity.crafting_categories, "smelting-carbon")
end
end
end
end
end
if mods["space-exploration"] then
-- core mining balancing
util.add_to_product("se-core-fragment-omni", "tungsten-ore", -3)
if string.sub(mods["space-exploration"], 1, 3) == "0.6" then
util.add_prerequisite("rocket-silo", "rocketry")
end
end
-- SE + K2: Keep radar at red science level
util.remove_prerequisite("kr-radar", "optics")
util.add_prerequisite("kr-radar", "electricity")
-- SE don't gate tungsten
util.remove_prerequisite("tungsten-processing", "se-material-science-pack-1")
-- One more tier
util.add_ingredient("omt-electric-mining-drill", "tungsten-carbide", 10)
-- Junk Trains, no optics:
util.remove_prerequisite("automated-scrap-rail-transportation", "optics")
util.remove_ingredient("train-stop-scrap", "small-lamp")
util.remove_ingredient("rail-signal-scrap", "small-lamp")
util.remove_ingredient("rail-chain-signal-scrap", "small-lamp")
if mods["aai-industry"] and mods.bobplates then
util.remove_prerequisite("oil-processing", "tungsten-processing")
util.add_prerequisite("oil-processing", "bz-tungsten-processing")
end