This commit is contained in:
2024-06-17 03:15:35 +09:00
parent e05f5174da
commit 7cbfef04f4
20 changed files with 1312 additions and 72 deletions

View File

@@ -21,10 +21,20 @@ for _, force in pairs(game.forces) do
else
if technologies[v.tech] then
if technologies[v.tech].researched then
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].reload()
if string.find(v.type, '-equipment') then
for j=v.min, v.max, 1 do
if recipes[v.name .. '-mk' .. j .. '-equipment'] then
recipes[v.name .. '-mk' .. j .. '-equipment'].enabled = true
recipes[v.name .. '-mk' .. j .. '-equipment'].reload()
end
end
else
for j=v.min, v.max, 1 do
if recipes[v.name .. '-' .. j] then
recipes[v.name .. '-' .. j].enabled = true
recipes[v.name .. '-' .. j].reload()
end
end
end
@@ -46,4 +56,9 @@ for _, force in pairs(game.forces) do
end
end
end
if technologies['power-armor-mk2'].researched and settings.startup['PHI-EQ-ARMOR'].value then
recipes['power-armor-mk3'].enabled = true
recipes['power-armor-mk3'].reload()
end
end