Skip to content

Commit fda5e37

Browse files
QatavinKiwiHawk
andauthored
Sulfur revision (#268)
* Change battery 1 to use steel instead of plastic * Change sulfur prereq from oil proc to chem proc 2 * Fix unit test issues Tech line now goes nickel-processing -> sulfur-processing -> oil-processing. Original sulfur recipe now goes on oil-processing. * Fix sulfur unlock Revamp mod will sometimes hide recipe "sulfur". Need to remove new unlock if it has been moved to oil processing * Fix missing prerequisite Module case requires plastic --------- Co-authored-by: KiwiHawk <59639+KiwiHawk@users.noreply.github.com>
1 parent 180d06d commit fda5e37

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

boblogistics/prototypes/recipe/robots-recipe-updates.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ end
7777
if data.raw.item["bob-module-case"] then
7878
if data.raw.recipe["bob-robot-brain"] then
7979
bobmods.lib.tech.add_recipe_unlock("robotics", "bob-module-case")
80+
bobmods.lib.tech.add_prerequisite("robotics", "plastics")
8081
bobmods.lib.recipe.add_ingredient("bob-robot-brain", { type = "item", name = "bob-module-case", amount = 1 })
8182
bobmods.lib.recipe.add_ingredient("bob-robot-brain-2", { type = "item", name = "bob-module-case", amount = 1 })
8283
bobmods.lib.recipe.add_ingredient("bob-robot-brain-3", { type = "item", name = "bob-module-case", amount = 1 })

bobplates/data-updates.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ else
105105
end
106106

107107
if settings.startup["bobmods-plates-batteryupdate"].value == true then
108-
data.raw.technology["battery"].prerequisites = { "sulfur-processing", "plastics", "lead-processing" }
108+
data.raw.technology["battery"].prerequisites = { "sulfur-processing", "lead-processing" }
109109
bobmods.lib.recipe.clear_ingredients("battery")
110110

111111
bobmods.lib.recipe.add_ingredient("battery", { type = "item", name = "bob-lead-plate", amount = 2 })
112112
bobmods.lib.recipe.add_ingredient("battery", { type = "fluid", name = "sulfuric-acid", amount = 20 })
113-
bobmods.lib.recipe.add_ingredient("battery", { type = "item", name = "plastic-bar", amount = 1 })
113+
bobmods.lib.recipe.add_ingredient("battery", { type = "item", name = "steel-plate", amount = 1 })
114114
end
115115

116116
data.raw.recipe["steel-plate"].category = "chemical-furnace"

bobplates/prototypes/technology-updates.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ if bobmods.electronics then
1616
bobmods.lib.tech.add_prerequisite("water-bore-1", "electronics")
1717
end
1818

19+
bobmods.lib.tech.remove_prerequisite("sulfur-processing", "oil-processing")
20+
bobmods.lib.tech.add_prerequisite("oil-processing", "sulfur-processing")
21+
bobmods.lib.tech.add_prerequisite("sulfur-processing", "chemical-processing-2")
22+
bobmods.lib.tech.add_prerequisite("sulfur-processing", "nickel-processing")
23+
bobmods.lib.tech.remove_recipe_unlock("sulfur-processing", "sulfur")
24+
bobmods.lib.tech.add_recipe_unlock("oil-processing", "sulfur")
1925
bobmods.lib.tech.add_recipe_unlock("sulfur-processing", "sulfur-2")
2026
bobmods.lib.tech.add_recipe_unlock("sulfur-processing", "sulfur-3")
2127
bobmods.lib.tech.add_recipe_unlock("sulfur-processing", "sulfuric-acid-2")

bobrevamp/data-updates.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ if
8686
and not settings.startup["bobmods-revamp-oil"].value == true
8787
then
8888
bobmods.lib.tech.remove_recipe_unlock("sulfur-processing", "sulfur")
89+
bobmods.lib.tech.remove_recipe_unlock("oil-processing", "sulfur")
8990
bobmods.lib.recipe.hide("sulfur")
9091
bobmods.lib.tech.add_recipe_unlock("sulfur-processing", "oil-processing-with-sulfur")
9192

@@ -100,6 +101,7 @@ end
100101
if settings.startup["bobmods-revamp-oil"].value == true then
101102
if data.raw.recipe["sulfur-2"] or data.raw.recipe["sulfur-3"] then
102103
bobmods.lib.tech.remove_recipe_unlock("sulfur-processing", "sulfur")
104+
bobmods.lib.tech.remove_recipe_unlock("oil-processing", "sulfur")
103105
bobmods.lib.recipe.hide("sulfur")
104106
end
105107
bobmods.lib.tech.add_recipe_unlock("flammables", "solid-fuel-from-sour-gas")

0 commit comments

Comments
 (0)