mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-27 05:46:22 +09:00
.
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
if settings.startup['PHI-GM'].value then
|
||||||
|
if settings.startup['PHI-GM'].value == 'VP' then
|
||||||
|
for k, v in pairs(data.raw.recipe) do
|
||||||
|
if v.categories and v.categories == {'recycling'} and v.hidden then
|
||||||
|
data.raw.recipe[k] = nil
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|||||||
@@ -461,24 +461,20 @@ end
|
|||||||
-- GM-VP C 61 SPACE_AGE RECIPE
|
-- GM-VP C 61 SPACE_AGE RECIPE
|
||||||
-- GM-VP H 1 QUALITY RECIPE
|
-- GM-VP H 1 QUALITY RECIPE
|
||||||
-- GM-VP H 54 SPACE_AGE RECIPE
|
-- GM-VP H 54 SPACE_AGE RECIPE
|
||||||
for k, v in pairs(data.raw.recipe) do
|
for _, v in pairs(data.raw.recipe) do
|
||||||
v.surface_conditions = nil
|
v.surface_conditions = nil
|
||||||
v.maximum_productivity = nil
|
v.maximum_productivity = nil
|
||||||
v.auto_recycle = false
|
v.auto_recycle = false
|
||||||
|
|
||||||
if items['recipe_reform'][v.name] then
|
if items['recipe_reform'][v.name] then
|
||||||
for k2, _ in pairs(items['recipe_reform'][v.name]) do
|
for k, _ in pairs(items['recipe_reform'][v.name]) do
|
||||||
v[k2] = (items['recipe_reform'][v.name][k2] and items['recipe_reform'][v.name][k2]) or v[k2]
|
v[k] = (items['recipe_reform'][v.name][k] and items['recipe_reform'][v.name][k]) or v[k]
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif items['recipe'][v.name] then
|
elseif items['recipe'][v.name] then
|
||||||
v.hidden = true
|
v.hidden = true
|
||||||
v.hidden_in_factoriopedia = true
|
v.hidden_in_factoriopedia = true
|
||||||
end
|
end
|
||||||
|
|
||||||
if v.categories and v.categories == {'recycling'} and v.hidden then
|
|
||||||
data.raw.recipe[k] = nil
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if data.raw.recipe['scrap-recycling'] then
|
if data.raw.recipe['scrap-recycling'] then
|
||||||
|
|||||||
Reference in New Issue
Block a user