Модуль:Prototypes/Хранилище/Предмет: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 85: | Строка 85: | ||
local containers = item.EntityTableContainerFill.containers | local containers = item.EntityTableContainerFill.containers | ||
if containers.entity_storage then | if containers.entity_storage then | ||
local tableId = containers. | for _, child in ipairs(containers.entity_storage.children) do | ||
if child.tableId then | |||
result = result .. getTableOutput(child.tableId) | |||
elseif child.id then | |||
result = result .. formatContent(child) | |||
elseif child["!type"] == "GroupSelector" then | |||
result = result .. '<div class="together">' | |||
result = result .. getContentsOutput(child.children) | |||
result = result .. '</div>' | |||
end | |||
end | |||
end | |||
if containers.storagebase then | |||
local tableId = containers.storagebase.tableId | |||
if tableId then | if tableId then | ||
result = result .. getTableOutput(tableId) | result = result .. getTableOutput(tableId) | ||
end | end | ||
end | end | ||
| Строка 104: | Строка 108: | ||
return result | return result | ||
end | end | ||
-- Формирование списка химии | -- Формирование списка химии | ||