crafting efficiency
This commit is contained in:
parent
934e94f885
commit
2519480319
6 changed files with 42 additions and 15 deletions
|
|
@ -1,19 +1,7 @@
|
|||
-- Enable prod modules for all tin plate and ore recipes
|
||||
local util = require("data-util");
|
||||
|
||||
recipes = {"tin-plate", "solder", "organotins"}
|
||||
if mods["Krastorio2"] then
|
||||
table.insert(recipes, "enriched-tin")
|
||||
table.insert(recipes, "enriched-tin-plate")
|
||||
end
|
||||
if mods["space-exploration"] then
|
||||
table.insert(recipes, "tin-smelting-vulcanite")
|
||||
table.insert(recipes, "molten-tin")
|
||||
if mods["Krastorio2"] then
|
||||
table.insert(recipes, "enriched-tin-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