Added first stat on bedwars

This commit is contained in:
2025-08-17 19:42:58 +02:00
parent c79d06f272
commit e3a4a65e2d
12 changed files with 531 additions and 27 deletions

View File

@@ -33,4 +33,43 @@ export function getColor(color?: string, type: "text" | "bg" = "text", defaultCo
default:
return type === "text" ? `text-mc-${defaultColor}` : `bg-mc-${defaultColor}`
}
}
}
export function getColorFromCode(c?: string) {
switch (c) {
case "0":
return "text-mc-black"
case "1":
return "text-mc-dark-blue"
case "2":
return "text-mc-dark-green"
case "3":
return "text-mc-dark-aqua"
case "4":
return "text-mc-dark-red"
case "5":
return "text-mc-dark-purple"
case "6":
return "text-mc-gold"
case "7":
return "text-mc-gray"
case "8":
return "text-mc-dark-gray"
case "9":
return "text-mc-blue"
case "a":
return "text-mc-green"
case "b":
return "text-mc-aqua"
case "c":
return "text-mc-red"
case "d":
return "text-mc-light-purple"
case "e":
return "text-mc-yellow"
case "f":
return "text-mc-white"
default:
return "text-mc-gray"
}
}

126
src/data/hypixel/bedwars.ts Normal file
View File

