Skip to content

Commit

Permalink
Merge pull request Hypixel-API-Reborn#424 from Kathund/New-Bedwars-Pr…
Browse files Browse the repository at this point in the history
…estiges

New bedwars prestiges
  • Loading branch information
StavZ authored Jul 16, 2023
2 parents 60b81af + feebcc9 commit e8d2a9c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
23 changes: 22 additions & 1 deletion src/structures/MiniGames/BedWars.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ class BedWars {
*/
function getBedWarsPrestige (level) {
// eslint-disable-next-line max-len
return ['Stone', 'Iron', 'Gold', 'Diamond', 'Emerald', 'Sapphire', 'Ruby', 'Crystal', 'Opal', 'Amethyst', 'Rainbow', 'Iron Prime', 'Gold Prime', 'Diamond Prime', 'Emerald Prime', 'Sapphire Prime', 'Ruby Prime', 'Crystal Prime', 'Opal Prime', 'Amethyst Prime', 'Mirror', 'Light', 'Dawn', 'Dusk', 'Air', 'Wind', 'Nebula', 'Thunder', 'Earth', 'Water', 'Fire'][Math.floor(level / 100)] || 'Rainbow';
if (level >= 5000) return 'Eternal';
return ['Stone', 'Iron', 'Gold', 'Diamond', 'Emerald', 'Sapphire', 'Ruby', 'Crystal', 'Opal', 'Amethyst', 'Rainbow', 'Iron Prime', 'Gold Prime', 'Diamond Prime', 'Emerald Prime', 'Sapphire Prime', 'Ruby Prime', 'Crystal Prime', 'Opal Prime', 'Amethyst Prime', 'Mirror', 'Light', 'Dawn', 'Dusk', 'Air', 'Wind', 'Nebula', 'Thunder', 'Earth', 'Water', 'Fire', 'Sunrise', 'Eclipse', 'Gamma', 'Majestic', 'Andesine', 'Marine', 'Element', 'Galaxy', 'Atomic', 'Sunset', 'Time', 'Winter', 'Obsidian', 'Spring', 'Ice', 'Summer', 'Spinel', 'Autumn', 'Mystic', 'Eternal'][Math.floor(level / 100)] || 'Eternal';
}
const EASY_LEVELS = 4;
const EASY_LEVELS_XP = 7000;
Expand Down Expand Up @@ -295,6 +296,26 @@ function getLevelForExp (exp) {
* * `Earth`
* * `Water`
* * `Fire`
* * `Sunrise`
* * `Eclipse`
* * `Gamma`
* * `Majestic`
* * `Andesine`
* * `Marine`
* * `Element`
* * `Galaxy`
* * `Atomic`
* * `Sunset`
* * `Time`
* * `Winter`
* * `Obsidian`
* * `Spring`
* * `Ice`
* * `Summer`
* * `Spinel`
* * `Autumn`
* * `Mystic`
* * `Eternal`
*/
/**
* @typedef {object} BedWarsAvg
Expand Down
3 changes: 2 additions & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type GAME_ID = 2 | 3 | 4 | 5 | 6 | 7 | 13 | 14 | 17 | 20 | 21 | 23 | 24 |
export type GAME_CODE = 'QUAKECRAFT' | 'WALLS' | 'PAINTBALL' | 'SURVIVAL_GAMES' | 'TNTGAMES' | 'VAMPIREZ' | 'WALLS3' | 'ARCADE' | 'UHC' | 'MCGO' | 'BATTLEGROUND' | 'SUPER_SMASH' | 'GINGERBREAD' | 'HOUSING' | 'SKYWARS' | 'TRUE_COMBAT' | 'SPEED_UHC' | 'SKYCLASH' | 'LEGACY' | 'PROTOTYPE' | 'BEDWARS' | 'MURDER_MYSTERY' | 'BUILD_BATTLE' | 'DUELS' | 'SKYBLOCK' | 'PIT' | 'REPLAY' | 'LIMBO' | 'IDLE' | 'QUEUE' | 'MAIN_LOBBY' | 'TOURNAMENT_LOBBY' | 'SMP';
export type SKYWARS_PRESTIGE = 'Iron' | 'Gold' | 'Diamond' | 'Emerald' | 'Sapphire' | 'Ruby' | 'Crystal' | 'Opal' | 'Amethyst' | 'Rainbow' | 'Mythic';
export type SKYWARS_PRESTIGE_ICON = '⋆' | '★' | '☆' | '⁕' | '✶' | '✳' | '✴' | '✷' | '❋' | '✼' | '❂' | '❁' | '☬' | '✙' | '❤️' | '☠' | '✦' | '✌' | '❦' | '✵' | '❣' | '☯' | '✺' | 'ಠ_ಠ' | '⚔';
export type BEDWARS_PRESTIGE = 'Iron' | 'Gold' | 'Diamond' | 'Emerald' | 'Sapphire' | 'Ruby' | 'Crystal' | 'Opal' | 'Amethyst' | 'Rainbow' | 'Iron Prime' | 'Gold Prime' | 'Diamond Prime' | 'Emerald Prime' | 'Sapphire Prime' | 'Ruby Prime' | 'Crystal Prime' | 'Opal Prime' | 'Amethyst Prime' | 'Mirror' | 'Light' | 'Dawn' | 'Dusk' | 'Air' | 'Wind' | 'Nebula' | 'Thunder' | 'Earth' | 'Water' | 'Fire';
export type BEDWARS_PRESTIGE = 'Iron' | 'Gold' | 'Diamond' | 'Emerald' | 'Sapphire' | 'Ruby' | 'Crystal' | 'Opal' | 'Amethyst' | 'Rainbow' | 'Iron Prime' | 'Gold Prime' | 'Diamond Prime' | 'Emerald Prime' | 'Sapphire Prime' | 'Ruby Prime' | 'Crystal Prime' | 'Opal Prime' | 'Amethyst Prime' | 'Mirror' | 'Light' | 'Dawn' | 'Dusk' | 'Air' | 'Wind' | 'Nebula' | 'Thunder' | 'Earth' | 'Water' | 'Fire' |'Sunrise' | 'Eclipse' | 'Gamma' | 'Majestic' | 'Andesine' | 'Marine' | 'Element' | 'Galaxy' | 'Atomic' | 'Sunset' | 'Time' | 'Winter' | 'Obsidian' | 'Spring' | 'Ice' | 'Summer' | 'Spinel' | 'Autumn' | 'Mystic' | 'Eternal' ;
export type SkyblockRarity = 'VERY_SPECIAL' | 'SPECIAL' | 'SUPREME' | 'MYTHIC' | 'LEGENDARY' | 'EPIC' | 'RARE' | 'UNCOMMON' | 'COMMON';
export type SOCIAL_MEDIA_ID = 'YOUTUBE' | 'DISCORD' | 'HYPIXEL' | 'TWITTER' | 'INSTAGRAM' | 'TWITCH';
export type SKYWARS_KIT_TYPE = 'basic' | 'supporting' | 'mining' | 'defending' | 'attacking' | 'advanced' | 'enderchest';
Expand Down Expand Up @@ -2701,3 +2701,4 @@ declare module 'hypixel-api-reborn' {
ping: number;
}
}

0 comments on commit e8d2a9c

Please sign in to comment.