Added heads bar
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
import { ICONS, PRESTIGES } from "@/data/hypixel/skywars"
|
||||
import { HEADS, ICONS, PRESTIGES } from "@/data/hypixel/skywars"
|
||||
import { floorLevel } from "./formatters"
|
||||
import { devide } from "./general"
|
||||
|
||||
export function getHeadsColor(key: string) {
|
||||
const val = HEADS.find(v => v.id === key)?.color
|
||||
|
||||
if (!val) return null
|
||||
|
||||
return val
|
||||
}
|
||||
|
||||
export function getTextColor(level: number) {
|
||||
const floored = floorLevel(level, 5)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user