@@ -0,0 +1,126 @@
export const TITLE = "Bed Wars"
export const PRESTIGES = [
{ level: 0, colormap: "7", color: "gray", name: "None" },
{ level: 100, colormap: "f", color: "white", name: "Iron" },
{ level: 200, colormap: "6", color: "gold", name: "Gold" },
{ level: 300, colormap: "b", color: "aqua", name: "Diamond" },
{ level: 400, colormap: "2", color: "darkgreen", name: "Emerald" },
{ level: 500, colormap: "3", color: "darkaqua", name: "Sapphire" },
{ level: 600, colormap: "4", color: "darkred", name: "Ruby" },
{ level: 700, colormap: "d", color: "pink", name: "Crystal" },
{ level: 800, colormap: "9", color: "blue", name: "Opal" },
{ level: 900, colormap: "5", color: "purple", name: "Amethyst" },
{ level: 1000, colormap: "c6eabd5", color: "rainbow", name: "Rainbow" },
{ level: 1100, colormap: "7ffff77", color: "white", name: "Iron Prime" },
{ level: 1200, colormap: "7eeee67", color: "yellow", name: "Gold Prime" },
{ level: 1300, colormap: "7bbbb37", color: "aqua", name: "Diamond Prime" },
{ level: 1400, colormap: "7aaaa27", color: "green", name: "Emerald Prime" },
{ level: 1500, colormap: "7333397", color: "darkaqua", name: "Sapphire Prime" },
{ level: 1600, colormap: "7cccc47", color: "red", name: "Ruby Prime" },
{ level: 1700, colormap: "7dddd57", color: "pink", name: "Crystal Prime" },
{ level: 1800, colormap: "7999917", color: "blue", name: "Opal Prime" },
{ level: 1900, colormap: "7555587", color: "purple", name: "Amethyst Prime" },
{ level: 2000, colormap: "87ff778", color: "white", name: "Mirror" },
{ level: 2100, colormap: "ffee666", color: "yellow", name: "Light" },
{ level: 2200, colormap: "66ffb33", color: "aqua", name: "Dawn" },
{ level: 2300, colormap: "55dd6ee", color: "purple", name: "Dusk" },
{ level: 2400, colormap: "bbff778", color: "white", name: "Air" },
{ level: 2500, colormap: "ffaa222", color: "green", name: "Wind" },
{ level: 2600, colormap: "44ccdd5", color: "darkred", name: "Nebula" },
{ level: 2700, colormap: "eeff777", color: "yellow", name: "Thunder" },
{ level: 2800, colormap: "aa2266e", color: "darkgreen", name: "Earth" },
{ level: 2900, colormap: "bb33991", color: "blue", name: "Water" },
{ level: 3000, colormap: "ee66cc4", color: "red", name: "Fire" },
{ level: 3100, colormap: "993366e", color: "blue", name: "Sunshine" },
{ level: 3200, colormap: "c4774cc", color: "darkred", name: "Eclipse" },
{ level: 3300, colormap: "999dcc4", color: "blue", name: "Gamma" },
{ level: 3400, colormap: "2add552", color: "green", name: "Majestic" },
{ level: 3500, colormap: "cc442aa", color: "red", name: "Andesine" },
{ level: 3600, colormap: "aaab991", color: "green", name: "Marine" },
{ level: 3700, colormap: "44ccb33", color: "darkred", name: "Element" },
{ level: 3800, colormap: "11955d1", color: "darkblue", name: "Galaxy" },
{ level: 3900, colormap: "ccaa399", color: "red", name: "Atomic" },
{ level: 4000, colormap: "55cc66e", color: "purple", name: "Sunset" },
{ level: 4100, colormap: "ee6cdd5", color: "yellow", name: "Time" },
{ level: 4200, colormap: "193bf77", color: "blue", name: "Winter" },
{ level: 4300, colormap: "0588550", color: "purple", name: "Obsidian" },
{ level: 4400, colormap: "22ae65d", color: "darkgreen", name: "Spring" },
{ level: 4500, colormap: "ffbb333", color: "white", name: "Ice" },
{ level: 4600, colormap: "3bee6d5", color: "aqua", name: "Summer" },
{ level: 4700, colormap: "f4cc919", color: "darkred", name: "Spinel" },
{ level: 4800, colormap: "55c6eb3", color: "purple", name: "Autumn" },
{ level: 4900, colormap: "2affaa2", color: "green", name: "Mystic" },
{ level: 5000, colormap: "4459910", color: "darkred", name: "Eternal" }
]
export const PRESTIGE_ICONS = [
{ level: 0, symbol: "✫" },
{ level: 1100, symbol: "✪" },
{ level: 2100, symbol: "⚝" },
{ level: 3100, symbol: "✥" }
]
export const MODES = [
{ id: "eight_one_", name: "Solo" },
{ id: "eight_two_", name: "Doubles" },
{ id: "four_three_", name: "3v3v3v3" },
{ id: "four_four_", name: "4v4v4v4" },
{ id: "two_four_", name: "4v4" },
{ id: "eight_one_rush_", name: "Rush Solo" },
{ id: "eight_two_rush_", name: "Rush Doubles" },
{ id: "four_four_rush_", name: "Rush 4v4v4v4" },
{ id: "eight_one_ultimate_", name: "Ultimate Solo" },
{ id: "eight_two_ultimate_", name: "Ultimate Doubles" },
{ id: "four_four_ultimate_", name: "Ultimate 4v4v4v4" },
{ id: "eight_two_lucky_", name: "Lucky Doubles" },
{ id: "four_four_lucky_", name: "Lucky 4v4v4v4" },
{ id: "eight_two_voidless_", name: "Voidless Doubles" },
{ id: "four_four_voidless_", name: "Voidless 4v4v4v4" },
{ id: "eight_two_armed_", name: "Armed Doubles" },
{ id: "four_four_armed_", name: "Armed 4v4v4v4" },
{ id: "eight_two_swap_", name: "Swappage Doubles" },
{ id: "four_four_swap_", name: "Swappage 4v4v4v4" },
{ id: "eight_two_underworld_", name: "Underworld Doubles" },
{ id: "four_four_underworld_", name: "Underworld 4v4v4v4" },
{ id: "castle_", name: "Castle" },
{ id: "", name: "Overall" }
]
export const PRACTICEMODES = [
{ id: "bridging", name: "Bridging" },
{ id: "mlg", name: "MLG" },
{ id: "fireball_jumping", name: "Fireball/TNT Jumping" },
{ id: "pearl_clutching", name: "Pearl Clutching" }
]
export const PRACTICEBRIDGING = {
bridging_distance: [30, 50, 100],
elevation: [
{ id: "NONE", name: "Flat" },
{ id: "SLIGHT", name: "Inclined" },
{ id: "STAIRCASE", name: "Stairs" }
],
angle: [
{ id: "STRAIGHT", name: "Straight" },
{ id: "DIAGONAL", name: "Diagonal" }
]
}
export const SLUMBER_WALLETS = {
"MINI_WALLET": 25,
"LIGHT_SLUMBERS_WALLET": 99,
"LIGHT_IMPERIAL_WALLET": 500,
"EXPLORERS_WALLET": 5000,
"HOTEL_STAFF_WALLET": 10000,
"PLATINUM_MEMBERSHIP_WALLET": 100000
}
export const SLUMBER_ROOMS = [
{ id: "room_1", name: "Throne Door" },
{ id: "room_2", name: "Hotel Door" },
{ id: "room_3", name: "Desert Door" },
{ id: "room_4", name: "Electronic Door" },
{ id: "room_5", name: "Door from the Sky" },
{ id: "room_6", name: "Door as seen on TV" },
{ id: "room_7", name: "Skyscraper Door" },
{ id: "room_8", name: "Arcade Door" },
{ id: "room_9", name: "Intricate Door" },
{ id: "room_10", name: "Space Door" },
{ id: "room_11", name: "D\xa0\xa0\xa0o\xa0\xa00\xa0\xa0\xa0\xa0\xa0\xa0r" },
{ id: "room_12", name: "Garage Door" },
{ id: "owners_office", name: "Owner's Office" }
]