Returned alternative production-science-pack recipe with wooden rails.

Copied and edited from here: 6abb0414f5/Bio_Industries/prototypes/Bio_Tweaks/recipe.lua (L175)
This commit is contained in:
MAGGen 2025-10-26 22:40:01 +01:00
parent 62d126205a
commit 64bfb00826

View file

@ -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 end