Skip to content

Commit

Permalink
Fix docgen
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Aug 27, 2024
1 parent f4beacb commit 9c1f76e
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/structures/MiniGames/WoolGames.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,14 @@ class SheepWars {
}
}

/**
* WoolGames Stats
*/
class WoolGames {
/**
* Constructor
* @param {Record<string, unknown>} data Data from API
*/
constructor(data) {
/**
* Layers
Expand All @@ -321,17 +328,17 @@ class WoolGames {
*/
this.xp = data?.progression?.experience || 0;
/**
* exactLevel
* Exact Level
* @type {number}
*/
this.exactLevel = this.convertXPToLevel(this.xp);
/**
* level
* Level
* @type {number}
*/
this.level = Math?.floor(this.exactLevel);
/**
* coins
* Coins
* @type {number}
*/
this.coins = data?.coins || 0;
Expand All @@ -342,7 +349,7 @@ class WoolGames {
this.ownedCosmetics = data?.packages || [];
/**
* Private Games Config
* @type {number}
* @type {WoolGamesPrivateGamesConfig}
*/
this.privateGamesConfig = data?.privategames || {};
/**
Expand Down Expand Up @@ -385,7 +392,7 @@ class WoolGames {
}

/**
* @typedef {object} SkyblockMemberHotm
* @typedef {object} WoolGamesPrivateGamesConfig
* @property {boolean} one_hit_one_kill one hit one kill
* @property {'Enabled' | 'Disabled'} rainbow_wool rainbow wool
* @property {string} health_buff health buff
Expand Down

0 comments on commit 9c1f76e

Please sign in to comment.