graphite, diamonds, graphene, fullerenes, etc
This commit is contained in:
parent
17970eaa1d
commit
b1b70b55e2
139 changed files with 1304 additions and 268 deletions
34
carbon-recipe-modules.lua
Normal file
34
carbon-recipe-modules.lua
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
-- Enable prod modules for all recipes
|
||||
local util = require("__bzcarbon__.data-util");
|
||||
|
||||
recipes = {
|
||||
"graphite",
|
||||
"synthetic-diamond",
|
||||
|
||||
"graphene",
|
||||
"heavy-water-graphene",
|
||||
|
||||
"fullerenes",
|
||||
"nanotubes",
|
||||
"low-density-structure-nanotubes",
|
||||
"imersium-plate-nanotubes",
|
||||
"imersium-beam-nanotubes",
|
||||
"imersium-gear-wheel-nanotubes",
|
||||
"aeroframe-scaffold-nanotubes",
|
||||
"nanomaterial-nanotubes",
|
||||
-- NOTE: Carbon black recipes do not allow prod modules
|
||||
}
|
||||
|
||||
for i, recipe in pairs(recipes) do
|
||||
if data.raw.recipe[recipe] then
|
||||
for j, module in pairs(data.raw.module) do
|
||||
if module.effect then
|
||||
for effect_name, effect in pairs(module.effect) do
|
||||
if effect_name == "productivity" and effect.bonus > 0 and module.limitation and #module.limitation > 0 then
|
||||
table.insert(module.limitation, recipe)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue