Module:Monsters: Difference between revisions

Fixed MattMonsterTable
(Creating monster table with average drop value for matt)
(Fixed MattMonsterTable)
Line 1,380: Line 1,380:
local lootVal = p._getMonsterLootValue(monster)
local lootVal = p._getMonsterLootValue(monster)
local lootTxt = nil
local lootTxt = '0'
if lootVal == 0 then
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