Added tooltip to heads
This commit is contained in:
@@ -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[]) {
|
||||
|
||||
Reference in New Issue
Block a user