export type BrawlhallaID = string | number

export const rankedTierNames = [
    "Unranked",
    "Tin",
    "Bronze",
    "Silver",
    "Gold",
    "Platinum",
    "Diamond",
]
export const discord_tags = {
    chad: "Chad#2159",
    horror: "Geeko#6506",
}
export const legends_colors = {
    "14": '209,53,224',
    "59": '56,39,74',
    "37": '78,86,140',
    "20": '233,234,223',
    "23": '132,136,123',
    "21": '192,134,71',
    "3": '235,238,130',
    "19": '196,216,215',
    "38": '161,84,43',
    "4": '245,241,222',
    "32": '207,199,202',
    "25": '109,20,37',
    "47": '158,169,186',
    "18": '198,206,71',
    "60": '246,246,246',
    "48": '220,245,184',
    "7": '238,99,18',
    "10": '45,48,41',
    "41": '186,130,101',
    "54": '231,176,71',
    "26": '62,21,46',
    "43": '121,131,155',
    "42": '194,92,85',
    "24": '57,56,76',
    "28": '170,192,100',
    "44": '200,58,45',
    "9": '205,205,135',
    "56": '91,210,198',
    "55": '91,157,162',
    "33": '237,210,129',
    "35": '185,182,172',
    "58": '60,150,212',
    "8": '166,253,246',
    "34": '201,185,241',
    "53": '70,84,100',
    "5": '255,173,6',
    "50": '253,238,198',
    "31": '237,86,80',
    "46": '251,216,104',
    "57": '219,137,67',
    "11": '243,177,32',
    "12": '193,29,58',
    "15": '35,37,205',
    "39": '253,253,255',
    "16": '95,55,48',
    "13": '154,9,4',
    "49": '121,2,3',
    "22": '79,114,104',
    "30": '187,200,213',
    "51": '253,166,124',
    "52": '199,186,195',
    "6": '13,249,201',
    "29": '229,164,115',
    "40": '159,171,115',
    "36": '210,202,197',
    "45": '66,111,112',
    "63": "248,213,63"
}
export type RankedTierName = typeof rankedTierNames[number]
export const article_categories = [
    {
        "id": 22,
        "link": "https://www.brawlhalla.com/news/category/announcements/",
        "name": "ANNOUNCEMENTS",
        "slug": "announcements"
    },
    {
        "id": 12,
        "link": "https://www.brawlhalla.com/news/category/community/",
        "name": "COMMUNITY",
        "slug": "community"
    },
    {
        "id": 28,
        "link": "https://www.brawlhalla.com/news/category/esports/",
        "name": "ESPORTS",
        "slug": "esports"
    },
    {
        "id": 10,
        "link": "https://www.brawlhalla.com/news/category/legends/",
        "name": "LEGENDS",
        "slug": "legends"
    },
    {
        "id": 15,
        "link": "https://www.brawlhalla.com/news/category/patch-notes/",
        "name": "PATCH NOTES",
        "slug": "patch-notes"
    },
    {
        "id": 1,
        "link": "https://www.brawlhalla.com/news/category/uncategorized/",
        "name": "Uncategorized",
        "slug": "uncategorized"
    },
    {
        "id": 1143,
        "link": "https://www.brawlhalla.com/news/category/weekly-rotation/",
        "name": "WEEKLY ROTATION",
        "slug": "weekly-rotation"
    }
] as const
export const rankedTiers = [
    ["Diamond", 2000],
    ["Platinum 5", 1936],
    ["Platinum 4", 1872],
    ["Platinum 3", 1808],
    ["Platinum 2", 1744],
    ["Platinum 1", 1680],
    ["Gold 5", 1622],
    ["Gold 4", 1564],
    ["Gold 3", 1506],
    ["Gold 2", 1448],
    ["Gold 1", 1390],
    ["Gold 0", 1338],
    ["Silver 5", 1338],
    ["Silver 4", 1286],
    ["Silver 3", 1234],
    ["Silver 2", 1182],
    ["Silver 1", 1130],
    ["Silver 0", 1086],
    ["Bronze 5", 1086],
    ["Bronze 4", 1042],
    ["Bronze 3", 998],
    ["Bronze 2", 954],
    ["Bronze 1", 910],
    ["Bronze 0", 872],
    ["Tin 5", 872],
    ["Tin 4", 834],
    ["Tin 3", 796],
    ["Tin 2", 758],
    ["Tin 1", 720],
    ["Tin 0", 200],
] as const
export const levels = [
    [1,0],
    [2,210],
    [3,578],
    [4,1033],
    [5,1575],
    [6,2203],
    [7,2940],
    [8,3807],
    [9,4804],
    [10,5931],
    [11,7209],
    [12,8639],
    [13,10221],
    [14,11954],
    [15,13861],
    [16,15941],
    [17,18194],
    [18,20621],
    [19,23243],
    [20,26060],
    [21,29072],
    [22,32279],
    [23,35681],
    [24,39299],
    [25,43112],
    [26,47142],
    [27,51389],
    [28,55852],
    [29,60532],
    [30,65450],
    [31,70585],
    [32,75958],
    [33,81570],
    [34,87420],
    [35,93508],
    [36,99880],
    [37,106445],
    [38,113248],
    [39,120311],
    [40,127613],
    [41,135175],
    [42,142975],
    [43,151035],
    [44,159355],
    [45,167935],
    [46,176775],
    [47,185897],
    [48,195279],
    [49,204921],
    [50,214844],
    [51,225027],
    [52,235492],
    [53,246239],
    [54,257246],
    [55,268534],
    [56,280104],
    [57,291956],
    [58,304069],
    [59,316484],
    [60,329202],
    [61,342202],
    [62,355484],
    [63,369069],
    [64,382936],
    [65,397106],
    [66,411579],
    [67,426334],
    [68,441392],
    [69,456754],
    [70,472419],
    [71,488387],
    [72,504659],
    [73,521234],
    [74,538112],
    [75,555294],
    [76,572801],
    [77,590611],
    [78,608724],
    [79,627162],
    [80,645904],
    [81,664971],
    [82,684341],
    [83,704036],
    [84,724056],
    [85,744379],
    [86,765027],
    [87,786000],
    [88,807298],
    [89,828921],
    [90,850869],
    [91,873142],
    [92,895740],
    [93,918663],
    [94,941933],
    [95,965528],
    [96,989448],
    [97,1013715],
    [98,1038307],
    [99,1063224],
    [100,1088487]
]
export const regions = [
    "all", "eu", "us-e", "us-w",
    "sea", "aus", "brz", "jpn", "me", "sa"] 
export const region_emojis:{[key: string]: string} = {
    "eu": "🇪🇺",
    "us-e": "🇺🇸",
    "us-w": "🇺🇸",
    "us": "🇺🇸",
    "brz": "🇧🇷",
    "sea": "🇸🇬",
    "jpn": "🇯🇵",
    "aus": "🇦🇺",
    "me": "🇦🇪",
    "sa": "🇿🇦"
}
export const modes = 
["1v1", "2v2", "rotating"] 

export const rankedTiersComplete = rankedTiers.map(([tier]) => tier)

export type RankedTier = typeof rankedTiersComplete[number]

export const rankedRegions = [
    "all",
    "us-e",
    "eu",
    "sea",
    "brz",
    "aus",
    "us-w",
    "jpn",
    "me",
    "sa"
] as const
export const special_mode = "rotating"
export const special_mode_name = "3v3"

export type RankedRegion = typeof rankedRegions[number]

export const weapons = [
    "Hammer",
    "Sword",
    "Blasters",
    "RocketLance",
    "Spear",
    "Katars",
    "Axe",
    "Bow",
    "Fists",
    "Scythe",
    "Cannon",
    "Boots",
    "Orb",
    "Chakram",
    "Greatsword",
] as const

export type Weapon = typeof weapons[number]

export const clanRanks = ["Leader", "Officer", "Member", "Recruit"] as const

export type ClanRank = typeof clanRanks[number]
