Added tooltip to heads

This commit is contained in:
2025-08-31 21:38:44 +02:00
parent 6686f703bd
commit 3b15ba9214
4 changed files with 79 additions and 41 deletions

View File

@@ -1,12 +1,15 @@
import { HEADS, ICONS, PRESTIGES } from "@/data/hypixel/skywars"
import { concatStatsArray, devide, floorLevel } from "../general"
export function getHeadsColor(key: string) {
const val = HEADS.find(v => v.id === key)?.color
export function getHeads(key: string) {
const val = HEADS.find(v => v.id === key)
if (!val) return null
return val
return {
color: val.color,
name: val.name
}
}
export function concatSkywarsStats(...stats: SkywarsModeStats[]) {