From 64bfb00826d9b5937b7ddeaa8d4a51dccb6f811a Mon Sep 17 00:00:00 2001 From: MAGGen Date: Sun, 26 Oct 2025 22:40:01 +0100 Subject: [PATCH] Returned alternative production-science-pack recipe with wooden rails. Copied and edited from here: https://github.com/TheSAguy/Bio_Industries/blob/6abb0414f5500bb1325883db77a4a4f19775414f/Bio_Industries/prototypes/Bio_Tweaks/recipe.lua#L175 --- .../prototypes/Bio_Tweaks/recipe.lua | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Bio_Industries_2/prototypes/Bio_Tweaks/recipe.lua b/Bio_Industries_2/prototypes/Bio_Tweaks/recipe.lua index bc3cef5..f0d53ea 100644 --- a/Bio_Industries_2/prototypes/Bio_Tweaks/recipe.lua +++ b/Bio_Industries_2/prototypes/Bio_Tweaks/recipe.lua @@ -132,4 +132,28 @@ log("Enabling disassemble recipes!") }, }) +end + +local KRAS = (mods["Krastorio2"] or mods["Krastorio"]) and true or false +local SET = settings.startup["BI_Game_Tweaks_Production_Science"].value +if SET and not KRAS then + data:extend({ + { + type = "recipe", + name = "bi-production-science-pack", + enabled = false, + energy_required = 21, + ingredients = { + {type = "item", name = "electric-furnace", amount = 1}, + {type = "item", name = "productivity-module", amount = 1}, + {type = "item", name = "bi-rail-wood", amount = 40} + }, + results = {{type="item", name="production-science-pack", amount=3}}, + }, + }) + --~ BI_Functions.lib.allow_productivity("bi-production-science-pack") + --~ thxbob.lib.tech.add_recipe_unlock("production-science-pack", "bi-production-science-pack") + BioInd.writeDebug("Added alternative recipe for Production science packs.") +else + BioInd.writeDebug("Didn't add alternative recipe for Production science packs! (\"Krastorio\": %s\tSetting: %s", {(KRAS and "active" or "not active"), (SET and "enabled" or "disabled")}) end \ No newline at end of file