Модуль:Prototypes/Хранилище/Предмет: различия между версиями

мНет описания правки
мНет описания правки
Строка 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.entity_storage.tableId
            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)
            else
                for _, child in ipairs(containers.entity_storage.children) do
                    if 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
             end
         end
         end
Строка 104: Строка 108:
     return result
     return result
end
end


-- Формирование списка химии
-- Формирование списка химии