Skip to content

Commit 35899bb

Browse files
authored
Merge pull request #195 from itsPincha/master
Added missing games
2 parents 8e27b7c + 759454d commit 35899bb

File tree

9 files changed

+3218
-7118
lines changed

9 files changed

+3218
-7118
lines changed

package-lock.json

Lines changed: 218 additions & 4532 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

Lines changed: 83 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,83 @@
1-
module.exports = {
2-
Client: require('./Client.js'),
3-
version: require('../package.json').version,
4-
5-
/* API Status */
6-
APIStatus: require('./structures/APIStatus.js'),
7-
APIIncident: require('./structures/APIIncident.js'),
8-
9-
Player: require('./structures/Player.js'),
10-
Game: require('./structures/Game.js'),
11-
Friend: require('./structures/Friend.js'),
12-
Status: require('./structures/Status.js'),
13-
Color: require('./structures/Color.js'),
14-
KeyInfo: require('./structures/KeyInfo.js'),
15-
Pet: require('./structures/Pet'),
16-
Pets: require('./structures/Pets'),
17-
PlayerCosmetics: require('./structures/PlayerCosmetics'),
18-
19-
/* Watchdog */
20-
WatchdogStats: require('./structures/Watchdog/Stats.js'),
21-
22-
/* Guild */
23-
Guild: require('./structures/Guild/Guild.js'),
24-
GuildMember: require('./structures/Guild/GuildMember.js'),
25-
GuildRank: require('./structures/Guild/GuildRank.js'),
26-
27-
/* SkyBlock */
28-
SkyblockProfile: require('./structures/SkyBlock/SkyblockProfile.js'),
29-
SkyblockMember: require('./structures/SkyBlock/SkyblockMember.js'),
30-
SkyblockInventoryItem: require('./structures/SkyBlock/SkyblockInventoryItem.js'),
31-
SkyblockPet: require('./structures/SkyBlock/SkyblockPet'),
32-
33-
/* Skyblock Auctions */
34-
BaseAuction: require('./structures/SkyBlock/Auctions/BaseAuction.js'),
35-
PartialAuction: require('./structures/SkyBlock/Auctions/PartialAuction.js'),
36-
Auction: require('./structures/SkyBlock/Auctions/Auction.js'),
37-
AuctionInfo: require('./structures/SkyBlock/Auctions/AuctionInfo.js'),
38-
Bid: require('./structures/SkyBlock/Auctions/Bid.js'),
39-
40-
/* Skyblock Bazaar */
41-
Product: require('./structures/SkyBlock/Bazzar/Product.js'),
42-
Order: require('./structures/SkyBlock/Bazzar/Order.js'),
43-
44-
/** Skyblock News */
45-
SkyblockNews: require('./structures/SkyBlock/News/SkyblockNews'),
46-
47-
/* Booster */
48-
Booster: require('./structures/Boosters/Booster.js'),
49-
50-
/* MiniGames */
51-
Arcade: require('./structures/MiniGames/Arcade.js'),
52-
ArenaBrawl: require('./structures/MiniGames/ArenaBrawl.js'),
53-
BedWars: require('./structures/MiniGames/BedWars.js'),
54-
BlitzSurvivalGames: require('./structures/MiniGames/BlitzSurvivalGames.js'),
55-
BuildBattle: require('./structures/MiniGames/BuildBattle.js'),
56-
CopsAndCrims: require('./structures/MiniGames/CopsAndCrims.js'),
57-
Duels: require('./structures/MiniGames/Duels.js'),
58-
MegaWalls: require('./structures/MiniGames/MegaWalls.js'),
59-
MurderMystery: require('./structures/MiniGames/MurderMystery.js'),
60-
SkyWars: require('./structures/MiniGames/SkyWars.js'),
61-
SmashHeroes: require('./structures/MiniGames/SmashHeroes.js'),
62-
SpeedUHC: require('./structures/MiniGames/SpeedUHC.js'),
63-
TNTGames: require('./structures/MiniGames/TNTGames.js'),
64-
UHC: require('./structures/MiniGames/UHC.js'),
65-
VampireZ: require('./structures/MiniGames/VampireZ.js'),
66-
67-
/* Leaderboards */
68-
Leaderboard: require('./structures/Leaderboard.js'),
69-
70-
/** Server Info */
71-
ServerInfo: require('./structures/ServerInfo'),
72-
73-
/* Errors */
74-
Errors: require('./Errors.js'),
75-
76-
/* Utils */
77-
Utils: require('./utils')
78-
};
1+
module.exports = {
2+
Client: require('./Client.js'),
3+
version: require('../package.json').version,
4+
5+
/* API Status */
6+
APIStatus: require('./structures/APIStatus.js'),
7+
APIIncident: require('./structures/APIIncident.js'),
8+
9+
Player: require('./structures/Player.js'),
10+
Game: require('./structures/Game.js'),
11+
Friend: require('./structures/Friend.js'),
12+
Status: require('./structures/Status.js'),
13+
Color: require('./structures/Color.js'),
14+
KeyInfo: require('./structures/KeyInfo.js'),
15+
Pet: require('./structures/Pet'),
16+
Pets: require('./structures/Pets'),
17+
PlayerCosmetics: require('./structures/PlayerCosmetics'),
18+
19+
/* Watchdog */
20+
WatchdogStats: require('./structures/Watchdog/Stats.js'),
21+
22+
/* Guild */
23+
Guild: require('./structures/Guild/Guild.js'),
24+
GuildMember: require('./structures/Guild/GuildMember.js'),
25+
GuildRank: require('./structures/Guild/GuildRank.js'),
26+
27+
/* SkyBlock */
28+
SkyblockProfile: require('./structures/SkyBlock/SkyblockProfile.js'),
29+
SkyblockMember: require('./structures/SkyBlock/SkyblockMember.js'),
30+
SkyblockInventoryItem: require('./structures/SkyBlock/SkyblockInventoryItem.js'),
31+
SkyblockPet: require('./structures/SkyBlock/SkyblockPet'),
32+
33+
/* Skyblock Auctions */
34+
BaseAuction: require('./structures/SkyBlock/Auctions/BaseAuction.js'),
35+
PartialAuction: require('./structures/SkyBlock/Auctions/PartialAuction.js'),
36+
Auction: require('./structures/SkyBlock/Auctions/Auction.js'),
37+
AuctionInfo: require('./structures/SkyBlock/Auctions/AuctionInfo.js'),
38+
Bid: require('./structures/SkyBlock/Auctions/Bid.js'),
39+
40+
/* Skyblock Bazaar */
41+
Product: require('./structures/SkyBlock/Bazzar/Product.js'),
42+
Order: require('./structures/SkyBlock/Bazzar/Order.js'),
43+
44+
/** Skyblock News */
45+
SkyblockNews: require('./structures/SkyBlock/News/SkyblockNews'),
46+
47+
/* Booster */
48+
Booster: require('./structures/Boosters/Booster.js'),
49+
50+
/* MiniGames */
51+
Arcade: require('./structures/MiniGames/Arcade.js'),
52+
ArenaBrawl: require('./structures/MiniGames/ArenaBrawl.js'),
53+
BedWars: require('./structures/MiniGames/BedWars.js'),
54+
BlitzSurvivalGames: require('./structures/MiniGames/BlitzSurvivalGames.js'),
55+
BuildBattle: require('./structures/MiniGames/BuildBattle.js'),
56+
CopsAndCrims: require('./structures/MiniGames/CopsAndCrims.js'),
57+
Duels: require('./structures/MiniGames/Duels.js'),
58+
MegaWalls: require('./structures/MiniGames/MegaWalls.js'),
59+
MurderMystery: require('./structures/MiniGames/MurderMystery.js'),
60+
Paintball: require('./structures/MiniGames/Paintball.js'),
61+
Quakecraft: require('./structures/MiniGames/Quakecraft.js'),
62+
SkyWars: require('./structures/MiniGames/SkyWars.js'),
63+
SmashHeroes: require('./structures/MiniGames/SmashHeroes.js'),
64+
SpeedUHC: require('./structures/MiniGames/SpeedUHC.js'),
65+
TNTGames: require('./structures/MiniGames/TNTGames.js'),
66+
TurboKartRacers: require('./structures/MiniGames/TurboKartRacers.js'),
67+
UHC: require('./structures/MiniGames/UHC.js'),
68+
VampireZ: require('./structures/MiniGames/VampireZ.js'),
69+
Walls: require('./structures/MiniGames/Walls.js'),
70+
Warlords: require('./structures/MiniGames/Warlords.js'),
71+
72+
/* Leaderboards */
73+
Leaderboard: require('./structures/Leaderboard.js'),
74+
75+
/** Server Info */
76+
ServerInfo: require('./structures/ServerInfo'),
77+
78+
/* Errors */
79+
Errors: require('./Errors.js'),
80+
81+
/* Utils */
82+
Utils: require('./utils')
83+
};
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
const divide = require('../../utils/divide');
2+
/**
3+
* Paintball class
4+
*/
5+
class Paintball {
6+
/**
7+
* @param {object} data Paintball data
8+
*/
9+
constructor (data) {
10+
/**
11+
* Coins
12+
* @type {number}
13+
*/
14+
this.coins = data.coins || 0;
15+
/**
16+
* Kills
17+
* @type {number}
18+
*/
19+
this.kills = data.kills || 0;
20+
/**
21+
* Deaths
22+
* @type {number}
23+
*/
24+
this.deaths = data.deaths || 0;
25+
/**
26+
* Kill Death ratio
27+
* @type {number}
28+
*/
29+
this.KDRatio = divide(this.kills, this.deaths);
30+
/**
31+
* Wins
32+
* @type {number}
33+
*/
34+
this.wins = data.wins || 0;
35+
/**
36+
* Losses
37+
* @type {number}
38+
*/
39+
this.losses = data.losses || 0;
40+
/**
41+
* Win Loss ratio
42+
* @type {number}
43+
*/
44+
this.WLRatio = divide(this.wins, this.losses);
45+
/**
46+
* Shots fired
47+
* @type {number}
48+
*/
49+
this.shotsFired = data.shots_fired || 0;
50+
/**
51+
* Kill streaks
52+
* @type {number}
53+
*/
54+
this.killstreaks = data.killstreaks || 0;
55+
/**
56+
* Forcefield Time
57+
* @type {number}
58+
*/
59+
this.forcefieldTime = data.forcefieldTime || 0;
60+
/**
61+
* Hat
62+
* @type {string}
63+
*/
64+
this.hat = data.hat || 'None';
65+
}
66+
}
67+
module.exports = Paintball;
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
const divide = require('../../utils/divide');
2+
/**
3+
* Quakecraft class
4+
*/
5+
class Quakecraft {
6+
/**
7+
* @param {object} data Quakecraft data
8+
*/
9+
constructor (data) {
10+
/**
11+
* Coins
12+
* @type {number}
13+
*/
14+
this.coins = data.coins || 0;
15+
/**
16+
* Kills
17+
* @type {number}
18+
*/
19+
this.kills = ((data.kills || 0) + (data.kills_teams || 0));
20+
/**
21+
* Deaths
22+
* @type {number}
23+
*/
24+
this.deaths = ((data.deaths || 0) + (data.deaths_teams || 0));
25+
/**
26+
* Kill Death ratio
27+
* @type {number}
28+
*/
29+
this.KDRatio = divide(this.kills, this.deaths);
30+
/**
31+
* Wins
32+
* @type {number}
33+
*/
34+
this.wins = ((data.wins || 0) + (data.wins_teams || 0));
35+
/**
36+
* Distance travelled
37+
* @type {number}
38+
*/
39+
this.distanceTravelled = (data.distance_travelled + data.distance_travelled_teams) || 0;
40+
/**
41+
* Headshots
42+
* @type {number}
43+
*/
44+
this.headshots = ((data.headshots || 0) + (data.headshots_teams || 0));
45+
/**
46+
* Shots fired
47+
* @type {number}
48+
*/
49+
this.shotsFired = ((data.shots_fired || 0) + (data.shots_fired_teams || 0));
50+
/**
51+
* Kill streaks
52+
* @type {number}
53+
*/
54+
this.killstreaks = ((data.killstreaks || 0) + (data.killstreaks_teams || 0));
55+
/**
56+
* Highest killstreak
57+
* @type {number}
58+
*/
59+
this.highestKillstreak = data.highest_killstreak || 0;
60+
/**
61+
* Solo
62+
* @type {QuakecraftModeStats}
63+
*/
64+
this.solo = {
65+
kills: data.kills || 0,
66+
deaths: data.deaths|| 0,
67+
KDRatio: divide((data.kills), (data.deaths)),
68+
wins: data.wins || 0,
69+
distanceTravelled: data.distance_travelled || 0,
70+
headshots: data.headshots || 0,
71+
shotsFired: data.shots_fired || 0,
72+
killstreaks: data.killstreaks || 0
73+
};
74+
/**
75+
* Teams
76+
* @type {QuakecraftModeStats}
77+
*/
78+
this.teams = {
79+
kills: data.kills_teams || 0,
80+
deaths: data.deaths_teams || 0,
81+
KDRatio: divide(data.kills_teams, data.deaths_teams),
82+
wins: data.wins_teams || 0,
83+
distanceTravelled: data.distance_travelled_teams || 0,
84+
headshots: data.headshots_teams || 0,
85+
shotsFired: data.shots_fired_teams || 0,
86+
killstreaks: data.killstreaks_teams || 0
87+
};
88+
}
89+
}
90+
module.exports = Quakecraft;
91+
/**
92+
* @typedef {object} QuakecraftModeStats
93+
* @property {number} kills Kills
94+
* @property {number} deaths Deaths
95+
* @property {number} KDRatio Kill Death ratio
96+
* @property {number} wins Wins
97+
* @property {number} distanceTravelled Distance travelled
98+
* @property {number} headshots Headshots
99+
* @property {number} killstreaks Killstreaks
100+
* @property {number} shotsFired Shots fired
101+
*/
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/**
2+
* TurboKartRacers class
3+
*/
4+
class TurboKartRacers {
5+
/**
6+
* @param {object} data TurboKartRacers data
7+
*/
8+
constructor (data) {
9+
/**
10+
* Coins
11+
* @type {number}
12+
*/
13+
this.coins = data.coins || 0;
14+
/**
15+
* Wins
16+
* @type {number}
17+
*/
18+
this.wins = data.wins || 0;
19+
/**
20+
* Completed laps
21+
* @type {number}
22+
*/
23+
this.completedLaps = data.laps_completed || 0;
24+
/**
25+
* Bronze trophies
26+
* @type {number}
27+
*/
28+
this.bronzeTrophies = data.bronze_trophy || 0;
29+
/**
30+
* Silver trophies
31+
* @type {number}
32+
*/
33+
this.silverTrophies = data.silver_trophy || 0;
34+
/**
35+
* Gold trophies
36+
* @type {number}
37+
*/
38+
this.goldTrophies = data.gold_trophy || 0;
39+
/**
40+
* Box pickups
41+
* @type {number}
42+
*/
43+
this.boxPickups = data.box_pickups || 0;
44+
}
45+
}
46+
module.exports = TurboKartRacers;

0 commit comments

Comments
 (0)