mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-02 20:08:17 +03:00
Improve formatChart for bms
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user