Module:HeroData: Difference between revisions

Jump to navigation Jump to search
LVL (talk | contribs)
undo
Tag: Undo
LVL (talk | contribs)
Now bucket 3 fixed
Line 402: Line 402:
         [0.62] = {},
         [0.62] = {},
         [0.68] = {},
         [0.68] = {},
         [0.70] = {},
         [0.72] = {},
     }
     }


Line 438: Line 438:
     for i = 1, max_rows do
     for i = 1, max_rows do
         local row = {}
         local row = {}
         for _, bucket in ipairs({0.62, 0.68, 0.70}) do
         for _, bucket in ipairs({0.62, 0.68, 0.72}) do
             local hero_name = buckets[bucket][i]
             local hero_name = buckets[bucket][i]
             table.insert(row, hero_name and current_frame:expandTemplate{title = "HeroIcon", args = {hero_name}} or "")
             table.insert(row, hero_name and current_frame:expandTemplate{title = "HeroIcon", args = {hero_name}} or "")