This commit is contained in:
2025-04-02 23:39:46 +09:00
parent cee77d656a
commit c515726af6
2 changed files with 8 additions and 13 deletions

View File

@@ -2,6 +2,14 @@ local items = require 'config'
local main = require 'main'
local file_stage = 2
if mods['space-age'] and settings.startup['PHI-VP'].value and settings.startup['PHI-VP-MAIN'].value then
for k, v in pairs(data.raw.recipe) do
if v.category == 'recycling' then
data.raw.recipe[k] = nil
end
end
end
for _, v in pairs(items['item']) do
if (v.stage == file_stage) and v.enabled and (v.max >= v.min) then
v.category = 'item'

View File

@@ -1324,19 +1324,6 @@ if settings.startup['PHI-VP'].value then
v.minable.results = {{type = 'item', name = 'wood', amount = 4}}
end
end
for _, v in pairs(data.raw.recipe) do
v.auto_recycle = false
if v.category and v.category == 'recycling' then
v.hidden = true
v.hidden_in_factoriopedia = true
end
end
for _, v in pairs(data.raw.item) do
v.auto_recycle = false
end
end
if mods['quality'] and settings.startup['PHI-VP-MAIN'].value and (not settings.startup['PHI-SA-MAX-QUALITY'].value) then