mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-07-26 21:16:23 +09:00
24 lines
625 B
Lua
24 lines
625 B
Lua
local hide = {
|
|
['parameters'] = true,
|
|
['spawnables'] = true,
|
|
}
|
|
|
|
if data.raw['infinity-container']['super-infinity-chest'] then
|
|
--[[
|
|
3 planner, book
|
|
]]
|
|
local sc = 5
|
|
|
|
for _, c in pairs({'ammo', 'armor', 'capsule', 'gun', 'item', 'item-with-entity-data', 'repair-tool'}) 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
|
|
|
|
data.raw['infinity-container']['super-infinity-chest'].inventory_size = sc
|
|
end
|