This commit is contained in:
2023-09-19 01:35:35 +09:00
parent ac8cfdf06a
commit 4b95176a06
5 changed files with 24 additions and 12 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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