-
Notifications
You must be signed in to change notification settings - Fork 6
/
aluminum-burner-phase.lua
133 lines (106 loc) · 6.39 KB
/
aluminum-burner-phase.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
local util = require("data-util");
if not mods.Krastorio2 and not mods["aai-industry"] then
util.replace_ingredient("offshore-pump", "electronic-circuit", "aluminum-cable")
util.replace_ingredient("lab", "electronic-circuit", "aluminum-cable")
util.replace_ingredient("electric-mining-drill", "electronic-circuit", "aluminum-cable")
util.replace_ingredient("assembling-machine-1", "electronic-circuit", "aluminum-cable")
util.replace_ingredient("radar", "electronic-circuit", "aluminum-cable")
util.replace_ingredient("splitter", "electronic-circuit", "aluminum-cable")
-- Keep repair pack raw ingredients close to the same
util.remove_ingredient("repair-pack", "electronic-circuit")
util.remove_ingredient("repair-pack", "copper-cable")
util.add_ingredient("repair-pack", "aluminum-cable", 3)
util.set_ingredient("repair-pack", "iron-gear-wheel", 3)
util.add_effect("electronics", { type = "unlock-recipe", recipe = "electronic-circuit" })
util.add_effect("electronics", { type = "unlock-recipe", recipe = "inserter" })
util.add_effect("electronics", { type = "unlock-recipe", recipe = "long-handed-inserter" })
util.remove_recipe_effect("automation", "long-handed-inserter")
util.set_enabled("electronic-circuit", false)
util.set_enabled("inserter", false)
util.add_prerequisite("logistic-science-pack", "electronics")
end
util.replace_ingredient("lab", "copper-plate", "aluminum-plate")
util.replace_ingredient("lab", "copper-cable", "aluminum-cable")
util.replace_ingredient("lab", "basic-circuit-board", "aluminum-cable") -- Bob's
if mods.Krastorio2 then
util.replace_ingredient("automation-core", "copper-plate", "aluminum-plate")
util.replace_ingredient("kr-wind-turbine", "copper-cable", "aluminum-cable")
util.replace_ingredient("kr-crusher", "copper-cable", "aluminum-cable")
util.replace_ingredient("kr-sentinel", "copper-cable", "aluminum-cable")
util.replace_ingredient("repair-pack", "copper-plate", "aluminum-plate")
util.remove_ingredient("basic-tech-card", "copper-cable")
util.add_ingredient("basic-tech-card", "aluminum-cable", 1)
util.add_prerequisite("automation-science-pack", "copper-processing")
if mods.bobassembly then
util.set_prerequisite("basic-automation", {"kr-automation-core"})
util.set_tech_recipe("basic-automation", {{"basic-tech-card", 1}})
end
util.remove_prerequisite("automation", "smelting") -- Bitumen mod
-- For warptorio2 expansion with K2
util.remove_prerequisite("laboratory", "automation-science-pack")
util.set_tech_recipe("laboratory", {{"basic-tech-card", 1}})
end
if mods.bobpower then
util.remove_prerequisite("automation-science-pack", "copper-processing")
end
if mods["aai-industry"] then
util.replace_ingredient("burner-assembling-machine", "iron-plate", "aluminum-plate")
util.replace_ingredient("small-iron-electric-pole", "copper-cable", "aluminum-cable")
util.set_ingredient("small-iron-electric-pole", "aluminum-cable", 1)
util.remove_ingredient("electric-motor", "copper-cable")
util.add_ingredient("electric-motor", "aluminum-cable", 1)
util.replace_ingredient("electric-motor", "iron-plate", "aluminum-plate")
util.replace_ingredient("motor", "iron-plate", "aluminum-plate")
util.replace_ingredient("repair-pack", "copper-plate", "aluminum-plate")
util.replace_ingredient("burner-lab", "copper-plate", "aluminum-plate")
end
if mods["aai-industry"] and mods.Krastorio2 then
util.remove_prerequisite("copper-processing", "automation")
util.add_prerequisite("copper-processing", "electricity")
util.remove_prerequisite("logistics", "automation-science-pack")
util.remove_prerequisite("fuel-processing", "automation-science-pack")
util.remove_prerequisite("electricity", "automation-science-pack")
util.remove_prerequisite("kr-sentinel", "automation-science-pack")
util.set_tech_recipe("logistics", {{"basic-tech-card", 1}})
util.set_tech_recipe("fuel-processing", {{"basic-tech-card", 1}})
util.set_tech_recipe("electricity", {{"basic-tech-card", 1}})
util.set_tech_recipe("kr-sentinel", {{"basic-tech-card", 1}})
util.set_tech_recipe("kr-basic-fluid-handling", {{"basic-tech-card", 1}})
util.add_prerequisite("deadlock-stacking-1", "automation-science-pack")
util.add_prerequisite("kr-radar", "automation-science-pack")
util.add_prerequisite("automation", "automation-science-pack")
util.add_prerequisite("kr-steam-engine", "automation-science-pack")
-- TODO basic fluid handling and grpahite
end
util.add_prerequisite("nanobots", "electronics")
util.add_unlock_force("electronics", "RTThrower-inserter-Recipe")
util.remove_prerequisite("smelting", "automation-science-pack") -- Bitumen mod
-- Industrial Display Plates
util.add_unlock_force("copper-processing", "copper-display-small")
util.add_unlock_force("copper-processing", "copper-display-medium")
util.add_unlock_force("copper-processing", "copper-display")
util.replace_ingredient("submachine-gun", "copper-plate", "aluminum-plate")
util.replace_ingredient("pistol", "copper-plate", "aluminum-plate")
util.replace_ingredient("shotgun", "copper-plate", "aluminum-plate")
util.replace_ingredient("shotgun-shell", "copper-plate", "stone")
util.replace_ingredient("automation-science-pack", "copper-plate", "aluminum-plate")
util.replace_ingredient("small-electric-pole", "copper-cable", "aluminum-cable")
util.set_ingredient("small-electric-pole", "aluminum-cable", 1)
util.replace_ingredient("gun-turret", "copper-cable", "aluminum-cable")
util.replace_ingredient("gun-turret", "copper-plate", "aluminum-plate")
util.set_enabled("copper-plate", false)
util.set_enabled("copper-cable", false)
util.add_prerequisite("electronics", "copper-processing")
util.add_prerequisite("foundry", "copper-processing")
util.add_prerequisite("heavy-armor", "copper-processing")
util.set_enabled("deadlock-copper-lamp", false)
util.add_effect("copper-processing", { type = "unlock-recipe", recipe = "deadlock-copper-lamp" })
require("compatibility/textplates")
-- All customizations or custom unlocks prior to this block
util.add_unlock_force("electronics", "electronic-circuit")
util.replace_ingredients_prior_to("electronics", "electronic-circuit", "aluminum-cable")
util.replace_ingredients_prior_to("copper-processing", "copper-cable", "aluminum-cable")
util.replace_ingredients_prior_to("copper-processing", "copper-plate", "aluminum-plate")
-- Any post-fixes (eg aluminum back to copper) after this block
util.remove_prerequisite("copper-processing", "automation")
-- End of file