mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-07-26 21:16:23 +09:00
.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user