diff --git a/bobequipment/prototypes/recipe/updates.lua b/bobequipment/prototypes/recipe/updates.lua index a15053742..cce75b003 100644 --- a/bobequipment/prototypes/recipe/updates.lua +++ b/bobequipment/prototypes/recipe/updates.lua @@ -255,7 +255,7 @@ else end if data.raw.item["advanced-processing-unit"] then - bobmods.lib.tech.add_prerequisite("personal-roboport-mk4-equipment", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("personal-roboport-mk4-equipment", "advanced-processing-unit") end if data.raw.item["silver-zinc-battery"] then @@ -268,7 +268,7 @@ if data.raw.item["nitinol-alloy"] then end if data.raw.item["advanced-processing-unit"] then - bobmods.lib.tech.add_prerequisite("personal-roboport-mk4-equipment", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("personal-roboport-mk4-equipment", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient( "personal-roboport-robot-equipment-4", "processing-unit", @@ -358,20 +358,20 @@ end if data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.replace_ingredient("energy-shield-mk4-equipment", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("bob-energy-shield-equipment-4", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-energy-shield-equipment-4", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("energy-shield-mk5-equipment", "processing-unit", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("energy-shield-mk6-equipment", "processing-unit", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("battery-mk4-equipment", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("bob-battery-equipment-4", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-battery-equipment-4", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("battery-mk6-equipment", "processing-unit", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("fission-reactor-equipment-2", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("fission-reactor-equipment-2", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("fission-reactor-equipment-2", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("fission-reactor-equipment-3", "processing-unit", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("fission-reactor-equipment-4", "processing-unit", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("night-vision-equipment-3", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("night-vision-equipment-3", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("night-vision-equipment-3", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("solar-panel-equipment-4", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("solar-panel-equipment-4", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("solar-panel-equipment-4", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient( "personal-laser-defense-equipment-5", "processing-unit", @@ -382,9 +382,9 @@ if data.raw.item["advanced-processing-unit"] then "processing-unit", "advanced-processing-unit" ) - bobmods.lib.tech.add_prerequisite("personal-laser-defense-equipment-5", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("personal-laser-defense-equipment-5", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("exoskeleton-equipment-3", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("exoskeleton-equipment-3", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("exoskeleton-equipment-3", "advanced-processing-unit") end if data.raw.item["bob-titanium-plate"] then diff --git a/boblogistics/prototypes/aai-loaders.lua b/boblogistics/prototypes/aai-loaders.lua index d7bf90536..edc52401d 100644 --- a/boblogistics/prototypes/aai-loaders.lua +++ b/boblogistics/prototypes/aai-loaders.lua @@ -151,7 +151,7 @@ if mods["aai-loaders"] then "logistics-4", "aai-express-loader", "utility-science-pack", - data.raw.item["advanced-processing-unit"] and "advanced-electronics-3" or nil, + data.raw.item["advanced-processing-unit"] and "advanced-processing-unit" or nil, }, unit = { count = 400, diff --git a/boblogistics/prototypes/recipe/belt-recipe-updates.lua b/boblogistics/prototypes/recipe/belt-recipe-updates.lua index d2edce3e3..351c4a732 100644 --- a/boblogistics/prototypes/recipe/belt-recipe-updates.lua +++ b/boblogistics/prototypes/recipe/belt-recipe-updates.lua @@ -202,5 +202,5 @@ end if data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.replace_ingredient("ultimate-splitter", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("logistics-5", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("logistics-5", "advanced-processing-unit") end diff --git a/boblogistics/prototypes/recipe/logistic-container-recipe-updates.lua b/boblogistics/prototypes/recipe/logistic-container-recipe-updates.lua index 78267d612..9278c2fc6 100644 --- a/boblogistics/prototypes/recipe/logistic-container-recipe-updates.lua +++ b/boblogistics/prototypes/recipe/logistic-container-recipe-updates.lua @@ -49,7 +49,7 @@ if data.raw.item["titanium-chest"] then "requester-chest-3", { type = "item", name = "advanced-processing-unit", amount = 1 } ) - bobmods.lib.tech.add_prerequisite("logistic-system-3", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("logistic-system-3", "advanced-processing-unit") end else if data.raw.item["advanced-processing-unit"] then @@ -58,6 +58,6 @@ else bobmods.lib.recipe.replace_ingredient("storage-chest-3", "processing-unit", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("buffer-chest-3", "processing-unit", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("requester-chest-3", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("logistic-system-3", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("logistic-system-3", "advanced-processing-unit") end end diff --git a/boblogistics/prototypes/recipe/roboport-recipe-updates.lua b/boblogistics/prototypes/recipe/roboport-recipe-updates.lua index cdd14bdf0..d0762de21 100644 --- a/boblogistics/prototypes/recipe/roboport-recipe-updates.lua +++ b/boblogistics/prototypes/recipe/roboport-recipe-updates.lua @@ -95,7 +95,7 @@ end if data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.replace_ingredient("roboport-antenna-4", "processing-unit", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("roboport-chargepad-4", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("bob-robo-modular-4", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-robo-modular-4", "advanced-processing-unit") end if data.raw.item["silver-zinc-battery"] then diff --git a/boblogistics/prototypes/repair-pack-updates.lua b/boblogistics/prototypes/repair-pack-updates.lua index 7a2149012..47bf485d9 100644 --- a/boblogistics/prototypes/repair-pack-updates.lua +++ b/boblogistics/prototypes/repair-pack-updates.lua @@ -35,7 +35,7 @@ end if data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.replace_ingredient("repair-pack-5", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("bob-repair-pack-5", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-repair-pack-5", "advanced-processing-unit") end if data.raw.item["tungsten-carbide"] then diff --git a/boblogistics/prototypes/technology-updates.lua b/boblogistics/prototypes/technology-updates.lua index 9179b4d1f..60c0d11eb 100644 --- a/boblogistics/prototypes/technology-updates.lua +++ b/boblogistics/prototypes/technology-updates.lua @@ -238,14 +238,14 @@ end if data.raw.technology["bob-robotics-4"] then bobmods.lib.tech.add_prerequisite("bob-robots-3", "bob-robotics-4") if data.raw.item["advanced-processing-unit"] then - bobmods.lib.tech.add_prerequisite("bob-robotics-4", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-robotics-4", "advanced-processing-unit") end if data.raw.item["silicon-nitride"] then bobmods.lib.tech.add_prerequisite("bob-robotics-4", "ceramics") end else if data.raw.item["advanced-processing-unit"] then - bobmods.lib.tech.add_prerequisite("bob-robots-3", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-robots-3", "advanced-processing-unit") end if data.raw.item["silicon-nitride"] then bobmods.lib.tech.add_prerequisite("bob-robots-3", "ceramics") diff --git a/bobmining/prototypes/areadrill-updates.lua b/bobmining/prototypes/areadrill-updates.lua index 1e663baba..5dfcfd352 100644 --- a/bobmining/prototypes/areadrill-updates.lua +++ b/bobmining/prototypes/areadrill-updates.lua @@ -49,7 +49,7 @@ if settings.startup["bobmods-mining-areadrills"].value == true then if data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-4", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("bob-area-drills-4", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-area-drills-4", "advanced-processing-unit") end if data.raw.item["tungsten-carbide"] then diff --git a/bobmining/prototypes/drill-updates.lua b/bobmining/prototypes/drill-updates.lua index 1afdab4de..0bade1269 100644 --- a/bobmining/prototypes/drill-updates.lua +++ b/bobmining/prototypes/drill-updates.lua @@ -49,7 +49,7 @@ if settings.startup["bobmods-mining-miningdrills"].value == true then if data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.replace_ingredient("bob-mining-drill-4", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("bob-drills-4", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-drills-4", "advanced-processing-unit") end if data.raw.item["tungsten-carbide"] then diff --git a/bobmining/prototypes/pumpjack-updates.lua b/bobmining/prototypes/pumpjack-updates.lua index b9fda46a1..af515baa7 100644 --- a/bobmining/prototypes/pumpjack-updates.lua +++ b/bobmining/prototypes/pumpjack-updates.lua @@ -88,7 +88,7 @@ if settings.startup["bobmods-mining-pumpjacks"].value == true then if data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.replace_ingredient("bob-pumpjack-4", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("bob-pumpjacks-4", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-pumpjacks-4", "advanced-processing-unit") end if data.raw.item["nitinol-pipe"] then diff --git a/bobmining/prototypes/water-miner-updates.lua b/bobmining/prototypes/water-miner-updates.lua index 1c78888d5..d67c694cf 100644 --- a/bobmining/prototypes/water-miner-updates.lua +++ b/bobmining/prototypes/water-miner-updates.lua @@ -101,7 +101,7 @@ if settings.startup["bobmods-mining-waterminers"].value == true and data.raw["re if data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.replace_ingredient("water-miner-5", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("water-miner-5", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("water-miner-5", "advanced-processing-unit") end if data.raw.item["nitinol-pipe"] then diff --git a/bobmodules/prototypes/recipe/beacon-updates.lua b/bobmodules/prototypes/recipe/beacon-updates.lua index ec7045dfc..0ff07338c 100644 --- a/bobmodules/prototypes/recipe/beacon-updates.lua +++ b/bobmodules/prototypes/recipe/beacon-updates.lua @@ -25,5 +25,5 @@ end if data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.replace_ingredient("beacon-3", "electronic-circuit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("effect-transmission-3", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("effect-transmission-3", "advanced-processing-unit") end diff --git a/bobmodules/prototypes/recipe/electronics-updates.lua b/bobmodules/prototypes/recipe/electronics-updates.lua index 446553e0f..4aabab52a 100644 --- a/bobmodules/prototypes/recipe/electronics-updates.lua +++ b/bobmodules/prototypes/recipe/electronics-updates.lua @@ -169,8 +169,8 @@ bobmods.lib.tech.add_recipe_unlock("pollution-clean-module-1", "pollution-clean- bobmods.lib.tech.add_recipe_unlock("pollution-create-module-1", "pollution-create-processor") bobmods.lib.tech.add_recipe_unlock("processing-unit", "module-processor-board-2") -if data.raw.technology["advanced-electronics-3"] then - bobmods.lib.tech.add_recipe_unlock("advanced-electronics-3", "module-processor-board-3") +if data.raw.technology["advanced-processing-unit"] then + bobmods.lib.tech.add_recipe_unlock("advanced-processing-unit", "module-processor-board-3") else bobmods.lib.tech.add_recipe_unlock("processing-unit", "module-processor-board-3") end diff --git a/bobmodules/prototypes/technology/module.lua b/bobmodules/prototypes/technology/module.lua index a009a176a..91b2a1332 100644 --- a/bobmodules/prototypes/technology/module.lua +++ b/bobmodules/prototypes/technology/module.lua @@ -787,54 +787,29 @@ data:extend({ }, }) -table.insert(data.raw.technology["speed-module-3"].effects, { type = "unlock-recipe", recipe = "speed-processor-2" }) -table.insert( - data.raw.technology["efficiency-module-3"].effects, - { type = "unlock-recipe", recipe = "efficiency-processor-2" } -) -table.insert( - data.raw.technology["productivity-module-3"].effects, - { type = "unlock-recipe", recipe = "productivity-processor-2" } -) -table.insert( - data.raw.technology["pollution-clean-module-3"].effects, - { type = "unlock-recipe", recipe = "pollution-clean-processor-2" } -) -table.insert( - data.raw.technology["pollution-create-module-3"].effects, - { type = "unlock-recipe", recipe = "pollution-create-processor-2" } -) +bobmods.lib.tech.add_recipe_unlock("speed-module-3", "speed-processor-2") +bobmods.lib.tech.add_recipe_unlock("efficiency-module-3", "efficiency-processor-2") +bobmods.lib.tech.add_recipe_unlock("productivity-module-3", "productivity-processor-2") +bobmods.lib.tech.add_recipe_unlock("pollution-clean-module-3", "pollution-clean-processor-2") +bobmods.lib.tech.add_recipe_unlock("pollution-create-module-3", "pollution-create-processor-2") +bobmods.lib.tech.add_recipe_unlock("speed-module-6", "speed-processor-3") +bobmods.lib.tech.add_recipe_unlock("efficiency-module-6", "efficiency-processor-3") +bobmods.lib.tech.add_recipe_unlock("productivity-module-6", "productivity-processor-3") +bobmods.lib.tech.add_recipe_unlock("pollution-clean-module-6", "pollution-clean-processor-3") +bobmods.lib.tech.add_recipe_unlock("pollution-create-module-6", "pollution-create-processor-3") -table.insert(data.raw.technology["speed-module-6"].effects, { type = "unlock-recipe", recipe = "speed-processor-3" }) -table.insert( - data.raw.technology["efficiency-module-6"].effects, - { type = "unlock-recipe", recipe = "efficiency-processor-3" } -) -table.insert( - data.raw.technology["productivity-module-6"].effects, - { type = "unlock-recipe", recipe = "productivity-processor-3" } -) -table.insert( - data.raw.technology["pollution-clean-module-6"].effects, - { type = "unlock-recipe", recipe = "pollution-clean-processor-3" } -) -table.insert( - data.raw.technology["pollution-create-module-6"].effects, - { type = "unlock-recipe", recipe = "pollution-create-processor-3" } -) +bobmods.lib.tech.add_prerequisite("speed-module-3", "processing-unit") +bobmods.lib.tech.add_prerequisite("efficiency-module-3", "processing-unit") +bobmods.lib.tech.add_prerequisite("productivity-module-3", "processing-unit") +bobmods.lib.tech.add_prerequisite("pollution-clean-module-3", "processing-unit") +bobmods.lib.tech.add_prerequisite("pollution-create-module-3", "processing-unit") -table.insert(data.raw.technology["speed-module-3"].prerequisites, "processing-unit") -table.insert(data.raw.technology["efficiency-module-3"].prerequisites, "processing-unit") -table.insert(data.raw.technology["productivity-module-3"].prerequisites, "processing-unit") -table.insert(data.raw.technology["pollution-clean-module-3"].prerequisites, "processing-unit") -table.insert(data.raw.technology["pollution-create-module-3"].prerequisites, "processing-unit") - -if data.raw.technology["advanced-electronics-3"] then - table.insert(data.raw.technology["speed-module-6"].prerequisites, "advanced-electronics-3") - table.insert(data.raw.technology["efficiency-module-6"].prerequisites, "advanced-electronics-3") - table.insert(data.raw.technology["productivity-module-6"].prerequisites, "advanced-electronics-3") - table.insert(data.raw.technology["pollution-clean-module-6"].prerequisites, "advanced-electronics-3") - table.insert(data.raw.technology["pollution-create-module-6"].prerequisites, "advanced-electronics-3") +if data.raw.technology["advanced-processing-unit"] then + bobmods.lib.tech.add_prerequisite("speed-module-6", "advanced-processing-unit") + bobmods.lib.tech.add_prerequisite("efficiency-module-6", "advanced-processing-unit") + bobmods.lib.tech.add_prerequisite("productivity-module-6", "advanced-processing-unit") + bobmods.lib.tech.add_prerequisite("pollution-clean-module-6", "advanced-processing-unit") + bobmods.lib.tech.add_prerequisite("pollution-create-module-6", "advanced-processing-unit") else bobmods.lib.tech.add_prerequisite("speed-module-6", "production-science-pack") bobmods.lib.tech.add_prerequisite("efficiency-module-6", "production-science-pack") diff --git a/bobpower/prototypes/recipe/fluid-generator-updates.lua b/bobpower/prototypes/recipe/fluid-generator-updates.lua index 4408c682a..878543e4d 100644 --- a/bobpower/prototypes/recipe/fluid-generator-updates.lua +++ b/bobpower/prototypes/recipe/fluid-generator-updates.lua @@ -132,7 +132,7 @@ if settings.startup["bobmods-power-fluidgenerator"].value == true then if data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.replace_ingredient("hydrazine-generator", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("hydrazine-generator", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("hydrazine-generator", "advanced-processing-unit") else bobmods.lib.tech.add_prerequisite("hydrazine-generator", "processing-unit") end diff --git a/bobpower/prototypes/recipe/nuclear-updates.lua b/bobpower/prototypes/recipe/nuclear-updates.lua index 1da7447cb..af71046fc 100644 --- a/bobpower/prototypes/recipe/nuclear-updates.lua +++ b/bobpower/prototypes/recipe/nuclear-updates.lua @@ -36,7 +36,7 @@ if settings.startup["bobmods-power-nuclear"].value == true then if data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.replace_ingredient("nuclear-reactor-3", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("bob-nuclear-power-3", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-nuclear-power-3", "advanced-processing-unit") end if data.raw.item["bob-lead-plate"] then diff --git a/bobpower/prototypes/recipe/poles-updates.lua b/bobpower/prototypes/recipe/poles-updates.lua index 0999f9eb1..541291ff4 100644 --- a/bobpower/prototypes/recipe/poles-updates.lua +++ b/bobpower/prototypes/recipe/poles-updates.lua @@ -43,7 +43,7 @@ if settings.startup["bobmods-power-poles"].value == true then if data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.replace_ingredient("substation-4", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("electric-substation-4", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("electric-substation-4", "advanced-processing-unit") end if data.raw.item["nitinol-alloy"] then @@ -64,8 +64,8 @@ if settings.startup["bobmods-power-poles"].value == true then bobmods.lib.recipe.replace_ingredient("medium-electric-pole-4", "copper-plate", "gilded-copper-cable") bobmods.lib.recipe.replace_ingredient("big-electric-pole-4", "copper-plate", "gilded-copper-cable") bobmods.lib.recipe.replace_ingredient("substation-4", "copper-plate", "gilded-copper-cable") - bobmods.lib.tech.add_prerequisite("electric-pole-4", "advanced-electronics-3") - bobmods.lib.tech.add_prerequisite("electric-substation-4", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("electric-pole-4", "advanced-processing-unit") + bobmods.lib.tech.add_prerequisite("electric-substation-4", "advanced-processing-unit") elseif data.raw.item["bob-gold-plate"] then bobmods.lib.recipe.replace_ingredient("medium-electric-pole-4", "copper-plate", "bob-gold-plate") bobmods.lib.recipe.replace_ingredient("big-electric-pole-4", "copper-plate", "bob-gold-plate") diff --git a/bobpower/prototypes/recipe/steam-turbines-updates.lua b/bobpower/prototypes/recipe/steam-turbines-updates.lua index c4d79f810..b84d4521c 100644 --- a/bobpower/prototypes/recipe/steam-turbines-updates.lua +++ b/bobpower/prototypes/recipe/steam-turbines-updates.lua @@ -122,7 +122,7 @@ if settings.startup["bobmods-power-steam"].value == true then if data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.replace_ingredient("steam-turbine-3", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("bob-steam-turbine-3", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-steam-turbine-3", "advanced-processing-unit") else bobmods.lib.tech.add_prerequisite("bob-steam-turbine-3", "processing-unit") end diff --git a/bobrevamp/prototypes/rocket-parts-updates.lua b/bobrevamp/prototypes/rocket-parts-updates.lua index a8059fc3e..d68b868c1 100644 --- a/bobrevamp/prototypes/rocket-parts-updates.lua +++ b/bobrevamp/prototypes/rocket-parts-updates.lua @@ -25,8 +25,8 @@ end bobmods.lib.tech.remove_prerequisite("low-density-structure", "advanced-material-processing") bobmods.lib.tech.remove_prerequisite("rocket-silo", "productivity-module-3") -if data.raw.technology["advanced-electronics-3"] then - bobmods.lib.tech.replace_prerequisite("rocket-silo", "processing-unit", "advanced-electronics-3") +if data.raw.technology["advanced-processing-unit"] then + bobmods.lib.tech.replace_prerequisite("rocket-silo", "processing-unit", "advanced-processing-unit") bobmods.lib.tech.remove_prerequisite("rocket-silo", "speed-module-3") end @@ -51,10 +51,10 @@ then { type = "item", name = "multi-layer-circuit-board", amount = 2 } ) end - bobmods.lib.tech.replace_prerequisite("rocket-control-unit", "speed-module", "advanced-electronics-3") + bobmods.lib.tech.replace_prerequisite("rocket-control-unit", "speed-module", "advanced-processing-unit") elseif data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.replace_ingredient("rocket-control-unit", "speed-module", "advanced-processing-unit") - bobmods.lib.tech.replace_prerequisite("rocket-control-unit", "speed-module", "advanced-electronics-3") + bobmods.lib.tech.replace_prerequisite("rocket-control-unit", "speed-module", "advanced-processing-unit") end bobmods.lib.tech.add_science_pack("rocket-control-unit", "production-science-pack", 1) diff --git a/bobwarfare/prototypes/recipe/recipe-updates.lua b/bobwarfare/prototypes/recipe/recipe-updates.lua index c9b4cd8a3..692f67e7c 100644 --- a/bobwarfare/prototypes/recipe/recipe-updates.lua +++ b/bobwarfare/prototypes/recipe/recipe-updates.lua @@ -130,18 +130,18 @@ end if data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.replace_ingredient("bob-power-armor-mk4", "advanced-circuit", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("bob-power-armor-mk5", "advanced-circuit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("bob-power-armor-4", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-power-armor-4", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("radar-5", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("radars-5", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("radars-5", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("bob-laser-turret-5", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("bob-laser-turrets-5", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-laser-turrets-5", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("bob-tank-3", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("bob-tanks-3", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-tanks-3", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("bob-artillery-turret-3", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("bob-artillery-turret-3", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-artillery-turret-3", "advanced-processing-unit") bobmods.lib.recipe.replace_ingredient("bob-plasma-turret-5", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("bob-plasma-turrets-5", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-plasma-turrets-5", "advanced-processing-unit") end if data.raw.item["bob-titanium-plate"] then diff --git a/bobwarfare/prototypes/robots-updates.lua b/bobwarfare/prototypes/robots-updates.lua index 745b97cf7..cab874217 100644 --- a/bobwarfare/prototypes/robots-updates.lua +++ b/bobwarfare/prototypes/robots-updates.lua @@ -86,7 +86,7 @@ if settings.startup["bobmods-warfare-robotupdate"].value == true then "bob-laser-robot", { type = "item", name = "advanced-processing-unit", amount = 1 } ) - bobmods.lib.tech.add_prerequisite("bob-laser-robot", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-laser-robot", "advanced-processing-unit") else bobmods.lib.recipe.add_ingredient("bob-laser-robot", { type = "item", name = "processing-unit", amount = 1 }) end diff --git a/bobwarfare/prototypes/spidertron-updates.lua b/bobwarfare/prototypes/spidertron-updates.lua index c9704a95d..00bc536e0 100644 --- a/bobwarfare/prototypes/spidertron-updates.lua +++ b/bobwarfare/prototypes/spidertron-updates.lua @@ -237,7 +237,7 @@ if settings.startup["bobmods-warfare-spidertron-overhaul"].value == true then if data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.add_ingredient("mech-brain", { type = "item", name = "advanced-processing-unit", amount = 20 }) - bobmods.lib.tech.add_prerequisite("walking-vehicle", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("walking-vehicle", "advanced-processing-unit") else bobmods.lib.recipe.add_ingredient("mech-brain", { type = "item", name = "efficiency-module-3", amount = 6 }) bobmods.lib.tech.add_prerequisite("walking-vehicle", "efficiency-module-3") @@ -259,7 +259,7 @@ else bobmods.lib.recipe.add_ingredient("spidertron", { type = "item", name = "advanced-processing-unit", amount = 10 }) bobmods.lib.recipe.add_ingredient("antron", { type = "item", name = "advanced-processing-unit", amount = 8 }) - bobmods.lib.tech.add_prerequisite("walking-vehicle", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("walking-vehicle", "advanced-processing-unit") bobmods.lib.recipe.add_ingredient("tankotron", { type = "item", name = "advanced-processing-unit", amount = 8 }) bobmods.lib.recipe.add_ingredient( "logistic-spidertron", diff --git a/bobwarfare/prototypes/train-updates.lua b/bobwarfare/prototypes/train-updates.lua index 58749afbc..549da807e 100644 --- a/bobwarfare/prototypes/train-updates.lua +++ b/bobwarfare/prototypes/train-updates.lua @@ -66,5 +66,5 @@ end if data.raw.item["advanced-processing-unit"] then bobmods.lib.recipe.replace_ingredient("bob-artillery-wagon-3", "processing-unit", "advanced-processing-unit") - bobmods.lib.tech.add_prerequisite("bob-artillery-wagon-3", "advanced-electronics-3") + bobmods.lib.tech.add_prerequisite("bob-artillery-wagon-3", "advanced-processing-unit") end