hive-bedrock-api 3.0.0-alpha.20 → 3.0.0-alpha.22
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.
- package/lib/index.d.ts +1 -1
- package/lib/processors/game.d.ts +1 -1
- package/lib/processors/game.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export default class HiveAPI {
|
|
|
58
58
|
* @param season The season to get the statistics for
|
|
59
59
|
* @returns The player's seasonal statistics
|
|
60
60
|
*/
|
|
61
|
-
getSeasonalStatistics<G extends Game>(identifier: string, game: G, season?: number): Promise<MethodResponse<
|
|
61
|
+
getSeasonalStatistics<G extends Game>(identifier: string, game: G, season?: number): Promise<MethodResponse<ProcessedMonthlyGamesResponse["statistics"][G] | null>>;
|
|
62
62
|
/**
|
|
63
63
|
* `/game/all/{game}` Gets statistics for a game
|
|
64
64
|
* @param timeframe The timeframe to get the statistics for
|
package/lib/processors/game.d.ts
CHANGED
package/lib/processors/game.js
CHANGED
|
@@ -209,7 +209,7 @@ exports.processors = (_a = {},
|
|
|
209
209
|
win_percentage: calculateWinPercentage(response.victories, response.played),
|
|
210
210
|
murders: (_d = response.murders) !== null && _d !== void 0 ? _d : 0,
|
|
211
211
|
deaths: (_e = response.deaths) !== null && _e !== void 0 ? _e : 0,
|
|
212
|
-
|
|
212
|
+
edr: calculateKDR(response.murderer_eliminations, response.deaths),
|
|
213
213
|
coins: (_f = response.coins) !== null && _f !== void 0 ? _f : 0,
|
|
214
214
|
murderer_eliminations: (_g = response.murderer_eliminations) !== null && _g !== void 0 ? _g : 0,
|
|
215
215
|
prestige: (_h = response.prestige) !== null && _h !== void 0 ? _h : 0,
|