update
This commit is contained in:
parent
69ef3d6dd4
commit
3a90a0a9cc
97 changed files with 358 additions and 361 deletions
27
aluminum-recipe-modules.lua
Normal file
27
aluminum-recipe-modules.lua
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
-- Enable prod modules for all lead plate and ore recipes
|
||||
|
||||
recipes = {"lead-plate"}
|
||||
if mods["Krastorio2"] then
|
||||
table.insert(recipes, "enriched-lead-plate")
|
||||
table.insert(recipes, "enriched-lead")
|
||||
end
|
||||
if mods["space-exploration"] then
|
||||
table.insert(recipes, "lead-smelting-vulcanite")
|
||||
if mods["Krastorio2"] then
|
||||
table.insert(recipes, "enriched-lead-smelting-vulcanite")
|
||||
end
|
||||
end
|
||||
|
||||
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