mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
fix: no cross-bot imports
This commit is contained in:
1 parent
6c0b46725d
commit
7c6f381bbe
58 files changed
+233
-252
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import { RatingPlayer } from '../../../bot/src/commands/ratingLeaderboard';
|
||||
import { RatingStats } from '../../../website/src/core/blitz/getAccountInfo';
|
||||
import { BkrlSuperset1Entry } from '../streams/bkrl';
|
||||
|
||||
@@ -16,3 +15,16 @@ export function deltaBkrlBlitzStats(
|
||||
score: b2.score - a.score,
|
||||
} satisfies Omit<BkrlSuperset1Entry, 'id'>;
|
||||
}
|
||||
export interface RatingPlayer {
|
||||
spa_id: number;
|
||||
mmr: number;
|
||||
season_number: number;
|
||||
calibrationBattlesLeft: number;
|
||||
number: number;
|
||||
percentile: number;
|
||||
skip: boolean;
|
||||
updated_at: string;
|
||||
score: number;
|
||||
nickname: string;
|
||||
clan_tag: string;
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
import { DiffedTankStats } from '../../../bot/src/core/blitzstars/getStatsInPeriod';
|
||||
import { SupplementaryStats } from '../../../website/src/core/blitz/getAccountInfo';
|
||||
import { tankAverages } from '../../../website/src/core/blitzstars/tankAverages';
|
||||
import { tankDefinitions, TreeType } from '../blitzkit/tankDefinitions';
|
||||
import { blitzStarsTankAverages } from '../blitzstars/tankAverages';
|
||||
import calculateWN8 from './calculateWN8';
|
||||
import { BlitzStats } from './compositeStats';
|
||||
import sumStats from './sumStats';
|
||||
|
||||
export interface StatFilters {
|
||||
@@ -21,7 +21,7 @@ export async function filterStats(
|
||||
if (filters.tank) filters = { tank: filters.tank };
|
||||
|
||||
const awaitedTankDefinitions = await tankDefinitions;
|
||||
const awaitedTankAverages = await tankAverages;
|
||||
const awaitedTankAverages = await blitzStarsTankAverages;
|
||||
const filteredOrder = order.filter((id) => {
|
||||
const entry = awaitedTankDefinitions[id];
|
||||
|
||||
@@ -72,3 +72,8 @@ export async function filterStats(
|
||||
|
||||
return { stats, supplementary, filteredOrder };
|
||||
}
|
||||
|
||||
export interface DiffedTankStats {
|
||||
diff: Record<number, BlitzStats>;
|
||||
order: number[];
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
import { TierWeightsRecord } from '../../../bot/src/components/TierWeights';
|
||||
import { tankDefinitions } from '../blitzkit/tankDefinitions';
|
||||
import { tankDefinitions, Tier } from '../blitzkit/tankDefinitions';
|
||||
import { BlitzStats } from './compositeStats/constants';
|
||||
|
||||
export async function getTierWeights(
|
||||
@@ -20,3 +19,4 @@ export async function getTierWeights(
|
||||
|
||||
return tierWeights;
|
||||
}
|
||||
export type TierWeightsRecord = Partial<Record<Tier, number>>;
|
||||
Reference in new issue
Block a user