crafting efficiency
This commit is contained in:
parent
c137c2525f
commit
60af808661
6 changed files with 36 additions and 15 deletions
|
|
@ -1,19 +1,7 @@
|
|||
local util = require("data-util");
|
||||
-- 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")
|
||||
table.insert(recipes, "molten-lead")
|
||||
if mods["Krastorio2"] then
|
||||
table.insert(recipes, "enriched-lead-smelting-vulcanite")
|
||||
end
|
||||
end
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue