Module:ItemTables: Difference between revisions

m added AirMoveIncreasePercent to dash distance
Added replacement string for legendary item costs
Line 256: Line 256:
tableData
tableData
:tag('td'):attr('rowspan', statCount):wikitext(display):done()
:tag('td'):attr('rowspan', statCount):wikitext(display):done()
:tag('td'):attr('rowspan', statCount):wikitext(commas._add(get_cost(itemName["Name"]))):done()
-- Replace "9999" cost with "Legendary"
:tag('td'):attr('rowspan', statCount):wikitext(
                        (get_cost(itemName["Name"]) == 9999)
                        and "Legendary"
                        or commas._add(get_cost(itemName["Name"]))
                    ):done()
:tag('td'):attr('rowspan', statCount):wikitext(categoryDisplay):done()
:tag('td'):attr('rowspan', statCount):wikitext(categoryDisplay):done()
firstStat = false
firstStat = false