crafting efficiency

This commit is contained in:
Brevven 2023-01-16 19:58:57 -08:00
parent 6c7b85f515
commit e7181ad5e8
6 changed files with 39 additions and 7 deletions

View file

@ -1,10 +1,7 @@
-- Enable prod modules for some recipes
-- Recipes with very specific ratios are deliberately excluded
recipes = {"chlorine", "epoxy", "pcb-substrate", "pcb", "bakelite-hcl"}
if mods["Krastorio2"] then
end
local util = require("data-util")
for i, recipe in pairs(recipes) do
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