updated version

This commit is contained in:
mamoniot
2023-05-14 13:15:57 -04:00
parent 9f1ca27468
commit c4eb0a6d40
4 changed files with 22 additions and 29 deletions

View File

@@ -9,22 +9,4 @@ if mods["nullius"] then
-- Nullius makes modded technologies part of its research tree
-- Place combinator in the same place on the research tree as LTN
table.insert(data.raw.technology["nullius-broadcasting-1"].prerequisites, "cybersyn-train-network")
else
-- Reset the combinator recipe back to arithmetic combinator recipe in case a mod has changed it
local recipe = flib.deep_copy(data.raw["recipe"]["arithmetic-combinator"].ingredients)
for k, _ in pairs(recipe) do
local mult = 2
for i, _ in pairs(recipe) do
if recipe[k][i] == "copper-cable" then
mult = 4
break;
end
end
for i, _ in pairs(recipe) do
if type(recipe[k][i]) == "number" then
recipe[k][i] = mult*recipe[k][i]
end
end
end
data.raw["recipe"][COMBINATOR_NAME].ingredients = recipe
end