crafting efficiency

This commit is contained in:
Brevven 2023-01-16 18:05:11 -08:00
parent 9a4e1ca235
commit fac1717a43
6 changed files with 41 additions and 18 deletions

View file

@ -1,22 +1,8 @@
-- Enable prod modules for all tungsten plate and ore recipes
local util = require("data-util");
recipes = {"tungsten-plate", "tungsten-carbide", "rocket-engine-nozzle"}
if mods["Krastorio2"] then
table.insert(recipes, "enriched-tungsten-plate")
table.insert(recipes, "enriched-tungsten")
end
if mods["space-exploration"] then
table.insert(recipes, "tungsten-smelting-vulcanite")
table.insert(recipes, "molten-tungsten")
if mods["Krastorio2"] then
table.insert(recipes, "enriched-tungsten-smelting-vulcanite")
end
end
if data.raw.recipe["tungsten-carbide-coal"] then
table.insert(recipes, "tungsten-carbide-coal")
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