Anonymous

Module:Monsters/Tables: Difference between revisions

From Melvor Idle
m
no edit summary
mNo edit summary
mNo edit summary
Line 72: Line 72:
   table.insert(tableParts, '!!style="padding:0 1em 0 0"|' .. Icons.Icon({'Ranged', type='skill', notext=true}))
   table.insert(tableParts, '!!style="padding:0 1em 0 0"|' .. Icons.Icon({'Ranged', type='skill', notext=true}))
   table.insert(tableParts, '!!style="padding:0 1em 0 0"|' .. Icons.Icon({'Magic', type='skill', notext=true}))
   table.insert(tableParts, '!!style="padding:0 1em 0 0"|' .. Icons.Icon({'Magic', type='skill', notext=true}))
   table.insert(tableParts, '!!Drop Chance !!Coins !!Bones !!Locations')
   table.insert(tableParts, '!!Bones !!Locations')


   -- Generate row per monster
   -- Generate row per monster
Line 112: Line 112:
     table.insert(tableParts, '\r\n|style="text-align:right" data-sort-value="' .. evaR[2] .. '" |' .. Shared.formatnum(evaR[2]))
     table.insert(tableParts, '\r\n|style="text-align:right" data-sort-value="' .. evaR[2] .. '" |' .. Shared.formatnum(evaR[2]))
     table.insert(tableParts, '\r\n|style="text-align:right" data-sort-value="' .. evaR[3] .. '" |' .. Shared.formatnum(evaR[3]))
     table.insert(tableParts, '\r\n|style="text-align:right" data-sort-value="' .. evaR[3] .. '" |' .. Shared.formatnum(evaR[3]))
    table.insert(tableParts, '\r\n|style="text-align:right" data-sort-value="' .. lootChance .. '" |' .. lootChance .. '%')
    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:center" |' .. boneTxt)
     table.insert(tableParts, '\r\n|style="text-align:center" |' .. boneTxt)
     table.insert(tableParts, '\r\n|style="text-align:right;white-space:pre-line;" |' .. Monsters._getMonsterAreas(monster, hideDungeons))
     table.insert(tableParts, '\r\n|style="text-align:right;white-space:pre-line;" |' .. Monsters._getMonsterAreas(monster, hideDungeons))
318

edits