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