Patch counterintuitive BMS chart stuff

This commit is contained in:
zkldi
2022-03-28 19:27:23 +01:00
parent d7ac181ccd
commit a9c292e1d5
3 changed files with 11 additions and 3 deletions
+9 -1
View File
@@ -48,7 +48,15 @@ const command: SlashCommand = {
return (err as Error).message;
}
const search = interaction.options.getString("song_name", true);
let search = interaction.options.getString("song_name", true);
// bms and pms don't deal with 'difficulties' the way you would expect
// them to.
// As such, we just treat a difficulty (if it exists) as being part of the
// song title.
if ((game === "bms" || game === "pms") && difficulty) {
search += ` ${difficulty}`;
}
const chartsRes = await TachiServerV1Get<ChartQueryReturns>(
`/games/${game}/${playtype}/charts`,
+1 -1
View File
@@ -49,7 +49,7 @@ export function ParseDifficulty(
playtype: Playtype,
input: string | null
): Difficulties[IDStrings] | null {
if (input === null) {
if (input === null || game === "bms" || game === "pms") {
return null;
}
+1 -1
View File
@@ -1,6 +1,6 @@
const MAJOR = 2;
const MINOR = 0;
const PATCH = 1;
const PATCH = 2;
const TOKYO_SHOEGAZER_MOONDIVER = [
"Into the Deep Sky",