mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -8,19 +8,14 @@ for _, force in pairs(game.forces) do
|
|||||||
if v.enabled then
|
if v.enabled then
|
||||||
if (v.tech == 'compound-energy') then
|
if (v.tech == 'compound-energy') then
|
||||||
for j=v.min, v.max, 1 do
|
for j=v.min, v.max, 1 do
|
||||||
if technologies['compound-energy-' .. j] ~= nil then
|
if technologies['compound-energy-' .. j] and technologies['compound-energy-' .. j].researched and recipes[v.name .. '-' .. j] then
|
||||||
if technologies['compound-energy-' .. j].researched then
|
|
||||||
if recipes[v.name .. '-' .. j] ~= nil then
|
|
||||||
recipes[v.name .. '-' .. j].enabled = true
|
recipes[v.name .. '-' .. j].enabled = true
|
||||||
recipes[v.name .. '-' .. j].reload()
|
recipes[v.name .. '-' .. j].reload()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
else
|
else
|
||||||
if technologies[v.tech] then
|
if technologies[v.tech] and technologies[v.tech].researched then
|
||||||
if technologies[v.tech].researched then
|
|
||||||
if string.find(v.type, '-equipment') then
|
if string.find(v.type, '-equipment') then
|
||||||
for j=v.min, v.max, 1 do
|
for j=v.min, v.max, 1 do
|
||||||
if recipes[v.name .. '-mk' .. j .. '-equipment'] then
|
if recipes[v.name .. '-mk' .. j .. '-equipment'] then
|
||||||
@@ -41,7 +36,6 @@ for _, force in pairs(game.forces) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
if settings.startup['PHI-EQ'].value and settings.startup['PHI-EQ-ARMOR'].value then
|
if settings.startup['PHI-EQ'].value and settings.startup['PHI-EQ-ARMOR'].value then
|
||||||
if technologies['power-armor-mk2'] and technologies['power-armor-mk2'].researched then
|
if technologies['power-armor-mk2'] and technologies['power-armor-mk2'].researched then
|
||||||
|
|||||||
Reference in New Issue
Block a user