Module:Abilities/utils: Difference between revisions

LVL (talk | contribs)
Removed dead code: data["Name"] is always nil since data is the full JSON object, not a single ability. This line had no effect
LVL (talk | contribs)
No edit summary
Line 50: Line 50:
prefix = '+'
prefix = '+'
end
end
-- if no prefix on positive value, add a '+'
-- ONLY add a '+' if the value is positive AND there isn't already a prefix.
else
elseif (value > 0 and prefix == '') then
if value > 0 then
prefix = '+'
prefix = '+'
end
end
end