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

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


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


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


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