diff --git a/projects/common/src/score/modifier.ts b/projects/common/src/score/modifier.ts index a600a2b..0874aab 100644 --- a/projects/common/src/score/modifier.ts +++ b/projects/common/src/score/modifier.ts @@ -2,19 +2,18 @@ * The score modifiers. */ export enum Modifier { - DA = "Disappearing Arrows", + NF = "No Fail", + PM = "Pro Mode", FS = "Faster Song", SF = "Super Fast Song", SS = "Slower Song", GN = "Ghost Notes", - NA = "No Arrows", - NO = "No Obstacles", + DA = "Disappearing Arrows", SA = "Strict Angles", SC = "Small Notes", - PM = "Pro Mode", - CS = "Fail on Saber Clash", IF = "One Life", + NO = "No Obstacles", BE = "Battery Energy", - NF = "No Fail", NB = "No Bombs", + NA = "No Arrows", } diff --git a/projects/website/src/components/score/score-stats.tsx b/projects/website/src/components/score/score-stats.tsx index fd687c3..4fe0147 100644 --- a/projects/website/src/components/score/score-stats.tsx +++ b/projects/website/src/components/score/score-stats.tsx @@ -57,18 +57,35 @@ const badges: ScoreBadge[] = [ } const failed = score.modifiers.includes("No Fail" as Modifier); + const modCount = score.modifiers.length; return ( <> -

{accDetails}

- {failed &&

Failed

} +
+
+

{accDetails}

+ {failed &&

Failed

} +
+ + {modCount > 0 && ( +
+

Modifiers

+

{score.modifiers.join(", ")}

+
+ )}
} >

- {acc.toFixed(2)}% {failed && NF} + {acc.toFixed(2)}% + {modCount > 0 + ? ` ${Object.entries(Modifier) + .filter(mod => score.modifiers.includes(mod[1] as Modifier)) + .map(mod => mod[0]) + .splice(0, Object.entries(Modifier).length - 1) + .join("")}` + : ""}