17,101
edits
(getFarmingFoodTable: Better support for realms) |
(_buildAstrologyConstellationTable: Amend for revised constellation modifier data format) |
||
Line 1,251: | Line 1,251: | ||
local cell2 = row:tag('td') | local cell2 = row:tag('td') | ||
if masteryLevel ~= nil and rowModData ~= nil then | if masteryLevel ~= nil and rowModData ~= nil then | ||
local modText = {} | |||
for _, modKey in ipairs({'modifiers', 'enemyModifiers'}) do | |||
local mods = rowModData[modKey] | |||
if mods ~= nil then | |||
if modKey == 'enemyModifiers' then | |||
table.insert(modText, 'Gives the enemy:') | |||
end | |||
table.insert(modText, Modifiers.getModifiersText(mods, false, false, 10)) | |||
end | |||
end | |||
cell1:wikitext(masteryLevel) | cell1:wikitext(masteryLevel) | ||
:css('text-align', 'right') | :css('text-align', 'right') | ||
cell2:wikitext( | cell2:wikitext(table.concat(modText, '<br>')) | ||
else | else | ||
cell1:attr('colspan', 2) | cell1:attr('colspan', 2) |