Editing Module:Sandbox/VergirGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 65: | Line 65: | ||
local function format_spirit(v) | local function format_spirit(v) | ||
return string.format("%.3g", v) | return string.format("%.3g", v) | ||
end | end | ||
| Line 91: | Line 74: | ||
-- Renders Spirit Power scaling. | -- Renders Spirit Power scaling. | ||
-- Lists every prop that scales with Spirit at base, one per line | -- Lists every prop that scales with Spirit at base, one per line, labelled | ||
-- | -- with the prop's name from the ability card: "×0.55 (Base Damage)". Two | ||
-- props sharing a name are told apart by the card's Title | -- props sharing a name are told apart by the card's Title | ||
-- ("Damage: Cost of Stay"); props the card does not list show their raw key. | -- ("Damage: Cost of Stay"); props the card does not list show their raw key. | ||
| Line 145: | Line 127: | ||
local lines = {} | local lines = {} | ||
for _, prop in ipairs(base) do | for _, prop in ipairs(base) do | ||
table.insert(lines, | table.insert(lines, "×" .. format_spirit(prop.value) .. " (" .. label_of(prop.key) .. ")") | ||
running[prop.key] = prop.value | running[prop.key] = prop.value | ||
end | end | ||
| Line 675: | Line 657: | ||
table.insert(out, "|}") | table.insert(out, "|}") | ||
return table.concat(out, "\n") | return table.concat(out, "\n") | ||
end | end | ||
return p | return p | ||