Updated skywars
This commit is contained in:
@@ -70,7 +70,7 @@ export function HeadsBar({ heads, heads_total }: { heads: [string, number][], he
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="flex mt-2 mb-4">
|
<div className="flex overflow-hidden mt-2 mb-4 rounded-md">
|
||||||
{heads.map(([key, total]) => {
|
{heads.map(([key, total]) => {
|
||||||
const head = getHeads(key)
|
const head = getHeads(key)
|
||||||
const percent = total / heads_total
|
const percent = total / heads_total
|
||||||
@@ -83,7 +83,7 @@ export function HeadsBar({ heads, heads_total }: { heads: [string, number][], he
|
|||||||
data-tooltip-id="heads-bar"
|
data-tooltip-id="heads-bar"
|
||||||
data-tooltip-content={`${total} ${head === null ? "Undefined" : head.name} heads`}
|
data-tooltip-content={`${total} ${head === null ? "Undefined" : head.name} heads`}
|
||||||
key={key}
|
key={key}
|
||||||
className={cn("h-5 first:rounded-l-md last:rounded-r-md", head === null ? "bg-background" : `bg-mc-${head.color}`)}
|
className={cn("h-5", head === null ? "bg-background" : `bg-mc-${head.color}`)}
|
||||||
style={{
|
style={{
|
||||||
width: `${percent * 100}%`
|
width: `${percent * 100}%`
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -271,6 +271,7 @@ export const HEADS = [
|
|||||||
{ id: "succulent", name: "Succulent", color: "light-purple" },
|
{ id: "succulent", name: "Succulent", color: "light-purple" },
|
||||||
{ id: "sweet", name: "Sweet", color: "aqua" },
|
{ id: "sweet", name: "Sweet", color: "aqua" },
|
||||||
{ id: "divine", name: "Divine", color: "gold" },
|
{ id: "divine", name: "Divine", color: "gold" },
|
||||||
{ id: "heavenly", name: "Heavenly", color: "dark-purple" }
|
{ id: "heavenly", name: "Heavenly", color: "dark-purple" },
|
||||||
|
{ id: "ethereal", name: "Ethereal", color: "dark-green" },
|
||||||
|
{ id: "indescribable", name: "Indescribable", color: "dark-blue" }
|
||||||
] as const
|
] as const
|
||||||
|
|
||||||
|
|||||||
@@ -156,6 +156,8 @@ export const skywarsStatsSchema = z.looseObject({
|
|||||||
heads_sweet: z.number().default(0),
|
heads_sweet: z.number().default(0),
|
||||||
heads_divine: z.number().default(0),
|
heads_divine: z.number().default(0),
|
||||||
heads_heavenly: z.number().default(0),
|
heads_heavenly: z.number().default(0),
|
||||||
|
heads_ethereal: z.number().default(0),
|
||||||
|
heads_indescribable: z.number().default(0),
|
||||||
head_collection: z.looseObject({
|
head_collection: z.looseObject({
|
||||||
prestigious: z.array(z.object({
|
prestigious: z.array(z.object({
|
||||||
username: z.string().nullable().default(null),
|
username: z.string().nullable().default(null),
|
||||||
|
|||||||
Reference in New Issue
Block a user