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

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


     if wrapped then
     if wrapped then
        if nestedSelector.rolls and nestedSelector.rolls.range then
if nestedSelector.rolls and nestedSelector.rolls.range then
            classesRolls = ', максимум может выпасть ' .. processRolls(nestedSelector.rolls)
    local rollsResult = processRolls(nestedSelector.rolls)
        end
    if rollsResult and #rollsResult > 0 then
        classesRolls = ', максимум может выпасть ' .. rollsResult
    end
end
         if nestedSelector.prob then
         if nestedSelector.prob then
             classesProb = string.format(" <div>%s%%</div>", nestedSelector.prob * 100 >= 1 and math.floor(nestedSelector.prob * 100) or nestedSelector.prob * 100)
             classesProb = string.format(" <div>%s%%</div>", nestedSelector.prob * 100 >= 1 and math.floor(nestedSelector.prob * 100) or nestedSelector.prob * 100)