Module:Calculator/AgilityObstacle: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 247: Line 247:
local ret = {}
local ret = {}
for bonusName, bonusValue in pairs(bonuses) do
for _, bonus in pairs(bonuses) do
table.insert(ret, Constants._getModifierText(bonusName, bonusValue))
table.insert(ret, Constants._getModifierText(bonus.name, bonus.value))
end
end
if Shared.tableIsEmpty(ret) then
if Shared.tableIsEmpty(ret) then
2,875

edits