From 67d997b02441e2046364fcb010afe8bab62bfdc2 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Thu, 18 Nov 2021 12:06:08 +0000 Subject: [PATCH] Improve formatting in FormatDifficultyShort --- common/src/utils/util.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/src/utils/util.ts b/common/src/utils/util.ts index b3c07f0a5..1d1e3afbe 100644 --- a/common/src/utils/util.ts +++ b/common/src/utils/util.ts @@ -32,6 +32,10 @@ export function FormatDifficultyShort(chart: ChartDocument, game: Game): string return `${shortDiff} ${chart.level}`; } + if (game === "usc") { + return `${chart.playtype === "Controller" ? "CON" : "KB"} ${shortDiff} ${chart.level}`; + } + return `${chart.playtype}${shortDiff} ${chart.level}`; }