mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-11-23 13:53:12 +09:00
.
This commit is contained in:
1 parent
0c5df4ccbd
commit
8d04d69e52
13 files changed
+158
-35
No files matched your search
@@ -4,13 +4,15 @@ for _, force in pairs(game.forces) do
|
||||
local technologies = force.technologies
|
||||
local recipes = force.recipes
|
||||
|
||||
for _, v in pairs(items) do
|
||||
if v.enabled then
|
||||
if technologies[v.tech] ~= nil then
|
||||
if technologies[v.tech].researched then
|
||||
for j=v.min, v.max, 1 do
|
||||
recipes[v.name .. '-' .. j].enabled = true
|
||||
recipes[v.name .. '-' .. j].reload()
|
||||
for k, v in pairs(items) do
|
||||
if k ~= 'setting' then
|
||||
if v.enabled then
|
||||
if technologies[v.tech] ~= nil then
|
||||
if technologies[v.tech].researched then
|
||||
for j=v.min, v.max, 1 do
|
||||
recipes[v.name .. '-' .. j].enabled = true
|
||||
recipes[v.name .. '-' .. j].reload()
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user