mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-31 12:11:40 +09:00
.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "PHI-EN",
|
"name": "PHI-EN",
|
||||||
"version": "1.3.4",
|
"version": "1.3.5",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"date": "2023-09-19",
|
"date": "2023-09-19",
|
||||||
"title": "Phidias Energy",
|
"title": "Phidias Energy",
|
||||||
|
|||||||
@@ -4,7 +4,8 @@ for _, force in pairs(game.forces) do
|
|||||||
local technologies = force.technologies
|
local technologies = force.technologies
|
||||||
local recipes = force.recipes
|
local recipes = force.recipes
|
||||||
|
|
||||||
for _, v in pairs(items) do
|
for k, v in pairs(items) do
|
||||||
|
if k ~= 'setting' then
|
||||||
if v.enabled then
|
if v.enabled then
|
||||||
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
|
||||||
@@ -17,3 +18,4 @@ for _, force in pairs(game.forces) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "PHI-EQ",
|
"name": "PHI-EQ",
|
||||||
"version": "1.2.0",
|
"version": "1.2.1",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"date": "2023-09-19",
|
"date": "2023-09-19",
|
||||||
"title": "Phidias Equipment",
|
"title": "Phidias Equipment",
|
||||||
|
|||||||
@@ -4,7 +4,8 @@ for _, force in pairs(game.forces) do
|
|||||||
local technologies = force.technologies
|
local technologies = force.technologies
|
||||||
local recipes = force.recipes
|
local recipes = force.recipes
|
||||||
|
|
||||||
for _, v in pairs(items) do
|
for k, v in pairs(items) do
|
||||||
|
if k ~= 'setting' then
|
||||||
if v.enabled then
|
if v.enabled then
|
||||||
if technologies[v.tech] ~= nil then
|
if technologies[v.tech] ~= nil then
|
||||||
if technologies[v.tech].researched then
|
if technologies[v.tech].researched then
|
||||||
@@ -17,3 +18,4 @@ for _, force in pairs(game.forces) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user