393
edits
No edit summary |
No edit summary |
||
Line 63: | Line 63: | ||
if node.modifiers then | if node.modifiers then | ||
local modifierText = "" | local modifierText = "" | ||
for | for modifier, data in pairs(node.modifiers) do | ||
modifierText = modifierText .. (data.skillID or "") .. ": " .. (data.value or "") .. "<br>" | if type(data) == "table" then | ||
modifierText = modifierText .. modifier .. ": Skill: " .. (data.skillID or "N/A") .. ", Value: " .. (data.value or "N/A") .. "<br>" | |||
else | |||
modifierText = modifierText .. modifier .. ": " .. tostring(data) .. "<br>" | |||
end | |||
end | end | ||
nodeDiv:tag('p'):wikitext(modifierText):done() | nodeDiv:tag('p'):wikitext(modifierText):done() | ||
Line 74: | Line 78: | ||
return tostring(html) | return tostring(html) | ||
end | end | ||
return p | return p |
edits