prod modules for vulcanite smelting
This commit is contained in:
parent
864034d3d7
commit
56b9231b3e
3 changed files with 21 additions and 7 deletions
|
|
@ -2,15 +2,24 @@
|
|||
|
||||
recipes = {"titanium-plate"}
|
||||
if mods["Krastorio2"] then
|
||||
recipes = {"titanium-plate", "enriched-titanium-plate", "enriched-titanium"}
|
||||
table.insert(recipes, "enriched-titanium-plate")
|
||||
table.insert(recipes, "enriched-titanium")
|
||||
end
|
||||
if mods["space-exploration"] then
|
||||
table.insert(recipes, "titanium-smelting-vulcanite")
|
||||
if mods["Krastorio2"] then
|
||||
table.insert(recipes, "enriched-titanium-smelting-vulcanite")
|
||||
end
|
||||
end
|
||||
|
||||
for i, recipe in pairs(recipes) do
|
||||
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)
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue