Module:AbilityTable: Difference between revisions

Jump to navigation Jump to search
Vergir (talk | contribs)
mNo edit summary
remove divinebarrier from extra_columns, revert get_cells contract back to (ability) only (with help from vergir-bot LLM)
Tag: Manual revert
Line 30: Line 30:
         headers  = { "Heal Reduction", "Notes" },
         headers  = { "Heal Reduction", "Notes" },
         get_cells = Renderers.RenderHealReduce,
         get_cells = Renderers.RenderHealReduce,
    },
    ["divinebarrier"] = {
        headers  = { "Is Ultimate" },
        get_cells = Renderers.RenderDivineBarrier,
     },
     },
     ["moveslow"] = {
     ["moveslow"] = {
Line 228: Line 224:
                 local ability_cell = frame:expandTemplate{ title = "AbilityIcon", args = { name } }
                 local ability_cell = frame:expandTemplate{ title = "AbilityIcon", args = { name } }


                local info = key_lookup[ability["Key"]]
                 local extra = get_cells(ability)
                 local extra = get_cells(ability, info)
                 enrich_notes_compact(extra, stat_notes and stat_notes[name])
                 enrich_notes_compact(extra, stat_notes and stat_notes[name])


Line 280: Line 275:
         local ability_cell = frame:expandTemplate{ title = "AbilityIcon", args = { ability["Name"] } }
         local ability_cell = frame:expandTemplate{ title = "AbilityIcon", args = { ability["Name"] } }


         local extra = get_cells(ability, info)
         local extra = get_cells(ability)
         enrich_notes_full(extra, stat_notes and stat_notes[ability["Name"]])
         enrich_notes_full(extra, stat_notes and stat_notes[ability["Name"]])