11local OV = angelsmods .functions .OV
22
33if mods [" bobplates" ] then
4- -- Swap Cobalt Steel and Brass
4+ -- Swap Cobalt Steel for Invar
55 for _ , recipe_name in pairs ({
66 " artillery-turret" ,
77 " artillery-wagon" ,
8- " bob-area-mining-drill-2" ,
8+ " bob-armoured-cargo-wagon" ,
9+ " bob-armoured-fluid-wagon" ,
10+ " bob-armoured-locomotive" ,
11+ " bob-cargo-wagon-2" ,
912 " bob-exoskeleton-equipment-2" ,
13+ " bob-fluid-wagon-2" ,
1014 " bob-gun-turret-3" ,
11- " bob-mining-drill-2 " ,
12- " bob-pumpjack-1 " ,
13- " bob-radar-3 " ,
15+ " bob-laser-turret-3 " ,
16+ " bob-locomotive-2 " ,
17+ " bob-plasma-turret-1 " ,
1418 " bob-rifle" ,
19+ " bob-roboport-door-2" ,
1520 " bob-robot-tool-combat-2" ,
1621 " bob-sniper-rifle" ,
1722 " bob-sniper-turret-2" ,
18- " centrifuge " ,
23+ " bob-vehicle-big-turret-equipment-1 " ,
1924 " combat-shotgun" ,
20- " steam-turbine " ,
25+ " power-armor-mk2 " ,
2126 " tank" ,
27+ }) do
28+ OV .patch_recipes ({
29+ {
30+ name = recipe_name ,
31+ ingredients = {
32+ { type = " item" , name = " bob-invar-alloy" , amount = " bob-cobalt-steel-alloy" },
33+ },
34+ },
35+ })
36+ end
37+
38+ -- Swap Cobalt Steel for Brass
39+ for _ , recipe_name in pairs ({
40+ " beacon" ,
41+ " bob-area-mining-drill-2" ,
42+ " bob-mining-drill-2" ,
43+ " bob-pumpjack-1" ,
44+ " bob-radar-3" ,
45+ " centrifuge" ,
2246 }) do
2347 OV .patch_recipes ({
2448 {
@@ -30,6 +54,32 @@ if mods["bobplates"] then
3054 })
3155 end
3256
57+ -- Swap Invar for Cobalt Steel
58+ for _ , recipe_name in pairs ({
59+ " bob-artillery-wagon-2" ,
60+ " bob-boiler-4" ,
61+ " bob-electric-chemical-mixing-furnace" ,
62+ " bob-electric-furnace-2" ,
63+ " bob-fluid-generator-3" ,
64+ " bob-heat-exchanger-3" ,
65+ " bob-heat-pipe-3" ,
66+ " bob-oil-boiler-3" ,
67+ " bob-plasma-turret-2" ,
68+ " bob-power-armor-mk3" ,
69+ " bob-storage-tank-3" ,
70+ " bob-storage-tank-all-corners-3" ,
71+ " bob-vehicle-big-turret-equipment-2" ,
72+ }) do
73+ OV .patch_recipes ({
74+ {
75+ name = recipe_name ,
76+ ingredients = {
77+ { type = " item" , name = " bob-cobalt-steel-alloy" , amount = " bob-invar-alloy" },
78+ },
79+ },
80+ })
81+ end
82+
3383 for _ , recipe_name in pairs ({
3484 " bob-area-mining-drill-3" ,
3585 " bob-centrifuge-2" ,
@@ -62,18 +112,57 @@ if mods["bobplates"] then
62112 })
63113 end
64114
65- OV .add_prereq (" bob-area-drills-2" , " bob-brass-processing" )
66- OV .add_prereq (" bob-drills-3" , " bob-brass-processing" )
67- OV .add_prereq (" bob-turrets-3" , " bob-brass-processing" )
115+ OV .add_prereq ({
116+ " artillery" ,
117+ " bob-armoured-fluid-wagon" ,
118+ " bob-armoured-railway" ,
119+ " bob-fluid-wagon-2" ,
120+ " bob-laser-turrets-3" ,
121+ " bob-plasma-turrets-1" ,
122+ " bob-railway-2" ,
123+ " bob-robo-modular-2" ,
124+ " bob-sniper-turrets-2" ,
125+ " bob-turrets-3" ,
126+ " bob-vehicle-big-turret-equipment-1" ,
127+ " bob-vehicle-roboport-equipment-2" ,
128+ " distractor" ,
129+ " personal-roboport-mk2-equipment" ,
130+ " power-armor-mk2" ,
131+ " tank" ,
132+ }, " angels-invar-smelting-1" )
133+
134+ OV .add_prereq ({
135+ " advanced-material-processing-3" ,
136+ " bob-alien-blue-research" ,
137+ " bob-artillery-wagon-2" ,
138+ " bob-boiler-4" ,
139+ " bob-centrifuge-2" ,
140+ " bob-fluid-generator-3" ,
141+ " bob-fluid-handling-3" ,
142+ " bob-heat-exchanger-3" ,
143+ " bob-heat-pipe-3" ,
144+ " bob-multi-purpose-furnace-1" ,
145+ " bob-oil-boiler-3" ,
146+ " bob-plasma-turrets-2" ,
147+ " bob-power-armor-3" ,
148+ " bob-vehicle-big-turret-equipment-2" ,
149+ " bob-walking-vehicle" ,
150+ }, " angels-cobalt-steel-smelting-1" )
68151
69- OV .remove_prereq (" bob-turrets-3" , " bob-cobalt-processing" )
152+ OV .remove_prereq ({
153+ " bob-alien-blue-research" ,
154+ }, " bob-cobalt-processing" )
70155
71- angelsmods .functions .hide (" bob-cobalt-steel-bearing-ball" )
72- angelsmods .functions .hide (" bob-cobalt-steel-bearing" )
73- angelsmods .functions .hide (" bob-cobalt-steel-gear-wheel" )
74- OV .disable_recipe ({ " bob-cobalt-steel-bearing-ball" , " bob-cobalt-steel-bearing" , " bob-cobalt-steel-gear-wheel" })
75- OV .global_replace_item (" bob-cobalt-steel-gear-wheel" , " bob-brass-gear-wheel" )
76- OV .global_replace_item (" bob-cobalt-steel-bearing" , " bob-brass-bearing" )
77- data .raw .recipe [" bob-cobalt-steel-bearing-recycling" ] = nil
78- data .raw .recipe [" bob-cobalt-steel-gear-wheel-recycling" ] = nil
156+ OV .remove_prereq ({
157+ " advanced-material-processing-3" ,
158+ " bob-boiler-4" ,
159+ " bob-electronics-machine-2" ,
160+ " bob-fluid-generator-3" ,
161+ " bob-fluid-handling-3" ,
162+ " bob-heat-exchanger-3" ,
163+ " bob-heat-pipe-3" ,
164+ " bob-multi-purpose-furnace-1" ,
165+ " bob-oil-boiler-3" ,
166+ " bob-power-armor-3" ,
167+ }, " bob-invar-processing" )
79168end
0 commit comments