hypixel-api-reborn 10.0.0 → 11.0.1

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.
Files changed (105) hide show
  1. package/.prettierrc +13 -0
  2. package/README.md +28 -16
  3. package/package.json +60 -58
  4. package/src/API/getAPIStatus.js +8 -8
  5. package/src/API/getBoosters.js +6 -6
  6. package/src/API/getGameCounts.js +6 -6
  7. package/src/API/getGuild.js +18 -18
  8. package/src/API/getLeaderboards.js +13 -13
  9. package/src/API/getPlayer.js +22 -27
  10. package/src/API/getRecentGames.js +18 -18
  11. package/src/API/getServerInfo.js +66 -77
  12. package/src/API/getStatus.js +8 -8
  13. package/src/API/getWatchdogStats.js +6 -6
  14. package/src/API/index.js +19 -23
  15. package/src/API/skyblock/getEndedSkyblockAuctions.js +10 -10
  16. package/src/API/skyblock/getSkyblockAuctions.js +64 -64
  17. package/src/API/skyblock/getSkyblockAuctionsByPlayer.js +11 -11
  18. package/src/API/skyblock/getSkyblockBazaar.js +10 -10
  19. package/src/API/skyblock/getSkyblockMember.js +28 -25
  20. package/src/API/skyblock/getSkyblockNews.js +6 -6
  21. package/src/API/skyblock/getSkyblockProfiles.js +44 -41
  22. package/src/Client.js +406 -450
  23. package/src/Errors.js +44 -39
  24. package/src/Private/defaultCache.js +77 -78
  25. package/src/Private/rateLimit.js +79 -98
  26. package/src/Private/requests.js +65 -54
  27. package/src/Private/updater.js +45 -45
  28. package/src/Private/uuidCache.js +37 -33
  29. package/src/Private/validate.js +97 -97
  30. package/src/index.js +82 -83
  31. package/src/structures/APIIncident.js +78 -78
  32. package/src/structures/APIStatus.js +47 -47
  33. package/src/structures/Boosters/Booster.js +83 -87
  34. package/src/structures/Color.js +129 -129
  35. package/src/structures/Game.js +164 -160
  36. package/src/structures/GameCounts.js +151 -151
  37. package/src/structures/Guild/Guild.js +204 -218
  38. package/src/structures/Guild/GuildMember.js +66 -66
  39. package/src/structures/Guild/GuildRank.js +48 -48
  40. package/src/structures/ItemBytes.js +33 -36
  41. package/src/structures/Leaderboard.js +31 -31
  42. package/src/structures/MiniGames/Arcade.js +567 -569
  43. package/src/structures/MiniGames/ArenaBrawl.js +52 -56
  44. package/src/structures/MiniGames/BedWars.js +423 -351
  45. package/src/structures/MiniGames/BlitzSurvivalGames.js +172 -148
  46. package/src/structures/MiniGames/BuildBattle.js +53 -53
  47. package/src/structures/MiniGames/CopsAndCrims.js +90 -90
  48. package/src/structures/MiniGames/Duels.js +694 -630
  49. package/src/structures/MiniGames/MegaWalls.js +137 -137
  50. package/src/structures/MiniGames/MurderMystery.js +93 -93
  51. package/src/structures/MiniGames/Paintball.js +67 -67
  52. package/src/structures/MiniGames/Pit.js +19 -19
  53. package/src/structures/MiniGames/Quakecraft.js +101 -101
  54. package/src/structures/MiniGames/SkyWars.js +508 -559
  55. package/src/structures/MiniGames/SmashHeroes.js +144 -151
  56. package/src/structures/MiniGames/SpeedUHC.js +115 -57
  57. package/src/structures/MiniGames/TNTGames.js +116 -116
  58. package/src/structures/MiniGames/TurboKartRacers.js +201 -176
  59. package/src/structures/MiniGames/UHC.js +164 -143
  60. package/src/structures/MiniGames/VampireZ.js +60 -60
  61. package/src/structures/MiniGames/Walls.js +52 -52
  62. package/src/structures/MiniGames/Warlords.js +62 -62
  63. package/src/structures/MiniGames/WoolWars.js +123 -0
  64. package/src/structures/Pet.js +96 -97
  65. package/src/structures/Pets.js +64 -64
  66. package/src/structures/Player.js +433 -449
  67. package/src/structures/PlayerCosmetics.js +100 -95
  68. package/src/structures/RecentGame.js +57 -57
  69. package/src/structures/ServerInfo.js +78 -78
  70. package/src/structures/SkyBlock/Auctions/Auction.js +104 -104
  71. package/src/structures/SkyBlock/Auctions/AuctionInfo.js +54 -54
  72. package/src/structures/SkyBlock/Auctions/BaseAuction.js +45 -45
  73. package/src/structures/SkyBlock/Auctions/Bid.js +48 -48
  74. package/src/structures/SkyBlock/Auctions/PartialAuction.js +25 -25
  75. package/src/structures/SkyBlock/Bazzar/Order.js +38 -38
  76. package/src/structures/SkyBlock/Bazzar/Product.js +53 -53
  77. package/src/structures/SkyBlock/News/SkyblockNews.js +60 -68
  78. package/src/structures/SkyBlock/SkyblockInventoryItem.js +124 -130
  79. package/src/structures/SkyBlock/SkyblockMember.js +820 -687
  80. package/src/structures/SkyBlock/SkyblockPet.js +71 -71
  81. package/src/structures/SkyBlock/SkyblockProfile.js +60 -60
  82. package/src/structures/Status.js +41 -41
  83. package/src/structures/Watchdog/Stats.js +36 -36
  84. package/src/utils/Constants.js +2789 -809
  85. package/src/utils/SkyblockUtils.js +208 -164
  86. package/src/utils/arrayTools.js +4 -4
  87. package/src/utils/divide.js +5 -5
  88. package/src/utils/guildExp.js +57 -67
  89. package/src/utils/index.js +13 -13
  90. package/src/utils/isGuildID.js +3 -3
  91. package/src/utils/isUUID.js +5 -5
  92. package/src/utils/oscillation.js +15 -23
  93. package/src/utils/removeSnakeCase.js +22 -35
  94. package/src/utils/rgbToHexColor.js +8 -8
  95. package/src/utils/romanize.js +11 -13
  96. package/src/utils/toIGN.js +20 -20
  97. package/src/utils/toUuid.js +19 -19
  98. package/src/utils/varInt.js +17 -21
  99. package/typings/index.d.ts +3532 -2644
  100. package/src/API/getFriends.js +0 -14
  101. package/src/API/getKeyInfo.js +0 -10
  102. package/src/API/getRankedSkyWars.js +0 -11
  103. package/src/structures/Friend.js +0 -38
  104. package/src/structures/KeyInfo.js +0 -42
  105. package/src/structures/MiniGames/SkyWarsRanked.js +0 -45
