fixed tech card removal in K2 overhal

This commit is contained in:
PreLeyZero 2022-03-19 17:37:21 +01:00
parent 8b258f770d
commit 08cf09c156

View file

@ -58,10 +58,18 @@ local function remove_tech_card(tech, card)
return
end
--in data.raw
--[[
ingredients = {
{'automation-science-pack',1},
{'logistic-science-pack',1},
}
]]
for i,v in ipairs(data.raw.technology[tech].unit.ingredients) do
for j,w in ipairs(v) do
if w == card then
v = nil
data.raw.technology[tech].unit.ingredients[i] = nil
end
end
end