mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-29 19:46:38 +09:00
.
This commit is contained in:
@@ -494,28 +494,17 @@ if settings.startup['PHI-SA'].value then
|
|||||||
end
|
end
|
||||||
|
|
||||||
if settings.startup['PHI-SA-RESTRICTION'].value and mods['space-age'] then
|
if settings.startup['PHI-SA-RESTRICTION'].value and mods['space-age'] then
|
||||||
if tonumber(mods['space-age']:match('(%d+)$') or 0) < 34 then
|
local location = '__PHI-CL__/graphics/' .. ((tonumber(mods['space-age']:match('(%d+)$') or 0) < 34 and 'signal-2') or 'signal-1') .. '/'
|
||||||
for _, v in pairs(data.raw['virtual-signal']) do
|
|
||||||
local s = {table.unpack(v)}
|
|
||||||
|
|
||||||
if s.subgroup ~= 'virtual-signal-special' then
|
for _, v in pairs(data.raw['virtual-signal']) do
|
||||||
s.name = s.name .. '-2'
|
if v.subgroup ~= 'virtual-signal-special' then
|
||||||
s.order = s.order .. '-2'
|
data:extend({
|
||||||
s.icon = '__PHI-CL__/graphics/signal-2/' .. v.name .. '.png'
|
type = 'virtual-signal',
|
||||||
data:extend({s})
|
name = v.name .. '-2',
|
||||||
end
|
icon = location .. v.name .. '.png',
|
||||||
end
|
subgroup = v.subgroup,
|
||||||
|
order = v.order .. '-2'
|
||||||
else
|
})
|
||||||
for _, v in pairs(data.raw['virtual-signal']) do
|
|
||||||
local s = {table.unpack(v)}
|
|
||||||
|
|
||||||
if s.subgroup ~= 'virtual-signal-special' then
|
|
||||||
s.name = s.name .. '-2'
|
|
||||||
s.order = s.order .. '-2'
|
|
||||||
s.icon = '__PHI-CL__/graphics/signal-1/' .. v.name .. '.png'
|
|
||||||
data:extend({s})
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "PHI-CL",
|
"name": "PHI-CL",
|
||||||
"version": "3.0.67",
|
"version": "3.0.68",
|
||||||
"factorio_version": "2.0",
|
"factorio_version": "2.0",
|
||||||
"date": "2025-03-05",
|
"date": "2025-03-06",
|
||||||
"title": "Phidias Collection",
|
"title": "Phidias Collection",
|
||||||
"author": "PHIDIAS0303",
|
"author": "PHIDIAS0303",
|
||||||
"contributers": "",
|
"contributers": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user