Skip to content

Commit

Permalink
feat(WoolGames): Move WoolWars into WoolGames
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Aug 27, 2024
1 parent ddbe783 commit 68961b7
Show file tree
Hide file tree
Showing 8 changed files with 478 additions and 306 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module.exports = {
VampireZ: require('./structures/MiniGames/VampireZ.js'),
Walls: require('./structures/MiniGames/Walls.js'),
Warlords: require('./structures/MiniGames/Warlords.js'),
WoolWars: require('./structures/MiniGames/WoolWars.js'),
WoolGames: require('./structures/MiniGames/WoolGames.js'),

/* Leaderboards */
Leaderboard: require('./structures/Leaderboard.js'),
Expand Down
72 changes: 0 additions & 72 deletions src/structures/MiniGames/Arcade.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,73 +240,6 @@ class BountyHunters {
this.swordKills = data.sword_kills_oneinthequiver || 0;
}
}
/**
* Capture the Wool class
*/
class CaptureTheWool {
constructor(data) {
/**
* Wins
* @type {number}
*/
this.wins = data.woolhunt_participated_wins || 0;
/**
* Losses
* @type {number}
*/
this.losses = data.woolhunt_participated_losses || 0;
/**
* Win Loss ratio
* @type {number}
*/
this.WLRatio = divide(this.wins, this.losses);
/**
* Draws
* @type {number}
*/
this.draws = data.woolhunt_participated_draws || 0;
/**
* Kills
* @type {number}
*/
this.kills = data.woolhunt_kills || 0;
/**
* Deaths
* @type {number}
*/
this.deaths = data.woolhunt_deaths || 0;
/**
* Kill Death ratio
* @type {number}
*/
this.KDRatio = divide(this.kills, this.deaths);
/**
* assists
* @type {number}
*/
this.assists = data.woolhunt_assists || 0;
/**
* woolPickedUp
* @type {number}
*/
this.woolPickedUp = data.woolhunt_wools_stolen || 0;
/**
* woolCaptured
* @type {number}
*/
this.woolCaptured = data.woolhunt_wools_captured || 0;
/**
* fastestWin (In seconds)
* @type {number}
*/
this.fastestWin = data.woolhunt_fastest_win || 0;
/**
* longestGame (In seconds)
* @type {number}
*/
this.longestGame = data.woolhunt_longest_game || 0;
}
}
/**
* Dragon Wars class
*/
Expand Down Expand Up @@ -977,11 +910,6 @@ class Arcade {
* @type {BountyHunters}
*/
this.bountyHunters = new BountyHunters(data);
/**
* Capture The Wool
* @type {CaptureTheWool}
*/
this.captureTheWool = new CaptureTheWool(data);
/**
* Dragon wars stats
* @type {DragonWars}
Expand Down
Loading

0 comments on commit 68961b7

Please sign in to comment.