fix bug and encore(extra) stage info temp impl.

This commit is contained in:
DitFranXX
2021-04-30 01:57:20 +09:00
parent 819561337e
commit f3835a53b9
5 changed files with 46 additions and 10 deletions
+28
View File
@@ -0,0 +1,28 @@
import { getVersion } from ".";
interface EncoreStageData {
level: number
musics: number[]
}
export function getEncoreStageData(info: EamuseInfo): EncoreStageData {
const fallback = { level: 10, musics: [0] }
switch (getVersion(info)) {
case 'nextage':
return {
level: 7,
musics: [
2587, 2531, 2612, 2622, 2686, 2631, 2624, 2666
]
}
case 'exchain':
return {
level: 13,
musics: [
2498, 2513, 2500, 2529, 2546, 2549, 2548, 2560, 2568, 2576, 5020, 5032, 5031, 5033
]
}
default:
return fallback
}
}
+1 -1
View File
@@ -16,4 +16,4 @@ export function isRequiredCoreVersion(major: number, minor: number) {
const core_major = typeof CORE_VERSION_MAJOR === "number" ? CORE_VERSION_MAJOR : 1
const core_minor = typeof CORE_VERSION_MINOR === "number" ? CORE_VERSION_MINOR : 18
return core_major >= major && core_minor >= minor
}
};