mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-12 21:08:43 +09:00
.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user