This commit is contained in:
2026-06-29 20:24:26 +09:00
parent 4aa6faf994
commit b19207ea5e
2 changed files with 11 additions and 3 deletions
+5 -1
View File
@@ -1,5 +1,9 @@
local main = {}
local chest_filter = {}
local hide = {
['parameters'] = true,
['spawnables'] = true,
}
do
for _, q in pairs(prototypes.quality) do
@@ -9,7 +13,7 @@ do
local j = 1
for _, i in pairs(prototypes.item) do
if not i.hidden and i.subgroup ~= 'parameters' or i.subgroup ~= 'spawnables' then
if not (i.hidden or (i.subgroup and hide[i.subgroup])) 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
+6 -2
View File
@@ -1,9 +1,13 @@
local hide = {
['parameters'] = true,
['spawnables'] = true,
}
if data.raw['infinity-container']['super-infinity-chest'] then
local sc = 2
local sc = 1
for _, i in pairs(data.raw.item) do
if not i.hidden and not (i.subgroup and (i.subgroup == 'parameters' or i.subgroup == 'spawnables')) then
if not (i.hidden or (i.subgroup and hide[i.subgroup])) then
sc = sc + 1
end
end