Update to 2.0

This commit is contained in:
Simon Brodtmann 2025-10-05 09:32:17 +02:00
parent b819550db8
commit 70d34155af
19 changed files with 212 additions and 450 deletions

View file

@ -1,15 +1,9 @@
-- Enable prod modules for some recipes
-- Recipes with very specific ratios are deliberately excluded
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
end