modernize *-nanotube recipes

This commit is contained in:
Brevven 2022-09-25 00:07:09 -07:00
parent 662cc8bf98
commit 501e659f8b
9 changed files with 74 additions and 173 deletions

View file

@ -11,17 +11,19 @@ recipes = {
"fullerenes",
"nanotubes",
"low-density-structure-nanotubes",
"imersium-plate-nanotubes",
"imersium-beam-nanotubes",
"imersium-gear-wheel-nanotubes",
"aeroframe-scaffold-nanotubes",
"nanomaterial-nanotubes",
"diamond-synthesis-vulcanite",
-- NOTE: Carbon black recipes do not allow prod modules
}
-- Add all *-nanotubes recipes that exist
local ending = "-nanotubes"
for i, recipe in pairs(data.raw.recipe) do
if recipe.name:sub(-#ending) == ending then
table.insert(recipes, recipe.name)
end
end
for i, recipe in pairs(recipes) do
if data.raw.recipe[recipe] then
for j, module in pairs(data.raw.module) do