hypixel-api-reborn 11.3.4 → 12.0.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +12 -0
- package/.github/ISSUE_TEMPLATE/Bug_report.md +9 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +25 -0
- package/.github/SECURITY.md +21 -0
- package/.github/labels.yml +24 -0
- package/.github/workflows/ci-cd.yml +126 -0
- package/.vscode/extensions.json +10 -0
- package/README.md +0 -63
- package/dist/API/getAchievements.d.ts +10 -0
- package/dist/API/getAchievements.js +22 -0
- package/dist/API/getAchievements.js.map +1 -0
- package/dist/API/getActiveHouses.d.ts +10 -0
- package/dist/API/getActiveHouses.js +22 -0
- package/dist/API/getActiveHouses.js.map +1 -0
- package/dist/API/getBoosters.d.ts +10 -0
- package/dist/API/getBoosters.js +22 -0
- package/dist/API/getBoosters.js.map +1 -0
- package/dist/API/getChallenges.d.ts +10 -0
- package/dist/API/getChallenges.js +22 -0
- package/dist/API/getChallenges.js.map +1 -0
- package/dist/API/getGameCounts.d.ts +10 -0
- package/dist/API/getGameCounts.js +22 -0
- package/dist/API/getGameCounts.js.map +1 -0
- package/dist/API/getGuild.d.ts +10 -0
- package/dist/API/getGuild.js +36 -0
- package/dist/API/getGuild.js.map +1 -0
- package/dist/API/getGuildAchievements.d.ts +10 -0
- package/dist/API/getGuildAchievements.js +22 -0
- package/dist/API/getGuildAchievements.js.map +1 -0
- package/dist/API/getHouse.d.ts +10 -0
- package/dist/API/getHouse.js +24 -0
- package/dist/API/getHouse.js.map +1 -0
- package/dist/API/getLeaderboards.d.ts +9 -0
- package/dist/API/getLeaderboards.js +32 -0
- package/dist/API/getLeaderboards.js.map +1 -0
- package/dist/API/getPlayer.d.ts +10 -0
- package/dist/API/getPlayer.js +37 -0
- package/dist/API/getPlayer.js.map +1 -0
- package/dist/API/getPlayerHouses.d.ts +10 -0
- package/dist/API/getPlayerHouses.js +25 -0
- package/dist/API/getPlayerHouses.js.map +1 -0
- package/dist/API/getQuests.d.ts +10 -0
- package/dist/API/getQuests.js +22 -0
- package/dist/API/getQuests.js.map +1 -0
- package/dist/API/getRecentGames.d.ts +10 -0
- package/dist/API/getRecentGames.js +25 -0
- package/dist/API/getRecentGames.js.map +1 -0
- package/dist/API/getSkyblockAuction.d.ts +10 -0
- package/dist/API/getSkyblockAuction.js +38 -0
- package/dist/API/getSkyblockAuction.js.map +1 -0
- package/dist/API/getSkyblockAuctions.d.ts +24 -0
- package/dist/API/getSkyblockAuctions.js +57 -0
- package/dist/API/getSkyblockAuctions.js.map +1 -0
- package/dist/API/getSkyblockAuctionsByPlayer.d.ts +10 -0
- package/dist/API/getSkyblockAuctionsByPlayer.js +25 -0
- package/dist/API/getSkyblockAuctionsByPlayer.js.map +1 -0
- package/dist/API/getSkyblockBazaar.d.ts +10 -0
- package/dist/API/getSkyblockBazaar.js +22 -0
- package/dist/API/getSkyblockBazaar.js.map +1 -0
- package/dist/API/getSkyblockBingo.d.ts +10 -0
- package/dist/API/getSkyblockBingo.js +22 -0
- package/dist/API/getSkyblockBingo.js.map +1 -0
- package/dist/API/getSkyblockFireSales.d.ts +10 -0
- package/dist/API/getSkyblockFireSales.js +22 -0
- package/dist/API/getSkyblockFireSales.js.map +1 -0
- package/dist/API/getSkyblockGarden.d.ts +10 -0
- package/dist/API/getSkyblockGarden.js +24 -0
- package/dist/API/getSkyblockGarden.js.map +1 -0
- package/dist/API/getSkyblockGovernment.d.ts +10 -0
- package/dist/API/getSkyblockGovernment.js +22 -0
- package/dist/API/getSkyblockGovernment.js.map +1 -0
- package/dist/API/getSkyblockMember.d.ts +10 -0
- package/dist/API/getSkyblockMember.js +46 -0
- package/dist/API/getSkyblockMember.js.map +1 -0
- package/dist/API/getSkyblockMuseum.d.ts +10 -0
- package/dist/API/getSkyblockMuseum.js +25 -0
- package/dist/API/getSkyblockMuseum.js.map +1 -0
- package/dist/API/getSkyblockNews.d.ts +10 -0
- package/dist/API/getSkyblockNews.js +22 -0
- package/dist/API/getSkyblockNews.js.map +1 -0
- package/dist/API/getSkyblockProfiles.d.ts +10 -0
- package/dist/API/getSkyblockProfiles.js +47 -0
- package/dist/API/getSkyblockProfiles.js.map +1 -0
- package/dist/API/getStatus.d.ts +10 -0
- package/dist/API/getStatus.js +23 -0
- package/dist/API/getStatus.js.map +1 -0
- package/dist/API/getWatchdogStats.d.ts +10 -0
- package/dist/API/getWatchdogStats.js +22 -0
- package/dist/API/getWatchdogStats.js.map +1 -0
- package/dist/API/index.d.ts +57 -0
- package/dist/API/index.js +62 -0
- package/dist/API/index.js.map +1 -0
- package/dist/Client.d.ts +29 -0
- package/dist/Client.js +76 -0
- package/dist/Client.js.map +1 -0
- package/dist/Errors.d.ts +27 -0
- package/dist/Errors.js +31 -0
- package/dist/Errors.js.map +1 -0
- package/dist/Private/CacheHandler.d.ts +14 -0
- package/dist/Private/CacheHandler.js +37 -0
- package/dist/Private/CacheHandler.js.map +1 -0
- package/dist/Private/Endpoint.d.ts +7 -0
- package/dist/Private/Endpoint.js +13 -0
- package/dist/Private/Endpoint.js.map +1 -0
- package/dist/Private/RateLimit.d.ts +13 -0
- package/dist/Private/RateLimit.js +33 -0
- package/dist/Private/RateLimit.js.map +1 -0
- package/dist/Private/Requests.d.ts +29 -0
- package/dist/Private/Requests.js +112 -0
- package/dist/Private/Requests.js.map +1 -0
- package/dist/Private/Updater.d.ts +11 -0
- package/dist/Private/Updater.js +47 -0
- package/dist/Private/Updater.js.map +1 -0
- package/dist/index.d.ts +115 -0
- package/dist/index.js +132 -0
- package/dist/index.js.map +1 -0
- package/dist/package.json +66 -0
- package/dist/src/API/getAchievements.js +16 -0
- package/dist/src/API/getAchievements.test.js +74 -0
- package/dist/src/API/getActiveHouses.js +16 -0
- package/dist/src/API/getActiveHouses.test.js +43 -0
- package/dist/src/API/getBoosters.js +16 -0
- package/dist/src/API/getBoosters.test.js +72 -0
- package/dist/src/API/getChallenges.js +16 -0
- package/dist/src/API/getChallenges.test.js +51 -0
- package/dist/src/API/getGameCounts.js +16 -0
- package/dist/src/API/getGameCounts.test.js +26 -0
- package/dist/src/API/getGuild.js +30 -0
- package/dist/src/API/getGuild.test.js +508 -0
- package/dist/src/API/getGuildAchievements.js +16 -0
- package/dist/src/API/getGuildAchievements.test.js +51 -0
- package/dist/src/API/getHouse.js +18 -0
- package/dist/src/API/getHouse.test.js +51 -0
- package/dist/src/API/getLeaderboards.js +23 -0
- package/dist/src/API/getLeaderboards.test.js +55 -0
- package/dist/src/API/getPlayer.js +31 -0
- package/dist/src/API/getPlayer.test.js +290 -0
- package/dist/src/API/getPlayerHouses.js +19 -0
- package/dist/src/API/getPlayerHouses.test.js +50 -0
- package/dist/src/API/getQuests.js +16 -0
- package/dist/src/API/getQuests.test.js +48 -0
- package/dist/src/API/getRecentGames.js +19 -0
- package/dist/src/API/getRecentGames.test.js +52 -0
- package/dist/src/API/getSkyblockAuction.js +32 -0
- package/dist/src/API/getSkyblockAuction.test.js +382 -0
- package/dist/src/API/getSkyblockAuctions.js +51 -0
- package/dist/src/API/getSkyblockAuctions.test.js +366 -0
- package/dist/src/API/getSkyblockAuctionsByPlayer.js +19 -0
- package/dist/src/API/getSkyblockAuctionsByPlayer.test.js +207 -0
- package/dist/src/API/getSkyblockBazaar.js +16 -0
- package/dist/src/API/getSkyblockBazaar.test.js +51 -0
- package/dist/src/API/getSkyblockBingo.js +16 -0
- package/dist/src/API/getSkyblockBingo.test.js +40 -0
- package/dist/src/API/getSkyblockFireSales.js +16 -0
- package/dist/src/API/getSkyblockFireSales.test.js +55 -0
- package/dist/src/API/getSkyblockGarden.js +18 -0
- package/dist/src/API/getSkyblockGarden.test.js +43 -0
- package/dist/src/API/getSkyblockGovernment.js +16 -0
- package/dist/src/API/getSkyblockGovernment.test.js +60 -0
- package/dist/src/API/getSkyblockMember.js +40 -0
- package/dist/src/API/getSkyblockMember.test.js +648 -0
- package/dist/src/API/getSkyblockMuseum.js +19 -0
- package/dist/src/API/getSkyblockMuseum.test.js +78 -0
- package/dist/src/API/getSkyblockNews.js +16 -0
- package/dist/src/API/getSkyblockNews.test.js +35 -0
- package/dist/src/API/getSkyblockProfiles.js +41 -0
- package/dist/src/API/getSkyblockProfiles.test.js +121 -0
- package/dist/src/API/getStatus.js +17 -0
- package/dist/src/API/getStatus.test.js +57 -0
- package/dist/src/API/getWatchdogStats.js +16 -0
- package/dist/src/API/getWatchdogStats.test.js +37 -0
- package/dist/src/API/index.js +56 -0
- package/dist/src/Client.js +70 -0
- package/dist/src/Client.test.js +115 -0
- package/dist/src/Errors.js +28 -0
- package/dist/src/Private/CacheHandler.js +31 -0
- package/dist/src/Private/CacheHandler.test.js +37 -0
- package/dist/src/Private/Endpoint.js +10 -0
- package/dist/src/Private/Endpoint.test.js +17 -0
- package/dist/src/Private/RateLimit.js +30 -0
- package/dist/src/Private/RateLimit.test.js +73 -0
- package/dist/src/Private/Requests.js +106 -0
- package/dist/src/Private/Requests.test.js +48 -0
- package/dist/src/Private/Updater.js +41 -0
- package/dist/src/Private/Updater.test.js +52 -0
- package/dist/src/index.js +34 -0
- package/dist/src/structures/Boosters/Booster.js +38 -0
- package/dist/src/structures/Boosters/Booster.test.js +7 -0
- package/dist/src/structures/Color.js +73 -0
- package/dist/src/structures/Color.test.js +23 -0
- package/dist/src/structures/Game.js +31 -0
- package/dist/src/structures/GameCounts.js +23 -0
- package/dist/src/structures/Guild/Guild.js +61 -0
- package/dist/src/structures/Guild/GuildMember.js +30 -0
- package/dist/src/structures/Guild/GuildRank.js +20 -0
- package/dist/src/structures/House.js +22 -0
- package/dist/src/structures/House.test.js +24 -0
- package/dist/src/structures/ItemBytes.js +10 -0
- package/dist/src/structures/Leaderboard.js +17 -0
- package/dist/src/structures/Leaderboard.test.js +25 -0
- package/dist/src/structures/MiniGames/Arcade.js +437 -0
- package/dist/src/structures/MiniGames/Arcade.test.js +643 -0
- package/dist/src/structures/MiniGames/ArenaBrawl.js +48 -0
- package/dist/src/structures/MiniGames/ArenaBrawl.test.js +120 -0
- package/dist/src/structures/MiniGames/BedWars.js +299 -0
- package/dist/src/structures/MiniGames/BedWars.test.js +936 -0
- package/dist/src/structures/MiniGames/BlitzSurvivalGames.js +170 -0
- package/dist/src/structures/MiniGames/BlitzSurvivalGames.test.js +2238 -0
- package/dist/src/structures/MiniGames/BuildBattle.js +27 -0
- package/dist/src/structures/MiniGames/BuildBattle.test.js +42 -0
- package/dist/src/structures/MiniGames/CopsAndCrims.js +126 -0
- package/dist/src/structures/MiniGames/CopsAndCrims.test.js +162 -0
- package/dist/src/structures/MiniGames/Duels.js +466 -0
- package/dist/src/structures/MiniGames/Duels.test.js +1853 -0
- package/dist/src/structures/MiniGames/MegaWalls.js +194 -0
- package/dist/src/structures/MiniGames/MegaWalls.test.js +4790 -0
- package/dist/src/structures/MiniGames/MurderMystery.js +84 -0
- package/dist/src/structures/MiniGames/MurderMystery.test.js +241 -0
- package/dist/src/structures/MiniGames/Paintball.js +36 -0
- package/dist/src/structures/MiniGames/Paintball.test.js +51 -0
- package/dist/src/structures/MiniGames/Pit.js +124 -0
- package/dist/src/structures/MiniGames/Pit.test.js +218 -0
- package/dist/src/structures/MiniGames/PitInventoryItem.js +19 -0
- package/dist/src/structures/MiniGames/Quakecraft.js +68 -0
- package/dist/src/structures/MiniGames/Quakecraft.test.js +105 -0
- package/dist/src/structures/MiniGames/SkyWars.js +264 -0
- package/dist/src/structures/MiniGames/Skywars.test.js +413 -0
- package/dist/src/structures/MiniGames/SmashHeroes.js +110 -0
- package/dist/src/structures/MiniGames/SmashHeroes.test.js +647 -0
- package/dist/src/structures/MiniGames/SpeedUHC.js +72 -0
- package/dist/src/structures/MiniGames/SpeedUHC.test.js +245 -0
- package/dist/src/structures/MiniGames/TNTGames.js +120 -0
- package/dist/src/structures/MiniGames/TNTGames.test.js +139 -0
- package/dist/src/structures/MiniGames/TurboKartRacers.js +57 -0
- package/dist/src/structures/MiniGames/TurboKartRacers.test.js +140 -0
- package/dist/src/structures/MiniGames/UHC.js +109 -0
- package/dist/src/structures/MiniGames/UHC.test.js +180 -0
- package/dist/src/structures/MiniGames/VampireZ.js +38 -0
- package/dist/src/structures/MiniGames/VampireZ.test.js +59 -0
- package/dist/src/structures/MiniGames/Walls.js +22 -0
- package/dist/src/structures/MiniGames/Walls.test.js +32 -0
- package/dist/src/structures/MiniGames/Warlords.js +76 -0
- package/dist/src/structures/MiniGames/Warlords.test.js +405 -0
- package/dist/src/structures/MiniGames/WoolWars.js +81 -0
- package/dist/src/structures/MiniGames/WoolWars.test.js +251 -0
- package/dist/src/structures/Pet.js +38 -0
- package/dist/src/structures/Pets.js +14 -0
- package/dist/src/structures/Player.js +147 -0
- package/dist/src/structures/Player.test.js +96 -0
- package/dist/src/structures/PlayerCosmetics.js +53 -0
- package/dist/src/structures/RecentGame.js +25 -0
- package/dist/src/structures/SkyBlock/Auctions/Auction.js +39 -0
- package/dist/src/structures/SkyBlock/Auctions/AuctionInfo.js +15 -0
- package/dist/src/structures/SkyBlock/Auctions/BaseAuction.js +19 -0
- package/dist/src/structures/SkyBlock/Auctions/BaseAuction.test.js +20 -0
- package/dist/src/structures/SkyBlock/Auctions/Bid.js +20 -0
- package/dist/src/structures/SkyBlock/Bazaar/Order.js +16 -0
- package/dist/src/structures/SkyBlock/Bazaar/Order.test.js +23 -0
- package/dist/src/structures/SkyBlock/Bazaar/Product.js +23 -0
- package/dist/src/structures/SkyBlock/Bazaar/Product.test.js +46 -0
- package/dist/src/structures/SkyBlock/News/SkyblockNews.js +32 -0
- package/dist/src/structures/SkyBlock/SkyblockGarden.js +62 -0
- package/dist/src/structures/SkyBlock/SkyblockGarden.test.js +22 -0
- package/dist/src/structures/SkyBlock/SkyblockInventoryItem.js +78 -0
- package/dist/src/structures/SkyBlock/SkyblockMember.js +406 -0
- package/dist/src/structures/SkyBlock/SkyblockMember.test.js +71 -0
- package/dist/src/structures/SkyBlock/SkyblockMuseum.js +29 -0
- package/dist/src/structures/SkyBlock/SkyblockMuseumItem.js +24 -0
- package/dist/src/structures/SkyBlock/SkyblockPet.js +27 -0
- package/dist/src/structures/SkyBlock/SkyblockProfile.js +36 -0
- package/dist/src/structures/SkyBlock/Static/Bingo.js +49 -0
- package/dist/src/structures/SkyBlock/Static/BingoData.js +19 -0
- package/dist/src/structures/SkyBlock/Static/Candidate.js +19 -0
- package/dist/src/structures/SkyBlock/Static/FireSale.js +22 -0
- package/dist/src/structures/SkyBlock/Static/Government.js +33 -0
- package/dist/src/structures/SkyBlock/Static/Perk.js +9 -0
- package/dist/src/structures/Static/Achievement.js +44 -0
- package/dist/src/structures/Static/AchievementTier.js +14 -0
- package/dist/src/structures/Static/Achievements.js +15 -0
- package/dist/src/structures/Static/Challenges.js +15 -0
- package/dist/src/structures/Static/GameAchievements.js +14 -0
- package/dist/src/structures/Static/GameChallenges.js +18 -0
- package/dist/src/structures/Static/GameQuests.js +10 -0
- package/dist/src/structures/Static/GuildAchievements.js +15 -0
- package/dist/src/structures/Static/Quest.js +24 -0
- package/dist/src/structures/Static/Quests.js +15 -0
- package/dist/src/structures/Status.js +17 -0
- package/dist/src/structures/Status.test.js +18 -0
- package/dist/src/structures/WatchdogStats.js +15 -0
- package/dist/src/structures/WatchdogStats.test.js +23 -0
- package/dist/src/utils/Constants.js +2170 -0
- package/dist/src/utils/Guild.js +71 -0
- package/dist/src/utils/Player.js +88 -0
- package/dist/src/utils/Player.test.js +82 -0
- package/dist/src/utils/SkyblockUtils.js +342 -0
- package/dist/src/utils/SkyblockUtils.test.js +8 -0
- package/dist/src/utils/divide.js +6 -0
- package/dist/src/utils/divide.test.js +12 -0
- package/dist/src/utils/isGuildID.js +3 -0
- package/dist/src/utils/isGuildID.test.js +16 -0
- package/dist/src/utils/isUUID.js +5 -0
- package/dist/src/utils/isUUID.test.js +31 -0
- package/dist/src/utils/oscillation.js +13 -0
- package/dist/src/utils/oscillation.test.js +17 -0
- package/dist/src/utils/removeSnakeCase.js +14 -0
- package/dist/src/utils/romanize.js +41 -0
- package/dist/src/utils/romanize.test.js +8 -0
- package/dist/structures/Boosters/Booster.d.ts +17 -0
- package/dist/structures/Boosters/Booster.js +44 -0
- package/dist/structures/Boosters/Booster.js.map +1 -0
- package/dist/structures/Color.d.ts +9 -0
- package/dist/structures/Color.js +76 -0
- package/dist/structures/Color.js.map +1 -0
- package/dist/structures/Game.d.ts +16 -0
- package/dist/structures/Game.js +35 -0
- package/dist/structures/Game.js.map +1 -0
- package/dist/structures/GameCounts.d.ts +7 -0
- package/dist/structures/GameCounts.js +29 -0
- package/dist/structures/GameCounts.js.map +1 -0
- package/dist/structures/Guild/Guild.d.ts +39 -0
- package/dist/structures/Guild/Guild.js +67 -0
- package/dist/structures/Guild/Guild.js.map +1 -0
- package/dist/structures/Guild/GuildMember.d.ts +15 -0
- package/dist/structures/Guild/GuildMember.js +33 -0
- package/dist/structures/Guild/GuildMember.js.map +1 -0
- package/dist/structures/Guild/GuildRank.d.ts +11 -0
- package/dist/structures/Guild/GuildRank.js +23 -0
- package/dist/structures/Guild/GuildRank.js.map +1 -0
- package/dist/structures/House.d.ts +12 -0
- package/dist/structures/House.js +25 -0
- package/dist/structures/House.js.map +1 -0
- package/dist/structures/ItemBytes.d.ts +7 -0
- package/dist/structures/ItemBytes.js +17 -0
- package/dist/structures/ItemBytes.js.map +1 -0
- package/dist/structures/Leaderboard.d.ts +8 -0
- package/dist/structures/Leaderboard.js +16 -0
- package/dist/structures/Leaderboard.js.map +1 -0
- package/dist/structures/MiniGames/Arcade.d.ts +234 -0
- package/dist/structures/MiniGames/Arcade.js +466 -0
- package/dist/structures/MiniGames/Arcade.js.map +1 -0
- package/dist/structures/MiniGames/ArenaBrawl.d.ts +26 -0
- package/dist/structures/MiniGames/ArenaBrawl.js +54 -0
- package/dist/structures/MiniGames/ArenaBrawl.js.map +1 -0
- package/dist/structures/MiniGames/BedWars.d.ts +116 -0
- package/dist/structures/MiniGames/BedWars.js +300 -0
- package/dist/structures/MiniGames/BedWars.js.map +1 -0
- package/dist/structures/MiniGames/BlitzSurvivalGames.d.ts +87 -0
- package/dist/structures/MiniGames/BlitzSurvivalGames.js +176 -0
- package/dist/structures/MiniGames/BlitzSurvivalGames.js.map +1 -0
- package/dist/structures/MiniGames/BuildBattle.d.ts +18 -0
- package/dist/structures/MiniGames/BuildBattle.js +33 -0
- package/dist/structures/MiniGames/BuildBattle.js.map +1 -0
- package/dist/structures/MiniGames/CopsAndCrims.d.ts +67 -0
- package/dist/structures/MiniGames/CopsAndCrims.js +132 -0
- package/dist/structures/MiniGames/CopsAndCrims.js.map +1 -0
- package/dist/structures/MiniGames/Duels.d.ts +188 -0
- package/dist/structures/MiniGames/Duels.js +473 -0
- package/dist/structures/MiniGames/Duels.js.map +1 -0
- package/dist/structures/MiniGames/MegaWalls.d.ts +99 -0
- package/dist/structures/MiniGames/MegaWalls.js +200 -0
- package/dist/structures/MiniGames/MegaWalls.js.map +1 -0
- package/dist/structures/MiniGames/MurderMystery.d.ts +44 -0
- package/dist/structures/MiniGames/MurderMystery.js +90 -0
- package/dist/structures/MiniGames/MurderMystery.js.map +1 -0
- package/dist/structures/MiniGames/Paintball.d.ts +19 -0
- package/dist/structures/MiniGames/Paintball.js +42 -0
- package/dist/structures/MiniGames/Paintball.js.map +1 -0
- package/dist/structures/MiniGames/Pit.d.ts +41 -0
- package/dist/structures/MiniGames/Pit.js +138 -0
- package/dist/structures/MiniGames/Pit.js.map +1 -0
- package/dist/structures/MiniGames/PitInventoryItem.d.ts +10 -0
- package/dist/structures/MiniGames/PitInventoryItem.js +20 -0
- package/dist/structures/MiniGames/PitInventoryItem.js.map +1 -0
- package/dist/structures/MiniGames/Quakecraft.d.ts +35 -0
- package/dist/structures/MiniGames/Quakecraft.js +74 -0
- package/dist/structures/MiniGames/Quakecraft.js.map +1 -0
- package/dist/structures/MiniGames/SkyWars.d.ts +112 -0
- package/dist/structures/MiniGames/SkyWars.js +272 -0
- package/dist/structures/MiniGames/SkyWars.js.map +1 -0
- package/dist/structures/MiniGames/SmashHeroes.d.ts +58 -0
- package/dist/structures/MiniGames/SmashHeroes.js +116 -0
- package/dist/structures/MiniGames/SmashHeroes.js.map +1 -0
- package/dist/structures/MiniGames/SpeedUHC.d.ts +36 -0
- package/dist/structures/MiniGames/SpeedUHC.js +74 -0
- package/dist/structures/MiniGames/SpeedUHC.js.map +1 -0
- package/dist/structures/MiniGames/TNTGames.d.ts +66 -0
- package/dist/structures/MiniGames/TNTGames.js +126 -0
- package/dist/structures/MiniGames/TNTGames.js.map +1 -0
- package/dist/structures/MiniGames/TurboKartRacers.d.ts +31 -0
- package/dist/structures/MiniGames/TurboKartRacers.js +60 -0
- package/dist/structures/MiniGames/TurboKartRacers.js.map +1 -0
- package/dist/structures/MiniGames/UHC.d.ts +31 -0
- package/dist/structures/MiniGames/UHC.js +115 -0
- package/dist/structures/MiniGames/UHC.js.map +1 -0
- package/dist/structures/MiniGames/VampireZ.d.ts +21 -0
- package/dist/structures/MiniGames/VampireZ.js +44 -0
- package/dist/structures/MiniGames/VampireZ.js.map +1 -0
- package/dist/structures/MiniGames/Walls.d.ts +12 -0
- package/dist/structures/MiniGames/Walls.js +28 -0
- package/dist/structures/MiniGames/Walls.js.map +1 -0
- package/dist/structures/MiniGames/Warlords.d.ts +40 -0
- package/dist/structures/MiniGames/Warlords.js +82 -0
- package/dist/structures/MiniGames/Warlords.js.map +1 -0
- package/dist/structures/MiniGames/WoolWars.d.ts +49 -0
- package/dist/structures/MiniGames/WoolWars.js +87 -0
- package/dist/structures/MiniGames/WoolWars.js.map +1 -0
- package/dist/structures/Pet.d.ts +19 -0
- package/dist/structures/Pet.js +41 -0
- package/dist/structures/Pet.js.map +1 -0
- package/dist/structures/Pets.d.ts +38 -0
- package/dist/structures/Pets.js +20 -0
- package/dist/structures/Pets.js.map +1 -0
- package/dist/structures/Player.d.ts +73 -0
- package/dist/structures/Player.js +158 -0
- package/dist/structures/Player.js.map +1 -0
- package/dist/structures/PlayerCosmetics.d.ts +26 -0
- package/dist/structures/PlayerCosmetics.js +120 -0
- package/dist/structures/PlayerCosmetics.js.map +1 -0
- package/dist/structures/RecentGame.d.ts +13 -0
- package/dist/structures/RecentGame.js +30 -0
- package/dist/structures/RecentGame.js.map +1 -0
- package/dist/structures/ServerInfo.d.ts +20 -0
- package/dist/structures/ServerInfo.js +34 -0
- package/dist/structures/ServerInfo.js.map +1 -0
- package/dist/structures/SkyBlock/Auctions/Auction.d.ts +22 -0
- package/dist/structures/SkyBlock/Auctions/Auction.js +45 -0
- package/dist/structures/SkyBlock/Auctions/Auction.js.map +1 -0
- package/dist/structures/SkyBlock/Auctions/AuctionInfo.d.ts +10 -0
- package/dist/structures/SkyBlock/Auctions/AuctionInfo.js +21 -0
- package/dist/structures/SkyBlock/Auctions/AuctionInfo.js.map +1 -0
- package/dist/structures/SkyBlock/Auctions/BaseAuction.d.ts +11 -0
- package/dist/structures/SkyBlock/Auctions/BaseAuction.js +25 -0
- package/dist/structures/SkyBlock/Auctions/BaseAuction.js.map +1 -0
- package/dist/structures/SkyBlock/Auctions/Bid.d.ts +11 -0
- package/dist/structures/SkyBlock/Auctions/Bid.js +23 -0
- package/dist/structures/SkyBlock/Auctions/Bid.js.map +1 -0
- package/dist/structures/SkyBlock/Bazzar/Order.d.ts +9 -0
- package/dist/structures/SkyBlock/Bazzar/Order.js +19 -0
- package/dist/structures/SkyBlock/Bazzar/Order.js.map +1 -0
- package/dist/structures/SkyBlock/Bazzar/Product.d.ts +19 -0
- package/dist/structures/SkyBlock/Bazzar/Product.js +33 -0
- package/dist/structures/SkyBlock/Bazzar/Product.js.map +1 -0
- package/dist/structures/SkyBlock/News/SkyblockNews.d.ts +10 -0
- package/dist/structures/SkyBlock/News/SkyblockNews.js +35 -0
- package/dist/structures/SkyBlock/News/SkyblockNews.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockGarden.d.ts +60 -0
- package/dist/structures/SkyBlock/SkyblockGarden.js +65 -0
- package/dist/structures/SkyBlock/SkyblockGarden.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockInventoryItem.d.ts +38 -0
- package/dist/structures/SkyBlock/SkyblockInventoryItem.js +83 -0
- package/dist/structures/SkyBlock/SkyblockInventoryItem.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockMember.d.ts +80 -0
- package/dist/structures/SkyBlock/SkyblockMember.js +288 -0
- package/dist/structures/SkyBlock/SkyblockMember.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockMuseum.d.ts +10 -0
- package/dist/structures/SkyBlock/SkyblockMuseum.js +35 -0
- package/dist/structures/SkyBlock/SkyblockMuseum.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockMuseumItem.d.ts +11 -0
- package/dist/structures/SkyBlock/SkyblockMuseumItem.js +30 -0
- package/dist/structures/SkyBlock/SkyblockMuseumItem.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockPet.d.ts +15 -0
- package/dist/structures/SkyBlock/SkyblockPet.js +33 -0
- package/dist/structures/SkyBlock/SkyblockPet.js.map +1 -0
- package/dist/structures/SkyBlock/SkyblockProfile.d.ts +14 -0
- package/dist/structures/SkyBlock/SkyblockProfile.js +42 -0
- package/dist/structures/SkyBlock/SkyblockProfile.js.map +1 -0
- package/dist/structures/SkyBlock/Static/Bingo.d.ts +16 -0
- package/dist/structures/SkyBlock/Static/Bingo.js +52 -0
- package/dist/structures/SkyBlock/Static/Bingo.js.map +1 -0
- package/dist/structures/SkyBlock/Static/BingoData.d.ts +10 -0
- package/dist/structures/SkyBlock/Static/BingoData.js +25 -0
- package/dist/structures/SkyBlock/Static/BingoData.js.map +1 -0
- package/dist/structures/SkyBlock/Static/Candidate.d.ts +11 -0
- package/dist/structures/SkyBlock/Static/Candidate.js +25 -0
- package/dist/structures/SkyBlock/Static/Candidate.js.map +1 -0
- package/dist/structures/SkyBlock/Static/FireSale.d.ts +12 -0
- package/dist/structures/SkyBlock/Static/FireSale.js +25 -0
- package/dist/structures/SkyBlock/Static/FireSale.js.map +1 -0
- package/dist/structures/SkyBlock/Static/Government.d.ts +13 -0
- package/dist/structures/SkyBlock/Static/Government.js +39 -0
- package/dist/structures/SkyBlock/Static/Government.js.map +1 -0
- package/dist/structures/SkyBlock/Static/Perk.d.ts +6 -0
- package/dist/structures/SkyBlock/Static/Perk.js +12 -0
- package/dist/structures/SkyBlock/Static/Perk.js.map +1 -0
- package/dist/structures/Static/Achievement.d.ts +14 -0
- package/dist/structures/Static/Achievement.js +50 -0
- package/dist/structures/Static/Achievement.js.map +1 -0
- package/dist/structures/Static/AchievementTier.d.ts +7 -0
- package/dist/structures/Static/AchievementTier.js +17 -0
- package/dist/structures/Static/AchievementTier.js.map +1 -0
- package/dist/structures/Static/Achievements.d.ts +9 -0
- package/dist/structures/Static/Achievements.js +21 -0
- package/dist/structures/Static/Achievements.js.map +1 -0
- package/dist/structures/Static/Challenges.d.ts +9 -0
- package/dist/structures/Static/Challenges.js +21 -0
- package/dist/structures/Static/Challenges.js.map +1 -0
- package/dist/structures/Static/GameAchievements.d.ts +10 -0
- package/dist/structures/Static/GameAchievements.js +20 -0
- package/dist/structures/Static/GameAchievements.js.map +1 -0
- package/dist/structures/Static/GameChallenges.d.ts +13 -0
- package/dist/structures/Static/GameChallenges.js +21 -0
- package/dist/structures/Static/GameChallenges.js.map +1 -0
- package/dist/structures/Static/GameQuests.d.ts +8 -0
- package/dist/structures/Static/GameQuests.js +16 -0
- package/dist/structures/Static/GameQuests.js.map +1 -0
- package/dist/structures/Static/GuildAchievements.d.ts +8 -0
- package/dist/structures/Static/GuildAchievements.js +21 -0
- package/dist/structures/Static/GuildAchievements.js.map +1 -0
- package/dist/structures/Static/Quest.d.ts +20 -0
- package/dist/structures/Static/Quest.js +27 -0
- package/dist/structures/Static/Quest.js.map +1 -0
- package/dist/structures/Static/Quests.d.ts +9 -0
- package/dist/structures/Static/Quests.js +21 -0
- package/dist/structures/Static/Quests.js.map +1 -0
- package/dist/structures/Status.d.ts +10 -0
- package/dist/structures/Status.js +23 -0
- package/dist/structures/Status.js.map +1 -0
- package/dist/structures/Watchdog/Stats.d.ts +9 -0
- package/dist/structures/Watchdog/Stats.js +18 -0
- package/dist/structures/Watchdog/Stats.js.map +1 -0
- package/dist/utils/Constants.d.ts +1017 -0
- package/dist/utils/Constants.js +2197 -0
- package/dist/utils/Constants.js.map +1 -0
- package/dist/utils/Guild.d.ts +15 -0
- package/dist/utils/Guild.js +85 -0
- package/dist/utils/Guild.js.map +1 -0
- package/dist/utils/Player.d.ts +8 -0
- package/dist/utils/Player.js +98 -0
- package/dist/utils/Player.js.map +1 -0
- package/dist/utils/SkyblockUtils.d.ts +131 -0
- package/dist/utils/SkyblockUtils.js +394 -0
- package/dist/utils/SkyblockUtils.js.map +1 -0
- package/dist/utils/divide.d.ts +1 -0
- package/dist/utils/divide.js +10 -0
- package/dist/utils/divide.js.map +1 -0
- package/dist/utils/isGuildID.d.ts +1 -0
- package/dist/utils/isGuildID.js +7 -0
- package/dist/utils/isGuildID.js.map +1 -0
- package/dist/utils/isUUID.d.ts +1 -0
- package/dist/utils/isUUID.js +9 -0
- package/dist/utils/isUUID.js.map +1 -0
- package/dist/utils/oscillation.d.ts +2 -0
- package/dist/utils/oscillation.js +15 -0
- package/dist/utils/oscillation.js.map +1 -0
- package/dist/utils/removeSnakeCase.d.ts +3 -0
- package/dist/utils/removeSnakeCase.js +20 -0
- package/dist/utils/removeSnakeCase.js.map +1 -0
- package/dist/utils/romanize.d.ts +1 -0
- package/dist/utils/romanize.js +45 -0
- package/dist/utils/romanize.js.map +1 -0
- package/{eslint.config.mjs → eslint.config.js} +16 -14
- package/package.json +32 -25
- package/renovate.json +21 -0
- package/src/API/API.d.ts +16 -0
- package/src/API/getAchievements.test.ts +81 -0
- package/src/API/getAchievements.ts +20 -0
- package/src/API/getActiveHouses.test.ts +45 -0
- package/src/API/getActiveHouses.ts +20 -0
- package/src/API/getBoosters.test.ts +53 -0
- package/src/API/getBoosters.ts +20 -0
- package/src/API/getChallenges.test.ts +54 -0
- package/src/API/getChallenges.ts +19 -0
- package/src/API/getGameCounts.test.ts +28 -0
- package/src/API/getGameCounts.ts +20 -0
- package/src/API/getGuild.test.ts +478 -0
- package/src/API/getGuild.ts +35 -0
- package/src/API/getGuildAchievements.test.ts +59 -0
- package/src/API/getGuildAchievements.ts +20 -0
- package/src/API/getHouse.test.ts +55 -0
- package/src/API/getHouse.ts +21 -0
- package/src/API/getLeaderboards.test.ts +41 -0
- package/src/API/getLeaderboards.ts +30 -0
- package/src/API/getPlayer.test.ts +494 -0
- package/src/API/getPlayer.ts +33 -0
- package/src/API/getPlayerHouses.test.ts +53 -0
- package/src/API/getPlayerHouses.ts +22 -0
- package/src/API/getQuests.test.ts +51 -0
- package/src/API/getQuests.ts +20 -0
- package/src/API/getRecentGames.test.ts +51 -0
- package/src/API/getRecentGames.ts +22 -0
- package/src/API/getSkyblockAuction.test.ts +293 -0
- package/src/API/getSkyblockAuction.ts +36 -0
- package/src/API/getSkyblockAuctions.test.ts +346 -0
- package/src/API/getSkyblockAuctions.ts +59 -0
- package/src/API/getSkyblockAuctionsByPlayer.test.ts +249 -0
- package/src/API/getSkyblockAuctionsByPlayer.ts +22 -0
- package/src/API/getSkyblockBazaar.test.ts +52 -0
- package/src/API/getSkyblockBazaar.ts +20 -0
- package/src/API/getSkyblockBingo.test.ts +42 -0
- package/src/API/getSkyblockBingo.ts +20 -0
- package/src/API/getSkyblockFireSales.test.ts +43 -0
- package/src/API/getSkyblockFireSales.ts +20 -0
- package/src/API/getSkyblockGarden.test.ts +60 -0
- package/src/API/getSkyblockGarden.ts +21 -0
- package/src/API/getSkyblockGovernment.test.ts +78 -0
- package/src/API/getSkyblockGovernment.ts +20 -0
- package/src/API/getSkyblockMember.test.ts +308 -0
- package/src/API/getSkyblockMember.ts +45 -0
- package/src/API/getSkyblockMuseum.test.ts +91 -0
- package/src/API/getSkyblockMuseum.ts +22 -0
- package/src/API/getSkyblockNews.test.ts +45 -0
- package/src/API/getSkyblockNews.ts +20 -0
- package/src/API/getSkyblockProfiles.test.ts +164 -0
- package/src/API/getSkyblockProfiles.ts +43 -0
- package/src/API/getStatus.test.ts +42 -0
- package/src/API/getStatus.ts +21 -0
- package/src/API/getWatchdogStats.test.ts +44 -0
- package/src/API/getWatchdogStats.ts +20 -0
- package/src/API/index.ts +56 -0
- package/src/Client.test.ts +148 -0
- package/src/Client.ts +91 -0
- package/src/Errors.ts +42 -0
- package/src/Private/CacheHandler.test.ts +49 -0
- package/src/Private/CacheHandler.ts +41 -0
- package/src/Private/Endpoint.test.ts +23 -0
- package/src/Private/Endpoint.ts +14 -0
- package/src/Private/RateLimit.test.ts +99 -0
- package/src/Private/RateLimit.ts +38 -0
- package/src/Private/Requests.test.ts +59 -0
- package/src/Private/Requests.ts +128 -0
- package/src/Private/Updater.test.ts +68 -0
- package/src/Private/Updater.ts +48 -0
- package/src/index.ts +119 -0
- package/src/structures/Boosters/Booster.ts +40 -0
- package/src/structures/Color.ts +79 -0
- package/src/structures/Game.ts +147 -0
- package/src/structures/GameCounts.ts +26 -0
- package/src/structures/Guild/Guild.ts +67 -0
- package/src/structures/Guild/GuildMember.ts +33 -0
- package/src/structures/Guild/GuildRank.ts +22 -0
- package/src/structures/House.ts +24 -0
- package/src/structures/ItemBytes.ts +18 -0
- package/src/structures/Leaderboard.ts +14 -0
- package/src/structures/MiniGames/Arcade.ts +460 -0
- package/src/structures/MiniGames/ArenaBrawl.ts +51 -0
- package/src/structures/MiniGames/{BedWars.js → BedWars.ts} +198 -298
- package/src/structures/MiniGames/BlitzSurvivalGames.ts +173 -0
- package/src/structures/MiniGames/BuildBattle.ts +36 -0
- package/src/structures/MiniGames/CopsAndCrims.ts +131 -0
- package/src/structures/MiniGames/{Duels.js → Duels.ts} +200 -737
- package/src/structures/MiniGames/MegaWalls.ts +197 -0
- package/src/structures/MiniGames/MurderMystery.ts +87 -0
- package/src/structures/MiniGames/Paintball.ts +38 -0
- package/src/structures/MiniGames/Pit.ts +139 -0
- package/src/structures/MiniGames/PitInventoryItem.ts +18 -0
- package/src/structures/MiniGames/Quakecraft.ts +70 -0
- package/src/structures/MiniGames/SkyWars.ts +288 -0
- package/src/structures/MiniGames/SmashHeroes.ts +114 -0
- package/src/structures/MiniGames/SpeedUHC.ts +71 -0
- package/src/structures/MiniGames/TNTGames.ts +126 -0
- package/src/structures/MiniGames/TurboKartRacers.ts +59 -0
- package/src/structures/MiniGames/{UHC.js → UHC.ts} +32 -114
- package/src/structures/MiniGames/VampireZ.ts +41 -0
- package/src/structures/MiniGames/Walls.ts +24 -0
- package/src/structures/MiniGames/Warlords.ts +79 -0
- package/src/structures/MiniGames/WoolWars.ts +106 -0
- package/src/structures/Pet.ts +40 -0
- package/src/structures/Pets.ts +46 -0
- package/src/structures/Player.ts +199 -0
- package/src/structures/{PlayerCosmetics.js → PlayerCosmetics.ts} +36 -63
- package/src/structures/RecentGame.ts +27 -0
- package/src/structures/ServerInfo.ts +40 -0
- package/src/structures/SkyBlock/Auctions/Auction.ts +43 -0
- package/src/structures/SkyBlock/Auctions/AuctionInfo.ts +20 -0
- package/src/structures/SkyBlock/Auctions/BaseAuction.ts +22 -0
- package/src/structures/SkyBlock/Auctions/Bid.ts +22 -0
- package/src/structures/SkyBlock/Bazzar/Order.ts +18 -0
- package/src/structures/SkyBlock/Bazzar/Product.ts +40 -0
- package/src/structures/SkyBlock/News/SkyblockNews.ts +35 -0
- package/src/structures/SkyBlock/SkyblockGarden.ts +118 -0
- package/src/structures/SkyBlock/SkyblockInventoryItem.ts +83 -0
- package/src/structures/SkyBlock/SkyblockMember.ts +317 -0
- package/src/structures/SkyBlock/SkyblockMuseum.ts +43 -0
- package/src/structures/SkyBlock/SkyblockMuseumItem.ts +26 -0
- package/src/structures/SkyBlock/SkyblockPet.ts +30 -0
- package/src/structures/SkyBlock/SkyblockProfile.ts +42 -0
- package/src/structures/SkyBlock/Static/Bingo.ts +50 -0
- package/src/structures/SkyBlock/Static/BingoData.ts +21 -0
- package/src/structures/SkyBlock/Static/Candidate.ts +22 -0
- package/src/structures/SkyBlock/Static/FireSale.ts +24 -0
- package/src/structures/SkyBlock/Static/Government.ts +42 -0
- package/src/structures/SkyBlock/Static/Perk.ts +10 -0
- package/src/structures/Static/Achievement.ts +49 -0
- package/src/structures/Static/AchievementTier.ts +18 -0
- package/src/structures/Static/Achievements.ts +20 -0
- package/src/structures/Static/Challenges.ts +20 -0
- package/src/structures/Static/GameAchievements.ts +19 -0
- package/src/structures/Static/GameChallenges.ts +28 -0
- package/src/structures/Static/GameQuests.ts +13 -0
- package/src/structures/Static/GuildAchievements.ts +19 -0
- package/src/structures/Static/Quest.ts +37 -0
- package/src/structures/Static/Quests.ts +20 -0
- package/src/structures/Status.ts +20 -0
- package/src/structures/Watchdog/Stats.ts +16 -0
- package/src/typings/index.d.ts +24 -0
- package/src/utils/{Constants.js → Constants.ts} +201 -1248
- package/src/utils/Guild.ts +90 -0
- package/src/utils/Player.ts +93 -0
- package/src/utils/SkyblockUtils.test.ts +9 -0
- package/src/utils/SkyblockUtils.ts +516 -0
- package/src/utils/divide.test.ts +13 -0
- package/src/utils/{divide.js → divide.ts} +2 -2
- package/src/utils/isGuildID.test.ts +19 -0
- package/src/utils/isGuildID.ts +3 -0
- package/src/utils/isUUID.test.ts +35 -0
- package/src/utils/{isUUID.js → isUUID.ts} +2 -2
- package/src/utils/oscillation.ts +11 -0
- package/src/utils/removeSnakeCase.ts +18 -0
- package/src/utils/romanize.test.ts +9 -0
- package/src/utils/{romanize.js → romanize.ts} +3 -4
- package/tsconfig.json +25 -0
- package/vitest.config.ts +8 -0
- package/vitest.setup.ts +2 -0
- package/src/API/getAPIStatus.js +0 -8
- package/src/API/getAchievements.js +0 -7
- package/src/API/getBoosters.js +0 -7
- package/src/API/getChallenges.js +0 -7
- package/src/API/getGameCounts.js +0 -7
- package/src/API/getGuild.js +0 -19
- package/src/API/getGuildAchievements.js +0 -7
- package/src/API/getLeaderboards.js +0 -15
- package/src/API/getPlayer.js +0 -23
- package/src/API/getQuests.js +0 -7
- package/src/API/getRecentGames.js +0 -14
- package/src/API/getServerInfo.js +0 -71
- package/src/API/getStatus.js +0 -9
- package/src/API/getWatchdogStats.js +0 -7
- package/src/API/housing/getActiveHouses.js +0 -7
- package/src/API/housing/getHouse.js +0 -9
- package/src/API/housing/getPlayerHouses.js +0 -11
- package/src/API/index.js +0 -35
- package/src/API/skyblock/getAuction.js +0 -21
- package/src/API/skyblock/getAuctions.js +0 -74
- package/src/API/skyblock/getAuctionsByPlayer.js +0 -11
- package/src/API/skyblock/getBazaar.js +0 -8
- package/src/API/skyblock/getBingo.js +0 -7
- package/src/API/skyblock/getBingoByPlayer.js +0 -14
- package/src/API/skyblock/getEndedAuctions.js +0 -11
- package/src/API/skyblock/getFireSales.js +0 -7
- package/src/API/skyblock/getGarden.js +0 -11
- package/src/API/skyblock/getGovernment.js +0 -7
- package/src/API/skyblock/getMember.js +0 -35
- package/src/API/skyblock/getMuseum.js +0 -15
- package/src/API/skyblock/getNews.js +0 -7
- package/src/API/skyblock/getProfiles.js +0 -49
- package/src/Client.js +0 -547
- package/src/Errors.js +0 -66
- package/src/Private/defaultCache.js +0 -77
- package/src/Private/rateLimit.js +0 -83
- package/src/Private/requests.js +0 -76
- package/src/Private/updater.js +0 -34
- package/src/Private/uuidCache.js +0 -30
- package/src/Private/validate.js +0 -108
- package/src/index.js +0 -96
- package/src/structures/APIIncident.js +0 -71
- package/src/structures/APIStatus.js +0 -46
- package/src/structures/Boosters/Booster.js +0 -84
- package/src/structures/Color.js +0 -174
- package/src/structures/Game.js +0 -166
- package/src/structures/GameCounts.js +0 -151
- package/src/structures/Guild/Guild.js +0 -191
- package/src/structures/Guild/GuildMember.js +0 -66
- package/src/structures/Guild/GuildRank.js +0 -48
- package/src/structures/House.js +0 -54
- package/src/structures/ItemBytes.js +0 -33
- package/src/structures/Leaderboard.js +0 -31
- package/src/structures/MiniGames/Arcade.js +0 -1058
- package/src/structures/MiniGames/ArenaBrawl.js +0 -118
- package/src/structures/MiniGames/BlitzSurvivalGames.js +0 -424
- package/src/structures/MiniGames/BuildBattle.js +0 -64
- package/src/structures/MiniGames/CopsAndCrims.js +0 -318
- package/src/structures/MiniGames/MegaWalls.js +0 -478
- package/src/structures/MiniGames/MurderMystery.js +0 -214
- package/src/structures/MiniGames/Paintball.js +0 -87
- package/src/structures/MiniGames/Pit.js +0 -247
- package/src/structures/MiniGames/PitInventoryItem.js +0 -43
- package/src/structures/MiniGames/Quakecraft.js +0 -164
- package/src/structures/MiniGames/SkyWars.js +0 -669
- package/src/structures/MiniGames/SmashHeroes.js +0 -272
- package/src/structures/MiniGames/SpeedUHC.js +0 -168
- package/src/structures/MiniGames/TNTGames.js +0 -285
- package/src/structures/MiniGames/TurboKartRacers.js +0 -141
- package/src/structures/MiniGames/VampireZ.js +0 -93
- package/src/structures/MiniGames/Walls.js +0 -52
- package/src/structures/MiniGames/Warlords.js +0 -187
- package/src/structures/MiniGames/WoolWars.js +0 -174
- package/src/structures/Pet.js +0 -96
- package/src/structures/Pets.js +0 -64
- package/src/structures/Player.js +0 -346
- package/src/structures/RecentGame.js +0 -57
- package/src/structures/ServerInfo.js +0 -78
- package/src/structures/SkyBlock/Auctions/Auction.js +0 -106
- package/src/structures/SkyBlock/Auctions/AuctionInfo.js +0 -56
- package/src/structures/SkyBlock/Auctions/BaseAuction.js +0 -46
- package/src/structures/SkyBlock/Auctions/Bid.js +0 -49
- package/src/structures/SkyBlock/Auctions/PartialAuction.js +0 -26
- package/src/structures/SkyBlock/Bazzar/Order.js +0 -38
- package/src/structures/SkyBlock/Bazzar/Product.js +0 -53
- package/src/structures/SkyBlock/News/SkyblockNews.js +0 -60
- package/src/structures/SkyBlock/PlayerBingo.js +0 -49
- package/src/structures/SkyBlock/SkyblockGarden.js +0 -146
- package/src/structures/SkyBlock/SkyblockInventoryItem.js +0 -168
- package/src/structures/SkyBlock/SkyblockMember.js +0 -591
- package/src/structures/SkyBlock/SkyblockMuseum.js +0 -60
- package/src/structures/SkyBlock/SkyblockMuseumItem.js +0 -54
- package/src/structures/SkyBlock/SkyblockPet.js +0 -71
- package/src/structures/SkyBlock/SkyblockProfile.js +0 -81
- package/src/structures/SkyBlock/Static/Bingo.js +0 -101
- package/src/structures/SkyBlock/Static/BingoData.js +0 -45
- package/src/structures/SkyBlock/Static/Candidate.js +0 -50
- package/src/structures/SkyBlock/Static/FireSale.js +0 -55
- package/src/structures/SkyBlock/Static/Government.js +0 -79
- package/src/structures/SkyBlock/Static/Perk.js +0 -23
- package/src/structures/Static/Achievement.js +0 -87
- package/src/structures/Static/AchievementTier.js +0 -33
- package/src/structures/Static/Achievements.js +0 -30
- package/src/structures/Static/Challenges.js +0 -29
- package/src/structures/Static/GameAchievements.js +0 -36
- package/src/structures/Static/GameChallenges.js +0 -40
- package/src/structures/Static/GameQuests.js +0 -24
- package/src/structures/Static/GuildAchievements.js +0 -34
- package/src/structures/Static/Quest.js +0 -66
- package/src/structures/Static/Quests.js +0 -31
- package/src/structures/Status.js +0 -41
- package/src/structures/Watchdog/Stats.js +0 -36
- package/src/utils/Guild.js +0 -90
- package/src/utils/Player.js +0 -112
- package/src/utils/SkyblockUtils.js +0 -667
- package/src/utils/arrayTools.js +0 -4
- package/src/utils/index.js +0 -14
- package/src/utils/isGuildID.js +0 -3
- package/src/utils/oscillation.js +0 -17
- package/src/utils/removeSnakeCase.js +0 -33
- package/src/utils/rgbToHexColor.js +0 -8
- package/src/utils/toUuid.js +0 -24
- package/src/utils/varInt.js +0 -17
- package/typings/index.d.ts +0 -4297
|
@@ -1,667 +0,0 @@
|
|
|
1
|
-
/* eslint-disable jsdoc/require-jsdoc */
|
|
2
|
-
const { parse, simplify } = require('prismarine-nbt');
|
|
3
|
-
const constants = require('./Constants');
|
|
4
|
-
|
|
5
|
-
async function decode(base64, isBuffer = false) {
|
|
6
|
-
// Credit: https://github.com/SkyCryptWebsite/SkyCryptv2/blob/3b5b3ae4fe77c60eff90691797f09024baf68872/src/lib/server/stats/items/processing.ts#L215-L218
|
|
7
|
-
const buffer = isBuffer ? base64 : Buffer.from(base64, 'base64');
|
|
8
|
-
let data = await parse(buffer);
|
|
9
|
-
data = simplify(data.parsed);
|
|
10
|
-
const newdata = [];
|
|
11
|
-
for (let i = 0; i < data.i.length; i++) {
|
|
12
|
-
newdata.push(data.i[i]);
|
|
13
|
-
}
|
|
14
|
-
return newdata;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function getLevelByXp(xp, type, levelCap) {
|
|
18
|
-
let xpTable;
|
|
19
|
-
switch (type) {
|
|
20
|
-
case 'runecrafting':
|
|
21
|
-
xpTable = constants.runecraftingXp;
|
|
22
|
-
break;
|
|
23
|
-
case 'dungeons':
|
|
24
|
-
xpTable = constants.dungeonXp;
|
|
25
|
-
break;
|
|
26
|
-
case 'hotm':
|
|
27
|
-
xpTable = constants.hotmXp;
|
|
28
|
-
break;
|
|
29
|
-
case 'social':
|
|
30
|
-
xpTable = constants.socialXp;
|
|
31
|
-
break;
|
|
32
|
-
case 'garden':
|
|
33
|
-
xpTable = constants.garden;
|
|
34
|
-
break;
|
|
35
|
-
case 'wheat':
|
|
36
|
-
xpTable = constants.wheat;
|
|
37
|
-
break;
|
|
38
|
-
case 'carrot':
|
|
39
|
-
xpTable = constants.carrot;
|
|
40
|
-
break;
|
|
41
|
-
case 'potato':
|
|
42
|
-
xpTable = constants.potato;
|
|
43
|
-
break;
|
|
44
|
-
case 'melon':
|
|
45
|
-
xpTable = constants.melon;
|
|
46
|
-
break;
|
|
47
|
-
case 'pumpkin':
|
|
48
|
-
xpTable = constants.pumpkin;
|
|
49
|
-
break;
|
|
50
|
-
case 'sugarCane':
|
|
51
|
-
xpTable = constants.sugarCane;
|
|
52
|
-
break;
|
|
53
|
-
case 'cocoaBeans':
|
|
54
|
-
xpTable = constants.cocoaBeans;
|
|
55
|
-
break;
|
|
56
|
-
case 'cactus':
|
|
57
|
-
xpTable = constants.cactus;
|
|
58
|
-
break;
|
|
59
|
-
case 'mushroom':
|
|
60
|
-
xpTable = constants.mushroom;
|
|
61
|
-
break;
|
|
62
|
-
case 'netherWart':
|
|
63
|
-
xpTable = constants.netherWart;
|
|
64
|
-
break;
|
|
65
|
-
default:
|
|
66
|
-
xpTable = constants.levelingXp;
|
|
67
|
-
}
|
|
68
|
-
let maxLevel = Math.max(...Object.keys(xpTable));
|
|
69
|
-
if ((constants.skillsCap[type] ?? maxLevel) > maxLevel) {
|
|
70
|
-
xpTable = Object.assign(constants.xpPast50, xpTable);
|
|
71
|
-
maxLevel = 'number' === typeof levelCap ? maxLevel + levelCap : Math.max(...Object.keys(xpTable));
|
|
72
|
-
}
|
|
73
|
-
if (isNaN(xp)) {
|
|
74
|
-
return {
|
|
75
|
-
xp: 0,
|
|
76
|
-
level: 0,
|
|
77
|
-
maxLevel,
|
|
78
|
-
xpCurrent: 0,
|
|
79
|
-
xpForNext: xpTable[1],
|
|
80
|
-
progress: 0,
|
|
81
|
-
cosmetic: Boolean('runecrafting' === type || 'social' === type)
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
let xpTotal = 0;
|
|
85
|
-
let level = 0;
|
|
86
|
-
let xpForNext = 0;
|
|
87
|
-
for (let x = 1; x <= maxLevel; x++) {
|
|
88
|
-
if (!xpTable[x]) continue;
|
|
89
|
-
xpTotal += xpTable[x];
|
|
90
|
-
if (xpTotal > xp) {
|
|
91
|
-
xpTotal -= xpTable[x];
|
|
92
|
-
break;
|
|
93
|
-
} else {
|
|
94
|
-
level = x;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
const xpCurrent = Math.floor(xp - xpTotal);
|
|
98
|
-
if (level < maxLevel) xpForNext = Math.ceil(xpTable[level + 1]);
|
|
99
|
-
const progress = Math.floor(Math.max(0, Math.min(xpCurrent / xpForNext, 1)) * 100 * 10) / 10;
|
|
100
|
-
|
|
101
|
-
return {
|
|
102
|
-
xp: xp,
|
|
103
|
-
level: level,
|
|
104
|
-
maxLevel: maxLevel,
|
|
105
|
-
xpCurrent: xpCurrent,
|
|
106
|
-
xpForNext: xpForNext,
|
|
107
|
-
progress: progress,
|
|
108
|
-
cosmetic: Boolean('runecrafting' === type || 'social' === type)
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function getSlayerLevel(slayer) {
|
|
113
|
-
if (!slayer) {
|
|
114
|
-
return {
|
|
115
|
-
xp: 0,
|
|
116
|
-
tier1: 0,
|
|
117
|
-
tier2: 0,
|
|
118
|
-
tier3: 0,
|
|
119
|
-
tier4: 0,
|
|
120
|
-
tier5: 0,
|
|
121
|
-
level: 0
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// eslint-disable-next-line camelcase
|
|
126
|
-
const { claimed_levels } = slayer;
|
|
127
|
-
let level = 0;
|
|
128
|
-
|
|
129
|
-
// eslint-disable-next-line camelcase
|
|
130
|
-
for (const levelName in claimed_levels) {
|
|
131
|
-
if (Object.prototype.hasOwnProperty.call(claimed_levels, levelName)) {
|
|
132
|
-
const newLevel = parseInt(levelName.replace('_special', '').split('_').pop(), 10);
|
|
133
|
-
if (newLevel > level) {
|
|
134
|
-
level = newLevel;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
return {
|
|
139
|
-
xp: slayer.xp || 0,
|
|
140
|
-
tier1: slayer.boss_kills_tier_0 || 0,
|
|
141
|
-
tier2: slayer.boss_kills_tier_1 || 0,
|
|
142
|
-
tier3: slayer.boss_kills_tier_2 || 0,
|
|
143
|
-
tier4: slayer.boss_kills_tier_3 || 0,
|
|
144
|
-
tier5: slayer.boss_kills_tier_4 || 0,
|
|
145
|
-
level
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
function getMemberStats(obj) {
|
|
150
|
-
return Object.keys(obj).reduce(
|
|
151
|
-
(result, currentKey) => {
|
|
152
|
-
const key = currentKey.replace(/_[a-z]/gi, (match) => match[1].toUpperCase());
|
|
153
|
-
|
|
154
|
-
if (currentKey.startsWith('kills') || currentKey.startsWith('deaths')) {
|
|
155
|
-
const category = currentKey.startsWith('kills') ? 'kills' : 'deaths';
|
|
156
|
-
const subKey = key === category ? 'total' : key;
|
|
157
|
-
|
|
158
|
-
result[category][
|
|
159
|
-
subKey.replace(category, (sub, _, key) => {
|
|
160
|
-
return key[sub.length].toLowerCase() + key.slice(sub.length + 1);
|
|
161
|
-
})
|
|
162
|
-
] = obj[currentKey];
|
|
163
|
-
} else {
|
|
164
|
-
result[key] = obj[currentKey];
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
return result;
|
|
168
|
-
},
|
|
169
|
-
{ kills: {}, deaths: {} }
|
|
170
|
-
);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
function getTrophyFishRank(level) {
|
|
174
|
-
if (1 === level) {
|
|
175
|
-
return 'Bronze';
|
|
176
|
-
} else if (2 === level) {
|
|
177
|
-
return 'Silver';
|
|
178
|
-
} else if (3 === level) {
|
|
179
|
-
return 'Gold';
|
|
180
|
-
} else if (4 === level) {
|
|
181
|
-
return 'Diamond';
|
|
182
|
-
}
|
|
183
|
-
return null;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
function getSkills(data) {
|
|
187
|
-
const skillsObject = {};
|
|
188
|
-
skillsObject.combat = getLevelByXp(data?.player_data?.experience?.SKILL_COMBAT ?? 0, 'combat');
|
|
189
|
-
skillsObject.farming = getLevelByXp(
|
|
190
|
-
data?.player_data?.experience?.SKILL_FARMING ?? 0,
|
|
191
|
-
'farming',
|
|
192
|
-
data?.m?.jacobs_contest?.perks?.farming_level_cap ?? 0 + 50
|
|
193
|
-
);
|
|
194
|
-
skillsObject.fishing = getLevelByXp(data?.player_data?.experience?.SKILL_FISHING ?? 0, 'fishing');
|
|
195
|
-
skillsObject.mining = getLevelByXp(data?.player_data?.experience?.SKILL_MINING ?? 0, 'mining');
|
|
196
|
-
skillsObject.foraging = getLevelByXp(data?.player_data?.experience?.SKILL_FORAGING ?? 0, 'foraging');
|
|
197
|
-
skillsObject.enchanting = getLevelByXp(data?.player_data?.experience?.SKILL_ENCHANTING ?? 0, 'enchanting');
|
|
198
|
-
skillsObject.alchemy = getLevelByXp(data?.player_data?.experience?.SKILL_ALCHEMY ?? 0, 'alchemy');
|
|
199
|
-
skillsObject.carpentry = getLevelByXp(data?.player_data?.experience?.SKILL_CARPENTRY ?? 0, 'carpentry');
|
|
200
|
-
skillsObject.runecrafting = getLevelByXp(data?.player_data?.experience?.SKILL_RUNECRAFTING ?? 0, 'runecrafting');
|
|
201
|
-
skillsObject.taming = getLevelByXp(data?.player_data?.experience?.SKILL_TAMING ?? 0, 'taming');
|
|
202
|
-
skillsObject.social = getLevelByXp(data?.player_data?.experience?.SKILL_SOCIAL ?? 0, 'social');
|
|
203
|
-
const levels = Object.values(skillsObject)
|
|
204
|
-
.filter((skill) => true !== skill.cosmetic)
|
|
205
|
-
.map((skill) => skill.level);
|
|
206
|
-
skillsObject.average = levels.reduce((a, b) => a + b, 0) / levels.length;
|
|
207
|
-
return skillsObject;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
function formatBestiaryMobs(userProfile, mobs) {
|
|
211
|
-
const output = [];
|
|
212
|
-
for (const mob of mobs) {
|
|
213
|
-
const mobBracket = constants.bestiaryBrackets[mob.bracket];
|
|
214
|
-
|
|
215
|
-
const totalKills = mob.mobs.reduce((acc, cur) => {
|
|
216
|
-
return acc + (userProfile.bestiary.kills[cur] ?? 0);
|
|
217
|
-
}, 0);
|
|
218
|
-
|
|
219
|
-
const maxKills = mob.cap;
|
|
220
|
-
const nextTierKills = mobBracket.find((tier) => totalKills < tier && tier <= maxKills);
|
|
221
|
-
const tier = nextTierKills ? mobBracket.indexOf(nextTierKills) : mobBracket.indexOf(maxKills) + 1;
|
|
222
|
-
|
|
223
|
-
output.push({
|
|
224
|
-
tier: tier
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
return output;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
function getBestiaryLevel(userProfile) {
|
|
232
|
-
try {
|
|
233
|
-
if (userProfile.bestiary?.kills === undefined) {
|
|
234
|
-
return null;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
const output = {};
|
|
238
|
-
let tiersUnlocked = 0;
|
|
239
|
-
for (const [category, data] of Object.entries(constants.bestiary)) {
|
|
240
|
-
const { mobs } = data;
|
|
241
|
-
output[category] = {};
|
|
242
|
-
|
|
243
|
-
if ('fishing' === category) {
|
|
244
|
-
for (const [key, value] of Object.entries(data)) {
|
|
245
|
-
output[category][key] = {
|
|
246
|
-
mobs: formatBestiaryMobs(userProfile, value.mobs)
|
|
247
|
-
};
|
|
248
|
-
tiersUnlocked += output[category][key].mobs.reduce((acc, cur) => acc + cur.tier, 0);
|
|
249
|
-
}
|
|
250
|
-
} else {
|
|
251
|
-
output[category].mobs = formatBestiaryMobs(userProfile, mobs);
|
|
252
|
-
tiersUnlocked += output[category].mobs.reduce((acc, cur) => acc + cur.tier, 0);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
return tiersUnlocked / 10;
|
|
257
|
-
} catch (error) {
|
|
258
|
-
// eslint-disable-next-line no-console
|
|
259
|
-
console.log(error);
|
|
260
|
-
return null;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
function getSlayer(data) {
|
|
265
|
-
if (!data?.slayer?.slayer_bosses) return;
|
|
266
|
-
return {
|
|
267
|
-
zombie: getSlayerLevel(data?.slayer?.slayer_bosses?.zombie),
|
|
268
|
-
spider: getSlayerLevel(data?.slayer?.slayer_bosses?.spider),
|
|
269
|
-
wolf: getSlayerLevel(data?.slayer?.slayer_bosses?.wolf),
|
|
270
|
-
enderman: getSlayerLevel(data?.slayer?.slayer_bosses?.enderman),
|
|
271
|
-
blaze: getSlayerLevel(data?.slayer?.slayer_bosses?.blaze),
|
|
272
|
-
vampire: getSlayerLevel(data?.slayer?.slayer_bosses?.vampire)
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
function getScore(points) {
|
|
277
|
-
if (1000 <= points) {
|
|
278
|
-
return 'S';
|
|
279
|
-
} else if (800 <= points) {
|
|
280
|
-
return 'A';
|
|
281
|
-
} else if (600 <= points) {
|
|
282
|
-
return 'B';
|
|
283
|
-
} else if (400 <= points) {
|
|
284
|
-
return 'C';
|
|
285
|
-
} else if (200 <= points) {
|
|
286
|
-
return 'D';
|
|
287
|
-
}
|
|
288
|
-
return 'F';
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
function getBelt(points) {
|
|
292
|
-
if (7000 <= points) {
|
|
293
|
-
return 'Black';
|
|
294
|
-
} else if (6000 <= points) {
|
|
295
|
-
return 'Brown';
|
|
296
|
-
} else if (4000 <= points) {
|
|
297
|
-
return 'Blue';
|
|
298
|
-
} else if (2000 <= points) {
|
|
299
|
-
return 'Green';
|
|
300
|
-
} else if (1000 <= points) {
|
|
301
|
-
return 'Yellow';
|
|
302
|
-
}
|
|
303
|
-
return 'White';
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
function getCrimson(data) {
|
|
307
|
-
return {
|
|
308
|
-
faction: data?.nether_island_player_data?.selected_faction || null,
|
|
309
|
-
reputation: {
|
|
310
|
-
barbarians: data?.nether_island_player_data?.barbarians_reputation ?? 0,
|
|
311
|
-
mages: data?.nether_island_player_data?.mages_reputation ?? 0
|
|
312
|
-
},
|
|
313
|
-
trophyFish: {
|
|
314
|
-
rank: getTrophyFishRank((data?.trophy_fish?.rewards ?? [])?.length),
|
|
315
|
-
caught: {
|
|
316
|
-
total: data?.trophy_fish?.total_caught ?? 0,
|
|
317
|
-
bronze: Object.keys(data?.trophy_fish ?? {}).filter((key) => key.endsWith('_bronze'))?.length,
|
|
318
|
-
silver: Object.keys(data?.trophy_fish ?? {}).filter((key) => key.endsWith('_silver'))?.length,
|
|
319
|
-
gold: Object.keys(data?.trophy_fish ?? {}).filter((key) => key.endsWith('_gold'))?.length,
|
|
320
|
-
diamond: Object.keys(data?.trophy_fish ?? {}).filter((key) => key.endsWith('_diamond'))?.length
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
dojo: {
|
|
324
|
-
belt: getBelt(
|
|
325
|
-
Object.keys(data?.nether_island_player_data?.dojo ?? {})
|
|
326
|
-
.filter((key) => key?.startsWith('dojo_points'))
|
|
327
|
-
.reduce((acc, key) => acc + (data?.nether_island_player_data?.dojo[key] ?? 0), 0)
|
|
328
|
-
),
|
|
329
|
-
force: {
|
|
330
|
-
points: data?.nether_island_player_data?.dojo?.dojo_points_mob_kb ?? 0,
|
|
331
|
-
rank: getScore(data?.nether_island_player_data?.dojo?.dojo_points_mob_kb ?? 0)
|
|
332
|
-
},
|
|
333
|
-
stamina: {
|
|
334
|
-
points: data?.nether_island_player_data?.dojo?.dojo_points_wall_jump ?? 0,
|
|
335
|
-
rank: getScore(data?.nether_island_player_data?.dojo?.dojo_points_wall_jump ?? 0)
|
|
336
|
-
},
|
|
337
|
-
mastery: {
|
|
338
|
-
points: data?.nether_island_player_data?.dojo?.dojo_points_archer ?? 0,
|
|
339
|
-
rank: getScore(data?.nether_island_player_data?.dojo?.dojo_points_archer ?? 0)
|
|
340
|
-
},
|
|
341
|
-
discipline: {
|
|
342
|
-
points: data?.nether_island_player_data?.dojo?.dojo_points_sword_swap ?? 0,
|
|
343
|
-
rank: getScore(data?.nether_island_player_data?.dojo?.dojo_points_sword_swap ?? 0)
|
|
344
|
-
},
|
|
345
|
-
swiftness: {
|
|
346
|
-
points: data?.nether_island_player_data?.dojo?.dojo_points_snake ?? 0,
|
|
347
|
-
rank: getScore(data?.nether_island_player_data?.dojo?.dojo_points_snake ?? 0)
|
|
348
|
-
},
|
|
349
|
-
control: {
|
|
350
|
-
points: data?.nether_island_player_data?.dojo?.dojo_points_lock_head ?? 0,
|
|
351
|
-
rank: getScore(data?.nether_island_player_data?.dojo?.dojo_points_lock_head ?? 0)
|
|
352
|
-
},
|
|
353
|
-
tenacity: {
|
|
354
|
-
points: data?.nether_island_player_data?.dojo?.dojo_points_fireball ?? 0,
|
|
355
|
-
rank: getScore(data?.nether_island_player_data?.dojo?.dojo_points_fireball ?? 0)
|
|
356
|
-
}
|
|
357
|
-
},
|
|
358
|
-
kuudra: {
|
|
359
|
-
none: data?.nether_island_player_data?.kuudra_completed_tiers?.none ?? 0,
|
|
360
|
-
hot: data?.nether_island_player_data?.kuudra_completed_tiers?.hot ?? 0,
|
|
361
|
-
burning: data?.nether_island_player_data?.kuudra_completed_tiers?.burning ?? 0,
|
|
362
|
-
fiery: data?.nether_island_player_data?.kuudra_completed_tiers?.fiery ?? 0,
|
|
363
|
-
highestWaveHot: data?.nether_island_player_data?.kuudra_completed_tiers?.highest_wave_hot ?? 0,
|
|
364
|
-
highestWaveFiery: data?.nether_island_player_data?.kuudra_completed_tiers?.highest_wave_fiery ?? 0,
|
|
365
|
-
infernal: data?.nether_island_player_data?.kuudra_completed_tiers?.infernal ?? 0,
|
|
366
|
-
highestWaveInfernal: data?.nether_island_player_data?.kuudra_completed_tiers?.highest_wave_infernal ?? 0,
|
|
367
|
-
highestWaveBurning: data?.nether_island_player_data?.kuudra_completed_tiers?.highest_wave_burning ?? 0
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
function getCompletions(data) {
|
|
373
|
-
const completions = {
|
|
374
|
-
total: 0
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
for (const tier in data) {
|
|
378
|
-
if ('total' === tier) continue;
|
|
379
|
-
completions[`Floor_${tier}`] = data[tier];
|
|
380
|
-
completions.total += data[tier];
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
return completions;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
function getDungeonsFloor(data, type, floor) {
|
|
387
|
-
return {
|
|
388
|
-
fastestRun: (data?.dungeons?.dungeon_types?.[type]?.best_runs?.[floor] ?? []).sort(
|
|
389
|
-
(a, b) => a?.elapsed_time - b?.elapsed_time
|
|
390
|
-
)[0],
|
|
391
|
-
fastestSRun: (data?.dungeons?.dungeon_types?.[type]?.best_runs?.[floor] ?? [])
|
|
392
|
-
.filter((run) => 270 >= run?.score_exploration + run?.score_speed + run?.score_skill + run?.score_bonus)
|
|
393
|
-
.sort((a, b) => a?.elapsed_time - b?.elapsed_time)[0],
|
|
394
|
-
fastestSPlusRun: (data?.dungeons?.dungeon_types?.[type]?.best_runs?.[floor] ?? [])
|
|
395
|
-
.filter((run) => 300 >= run?.score_exploration + run?.score_speed + run?.score_skill + run?.score_bonus)
|
|
396
|
-
.sort((a, b) => a?.elapsed_time - b?.elapsed_time)[0],
|
|
397
|
-
completions: data?.dungeonXp?.dungeon_types?.[type]?.tier_completions[floor] ?? 0
|
|
398
|
-
};
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
function getDungeons(data) {
|
|
402
|
-
return {
|
|
403
|
-
experience: getLevelByXp(data?.dungeons?.dungeon_types?.catacombs?.experience ?? 0, 'dungeons'),
|
|
404
|
-
secrets: data?.dungeons?.secrets ?? 0,
|
|
405
|
-
completions: {
|
|
406
|
-
catacombs: getCompletions(data?.dungeons?.dungeon_types?.catacombs?.tier_completions),
|
|
407
|
-
masterCatacombs: getCompletions(data?.dungeons?.dungeon_types?.master_catacombs?.tier_completions)
|
|
408
|
-
},
|
|
409
|
-
floors: {
|
|
410
|
-
entrance: getDungeonsFloor(data, 'catacombs', '0'),
|
|
411
|
-
floor1: getDungeonsFloor(data, 'catacombs', '1'),
|
|
412
|
-
floor2: getDungeonsFloor(data, 'catacombs', '2'),
|
|
413
|
-
floor3: getDungeonsFloor(data, 'catacombs', '3'),
|
|
414
|
-
floor4: getDungeonsFloor(data, 'catacombs', '4'),
|
|
415
|
-
floor5: getDungeonsFloor(data, 'catacombs', '5'),
|
|
416
|
-
floor6: getDungeonsFloor(data, 'catacombs', '6'),
|
|
417
|
-
floor7: getDungeonsFloor(data, 'catacombs', '7'),
|
|
418
|
-
masterCatacombs1: getDungeonsFloor(data, 'master_catacombs', '1'),
|
|
419
|
-
masterCatacombs2: getDungeonsFloor(data, 'master_catacombs', '2'),
|
|
420
|
-
masterCatacombs3: getDungeonsFloor(data, 'master_catacombs', '3'),
|
|
421
|
-
masterCatacombs4: getDungeonsFloor(data, 'master_catacombs', '4'),
|
|
422
|
-
masterCatacombs5: getDungeonsFloor(data, 'master_catacombs', '5'),
|
|
423
|
-
masterCatacombs6: getDungeonsFloor(data, 'master_catacombs', '6'),
|
|
424
|
-
masterCatacombs7: getDungeonsFloor(data, 'master_catacombs', '7')
|
|
425
|
-
},
|
|
426
|
-
classes: {
|
|
427
|
-
healer: getLevelByXp(data?.dungeons?.player_classes?.healer?.experience ?? 0, 'dungeons'),
|
|
428
|
-
mage: getLevelByXp(data?.dungeons?.player_classes?.mage?.experience ?? 0, 'dungeons'),
|
|
429
|
-
berserk: getLevelByXp(data?.dungeons?.player_classes?.berserk?.experience ?? 0, 'dungeons'),
|
|
430
|
-
archer: getLevelByXp(data?.dungeons?.player_classes?.archer?.experience ?? 0, 'dungeons'),
|
|
431
|
-
tank: getLevelByXp(data?.dungeons?.player_classes?.tank?.experience ?? 0, 'dungeons'),
|
|
432
|
-
selected: data?.dungeons?.selected_dungeon_class ?? 'mage'
|
|
433
|
-
},
|
|
434
|
-
essence: {
|
|
435
|
-
diamond: data?.currencies?.essence?.DIAMOND?.current || 0,
|
|
436
|
-
dragon: data?.currencies?.essence?.DRAGON?.current || 0,
|
|
437
|
-
spider: data?.currencies?.essence?.SPIDER?.current || 0,
|
|
438
|
-
wither: data?.currencies?.essence?.WITHER?.current || 0,
|
|
439
|
-
undead: data?.currencies?.essence?.UNDEAD?.current || 0,
|
|
440
|
-
gold: data?.currencies?.essence?.GOLD?.current || 0,
|
|
441
|
-
ice: data?.currencies?.essence?.ICE?.current || 0,
|
|
442
|
-
crimson: data?.currencies?.essence?.CRIMSON?.current || 0
|
|
443
|
-
}
|
|
444
|
-
};
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
function getJacobData(data) {
|
|
448
|
-
if (!data.jacobs_contest) {
|
|
449
|
-
return {
|
|
450
|
-
medals: {
|
|
451
|
-
bronze: 0,
|
|
452
|
-
silver: 0,
|
|
453
|
-
gold: 0
|
|
454
|
-
},
|
|
455
|
-
perks: {
|
|
456
|
-
doubleDrops: 0,
|
|
457
|
-
farmingLevelCap: 0,
|
|
458
|
-
personalBests: false
|
|
459
|
-
},
|
|
460
|
-
contests: {}
|
|
461
|
-
};
|
|
462
|
-
}
|
|
463
|
-
return {
|
|
464
|
-
medals: data.jacobs_contest.medals_inv
|
|
465
|
-
? {
|
|
466
|
-
bronze: data.jacobs_contest.medals_inv.bronze || 0,
|
|
467
|
-
silver: data.jacobs_contest.medals_inv.silver || 0,
|
|
468
|
-
gold: data.jacobs_contest.medals_inv.gold || 0
|
|
469
|
-
}
|
|
470
|
-
: { bronze: 0, silver: 0, gold: 0 },
|
|
471
|
-
perks: data.jacobs_contest.perks
|
|
472
|
-
? {
|
|
473
|
-
doubleDrops: data.jacobs_contest.perks.double_drops || 0,
|
|
474
|
-
farmingLevelCap: data.jacobs_contest.perks.farming_level_cap || 0,
|
|
475
|
-
personalBests: data.jacobs_contest.perks.personal_bests || false
|
|
476
|
-
}
|
|
477
|
-
: { doubleDrops: 0, farmingLevelCap: 0, personalBests: false },
|
|
478
|
-
contests: data.jacobs_contest.contests || {}
|
|
479
|
-
};
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
function getChocolateFactory(data) {
|
|
483
|
-
if (!data?.events?.easter) {
|
|
484
|
-
return {
|
|
485
|
-
employees: {
|
|
486
|
-
bro: 0,
|
|
487
|
-
cousin: 0,
|
|
488
|
-
sis: 0,
|
|
489
|
-
father: 0,
|
|
490
|
-
grandma: 0,
|
|
491
|
-
dog: 0,
|
|
492
|
-
uncle: 0
|
|
493
|
-
},
|
|
494
|
-
chocolate: {
|
|
495
|
-
current: 0,
|
|
496
|
-
total: 0,
|
|
497
|
-
sincePrestige: 0
|
|
498
|
-
},
|
|
499
|
-
timeTower: {
|
|
500
|
-
charges: 0,
|
|
501
|
-
level: 0
|
|
502
|
-
},
|
|
503
|
-
upgrades: {
|
|
504
|
-
click: 0,
|
|
505
|
-
multiplier: 0,
|
|
506
|
-
rabbitRarity: 0
|
|
507
|
-
},
|
|
508
|
-
goldenClick: {
|
|
509
|
-
amount: 0,
|
|
510
|
-
year: 0
|
|
511
|
-
},
|
|
512
|
-
barnCapacity: 0,
|
|
513
|
-
prestige: 0
|
|
514
|
-
};
|
|
515
|
-
}
|
|
516
|
-
return {
|
|
517
|
-
employees: {
|
|
518
|
-
bro: data?.events?.easter?.employees?.rabbit_bro || 0,
|
|
519
|
-
cousin: data?.events?.easter?.employees?.rabbit_cousin || 0,
|
|
520
|
-
sis: data?.events?.easter?.employees?.rabbit_sis || 0,
|
|
521
|
-
father: data?.events?.easter?.employees?.rabbit_father || 0,
|
|
522
|
-
grandma: data?.events?.easter?.employees?.rabbit_grandma || 0,
|
|
523
|
-
dog: data?.events?.easter?.employees?.rabbit_dog || 0,
|
|
524
|
-
uncle: data?.events?.easter?.employees?.rabbit_uncle || 0
|
|
525
|
-
},
|
|
526
|
-
chocolate: {
|
|
527
|
-
current: data?.events?.easter?.chocolate || 0,
|
|
528
|
-
total: data?.events?.easter?.total_chocolate || 0,
|
|
529
|
-
sincePrestige: data?.events?.easter?.chocolate_since_prestige || 0
|
|
530
|
-
},
|
|
531
|
-
timeTower: {
|
|
532
|
-
charges: data?.events?.easter?.time_tower?.charges || 0,
|
|
533
|
-
level: data?.events?.easter?.time_tower?.level || 0
|
|
534
|
-
},
|
|
535
|
-
upgrades: {
|
|
536
|
-
click: data?.events?.easter?.click_upgrades || 0,
|
|
537
|
-
multiplier: data?.events?.easter?.chocolate_multiplier_upgrades || 0,
|
|
538
|
-
rabbitRarity: data?.events?.easter?.rabbit_rarity_upgrades || 0
|
|
539
|
-
},
|
|
540
|
-
goldenClick: {
|
|
541
|
-
amount: data?.events?.easter?.golden_click_amount || 0,
|
|
542
|
-
year: data?.events?.easter?.golden_click_year || 0
|
|
543
|
-
},
|
|
544
|
-
barnCapacity: data?.events?.easter?.rabbit_barn_capacity_level || 0,
|
|
545
|
-
prestige: data?.events?.easter?.chocolate_level || 0
|
|
546
|
-
};
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
function getPetLevel(petExp, offsetRarity, maxLevel) {
|
|
550
|
-
const rarityOffset = constants.petRarityOffset[offsetRarity];
|
|
551
|
-
const levels = constants.petLevels.slice(rarityOffset, rarityOffset + maxLevel - 1);
|
|
552
|
-
|
|
553
|
-
const xpMaxLevel = levels.reduce((a, b) => a + b, 0);
|
|
554
|
-
let xpTotal = 0;
|
|
555
|
-
let level = 1;
|
|
556
|
-
|
|
557
|
-
let xpForNext;
|
|
558
|
-
|
|
559
|
-
for (let i = 0; i < maxLevel; i++) {
|
|
560
|
-
xpTotal += levels[i];
|
|
561
|
-
|
|
562
|
-
if (xpTotal > petExp) {
|
|
563
|
-
xpTotal -= levels[i];
|
|
564
|
-
break;
|
|
565
|
-
} else {
|
|
566
|
-
level++;
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
let xpCurrent = Math.floor(petExp - xpTotal);
|
|
571
|
-
let progress;
|
|
572
|
-
|
|
573
|
-
if (level < maxLevel) {
|
|
574
|
-
xpForNext = Math.ceil(levels[level - 1]);
|
|
575
|
-
progress = Math.max(0, Math.min(xpCurrent / xpForNext, 1));
|
|
576
|
-
} else {
|
|
577
|
-
level = maxLevel;
|
|
578
|
-
xpCurrent = petExp - levels[maxLevel - 1];
|
|
579
|
-
xpForNext = 0;
|
|
580
|
-
progress = 1;
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
return {
|
|
584
|
-
level,
|
|
585
|
-
xpCurrent,
|
|
586
|
-
xpForNext,
|
|
587
|
-
progress,
|
|
588
|
-
xpMaxLevel
|
|
589
|
-
};
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
function parseRarity(stringContainingRarity) {
|
|
593
|
-
const rarityArray = [
|
|
594
|
-
'COMMON',
|
|
595
|
-
'UNCOMMON',
|
|
596
|
-
'RARE',
|
|
597
|
-
'EPIC',
|
|
598
|
-
'LEGENDARY',
|
|
599
|
-
'MYTHIC',
|
|
600
|
-
'DIVINE',
|
|
601
|
-
'SPECIAL',
|
|
602
|
-
'VERY SPECIAL'
|
|
603
|
-
];
|
|
604
|
-
for (const rarity of rarityArray) {
|
|
605
|
-
if (stringContainingRarity.includes(rarity)) return rarity;
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
function parseGearScore(lore) {
|
|
610
|
-
for (const line of lore) {
|
|
611
|
-
if (line.match(/Gear Score: §[0-9a-f](\d+)/)) return Number(line.match(/Gear Score: §d(\d+)/)[1]);
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
function populateGoals(achieved, all) {
|
|
616
|
-
const populatedAchieved = [];
|
|
617
|
-
const unachieved = [];
|
|
618
|
-
for (const goal of all) {
|
|
619
|
-
if (achieved.find((str) => str === goal.name)) populatedAchieved.push(goal);
|
|
620
|
-
else unachieved.push(goal);
|
|
621
|
-
}
|
|
622
|
-
populatedAchieved.unachievedGoals = unachieved;
|
|
623
|
-
return populatedAchieved;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
function getHOTM(data) {
|
|
627
|
-
return {
|
|
628
|
-
experience: getLevelByXp(data.mining_core?.experience, 'hotm'),
|
|
629
|
-
ability: data.mining_core?.selected_pickaxe_ability || 'none',
|
|
630
|
-
powder: {
|
|
631
|
-
mithril: {
|
|
632
|
-
spent: data?.mining_core?.powder_spent_mithril || 0,
|
|
633
|
-
current: data?.mining_core?.powder_mithril || 0,
|
|
634
|
-
total: data?.mining_core?.powder_spent_mithril || 0 + data?.mining_core?.powder_mithril || 0
|
|
635
|
-
},
|
|
636
|
-
gemstone: {
|
|
637
|
-
spent: data?.mining_core?.powder_spent_gemstone || 0,
|
|
638
|
-
current: data?.mining_core?.powder_gemstone || 0,
|
|
639
|
-
total: data?.mining_core?.powder_spent_gemstone || 0 + data?.mining_core?.powder_gemstone || 0
|
|
640
|
-
},
|
|
641
|
-
glacite: {
|
|
642
|
-
spent: data?.mining_core?.powder_spent_glacite || 0,
|
|
643
|
-
current: data?.mining_core?.powder_glacite || 0,
|
|
644
|
-
total: data?.mining_core?.powder_spent_glacite || 0 + data?.mining_core?.powder_glacite || 0
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
module.exports = {
|
|
651
|
-
decode,
|
|
652
|
-
getLevelByXp,
|
|
653
|
-
getMemberStats,
|
|
654
|
-
getTrophyFishRank,
|
|
655
|
-
getSkills,
|
|
656
|
-
getBestiaryLevel,
|
|
657
|
-
getSlayer,
|
|
658
|
-
getCrimson,
|
|
659
|
-
getDungeons,
|
|
660
|
-
getJacobData,
|
|
661
|
-
getChocolateFactory,
|
|
662
|
-
getPetLevel,
|
|
663
|
-
parseRarity,
|
|
664
|
-
parseGearScore,
|
|
665
|
-
populateGoals,
|
|
666
|
-
getHOTM
|
|
667
|
-
};
|
package/src/utils/arrayTools.js
DELETED
package/src/utils/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
arrayTool: require('./arrayTools'),
|
|
3
|
-
Constants: require('./Constants'),
|
|
4
|
-
divide: require('./divide'),
|
|
5
|
-
guild: require('./Guild'),
|
|
6
|
-
isGuildID: require('./isGuildID'),
|
|
7
|
-
isUUID: require('./isUUID'),
|
|
8
|
-
oscillation: require('./oscillation'),
|
|
9
|
-
player: require('./Player'),
|
|
10
|
-
removeSnakeCase: require('./removeSnakeCase'),
|
|
11
|
-
SkyblockUtils: require('./SkyblockUtils'),
|
|
12
|
-
toUuid: require('./toUuid'),
|
|
13
|
-
varInt: require('./varInt')
|
|
14
|
-
};
|
package/src/utils/isGuildID.js
DELETED
package/src/utils/oscillation.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// See https://github.com/HypixelDev/PublicAPI/blob/db26b5fd3b7bb29da14e40e6d211143ec44a4519/Documentation/misc/Oscillation.md
|
|
2
|
-
// Month oscillation started in December 2014, so every month that is pair ( odd in js!! ) is month A
|
|
3
|
-
// Weekly oscillation started... just refer to the code in the docs
|
|
4
|
-
|
|
5
|
-
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
6
|
-
function monthAB(date = Date.now()) {
|
|
7
|
-
return new Date(date).getMonth() % 2 ? 'a' : 'b';
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const weeklyOscillationStart = 1417237200000;
|
|
11
|
-
|
|
12
|
-
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
13
|
-
function weekAB(date = Date.now()) {
|
|
14
|
-
return (Math.abs(new Date(date).getTime() - weeklyOscillationStart) / 604800000) % 2 ? 'a' : 'b';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
module.exports = { monthAB, weekAB };
|