From 2eea5c5869551784f678222890c47378df08e442 Mon Sep 17 00:00:00 2001 From: KiwiHawk <59639+KiwiHawk@users.noreply.github.com> Date: Mon, 28 Oct 2024 18:44:02 +1300 Subject: [PATCH] Revert "Remove Satellite" This reverts commit eb771e16123db66b1255aae6d1e3f1bdaa023704. --- bobrevamp/prototypes/rocket-parts-updates.lua | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/bobrevamp/prototypes/rocket-parts-updates.lua b/bobrevamp/prototypes/rocket-parts-updates.lua index 24636ca1e..0173fe072 100644 --- a/bobrevamp/prototypes/rocket-parts-updates.lua +++ b/bobrevamp/prototypes/rocket-parts-updates.lua @@ -59,3 +59,28 @@ elseif data.raw.item["advanced-processing-unit"] then bobmods.lib.tech.replace_prerequisite("rocket-control-unit", "speed-module", "advanced-electronics-3") end bobmods.lib.tech.add_science_pack("rocket-control-unit", "production-science-pack", 1) + +bobmods.lib.recipe.replace_ingredient("satellite", "processing-unit", "rocket-control-unit") + +if data.raw.item.rtg then + bobmods.lib.recipe.set_ingredient("satellite", { type = "item", name = "accumulator", amount = 50 }) + bobmods.lib.recipe.remove_ingredient("satellite", "solar-panel") + bobmods.lib.tech.remove_prerequisite("space-science-pack", "solar-energy") + bobmods.lib.recipe.add_ingredient("satellite", { type = "item", name = "rtg", amount = 10 }) + bobmods.lib.tech.add_prerequisite("space-science-pack", "rtg") +elseif data.raw.item["solar-panel-3"] then + bobmods.lib.recipe.replace_ingredient("satellite", "solar-panel", "solar-panel-3") + bobmods.lib.tech.add_prerequisite("space-science-pack", "bob-solar-energy-3") + bobmods.lib.tech.remove_prerequisite("space-science-pack", "solar-energy") +end + +if data.raw.item["silver-zinc-battery"] then + bobmods.lib.recipe.replace_ingredient("satellite", "accumulator", "silver-zinc-battery") + bobmods.lib.tech.add_prerequisite("space-science-pack", "battery-3") + bobmods.lib.tech.remove_prerequisite("space-science-pack", "electric-energy-accumulators") +end + +if data.raw.item["radar-5"] then + bobmods.lib.recipe.replace_ingredient("satellite", "radar", "radar-5") + bobmods.lib.tech.add_prerequisite("space-science-pack", "radars-5") +end