diff --git a/src/app/(stats)/player/[ign]/_stats/blitz/table.tsx b/src/app/(stats)/player/[ign]/_stats/blitz/table.tsx index 4f091ce..09da806 100644 --- a/src/app/(stats)/player/[ign]/_stats/blitz/table.tsx +++ b/src/app/(stats)/player/[ign]/_stats/blitz/table.tsx @@ -1,6 +1,6 @@ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table" import { formatNumber, formatSecondsToTime } from "@/lib/formatters" -import { getAllBlitzKitStats, getBlitzBestMode, getBlitzKitLevel, getBlitzKitName, getBlitzMostPlayedKit } from "@/lib/hypixel/blitz/general" +import { getBlitzAllKitStats, getBlitzBestMode, getBlitzKitLevel, getBlitzKitName, getBlitzMostPlayedKit } from "@/lib/hypixel/blitz/general" import { romanize } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" import { cn } from "@/lib/utils" @@ -54,7 +54,7 @@ function BlitzKitStatsTableHeader() { } export function BlitzKitStatsTable({ stats }: { stats: NonNullable }) { - const kitStats = getAllBlitzKitStats(stats) + const kitStats = getBlitzAllKitStats(stats) return ( diff --git a/src/app/(stats)/player/[ign]/_stats/duels/duels.tsx b/src/app/(stats)/player/[ign]/_stats/duels/duels.tsx index 97e90c0..704ba7a 100644 --- a/src/app/(stats)/player/[ign]/_stats/duels/duels.tsx +++ b/src/app/(stats)/player/[ign]/_stats/duels/duels.tsx @@ -1,6 +1,6 @@ import { Separator } from "@/components/ui/separator" import { formatNumber } from "@/lib/formatters" -import { getAllDuelsDivisions, getDuelsMostPlayed } from "@/lib/hypixel/duels/general" +import { getDuelsAllDivisions, getDuelsMostPlayed } from "@/lib/hypixel/duels/general" import { devide, romanize } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" import GeneralStats from "../GeneralStats" @@ -12,7 +12,7 @@ export default function DuelsStats({ stats }: { stats: NonNullStats["Duels"] }) const wl = formatNumber(devide(stats.wins, stats.losses)) const kd = formatNumber(devide(stats.kills, stats.deaths)) - const div = getAllDuelsDivisions(stats) + const div = getDuelsAllDivisions(stats) const mostPlayed = getDuelsMostPlayed(stats) return ( diff --git a/src/app/(stats)/player/[ign]/_stats/megawalls/table.tsx b/src/app/(stats)/player/[ign]/_stats/megawalls/table.tsx index fa1a7d0..c00a8c5 100644 --- a/src/app/(stats)/player/[ign]/_stats/megawalls/table.tsx +++ b/src/app/(stats)/player/[ign]/_stats/megawalls/table.tsx @@ -2,7 +2,7 @@ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@ import { formatNumber } from "@/lib/formatters" import { romanize } from "@/lib/hypixel/general" import { - getAllMegawallsClassStats, + getMegawallsAllClassStats, getMegaWallsClass, getMegaWallsDifficultyColor, getMegaWallsModeName, @@ -86,7 +86,7 @@ function MegaWallsTableHeader() { } function MegaWallsClassStats({ stats }: { stats: NonNullable }) { - const classStats = getAllMegawallsClassStats(stats) + const classStats = getMegawallsAllClassStats(stats) return ( {classStats.map((c, i) => { diff --git a/src/lib/hypixel/blitz/general.ts b/src/lib/hypixel/blitz/general.ts index 527a750..229f15c 100644 --- a/src/lib/hypixel/blitz/general.ts +++ b/src/lib/hypixel/blitz/general.ts @@ -46,7 +46,7 @@ export function getBlitzKitName(kitId: typeof KITS[number]["id"]) { return KITS.find(k => k.id === kitId)!.name } -export function getAllBlitzKitStats(stats: NonNullable) { +export function getBlitzAllKitStats(stats: NonNullable) { const nums: { id: typeof KITS[number]["id"], nums: number[] }[] = [] for (const kit of KITS) { diff --git a/src/lib/hypixel/duels/general.ts b/src/lib/hypixel/duels/general.ts index 6af896e..9d1236c 100644 --- a/src/lib/hypixel/duels/general.ts +++ b/src/lib/hypixel/duels/general.ts @@ -38,7 +38,7 @@ export function getDuelsDevision(devison: Devisions, stats: NonNullable) { +export function getDuelsAllDivisions(stats: NonNullable) { for (const div of DIVISIONS.slice().reverse()) { const index = `all_modes_${div.id}_title_prestige` as const const val = stats[index] diff --git a/src/lib/hypixel/megawalls/general.ts b/src/lib/hypixel/megawalls/general.ts index 77056a7..02df7e8 100644 --- a/src/lib/hypixel/megawalls/general.ts +++ b/src/lib/hypixel/megawalls/general.ts @@ -50,7 +50,7 @@ export function getMegaWallsMostPlayedClass(stats: NonNullable) { +export function getMegawallsAllClassStats(stats: NonNullable) { const statsArr: { id: typeof CLASSES[number]["id"], val: number[] }[] = [] for (const klass of CLASSES) {