fix: 🐛 Trying to fix ex's bg event bug after nt support

This commit is contained in:
DitFranXX 2021-05-26 19:52:27 +09:00
parent 860e2c8c7b
commit edc6b09a33
2 changed files with 9 additions and 15 deletions

View File

@ -391,20 +391,11 @@ export const getPlayer: EPR = async (info, data, send) => {
player: K.ATTR({ 'no': `${no}` }, {
now_date: K.ITEM('u64', time),
secretmusic: { // TODO: FIX THIS
music: _.merge(_.range(0,2800), _.range(5000, 5100)).map(mid => {
return {
musicid: K.ITEM('s32', mid),
seq: K.ITEM('u16', 255),
kind: K.ITEM('s32', 40),
}
}),
},
trbitem: { // TODO: FIX THIS
item: _.range(0,750).map(id => {
return {
itemid: K.ITEM('s32', id),
}
}),
music: {
musicid: K.ITEM('s32', 0),
seq: K.ITEM('u16', 255),
kind: K.ITEM('s32', 40),
}
},
chara_list: {},
title_parts: {},

View File

@ -66,9 +66,12 @@ export function register() {
MultiRoute('gametop.get', getPlayer);
MultiRoute('gameend.regist', savePlayer);
// Misc
R.Route('bemani_gakuen.get_music_info', true)
R.Unhandled(async (info, data, send) => {
if (["eventlog"].includes(info.module)) return;
logger.error(`Received Unhandled Response on ${info.method} by ${info.model}/${info.module}`)
logger.error(`Received Unhandled Request on Method "${info.method}" by ${info.model}/${info.module}`)
logger.debugError(`Received Request: ${JSON.stringify(data, null, 4)}`)
})
}