Module:AbilityTable: Difference between revisionsGive feedback
Jump to navigation
Jump to search
fix debuff_cells: remove debug, replace #upgrades loop with sorted pairs iteration to fix empty notes (with help from vergir-bot LLM) |
fix typo in val_stat_cells: #parts should be #notes (with help from vergir-bot LLM) |
||
| Line 335: | Line 335: | ||
end | end | ||
-- Build note in tier order | -- Build note in tier order. Use sorted keys since pairs() order is not guaranteed. | ||
local tier_indices = {} | local tier_indices = {} | ||
for i in pairs(tier_debuffs) do | for i in pairs(tier_debuffs) do | ||
| Line 575: | Line 575: | ||
end | end | ||
if # | if #notes > 0 then cells["Notes"] = table.concat(notes, " ") end | ||
return cells | return cells | ||
end | end | ||