From 1d39a70471946c749ae7ed6fa7be360c47b606b2 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Tue, 11 Mar 2025 23:32:53 +0900 Subject: [PATCH] . --- PHI-CL/data.lua | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/PHI-CL/data.lua b/PHI-CL/data.lua index eab8bbe..071133e 100644 --- a/PHI-CL/data.lua +++ b/PHI-CL/data.lua @@ -1025,18 +1025,13 @@ if settings.startup['PHI-VP'].value then end end - for k, v in pairs(items['space-age']['PHI-VP-MAIN']['recipe']) do - if data.raw.recipe[k] then - data.raw.recipe[k].hidden = v - data.raw.recipe[k].hidden_in_factoriopedia = v - end + for k, _ in pairs(items['space-age']['PHI-VP-MAIN']['recipe']) do + data.raw.recipe[k] = nil end for k, v in pairs(items['space-age']['PHI-VP-MAIN']['item']) do - if data.raw.item[k] then - data.raw.item[k].hidden = v - data.raw.item[k].hidden_in_factoriopedia = v - end + data.raw.item[k].hidden = v + data.raw.item[k].hidden_in_factoriopedia = v end data.raw.recipe['cliff-explosives'].ingredients = {{type = 'item', name = 'explosives', amount = 10}, {type = 'item', name = 'grenade', amount = 1}, {type = 'item', name = 'barrel', amount = 1}} @@ -1172,7 +1167,7 @@ if settings.startup['PHI-VP'].value then data.raw['capsule'][v].hidden_in_factoriopedia = true end - for _, v in pairs({'small-stomper-shell', 'medium-stomper-shell', 'big-stomper-shell', 'big-volcanic-rock', 'huge-volcanic-rock'}) do + for _, v in pairs({'small-stomper-shell', 'medium-stomper-shell', 'big-stomper-shell', 'big-volcanic-rock', 'huge-volcanic-rock', 'copper-stromatolite', 'iron-stromatolite', 'vulcanus-chimney-short', 'vulcanus-chimney-truncated', 'vulcanus-chimney', 'vulcanus-chimney-cold', 'vulcanus-chimney-faded', 'fulgurite', 'fulgurite-small'}) do data.raw['simple-entity'][v].hidden = true data.raw['simple-entity'][v].hidden_in_factoriopedia = true end