Improve formatChart for bms

This commit is contained in:
zkldi
2021-12-13 20:03:20 +00:00
parent 078eea2fbb
commit fd6af2e756
+7 -1
View File
@@ -62,7 +62,13 @@ export function FormatChart(
chart: ChartDocument<IDStrings>
): string {
if (game === "bms") {
return song.title;
const tables = (chart as ChartDocument<"bms:7K" | "bms:14K">).data.tableFolders;
if (tables.length === 0) {
return song.title;
}
return `${song.title} (${tables.map((e) => `${e.table}${e.level}`).join(", ")})`;
}
const gameConfig = GetGameConfig(game);