@@ -1,116 +1,116 @@
1
- const divide = require('../../utils/divide');
2
- /**
3
- * The TNT Games class
4
- */
5
- class TNTGames {
6
- /**
7
- * @param {object} data TNT Games data
8
- */
9
- constructor (data) {
10
- /**
11
- * Coins
12
- * @type {number}
13
- */
14
- this.coins = data.coins || 0;
15
- /**
16
- * Winstreak
17
- * @type {number}
18
- */
19
- this.winstreak = data.winstreak || 0;
20
- /**
21
- * Wins
22
- * @type {number}
23
- */
24
- this.wins = data.wins || 0;
25
- /**
26
- * TNT Run
27
- * @type {TNTRun}
28
- */
29
- this.tntrun = {
30
- wins: data.wins_tntrun || 0,
31
- deaths: data.deaths_tntrun || 0,
32
- KDRatio: divide(data.wins_tntrun, data.deaths_tntrun),
33
- record: data.record_tntrun || 0
34
- };
35
- /**
36
- * PVP Run
37
- * @type {PVPRun}
38
- */
39
- this.pvprun = {
40
- kills: data.kills_pvprun || 0,
41
- wins: data.wins_pvprun || 0,
42
- deaths: data.deaths_pvprun || 0,
43
- KDRatio: divide(data.kills_pvprun, data.deaths_pvprun),
44
- record: data.record_pvprun || 0
45
- };
46
- /**
47
- * TNT Tag
48
- * @type {TNTTag}
49
- */
50
- this.tnttag = {
51
- kills: data.kills_tntag || 0,
52
- wins: data.wins_tntag || 0,
53
- speed: data.tag_speed || 0
54
- };
55
- /**
56
- * Bowspleef
57
- * @type {Bowspleef}
58
- */
59
- this.bowspleef = {
60
- wins: data.wins_bowspleef || 0,
61
- tags: data.tags_bowspleef || 0,
62
- deaths: data.deaths_bowspleef || 0
63
- };
64
- /**
65
- * Wizards
66
- * @type {TNTWizards}
67
- */
68
- this.wizards = {
69
- points: data.points_capture || 0,
70
- class: (data.capture_class ? data.capture_class : null),
71
- kills: data.kills_capture || 0,
72
- assists: data.assists_capture || 0,
73
- wins: data.wins_capture || 0,
74
- deaths: data.deaths_capture || 0,
75
- KDRatio: divide(data.kills_capture, data.deaths_capture)
76
- };
77
- }
78
- }
79
- /**
80
- * @typedef {object} TNTRun
81
- * @property {number} wins Wins
82
- * @property {number} deaths Deaths
83
- * @property {number} KDRatio Kill/Death ratio
84
- * @property {number} record Record in seconds
85
- */
86
- /**
87
- * @typedef {object} PVPRun
88
- * @property {number} kills Kills
89
- * @property {number} wins Wins
90
- * @property {number} deaths Deaths
91
- * @property {number} KDRatio Kill/Death ratio
92
- * @property {number} record Record in seconds
93
- */
94
- /**
95
- * @typedef {object} TNTTag
96
- * @property {number} kills Kills
97
- * @property {number} wins Wins
98
- * @property {number} speed Speed
99
- */
100
- /**
101
- * @typedef {object} Bowspleef
102
- * @property {number} wins Wins
103
- * @property {number} tags Tags
104
- * @property {number} deaths Deaths
105
- */
106
- /**
107
- * @typedef {object} TNTWizards
108
- * @property {number} points Points
109
- * @property {string} class Class
110
- * @property {number} kills Kills
111
- * @property {number} assists Assists
112
- * @property {number} wins Wins
113
- * @property {number} deaths Deaths
114
- * @property {number} KDRatio Kill/Death ratio
115
- */
116
- module.exports = TNTGames;
1
+ const divide = require('../../utils/divide');
2
+ /**
3
+ * The TNT Games class
4
+ */
5
+ class TNTGames {
6
+ /**
7
+ * @param {object} data TNT Games data
8
+ */
9
+ constructor(data) {
10
+ /**
11
+ * Coins
12
+ * @type {number}
13
+ */
14
+ this.coins = data.coins || 0;
15
+ /**
16
+ * Winstreak
17
+ * @type {number}
18
+ */
19
+ this.winstreak = data.winstreak || 0;
20
+ /**
21
+ * Wins
22
+ * @type {number}
23
+ */
24
+ this.wins = data.wins || 0;
25
+ /**
26
+ * TNT Run
27
+ * @type {TNTRun}
28
+ */
29
+ this.tntrun = {
30
+ wins: data.wins_tntrun || 0,
31
+ deaths: data.deaths_tntrun || 0,
32
+ KDRatio: divide(data.wins_tntrun, data.deaths_tntrun),
33
+ record: data.record_tntrun || 0
34
+ };
35
+ /**
36
+ * PVP Run
37
+ * @type {PVPRun}
38
+ */
39
+ this.pvprun = {
40
+ kills: data.kills_pvprun || 0,
41
+ wins: data.wins_pvprun || 0,
42
+ deaths: data.deaths_pvprun || 0,
43
+ KDRatio: divide(data.kills_pvprun, data.deaths_pvprun),
44
+ record: data.record_pvprun || 0
45
+ };
46
+ /**
47
+ * TNT Tag
48
+ * @type {TNTTag}
49
+ */
50
+ this.tnttag = {
51
+ kills: data.kills_tntag || 0,
52
+ wins: data.wins_tntag || 0,
53
+ speed: data.tag_speed || 0
54
+ };
55
+ /**
56
+ * Bowspleef
57
+ * @type {Bowspleef}
58
+ */
59
+ this.bowspleef = {
60
+ wins: data.wins_bowspleef || 0,
61
+ tags: data.tags_bowspleef || 0,
62
+ deaths: data.deaths_bowspleef || 0
63
+ };
64
+ /**
65
+ * Wizards
66
+ * @type {TNTWizards}
67
+ */
68
+ this.wizards = {
69
+ points: data.points_capture || 0,
70
+ class: data.capture_class ? data.capture_class : null,
71
+ kills: data.kills_capture || 0,
72
+ assists: data.assists_capture || 0,
73
+ wins: data.wins_capture || 0,
74
+ deaths: data.deaths_capture || 0,
75
+ KDRatio: divide(data.kills_capture, data.deaths_capture)
76
+ };
77
+ }
78
+ }
79
+ /**
80
+ * @typedef {object} TNTRun
81
+ * @property {number} wins Wins
82
+ * @property {number} deaths Deaths
83
+ * @property {number} KDRatio Kill/Death ratio
84
+ * @property {number} record Record in seconds
85
+ */
86
+ /**
87
+ * @typedef {object} PVPRun
88
+ * @property {number} kills Kills
89
+ * @property {number} wins Wins
90
+ * @property {number} deaths Deaths
91
+ * @property {number} KDRatio Kill/Death ratio
92
+ * @property {number} record Record in seconds
93
+ */
94
+ /**
95
+ * @typedef {object} TNTTag
96
+ * @property {number} kills Kills
97
+ * @property {number} wins Wins
98
+ * @property {number} speed Speed
99
+ */
100
+ /**
101
+ * @typedef {object} Bowspleef
102
+ * @property {number} wins Wins
103
+ * @property {number} tags Tags
104
+ * @property {number} deaths Deaths
105
+ */
106
+ /**
107
+ * @typedef {object} TNTWizards
108
+ * @property {number} points Points
109
+ * @property {string} class Class
110
+ * @property {number} kills Kills
111
+ * @property {number} assists Assists
112
+ * @property {number} wins Wins
113
+ * @property {number} deaths Deaths
114
+ * @property {number} KDRatio Kill/Death ratio
115
+ */
116
+ module.exports = TNTGames;
@@ -1,176 +1,201 @@
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
- * Horn
46
- * @type {'DEFAULT' | 'SHY' | 'ALIEN' | 'TAXI' | 'KLAXON' | 'TRICYCLE' | 'ALARM' | 'KLOON' | 'TEDDY' | 'TRUCK' | 'JERRY'}
47
- */
48
- this.horn = data.horn || 'DEFAULT';
49
- /**
50
- * Retro Map Plays
51
- * @type {number}
52
- */
53
- this.retroPlays = data.retro_plays || 0;
54
- /**
55
- * Hypixel GP Map Plays
56
- * @type {number}
57
- */
58
- this.hypixelgpPlays = data.hypixelgp_plays || 0;
59
- /**
60
- * Olympus Map Plays
61
- * @type {number}
62
- */
63
- this.olympusPlays = data.olympus_plays || 0;
64
- /**
65
- * Jungle Rush Map Plays
66
- * @type {number}
67
- */
68
- this.junglerushPlays = data.junglerush_plays || 0;
69
- /**
70
- * Canyon Map Plays
71
- * @type {number}
72
- */
73
- this.canyonPlays = data.canyon_plays || 0;
74
- /**
75
- * Retro Bronze Trophies
76
- * @type {number}
77
- */
78
- this.retroBronzeTrophies = data.bronze_trophy_retro || 0;
79
- /**
80
- * Jungle Rush Map Plays
81
- * @type {number}
82
- */
83
- this.retroSilverTrophies = data.silver_trophy_retro || 0;
84
- /**
85
- * Jungle Rush Map Plays
86
- * @type {number}
87
- */
88
- this.retroGoldTrophies = data.gold_trophy_retro || 0;
89
- /**
90
- * hypixelgp Bronze Trophies
91
- * @type {number}
92
- */
93
- this.hypixelgpBronzeTrophies = data.bronze_trophy_hypixelgp || 0;
94
- /**
95
- * hypixelgp Silver Trophies
96
- * @type {number}
97
- */
98
- this.hypixelgpSilverTrophies = data.silver_trophy_hypixelgp || 0;
99
- /**
100
- * hypixelgp Gold Trophies
101
- * @type {number}
102
- */
103
- this.hypixelgpGoldTrophies = data.gold_trophy_hypixelgp || 0;
104
- /**
105
- * olympus Bronze Trophies
106
- * @type {number}
107
- */
108
- this.olympusBronzeTrophies = data.bronze_trophy_olympus || 0;
109
- /**
110
- * olympus Silver Trophies
111
- * @type {number}
112
- */
113
- this.olympusSilverTrophies = data.silver_trophy_olympus || 0;
114
- /**
115
- * olympus Gold Trophies
116
- * @type {number}
117
- */
118
- this.olympusGoldTrophies = data.gold_trophy_olympus || 0;
119
- /**
120
- * junglerush Bronze Trophies
121
- * @type {number}
122
- */
123
- this.junglerushBronzeTrophies = data.bronze_trophy_junglerush || 0;
124
- /**
125
- * junglerush Silver Trophies
126
- * @type {number}
127
- */
128
- this.junglerushSilverTrophies = data.silver_trophy_junglerush || 0;
129
- /**
130
- * junglerush Gold Trophies
131
- * @type {number}
132
- */
133
- this.junglerushGoldTrophies = data.gold_trophy_junglerush || 0;
134
- /**
135
- * Canyon Bronze Trophies
136
- * @type {number}
137
- */
138
- this.canyonBronzeTrophies = data.gold_trophy_canyon || 0;
139
- /**
140
- * Canyon Silver Trophies
141
- * @type {number}
142
- */
143
- this.canyonSilverTrophies = data.gold_trophy_canyon || 0;
144
- /**
145
- * Canyon Gold Trophies
146
- * @type {number}
147
- */
148
- this.canyonGoldTrophies = data.gold_trophy_canyon || 0;
149
- /**
150
- * Bananas Recived
151
- * @type {number}
152
- */
153
- this.bananaHitsReceived = data.banana_hits_received || 0;
154
- /**
155
- * Bananas Sent
156
- * @type {number}
157
- */
158
- this.bananaHitsSent = data.banana_hits_sent || 0;
159
- /**
160
- * Blue Torpedos Hit
161
- * @type {number}
162
- */
163
- this.blueTorpedoHit = data.blue_torpedo_hit || 0;
164
- /**
165
- * Grand Prix Status
166
- * @type {boolean}
167
- */
168
- this.grandPrix = data.grand_prix || 'false';
169
- /**
170
- * Grand Prix Tokens
171
- * @type {number}
172
- */
173
- this.grandPrixTokens = data.grand_prix_tokens || 0;
174
- }
175
- }
176
- module.exports = TurboKartRacers;
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
+ * HypixelGP Box pickups
46
+ * @type {number}
47
+ */
48
+ this.hypixelgpBoxPickups = data.box_pickups_hypixelgp || 0;
49
+ /**
50
+ * Retro Box pickups
51
+ * @type {number}
52
+ */
53
+ this.retroBoxPickups = data.box_pickups_retro || 0;
54
+ /**
55
+ * Olympus Box pickups
56
+ * @type {number}
57
+ */
58
+ this.olympusBoxPickups = data.box_pickups_olympus || 0;
59
+ /**
60
+ * Canyon Box pickups
61
+ * @type {number}
62
+ */
63
+ this.canyonBoxPickups = data.box_pickups_canyon || 0;
64
+ /**
65
+ * Jungle Rusg Box pickups
66
+ * @type {number}
67
+ */
68
+ this.junglerushBoxPickups = data.box_pickups_junglerush || 0;
69
+ /**
70
+ * Horn
71
+ * @type {'DEFAULT' | 'SHY' | 'ALIEN' | 'TAXI' | 'KLAXON' | 'TRICYCLE' | 'ALARM' | 'KLOON' | 'TEDDY' | 'TRUCK' | 'JERRY'}
72
+ */
73
+ this.horn = data.horn || 'DEFAULT';
74
+ /**
75
+ * Retro Map Plays
76
+ * @type {number}
77
+ */
78
+ this.retroPlays = data.retro_plays || 0;
79
+ /**
80
+ * Hypixel GP Map Plays
81
+ * @type {number}
82
+ */
83
+ this.hypixelgpPlays = data.hypixelgp_plays || 0;
84
+ /**
85
+ * Olympus Map Plays
86
+ * @type {number}
87
+ */
88
+ this.olympusPlays = data.olympus_plays || 0;
89
+ /**
90
+ * Jungle Rush Map Plays
91
+ * @type {number}
92
+ */
93
+ this.junglerushPlays = data.junglerush_plays || 0;
94
+ /**
95
+ * Canyon Map Plays
96
+ * @type {number}
97
+ */
98
+ this.canyonPlays = data.canyon_plays || 0;
99
+ /**
100
+ * Retro Bronze Trophies
101
+ * @type {number}
102
+ */
103
+ this.retroBronzeTrophies = data.bronze_trophy_retro || 0;
104
+ /**
105
+ * Jungle Rush Map Plays
106
+ * @type {number}
107
+ */
108
+ this.retroSilverTrophies = data.silver_trophy_retro || 0;
109
+ /**
110
+ * Jungle Rush Map Plays
111
+ * @type {number}
112
+ */
113
+ this.retroGoldTrophies = data.gold_trophy_retro || 0;
114
+ /**
115
+ * hypixelgp Bronze Trophies
116
+ * @type {number}
117
+ */
118
+ this.hypixelgpBronzeTrophies = data.bronze_trophy_hypixelgp || 0;
119
+ /**
120
+ * hypixelgp Silver Trophies
121
+ * @type {number}
122
+ */
123
+ this.hypixelgpSilverTrophies = data.silver_trophy_hypixelgp || 0;
124
+ /**
125
+ * hypixelgp Gold Trophies
126
+ * @type {number}
127
+ */
128
+ this.hypixelgpGoldTrophies = data.gold_trophy_hypixelgp || 0;
129
+ /**
130
+ * olympus Bronze Trophies
131
+ * @type {number}
132
+ */
133
+ this.olympusBronzeTrophies = data.bronze_trophy_olympus || 0;
134
+ /**
135
+ * olympus Silver Trophies
136
+ * @type {number}
137
+ */
138
+ this.olympusSilverTrophies = data.silver_trophy_olympus || 0;
139
+ /**
140
+ * olympus Gold Trophies
141
+ * @type {number}
142
+ */
143
+ this.olympusGoldTrophies = data.gold_trophy_olympus || 0;
144
+ /**
145
+ * junglerush Bronze Trophies
146
+ * @type {number}
147
+ */
148
+ this.junglerushBronzeTrophies = data.bronze_trophy_junglerush || 0;
149
+ /**
150
+ * junglerush Silver Trophies
151
+ * @type {number}
152
+ */
153
+ this.junglerushSilverTrophies = data.silver_trophy_junglerush || 0;
154
+ /**
155
+ * junglerush Gold Trophies
156
+ * @type {number}
157
+ */
158
+ this.junglerushGoldTrophies = data.gold_trophy_junglerush || 0;
159
+ /**
160
+ * Canyon Bronze Trophies
161
+ * @type {number}
162
+ */
163
+ this.canyonBronzeTrophies = data.gold_trophy_canyon || 0;
164
+ /**
165
+ * Canyon Silver Trophies
166
+ * @type {number}
167
+ */
168
+ this.canyonSilverTrophies = data.gold_trophy_canyon || 0;
169
+ /**
170
+ * Canyon Gold Trophies
171
+ * @type {number}
172
+ */
173
+ this.canyonGoldTrophies = data.gold_trophy_canyon || 0;
174
+ /**
175
+ * Bananas Recived
176
+ * @type {number}
177
+ */
178
+ this.bananaHitsReceived = data.banana_hits_received || 0;
179
+ /**
180
+ * Bananas Sent
181
+ * @type {number}
182
+ */
183
+ this.bananaHitsSent = data.banana_hits_sent || 0;
184
+ /**
185
+ * Blue Torpedos Hit
186
+ * @type {number}
187
+ */
188
+ this.blueTorpedoHit = data.blue_torpedo_hit || 0;
189
+ /**
190
+ * Grand Prix Status
191
+ * @type {boolean}
192
+ */
193
+ this.grandPrix = data.grand_prix || 'false';
194
+ /**
195
+ * Grand Prix Tokens
196
+ * @type {number}
197
+ */
198
+ this.grandPrixTokens = data.grand_prix_tokens || 0;
199
+ }
200
+ }
201
+ module.exports = TurboKartRacers;