Skip to content

Commit

Permalink
LootChest Removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Feb 19, 2024
1 parent cb55962 commit 0091ffe
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 52 deletions.
26 changes: 2 additions & 24 deletions src/structures/MiniGames/BedWars.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ class BedWars {
*/
constructor(data) {
/**
* Coins
* Tokens
* @type {number}
*/
this.coins = data.coins || 0;
this.tokens = data.coins || 0;
/**
* Level
* @type {number}
Expand Down Expand Up @@ -110,19 +110,6 @@ class BedWars {
diamond: data.diamond_resources_collected_bedwars || 0,
emerald: data.emerald_resources_collected_bedwars || 0
};
/**
* Loot chests
* @type {BedWarsLootChests}
*/
this.lootChests = {
christmas: data.bedwars_christmas_boxes || 0,
lunar: data.bedwars_lunar_boxes || 0,
normal: data.bedwars_boxes || 0,
easter: data.bedwars_easter_boxes || 0,
halloween: data.bedwars_halloween_boxes || 0,
golden: data.bedwars_golden_boxes || 0,
total: data.bedwars_christmas_boxes + data.bedwars_lunar_boxes + data.bedwars_boxes + data.bedwars_easter_boxes + data.bedwars_halloween_boxes + data.bedwars_golden_boxes || 0
};
/**
* Beds lost/broken/BL Ratio
* @type {BedWarsBeds}
Expand Down Expand Up @@ -376,15 +363,6 @@ function getLevelForExp(exp) {
* @property {number} diamond Diamond
* @property {number} emerald Emerald
*/
/**
* @typedef {object} BedWarsLootChests
* @property {number} christmas Christmas chests
* @property {number} halloween Halloween chests
* @property {number} easter Easter chests
* @property {number} christmas Christmas chests
* @property {number} golden Golden chests
* @property {number} normal Normal chests
*/
/**
* @typedef {object} BedWarsBeds
* @property {number} lost Beds lost
Expand Down
4 changes: 2 additions & 2 deletions src/structures/MiniGames/Duels.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ class Duels {
*/
constructor(data) {
/**
* Coins
* Tokens
* @type {number}
*/
this.coins = data.coins || 0;
this.tokens = data.coins || 0;
/**
* All modes division
* @type {string|null}
Expand Down
4 changes: 2 additions & 2 deletions src/structures/MiniGames/MurderMystery.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ class MurderMystery {
*/
constructor(data) {
/**
* Coins
* Tokens
* @type {number}
*/
this.coins = data.coins || 0;
this.tokens = data.coins || 0;
/**
* Played games
* @type {number}
Expand Down
10 changes: 0 additions & 10 deletions src/structures/MiniGames/SkyWars.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,6 @@ class SkyWars {
* @type {number}
*/
this.wins = data.wins || 0;
/**
* Loot Chests
* @type {number}
*/
this.lootChests = data.skywars_chests || 0;
/**
* Opened Loot Chests
* @type {number}
*/
this.openedLootChests = data.SkyWars_openedChests || 0;
/**
* Heads
* @type {number}
Expand Down
17 changes: 3 additions & 14 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2348,8 +2348,6 @@ declare module 'hypixel-api-reborn' {
losses: number;
deaths: number;
wins: number;
lootChests: number;
openedLootChests: number;
heads: number;
experience: number;
level: number;
Expand Down Expand Up @@ -2511,7 +2509,7 @@ declare module 'hypixel-api-reborn' {
}
class BedWars {
constructor(data: Record<string, unknown>);
coins: number;
tokens: number;
level: number;
experience: number;
prestige: BEDWARS_PRESTIGE;
Expand Down Expand Up @@ -2656,15 +2654,6 @@ declare module 'hypixel-api-reborn' {
KDRatio: number;
WLRatio: number;
finalKDRatio: number;
lootChests: {
christmas: number;
lunar: number;
normal: number;
easter: number;
halloween: number;
golden: number;
total: number;
};
dream: {
ultimate: {
doubles: {
Expand Down Expand Up @@ -3022,7 +3011,7 @@ declare module 'hypixel-api-reborn' {
}
class MurderMystery {
constructor(data: Record<string, unknown>);
coins: number;
tokens: number;
playedGames: number;
kills: number;
deaths: number;
Expand Down Expand Up @@ -3053,7 +3042,7 @@ declare module 'hypixel-api-reborn' {
}
class Duels {
division?: string;
coins: number;
tokens: number;
kills: number;
deaths: number;
KDRatio: number;
Expand Down

0 comments on commit 0091ffe

Please sign in to comment.