mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: wm8 and average tier calculation
This commit is contained in:
1 parent
c2fca42a86
commit
a12f969251
15 files changed
+315
-328
No files matched your search
@@ -18,16 +18,9 @@ export interface AllStats {
|
||||
dropped_capture_points: number;
|
||||
}
|
||||
|
||||
export interface SpecialStats {
|
||||
winrate: number;
|
||||
damageRatio: number;
|
||||
kdr: number;
|
||||
dpb: number;
|
||||
kpb: number;
|
||||
hpb: number;
|
||||
spb: number;
|
||||
hitRate: number;
|
||||
survivalRate: number;
|
||||
export interface SupplementaryStats {
|
||||
wn8: number;
|
||||
tier: number;
|
||||
}
|
||||
|
||||
export interface ClanStats {
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
import { BlitzStartsComputedPeriodicStatistics } from './statistics.js';
|
||||
|
||||
export type PlayerStats = {
|
||||
clan: {
|
||||
clan_id: number;
|
||||
name: string;
|
||||
tag: string;
|
||||
};
|
||||
statistics: BlitzStartsComputedPeriodicStatistics;
|
||||
_id: string;
|
||||
last_battle_time: number;
|
||||
nickname: string;
|
||||
account_id: number;
|
||||
achievements: {
|
||||
account_id: string;
|
||||
medalLafayettePool: number;
|
||||
medalRadleyWalters: number;
|
||||
warrior: number;
|
||||
jointVictoryCount: number;
|
||||
};
|
||||
region: string;
|
||||
__v: number;
|
||||
}[];
|
||||
@@ -1,30 +0,0 @@
|
||||
import { AllStats, SpecialStats } from './accountInfo.js';
|
||||
|
||||
export interface BlitzStartsComputedPeriodicStatistics {
|
||||
all: AllStats;
|
||||
|
||||
wn7: number;
|
||||
wn8: number;
|
||||
avg_tier: number;
|
||||
}
|
||||
|
||||
export interface PeriodStatistics
|
||||
extends BlitzStartsComputedPeriodicStatistics {
|
||||
special: SpecialStats;
|
||||
pwp: number;
|
||||
}
|
||||
|
||||
export interface PlayerPeriodicStatsCollection {
|
||||
statistics: PeriodStatistics;
|
||||
period30d: PeriodStatistics;
|
||||
period90d: PeriodStatistics;
|
||||
|
||||
_id: string;
|
||||
nickname: string;
|
||||
nickname_lowercase: string;
|
||||
region: string;
|
||||
last_battle_time: number;
|
||||
__v: number;
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
}
|
||||
Reference in new issue
Block a user