mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-09-22 22:27:56 +03:00
fix bug and encore(extra) stage info temp impl.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user