Update to 2.0

This commit is contained in:
Natha 2025-07-22 15:56:16 +02:00 committed by Simon Brodtmann
parent b5beff4ea4
commit 038e666ae8
39 changed files with 208 additions and 530 deletions

View file

@ -4,14 +4,6 @@ local util = require("data-util");
for i, recipe in pairs(util.me.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
data.raw.recipe[recipe].allow_productivity = true
end
end