mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
Update main.lua
This commit is contained in:
@@ -221,7 +221,7 @@ for i=1, #recipe_list, 1 do
|
||||
if data.raw.recipe[recipe_list[i]] ~= nil then
|
||||
for j=1, #recipe_multiplier, 1 do
|
||||
local item = table.deepcopy(data.raw.recipe[recipe_list[i]])
|
||||
item.enabled = false
|
||||
item.enabled = true
|
||||
|
||||
if (item.normal ~= nil) and (item.normal ~= false) then
|
||||
for k, v in pairs(item.normal.ingredients) do
|
||||
@@ -326,18 +326,6 @@ for i=1, #recipe_list, 1 do
|
||||
end
|
||||
end
|
||||
|
||||
for t=1, #data.raw.technology, 1 do
|
||||
for k, _ in pairs(data.raw.technology[t].effects) do
|
||||
if data.raw.technology[t].effects[k].type == 'unlock-recipe' then
|
||||
if data.raw.recipe[data.raw.technology[t].effects[k].recipe] ~= nil then
|
||||
for j=1, #recipe_multiplier, 1 do
|
||||
table.insert(data.raw.technology[t].effects, {type='unlock-recipe', recipe= data.raw.technology[t].effects[k].recipe .. '-' .. j})
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
data.raw.recipe['loader'].hidden = false
|
||||
data.raw.recipe['fast-loader'].hidden = false
|
||||
data.raw.recipe['express-loader'].hidden = false
|
||||
|
||||
Reference in New Issue
Block a user