mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -10,6 +10,7 @@ for _, force in pairs(game.forces) do
|
|||||||
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] ~= nil then
|
||||||
if technologies['compound-energy-' .. j].researched 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
|
||||||
@@ -19,3 +20,4 @@ for _, force in pairs(game.forces) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ for _, force in pairs(game.forces) do
|
|||||||
if technologies[v.tech] ~= nil then
|
if technologies[v.tech] ~= nil then
|
||||||
if technologies[v.tech].researched then
|
if technologies[v.tech].researched then
|
||||||
for j=v.min, v.max, 1 do
|
for j=v.min, v.max, 1 do
|
||||||
|
if recipes[v.name .. '-mk' .. j .. '-equipment'] ~= nil then
|
||||||
recipes[v.name .. '-mk' .. j .. '-equipment'].enabled = true
|
recipes[v.name .. '-mk' .. j .. '-equipment'].enabled = true
|
||||||
recipes[v.name .. '-mk' .. j .. '-equipment'].reload()
|
recipes[v.name .. '-mk' .. j .. '-equipment'].reload()
|
||||||
end
|
end
|
||||||
@@ -18,6 +19,7 @@ for _, force in pairs(game.forces) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if technologies['power-armor-mk2'].researched then
|
if technologies['power-armor-mk2'].researched then
|
||||||
recipes['power-armor-mk3'].enabled = true
|
recipes['power-armor-mk3'].enabled = true
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ for _, force in pairs(game.forces) do
|
|||||||
if technologies[v.tech] ~= nil then
|
if technologies[v.tech] ~= nil then
|
||||||
if technologies[v.tech].researched then
|
if technologies[v.tech].researched then
|
||||||
for j=v.min, v.max, 1 do
|
for j=v.min, v.max, 1 do
|
||||||
|
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
|
||||||
@@ -19,3 +20,4 @@ for _, force in pairs(game.forces) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|||||||
@@ -12,11 +12,15 @@ for index, force in pairs(game.forces) do
|
|||||||
for _, v in pairs(items) do
|
for _, v in pairs(items) do
|
||||||
if technologies[v.tech] ~= nil then
|
if technologies[v.tech] ~= nil then
|
||||||
if technologies[v.tech].researched then
|
if technologies[v.tech].researched then
|
||||||
|
if recipes[v.name .. '-s1'] ~= nil then
|
||||||
recipes[v.name .. '-s1'].enabled = true
|
recipes[v.name .. '-s1'].enabled = true
|
||||||
recipes[v.name .. '-s1'].reload()
|
recipes[v.name .. '-s1'].reload()
|
||||||
|
end
|
||||||
|
if recipes[v.name .. '-s2'] ~= nil then
|
||||||
recipes[v.name .. '-s2'].enabled = true
|
recipes[v.name .. '-s2'].enabled = true
|
||||||
recipes[v.name .. '-s2'].reload()
|
recipes[v.name .. '-s2'].reload()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ for _, force in pairs(game.forces) do
|
|||||||
if technologies[v.tech] ~= nil then
|
if technologies[v.tech] ~= nil then
|
||||||
if technologies[v.tech].researched then
|
if technologies[v.tech].researched then
|
||||||
for j=v.min, v.max, 1 do
|
for j=v.min, v.max, 1 do
|
||||||
|
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
|
||||||
@@ -19,3 +20,4 @@ for _, force in pairs(game.forces) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user