Anonymous

Module:Skills/Summoning: Difference between revisions

From Melvor Idle
getTabletTable: Fix max hit for 0.21 data format change
(Removed unnecessary Requirements column from new Summoning table)
(getTabletTable: Fix max hit for 0.21 data format change)
Line 69: Line 69:


   for i, Fam in Shared.skpairs(Familiars) do
   for i, Fam in Shared.skpairs(Familiars) do
     local maxHit = Fam.summoningMaxHit
     local maxHit, maxHitText = Items._getItemStat(Fam, 'summoningMaxhit'), ''
    local maxHitText = ''
     if maxHit ~= nil then
     if maxHit ~= nil then maxHitText = 'style="text-align:right"; data-sort-value="' .. maxHit .. '"|' .. Shared.formatnum(maxHit) end
      maxHit = maxHit * 10
      maxHitText = 'style="text-align:right"; data-sort-value="' .. maxHit .. '"|' .. Shared.formatnum(maxHit)
    end
     local rowText = '|-'
     local rowText = '|-'
     rowText = rowText..'\r\n|data-sort-value="'..Fam.name..'"|'..Icons.Icon({Fam.name, type='item', notext=true, size='50'})
     rowText = rowText..'\r\n|data-sort-value="'..Fam.name..'"|'..Icons.Icon({Fam.name, type='item', notext=true, size='50'})