Returned wooden rails. #8

Merged
cacklingfiend merged 3 commits from MAGGen/Bio_Industries_2:main into main 2025-11-01 14:46:54 +01:00
Showing only changes of commit 64bfb00826 - Show all commits

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