From fd5161199ebf63fde680139190fd96c8dfd39da1 Mon Sep 17 00:00:00 2001 From: DitFranXX Date: Fri, 30 Apr 2021 19:12:11 +0900 Subject: [PATCH] NT special premium encore support test --- gitadora@asphyxia/handlers/info.ts | 14 ++++++-------- gitadora@asphyxia/utils/extrastage.ts | 7 +++++-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/gitadora@asphyxia/handlers/info.ts b/gitadora@asphyxia/handlers/info.ts index f82dcec..c3ef5d6 100644 --- a/gitadora@asphyxia/handlers/info.ts +++ b/gitadora@asphyxia/handlers/info.ts @@ -75,20 +75,18 @@ export const gameInfoGet: EPR = async (info, data, send) => { } const extraData = getEncoreStageData(info) - const extraMusic = [] - for (const mid of extraData.musics ) { - extraMusic.push({ - musicid: K.ITEM('s32', mid), - get_border: K.ITEM('u8', 0), - }) - } await send.object({ now_date: K.ITEM('u64', time), extra: { extra_lv: K.ITEM('u8', extraData.level), extramusic: { - music: extraMusic, + music: extraData.musics.map(mid => { + return { + musicid: K.ITEM('s32', mid), + get_border: K.ITEM('u8', 0), + } + }) } }, infect_music: { term: K.ITEM('u8', 0) }, diff --git a/gitadora@asphyxia/utils/extrastage.ts b/gitadora@asphyxia/utils/extrastage.ts index caf6aba..ab8a109 100644 --- a/gitadora@asphyxia/utils/extrastage.ts +++ b/gitadora@asphyxia/utils/extrastage.ts @@ -11,8 +11,11 @@ export function getEncoreStageData(info: EamuseInfo): EncoreStageData { case 'nextage': return { level: 7, - musics: [ - 2587, 2531, 2612, 2622, 2686, 2631, 2624, 2666 + musics: [ //TODO: check special encore works. + 2587, 2531, 2612, 2622, 2686, + 305, 602, 703, 802, 902, 1003, 1201, 1400, 1712, 1916, 2289, 2631, // DD13 + 1704, 1811, 2121, 2201, 2624, // Soranaki + 2341, 2020, 2282, 1907, 2666 // Stargazer ] } case 'exchain':