Модуль:Prototypes/Хранилище/Предмет: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 93: | Строка 93: | ||
elseif selectedChild["!type"] == "AllSelector" and selectedChild.children then | elseif selectedChild["!type"] == "AllSelector" and selectedChild.children then | ||
result = result .. processAllSelectors(selectedChild.children) | result = result .. processAllSelectors(selectedChild.children) | ||
elseif selectedChild["!type"] == "NestedSelector" and selectedChild.tableId then | |||
local nestedRolls = selectedChild.rolls and (selectedChild.rolls.value or (selectedChild.rolls.range and math.random(selectedChild.rolls.range[1], selectedChild.rolls.range[2])) or 1) or 1 | |||
result = result .. getTableOutput(selectedChild.tableId, nestedRolls) | |||
end | end | ||
end | end | ||
| Строка 109: | Строка 112: | ||
elseif child["!type"] == "AllSelector" and child.children then | elseif child["!type"] == "AllSelector" and child.children then | ||
result = result .. processAllSelectors(child.children) | result = result .. processAllSelectors(child.children) | ||
elseif child["!type"] == "NestedSelector" and child.tableId then | |||
local nestedRolls = child.rolls and (child.rolls.value or (child.rolls.range and math.random(child.rolls.range[1], child.rolls.range[2])) or 1) or 1 | |||
result = result .. getTableOutput(child.tableId, nestedRolls) | |||
end | end | ||
end | end | ||