This commit is contained in:
2026-06-29 20:34:57 +09:00
parent b19207ea5e
commit d4421ef083
2 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ do
local j = 1
for _, i in pairs(prototypes.item) do
if not (i.hidden or (i.subgroup and hide[i.subgroup])) then
if not (i.hidden or (i.subgroup and i.subgroup.name and hide[i.subgroup.name])) then
for _, q in pairs(prototypes.quality) do
table.insert(chest_filter[q.name], {index = j, name = i.name, quality = q.name, mode = 'exactly', count = i.stack_size})
end
+7 -3
View File
@@ -6,9 +6,13 @@ local hide = {
if data.raw['infinity-container']['super-infinity-chest'] then
local sc = 1
for _, i in pairs(data.raw.item) do
if not (i.hidden or (i.subgroup and hide[i.subgroup])) then
sc = sc + 1
for _, c in pairs({'ammo', 'armor', 'capsule', 'gun', 'item'}) do
if data.raw[c] then
for _, i in pairs(data.raw[c]) do
if not (i.hidden or (i.subgroup and hide[i.subgroup])) then
sc = sc + 1
end
end
end
end