mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-07-28 21:42:30 +09:00
.
This commit is contained in:
@@ -3,15 +3,18 @@ local chest_filter = {}
|
|||||||
|
|
||||||
do
|
do
|
||||||
for _, q in pairs(prototypes.quality) do
|
for _, q in pairs(prototypes.quality) do
|
||||||
local q_name = q.name
|
chest_filter[q.name] = {}
|
||||||
local j = 0
|
end
|
||||||
chest_filter[q_name] = {}
|
|
||||||
|
local j = 1
|
||||||
|
|
||||||
for _, i in pairs(prototypes.item) do
|
for _, i in pairs(prototypes.item) do
|
||||||
if not i.hidden and not (i.subgroup and (i.subgroup == 'parameters' or i.subgroup == 'spawnables')) then
|
if not i.hidden and not (i.subgroup and (i.subgroup == 'parameters' or i.subgroup == 'spawnables')) then
|
||||||
j = j + 1
|
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})
|
table.insert(chest_filter[q.name], {index = j, name = i.name, quality = q.name, mode = 'exactly', count = i.stack_size})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
j = j + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,11 +1,3 @@
|
|||||||
if settings.startup['PHI-CT'].value then
|
if settings.startup['PHI-CT'].value then
|
||||||
if data.raw['infinity-container']['super-infinity-chest'] then
|
require('data.f.ct')
|
||||||
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
|
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