Editing Module:Sandbox/Monster Domosed/AbilityTable/ComplexRenderersGive feedback
Jump to navigation
Jump to search
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 402: | Line 402: | ||
return cells | return cells | ||
end | end | ||
| Line 479: | Line 438: | ||
and type(scale["Value"]) == "number" | and type(scale["Value"]) == "number" | ||
and scale["Value"] ~= 0 then | and scale["Value"] ~= 0 then | ||
-- Prefer a Name carried directly on the prop, then | -- Prefer a Name carried directly on the prop, then a name | ||
-- recovered from nested Key/ | -- recovered from the nested Key/Name entries, else the key. | ||
local label = type(v["Name"]) == "string" and v["Name"] | local label = type(v["Name"]) == "string" and v["Name"] | ||
or names[k] | or names[k] or k | ||
table.insert(props, { key = k, value = scale["Value"], name = label }) | table.insert(props, { key = k, value = scale["Value"], name = label }) | ||
end | end | ||