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

мНет описания правки
мНет описания правки
Строка 57: Строка 57:
     for _, content in ipairs(contents) do
     for _, content in ipairs(contents) do
         result = result .. formatContent(content)
         result = result .. formatContent(content)
    end
    return result
end
-- Обработка вложенных таблиц
local function processNestedSelectors(children)
    local result = ''
    for _, child in ipairs(children) do
        if child.id then
            result = result .. formatContent(child)
        elseif child["!type"] == "NestedSelector" and child.tableId then
            result = result .. getTableOutput(child.tableId)
        end
     end
     end
     return result
     return result
Строка 93: Строка 106:
     end
     end


    return result
end
-- Обработка вложенных таблиц
local function processNestedSelectors(children)
    local result = ''
    for _, child in ipairs(children) do
        if child.id then
            result = result .. formatContent(child)
        elseif child["!type"] == "NestedSelector" and child.tableId then
            result = result .. getTableOutput(child.tableId)
        end
    end
     return result
     return result
end
end