Add lignumis_skip_science_packs as a way to prevent science packs being added to technologies

This commit is contained in:
Simon Brodtmann 2025-02-25 23:14:22 +01:00
parent 0f63a2548d
commit 6f01daf3c4
2 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,6 @@
-- Add wood and steam science packs as ingredients to technologies that require Nauvis science packs.
for _, technology in pairs(data.raw.technology) do
if technology.unit and technology.unit.ingredients and not table.contains(Lignumis.science_blacklist, technology.name) then
if not technology.lignumis_skip_science_packs and technology.unit and technology.unit.ingredients and not table.contains(Lignumis.science_blacklist, technology.name) then
local ingredients = technology.unit.ingredients
local noMatches = table.filter(ingredients, function(ingredient)
return table.contains(Lignumis.science_pack_blacklist, ingredient[1])
@ -24,4 +24,4 @@ for _, lab in pairs(data.raw.lab) do
"steam-science-pack"
}, lab.inputs)
end
end
end