Модуль:Prototypes/Хранилище/Предмет: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 218: | Строка 218: | ||
end | end | ||
if wrapped and (classesRolls or classesProb and | if wrapped and (classesRolls or classesProb) 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 "") | |||
end | |||
end | end | ||
result[#result + 1] = getTableOutput(nestedSelector.tableId) | result[#result + 1] = getTableOutput(nestedSelector.tableId) | ||
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 | ||