mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-30 03:51:40 +09:00
Update main.lua
This commit is contained in:
@@ -326,12 +326,12 @@ for i=1, #recipe_list, 1 do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, tech in pairs(data.raw.technology) do
|
for t, _ in pairs(data.raw.technology) do
|
||||||
for k, _ in pairs(tech.effects) do
|
for k, _ in pairs(data.raw.technology[t].effects) do
|
||||||
if tech.effects[k].type == 'unlock-recipe' then
|
if data.raw.technology[t].effects[k].type == 'unlock-recipe' then
|
||||||
if data.raw.recipe[tech.effects[k].recipe] ~= nil then
|
if data.raw.recipe[data.raw.technology[t].effects[k].recipe] ~= nil then
|
||||||
for j=1, #recipe_multiplier, 1 do
|
for j=1, #recipe_multiplier, 1 do
|
||||||
table.insert(tech.effects, {type='unlock-recipe', recipe= tech.effects[k].recipe .. '-' .. j})
|
table.insert(data.raw.technology[t].effects, {type='unlock-recipe', recipe= data.raw.technology[t].effects[k].recipe .. '-' .. j})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user