diff --git a/bobgreenhouse/prototypes/technology.lua b/bobgreenhouse/prototypes/technology.lua index fdd3298ba..d631bce36 100644 --- a/bobgreenhouse/prototypes/technology.lua +++ b/bobgreenhouse/prototypes/technology.lua @@ -4,7 +4,9 @@ data:extend({ name = "bob-greenhouse", icon = "__bobgreenhouse__/graphics/icons/technology/greenhouse.png", icon_size = 128, - prerequisites = {}, + prerequisites = { + "steam-power", + }, effects = { { type = "unlock-recipe", diff --git a/boblogistics/prototypes/entity/inserter.lua b/boblogistics/prototypes/entity/inserter.lua index 515c13595..43b609be0 100644 --- a/boblogistics/prototypes/entity/inserter.lua +++ b/boblogistics/prototypes/entity/inserter.lua @@ -114,6 +114,7 @@ data.raw.inserter["steam-inserter"].energy_source = { }, }, } +bobmods.lib.tech.add_recipe_unlock("steam-power", "steam-inserter") data:extend({ util.merge({ diff --git a/bobmining/prototypes/areadrills.lua b/bobmining/prototypes/areadrills.lua index 3268e81d5..c68d54a8a 100644 --- a/bobmining/prototypes/areadrills.lua +++ b/bobmining/prototypes/areadrills.lua @@ -219,7 +219,7 @@ if settings.startup["bobmods-mining-areadrills"].value == true then order = "d-a-b-1", prerequisites = { "steel-processing", - "electronics", + "electric-mining-drill", }, unit = { count = 50, @@ -294,6 +294,7 @@ if settings.startup["bobmods-mining-areadrills"].value == true then order = "d-a-b-4", prerequisites = { "bob-area-drills-3", + "production-science-pack", }, unit = { count = 150, diff --git a/bobmining/prototypes/drills.lua b/bobmining/prototypes/drills.lua index 47c4d6ddf..f403b6813 100644 --- a/bobmining/prototypes/drills.lua +++ b/bobmining/prototypes/drills.lua @@ -217,7 +217,7 @@ if settings.startup["bobmods-mining-miningdrills"].value == true then order = "d-a-a-1", prerequisites = { "steel-processing", - "electronics", + "electric-mining-drill", }, unit = { count = 50, @@ -292,6 +292,7 @@ if settings.startup["bobmods-mining-miningdrills"].value == true then order = "d-a-a-4", prerequisites = { "bob-drills-3", + "production-science-pack", }, unit = { count = 150, diff --git a/bobmining/prototypes/pumpjacks.lua b/bobmining/prototypes/pumpjacks.lua index d09e95df3..4f4044e46 100644 --- a/bobmining/prototypes/pumpjacks.lua +++ b/bobmining/prototypes/pumpjacks.lua @@ -672,6 +672,7 @@ if settings.startup["bobmods-mining-pumpjacks"].value == true then order = "d-a-c-4", prerequisites = { "bob-pumpjacks-3", + "production-science-pack", }, unit = { count = 150, diff --git a/bobmining/prototypes/steam-drills.lua b/bobmining/prototypes/steam-drills.lua index c6b73073a..bd4279118 100644 --- a/bobmining/prototypes/steam-drills.lua +++ b/bobmining/prototypes/steam-drills.lua @@ -26,6 +26,7 @@ if settings.startup["bobmods-mining-steamminingdrills"].value == true then { type = "recipe", name = "steam-mining-drill", + enabled = false, energy_required = 1, ingredients = { { type = "item", name = "burner-mining-drill", amount = 1 }, @@ -47,7 +48,7 @@ if settings.startup["bobmods-mining-steamminingdrills"].value == true then }, }), }) - + bobmods.lib.tech.add_recipe_unlock("steam-power", "steam-mining-drill") data.raw["mining-drill"]["steam-mining-drill"].resource_searching_radius = 1.99 data.raw["mining-drill"]["steam-mining-drill"].radius_visualisation_picture = { filename = "__base__/graphics/entity/electric-mining-drill/electric-mining-drill-radius-visualization.png", diff --git a/bobplates/prototypes/technology.lua b/bobplates/prototypes/technology.lua index 86b4ba4fc..993d8be10 100644 --- a/bobplates/prototypes/technology.lua +++ b/bobplates/prototypes/technology.lua @@ -4,7 +4,9 @@ data:extend({ name = "electrolysis-1", icon = "__bobplates__/graphics/icons/technology/electrolysis.png", icon_size = 128, - prerequisites = {}, + prerequisites = { + "steam-power" + }, effects = { { type = "unlock-recipe", @@ -68,7 +70,9 @@ data:extend({ name = "chemical-processing-1", icon = "__bobplates__/graphics/icons/technology/chemical-processing.png", icon_size = 128, - prerequisites = {}, + prerequisites = { + "steam-power", + }, effects = { { type = "unlock-recipe", diff --git a/bobtech/prototypes/technology/technology-updates.lua b/bobtech/prototypes/technology/technology-updates.lua index 0b84843c3..9bb3e608e 100644 --- a/bobtech/prototypes/technology/technology-updates.lua +++ b/bobtech/prototypes/technology/technology-updates.lua @@ -215,14 +215,12 @@ if settings.startup["bobmods-burnerphase"].value == true then if data.raw.technology["electrolysis-1"] then bobmods.lib.tech.add_prerequisite("electrolysis-1", "automation-science-pack") bobmods.lib.tech.add_prerequisite("electrolysis-1", "electricity") - bobmods.lib.tech.add_prerequisite("electrolysis-1", "steam-power") end if data.raw.technology["alloy-processing"] then bobmods.lib.tech.add_prerequisite("alloy-processing", "automation-science-pack") end if data.raw.technology["chemical-processing-1"] then bobmods.lib.tech.add_prerequisite("chemical-processing-1", "automation-science-pack") - bobmods.lib.tech.add_prerequisite("chemical-processing-1", "steam-power") end if data.raw.technology["air-compressor-1"] then bobmods.lib.tech.add_prerequisite("air-compressor-1", "automation-science-pack") @@ -235,24 +233,12 @@ if settings.startup["bobmods-burnerphase"].value == true then if data.raw.technology["bob-greenhouse"] then bobmods.lib.tech.add_prerequisite("bob-greenhouse", "automation-science-pack") bobmods.lib.tech.add_prerequisite("bob-greenhouse", "electricity") - bobmods.lib.tech.add_prerequisite("bob-greenhouse", "steam-power") end if data.raw.technology["water-miner-1"] then bobmods.lib.tech.add_prerequisite("water-miner-1", "automation-science-pack") bobmods.lib.tech.add_prerequisite("water-miner-1", "electricity") end - bobmods.lib.tech.add_recipe_unlock("steam-power", "boiler") - bobmods.lib.tech.add_recipe_unlock("steam-power", "offshore-pump") - if data.raw.recipe["steam-mining-drill"] then - data.raw.recipe["steam-mining-drill"].enabled = false - bobmods.lib.tech.add_recipe_unlock("steam-power", "steam-mining-drill") - end - if data.raw.recipe["steam-inserter"] then - data.raw.recipe["steam-inserter"].enabled = false - bobmods.lib.tech.add_recipe_unlock("steam-power", "steam-inserter") - end - if data.raw.technology["basic-automation"] then bobmods.lib.tech.add_prerequisite("automation", "basic-automation") bobmods.lib.tech.replace_science_pack("basic-automation", "automation-science-pack", "steam-science-pack") diff --git a/bobtech/prototypes/technology/technology.lua b/bobtech/prototypes/technology/technology.lua index 8d3de5449..85297b113 100644 --- a/bobtech/prototypes/technology/technology.lua +++ b/bobtech/prototypes/technology/technology.lua @@ -136,26 +136,6 @@ if settings.startup["bobmods-burnerphase"].value == true then }, }) - data:extend({ - { - type = "technology", - name = "steam-power", - icon = "__base__/graphics/icons/fluid/steam.png", - icon_size = 64, - prerequisites = {}, - effects = {}, - unit = { - count = 10, - ingredients = { - { "steam-science-pack", 1 }, - }, - time = 10, - }, - ignore_tech_cost_multiplier = true, - order = "c-a", - }, - }) - bobmods.lib.recipe.enabled("automation-science-pack", false) bobmods.lib.recipe.enabled("boiler", false) bobmods.lib.recipe.enabled("steam-engine", false)