4,951
edits
Falterfire (talk | contribs) (Creating monster table with average drop value for matt) |
Falterfire (talk | contribs) (Fixed MattMonsterTable) |
||
Line 1,380: | Line 1,380: | ||
local lootVal = p._getMonsterLootValue(monster) | local lootVal = p._getMonsterLootValue(monster) | ||
local lootTxt = | local lootTxt = '0' | ||
if lootVal | if lootVal ~= 0 then | ||
lootTxt = Shared.formatnum(lootVal) | lootTxt = Shared.formatnum(lootVal) | ||
end | end | ||
Line 1,392: | Line 1,392: | ||
table.insert(tableParts, '\r\n|style="text-align:right" data-sort-value="' .. p._getMonsterHP(monster) .. '" |' .. Shared.formatnum(p._getMonsterHP(monster))) | table.insert(tableParts, '\r\n|style="text-align:right" data-sort-value="' .. p._getMonsterHP(monster) .. '" |' .. Shared.formatnum(p._getMonsterHP(monster))) | ||
table.insert(tableParts, '\r\n|style="text-align:right" data-sort-value="' .. (gpRange[1] + gpRange[2]) / 2 .. '" |' .. gpTxt) | table.insert(tableParts, '\r\n|style="text-align:right" data-sort-value="' .. (gpRange[1] + gpRange[2]) / 2 .. '" |' .. gpTxt) | ||
table.insert(tableParts, '\r\n|style="text-align:right" data-sort-value="' .. lootVal .. '" |' .. lootTxt) | |||
table.insert(tableParts, '\r\n|style="text-align:right;width:190px" |' .. p._getMonsterAreas(monster, hideDungeons)) | table.insert(tableParts, '\r\n|style="text-align:right;width:190px" |' .. p._getMonsterAreas(monster, hideDungeons)) | ||
end | end |