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 string = require("Module:String") local table = require("Module:Table")

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

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', }

local rarityColors = { common = 'white', uncommon = 'green', rare = 'blue', epic = 'dark_purple', legendary = 'gold', mythic = 'light_purple', supreme = 'dark_red', special = 'red', very_special = 'red', }

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) }