Module:UIText/Data

-- Please make use of get functions from Module:UIText to get this page's data.

local statdata = require("Module:Statname/Data") local raritydata = require("Module:RarityTier/Data") local string = require("Module:String") local table = require("Module:Table")

local characters, statColors, rarityCodes, rarityColors = {}, {}, {}, {}

local conversions = { black = '0', dark_blue = '1', dark_green = '2', dark_aqua = '3', dark_red = '4', dark_purple = '5', gold = '6', gray = '7', dark_gray = '8', blue = '9', green = 'a', aqua = 'b', red = 'c', light_purple = 'd', yellow = 'e', white = 'f', }

for k,v in pairs(raritydata) do	rarityColors[k] = v.color end

for k,v in pairs(statdata) do	characters[k] = v.character or "" statColors[k] = v.color or "" end

return { characters = characters, statColors = statColors, rarityColors = rarityColors, tooltipFormatting = table.merge({		-- Non-color formatting		bold = 'l',		underline = 'n',		strikethrough = 'm',		italic = 'o',		reset = 'r',	},conversions) }