2,875
edits
No edit summary |
No edit summary |
||
Line 986: | Line 986: | ||
} | } | ||
function p.sectionLinks() return sectionLinks end | function p.sectionLinks() return sectionLinks end | ||
local currencyFormatDefn = { | |||
["melvorD:GP"] = { | |||
["img"] = 'Coins.svg', | |||
["name"] = 'Gold Pieces', | |||
["abbr"] = 'GP' | |||
}, | |||
["melvorD:SlayerCoins"] = { | |||
["img"] = 'Slayer Coins.svg', | |||
["name"] = 'Slayer Coins', | |||
["abbr"] = 'SC' | |||
}, | |||
["melvorD:RaidCoins"] = { | |||
["img"] = 'Raid Coins.svg', | |||
["name"] = 'Raid Coins', | |||
["abbr"] = 'RC' | |||
}, | |||
["melvorItA:AbyssalPieces"] = { | |||
["img"] = 'Abyssal Pieces.svg', | |||
["name"] = 'Abyssal Pieces', | |||
["abbr"] = 'AP' | |||
}, | |||
["melvorItA:AbyssalSlayerCoins"] = { | |||
["img"] = 'Abyssal Slayer Coins.svg', | |||
["name"] = 'Abyssal Slayer Coins', | |||
["abbr"] = 'ASC' | |||
}, | |||
} | |||
function p.currencyFormatDefn() return currencyFormatDefn end | |||
-- Aliases for the above | |||
for k, v in pairs(currencyFormatDefn) do | |||
if v.abbr ~= nil and currencyFormatDefn[v.abbr] == nil then | |||
currencyFormatDefn[v.abbr] = v | |||
end | |||
end | |||
return p | return p |
edits