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

мНет описания правки
мНет описания правки
Строка 219: Строка 219:


if wrapped and (classesRolls or classesProb) then
if wrapped and (classesRolls or classesProb) then
    if (classesRolls and classesRolls > 0) or (classesProb and classesProb > 0) then
    if (classesRolls and #classesRolls > 0) or (classesProb and #classesProb > 0) then
        result[#result + 1] = string.format('{{LinkСard/Сollapsible|name=Группа %s%s|content=', classesRolls or "", classesProb or "")
        result[#result + 1] = string.format('{{LinkСard/Сollapsible|name=Группа %s%s|content=', classesRolls or "", classesProb or "")
    end
    end
end
end


     result[#result + 1] = getTableOutput(nestedSelector.tableId)
     result[#result + 1] = getTableOutput(nestedSelector.tableId)


if wrapped and (classesRolls or classesProb) then
if wrapped and (classesRolls or classesProb) then
    if (classesRolls and classesRolls > 0) or (classesProb and classesProb > 0) then
    if (classesRolls and #classesRolls > 0) or (classesProb and #classesProb > 0) then
         result[#result + 1] = "}}"
         result[#result + 1] = "}}"
        end
    end
    end
end


     return table.concat(result)
     return table.concat(result)