Module:AbilityTable: Difference between revisions

Jump to navigation Jump to search
Vergir (talk | contribs)
m delete dispelmagic renderer, too difficult to actually automate (like debuffresist)
add divinebarrier to extra_columns, pass info to get_cells for all renderers (with help from vergir-bot LLM)
Line 30: Line 30:
         headers  = { "Heal Reduction", "Notes" },
         headers  = { "Heal Reduction", "Notes" },
         get_cells = Renderers.RenderHealReduce,
         get_cells = Renderers.RenderHealReduce,
    },
    ["divinebarrier"] = {
        headers  = { "Is Ultimate", "Notes" },
        get_cells = Renderers.RenderDivineBarrier,
     },
     },
     ["moveslow"] = {
     ["moveslow"] = {
Line 224: Line 228:
                 local ability_cell = frame:expandTemplate{ title = "AbilityIcon", args = { name } }
                 local ability_cell = frame:expandTemplate{ title = "AbilityIcon", args = { name } }


                 local extra = get_cells(ability)
                local info = key_lookup[ability["Key"]]
                 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 275: Line 280:
         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)
         local extra = get_cells(ability, info)
         enrich_notes_full(extra, stat_notes and stat_notes[ability["Name"]])
         enrich_notes_full(extra, stat_notes and stat_notes[ability["Name"]])