This commit is contained in:
2026-05-08 17:12:09 +09:00
parent 42b5feaa4d
commit 85e8e7dc28
3 changed files with 27 additions and 36 deletions
-36
View File
@@ -1,40 +1,4 @@
do
local sa = settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'SAP'
local p = (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'VP') or sa
for k, v in pairs(data.raw.recipe) do
if (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'VP') and v.category == 'recycling' then
data.raw.recipe[k] = nil
end
if p and v.maximum_productivity then
v.maximum_productivity = nil
end
end
for _, v in pairs(data.raw['lamp']) do
if v.light then
v.light.color = {1, 1, 1}
end
if v.light_when_colored then
v.light_when_colored.color = {1, 1, 1}
end
end
for _, v in pairs(data.raw['land-mine']) do
if v.flags then
for fk, fv in ipairs(v.flags) do
if fv == 'placeable-off-grid' then
table.remove(v.flags, fk)
break
end
end
end
end
end
if mods['space-age'] then
for i=2, settings.startup['PHI-MB-ENERGY-POWER-TIER'].value do
if data.raw.recipe['accumulator-' .. i] then