forked from cacklingfiend/lignumis
Add lignumis_skip_science_packs as a way to prevent science packs being added to technologies
This commit is contained in:
parent
0f63a2548d
commit
6f01daf3c4
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue