updates, working well
This commit is contained in:
parent
473206ff01
commit
2d59a511b0
24 changed files with 796 additions and 67 deletions
20
modules.lua
Normal file
20
modules.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
-- Enable prod modules for some recipes
|
||||
-- Recipes with very specific ratios are deliberately excluded
|
||||
|
||||
recipes = {"chlorine", "epoxy", "pcb-substrate", "vinyl-chloride", "bakelite-hcl"}
|
||||
if mods["Krastorio2"] then
|
||||
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