Module:Abilities/details table: Difference between revisions

No edit summary
m fixed "other" prop key
Line 49: Line 49:
-- then other data that is hidden on the ability card
-- then other data that is hidden on the ability card
if ability.Other then
if ability.Other then
for i, prop in pairs(ability.Other) do
for attr, prop in pairs(ability.Other) do
local scale_type = prop.Scale and prop.Scale.Type or nil
local scale_type = prop.Scale and prop.Scale.Type or nil
local scale_value = prop.Scale and prop.Scale.Value or nil
local scale_value = prop.Scale and prop.Scale.Value or nil
rows = rows .. create_row(prop.Key, prop.Value, scale_type, scale_value)
rows = rows .. create_row(attr, prop.Value, scale_type, scale_value)
end
end
end
end