This commit is contained in:
2026-06-29 20:08:41 +09:00
parent 312ef93030
commit 2ef4b80c39
3 changed files with 24 additions and 17 deletions
+10 -7
View File
@@ -3,15 +3,18 @@ local chest_filter = {}
do
for _, q in pairs(prototypes.quality) do
local q_name = q.name
local j = 0
chest_filter[q_name] = {}
chest_filter[q.name] = {}
end
for _, i in pairs(prototypes.item) do
if not i.hidden and not (i.subgroup and (i.subgroup == 'parameters' or i.subgroup == 'spawnables')) then
j = j + 1
table.insert(chest_filter[q_name], {index = j, name = i.name, quality = q_name, mode = 'exactly', count = i.stack_size})
local j = 1
for _, i in pairs(prototypes.item) do
if not i.hidden and not (i.subgroup and (i.subgroup == 'parameters' or i.subgroup == 'spawnables')) 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
j = j + 1
end
end
end
+2 -10
View File
@@ -1,11 +1,3 @@
if settings.startup['PHI-CT'].value then
if data.raw['infinity-container']['super-infinity-chest'] then
local sc = 2
for c in pairs(defines.prototypes.item) do
sc = sc + table_size(data.raw[c] or {})
end
data.raw['infinity-container']['super-infinity-chest'].inventory_size = sc
end
end
require('data.f.ct')
end
+12
View File
@@ -0,0 +1,12 @@
if data.raw['infinity-container']['super-infinity-chest'] then
local sc = 2
for _, i in pairs(prototypes.item) do
if not i.hidden and not (i.subgroup and (i.subgroup == 'parameters' or i.subgroup == 'spawnables')) then
sc = sc + 1
end
end
data.raw['infinity-container']['super-infinity-chest'].inventory_size = sc
end