432
edits
(_Currency: Conditional formatting for negative amounts, and refactor to avoid repeated string concatenation) Tag: Reverted |
No edit summary Tag: Manual revert |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 45: | Line 45: | ||
["Hardcore Adventure Speedrun"] = "svg", | ["Hardcore Adventure Speedrun"] = "svg", | ||
["Mastery Tokens"] = "gif", | ["Mastery Tokens"] = "gif", | ||
["Lesser Relics"] = "gif", | |||
["Prat, the Serpent of Fire"] = "svg", | ["Prat, the Serpent of Fire"] = "svg", | ||
["Unholy Prayers"] = "svg", | ["Unholy Prayers"] = "svg", | ||
Line 204: | Line 205: | ||
["Trickery Temple"] = "png", | ["Trickery Temple"] = "png", | ||
["Underwater City"] = "png", | ["Underwater City"] = "png", | ||
["Underwater Ruins"] = "png" | ["Underwater Ruins"] = "png", | ||
["Eye-conic Cave"] = "png", | |||
["Mucky Cave"] = "png", | |||
["Lost Temple"] = "png", | |||
["Ritual Site"] = "png", | |||
["Shipwreck Cove"] = "png", | |||
} | } | ||
} | } | ||
Line 857: | Line 863: | ||
if tonumber(amount) ~= nil then | if tonumber(amount) ~= nil then | ||
local function numColour(amount) | local function numColour(amount) | ||
if amount < 0 then | if tonumber(amount) < 0 then | ||
return '<span style="color:red;">' .. formatnum(amount) .. '</span>' | return '<span style="color:red;">' .. formatnum(amount) .. '</span>' | ||
else | else |
edits