Anonymous

Module:Items: Difference between revisions

From Melvor Idle
formatting tweaks to specialattacktable
(sorting weapons by name in getSpecialAttackTable)
(formatting tweaks to specialattacktable)
Line 337: Line 337:
   local result = '{|class="wikitable sortable stickyHeader"'
   local result = '{|class="wikitable sortable stickyHeader"'
   result = result..'\r\n|-class="headerRow-0"'
   result = result..'\r\n|-class="headerRow-0"'
   result = result..'\r\n!Weapon(s)!!Name!!Chance!!Effect'
   result = result..'\r\n!style="min-width:180px"|Weapon(s)!!Name!!Chance!!Effect'
   for i, spAttData in Shared.skpairs(spAttTable) do
   for i, spAttData in Shared.skpairs(spAttTable) do
     local spAtt = p.getSpecialAttackByID(i)
     local spAtt = p.getSpecialAttackByID(i)