Skip to content

Commit

Permalink
Fixing unit test errors bobplates
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Dec 3, 2024
1 parent 0fe1b02 commit b8c64be
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bobplates/data-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down
3 changes: 3 additions & 0 deletions bobplates/prototypes/recipe/resource-recipe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down
1 change: 1 addition & 0 deletions bobplates/prototypes/technology-nuclear.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
16 changes: 11 additions & 5 deletions bobplates/prototypes/technology.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ data:extend({
icon = "__bobplates__/graphics/icons/technology/electrolysis.png",
icon_size = 128,
prerequisites = {
"steam-power",
"automation-science-pack",
},
effects = {
{
Expand Down Expand Up @@ -71,7 +71,7 @@ data:extend({
icon = "__bobplates__/graphics/icons/technology/chemical-processing.png",
icon_size = 128,
prerequisites = {
"steam-power",
"automation-science-pack",
},
effects = {
{
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit b8c64be

Please sign in to comment.