This commit is contained in:
2023-09-18 20:53:55 +09:00
parent 762c5fbc81
commit ccfcae18d8
4 changed files with 20 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "PHI-EN",
"version": "1.3.4",
"version": "1.3.5",
"factorio_version": "1.1",
"date": "2023-09-19",
"title": "Phidias Energy",

View File

@@ -4,13 +4,15 @@ for _, force in pairs(game.forces) do
local technologies = force.technologies
local recipes = force.recipes
for _, v in pairs(items) do
if v.enabled then
for j=v.min, v.max, 1 do
if technologies['compound-energy-' .. j] ~= nil then
if technologies['compound-energy-' .. j].researched then
recipes[v.name .. '-' .. j].enabled = true
recipes[v.name .. '-' .. j].reload()
for k, v in pairs(items) do
if k ~= 'setting' then
if v.enabled then
for j=v.min, v.max, 1 do
if technologies['compound-energy-' .. j] ~= nil then
if technologies['compound-energy-' .. j].researched then
recipes[v.name .. '-' .. j].enabled = true
recipes[v.name .. '-' .. j].reload()
end
end
end
end