This commit is contained in:
phidias committed 2024-06-17 02:08:40 +09:00
1 parent 4b858a4bfb
commit e05f5174da
46 files changed
+83

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
local items = require '__PHI-MB__/config'
for _, force in pairs(game.forces) do
local technologies = force.technologies
local recipes = force.recipes
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
if recipes[v.name .. '-' .. j] ~= nil then
recipes[v.name .. '-' .. j].enabled = true
recipes[v.name .. '-' .. j].reload()
end
end
end
end
end
end
end
end