From b8c64be6bb3496d4f6fa68080f0d63d4c2d1dc60 Mon Sep 17 00:00:00 2001 From: KiwiHawk <59639+KiwiHawk@users.noreply.github.com> Date: Wed, 4 Dec 2024 01:13:12 +1300 Subject: [PATCH] Fixing unit test errors bobplates --- bobplates/data-updates.lua | 2 +- bobplates/prototypes/recipe/resource-recipe.lua | 3 +++ bobplates/prototypes/technology-nuclear.lua | 1 + bobplates/prototypes/technology.lua | 16 +++++++++++----- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/bobplates/data-updates.lua b/bobplates/data-updates.lua index affa686f1..02fcb5dee 100644 --- a/bobplates/data-updates.lua +++ b/bobplates/data-updates.lua @@ -92,7 +92,7 @@ else end if settings.startup["bobmods-plates-batteryupdate"].value == true then - data.raw.technology["battery"].prerequisites = { "sulfur-processing", "plastics" } + data.raw.technology["battery"].prerequisites = { "sulfur-processing", "plastics", "lead-processing" } bobmods.lib.recipe.clear_ingredients("battery") bobmods.lib.recipe.add_ingredient("battery", { type = "item", name = "bob-lead-plate", amount = 2 }) diff --git a/bobplates/prototypes/recipe/resource-recipe.lua b/bobplates/prototypes/recipe/resource-recipe.lua index e62be598a..051c28643 100644 --- a/bobplates/prototypes/recipe/resource-recipe.lua +++ b/bobplates/prototypes/recipe/resource-recipe.lua @@ -18,6 +18,7 @@ data:extend({ { type = "recipe", name = "bob-resin-wood", + localised_name = { "item-name.resin" }, category = "crafting-machine", energy_required = 1, enabled = false, @@ -32,6 +33,7 @@ data:extend({ { type = "recipe", name = "bob-resin-oil", + localised_name = { "item-name.resin" }, category = "chemistry", subgroup = "bob-resource-chemical", energy_required = 1, @@ -52,6 +54,7 @@ data:extend({ { type = "recipe", name = "bob-rubber", + localised_name = { "item-name.rubber" }, category = "smelting", subgroup = "bob-material-smelting", energy_required = 3.2, diff --git a/bobplates/prototypes/technology-nuclear.lua b/bobplates/prototypes/technology-nuclear.lua index 2cdee0c96..438e88663 100644 --- a/bobplates/prototypes/technology-nuclear.lua +++ b/bobplates/prototypes/technology-nuclear.lua @@ -29,6 +29,7 @@ data:extend({ if settings.startup["bobmods-plates-nuclearupdate"].value == true then bobmods.lib.tech.add_recipe_unlock("uranium-processing", "empty-nuclear-fuel-cell") + bobmods.lib.tech.add_prerequisite("uranium-processing", "lead-processing") bobmods.lib.tech.add_prerequisite("bobingabout-enrichment-process", "nuclear-fuel-reprocessing") bobmods.lib.tech.add_recipe_unlock("bobingabout-enrichment-process", "plutonium-nucleosynthesis") diff --git a/bobplates/prototypes/technology.lua b/bobplates/prototypes/technology.lua index 665b3df73..7d243097f 100644 --- a/bobplates/prototypes/technology.lua +++ b/bobplates/prototypes/technology.lua @@ -5,7 +5,7 @@ data:extend({ icon = "__bobplates__/graphics/icons/technology/electrolysis.png", icon_size = 128, prerequisites = { - "steam-power", + "automation-science-pack", }, effects = { { @@ -71,7 +71,7 @@ data:extend({ icon = "__bobplates__/graphics/icons/technology/chemical-processing.png", icon_size = 128, prerequisites = { - "steam-power", + "automation-science-pack", }, effects = { { @@ -217,7 +217,9 @@ data:extend({ name = "alloy-processing", icon = "__bobplates__/graphics/icons/technology/alloy-processing.png", icon_size = 128, - prerequisites = {}, + prerequisites = { + "automation-science-pack", + }, effects = { { type = "unlock-recipe", @@ -387,7 +389,9 @@ data:extend({ name = "air-compressor-1", icon = "__bobplates__/graphics/icons/liquid-air.png", icon_size = 32, - prerequisites = {}, + prerequisites = { + "automation-science-pack", + }, effects = { { type = "unlock-recipe", @@ -500,7 +504,9 @@ data:extend({ name = "water-bore-1", icon = "__base__/graphics/icons/fluid/water.png", icon_size = 64, - prerequisites = {}, + prerequisites = { + "automation-science-pack", + }, effects = { { type = "unlock-recipe",