diff --git a/README.md b/README.md index c7e5721..af6c754 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,8 @@ These technologies are skipped even if they are matches according to above lists Use this list if you want to have wood and steam science packs added to most of your technologies, but skip some. Lignumis uses this list for technologies that match the whitelist but are required for coming back to Lignumis in order to create the science pack export. +As an alternative, you can add `lignumis_skip_science_packs = true` to any technology. + #### `lab_blacklist` Don't touch inputs for labs in this list. diff --git a/lignumis/prototypes/integrations/vanilla-updates.lua b/lignumis/prototypes/integrations/vanilla-updates.lua index 3b5a41a..b8584a6 100644 --- a/lignumis/prototypes/integrations/vanilla-updates.lua +++ b/lignumis/prototypes/integrations/vanilla-updates.lua @@ -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 \ No newline at end of file +end