From 8144150de92b0d5dbab56a4ff2ade8e9b215d13b Mon Sep 17 00:00:00 2001 From: dannylin0711 Date: Sat, 6 Mar 2021 00:02:37 +0800 Subject: [PATCH] Update for Blaster Pass Time is broken. --- sdvx@asphyxia/handlers/common.ts | 2 ++ sdvx@asphyxia/handlers/profiles.ts | 3 ++- sdvx@asphyxia/templates/load.pug | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sdvx@asphyxia/handlers/common.ts b/sdvx@asphyxia/handlers/common.ts index 2bfa4a9..da45335 100644 --- a/sdvx@asphyxia/handlers/common.ts +++ b/sdvx@asphyxia/handlers/common.ts @@ -26,11 +26,13 @@ export const common: EPR = async (info, data, send) => { if (U.GetConfig('unlock_all_songs')) { for (let i = 1; i < 1700; ++i) { for (let j = 0; j < 5; ++j) { + songs.push({ music_id: K.ITEM('s32', i), music_type: K.ITEM('u8', j), limited: K.ITEM('u8', 3), }); + } } } diff --git a/sdvx@asphyxia/handlers/profiles.ts b/sdvx@asphyxia/handlers/profiles.ts index 0951e73..2330693 100644 --- a/sdvx@asphyxia/handlers/profiles.ts +++ b/sdvx@asphyxia/handlers/profiles.ts @@ -253,7 +253,7 @@ export const load: EPR = async (info, data, send) => { const courses = await DB.Find(refid, { collection: 'course' }); const items = await DB.Find(refid, { collection: 'item' }); const params = await DB.Find(refid, { collection: 'param' }); - + const currentTime = Date.now(); const mixes = version == 5 ? await getAutomationMixes(params) : []; send.pugFile('templates/load.pug', { @@ -263,6 +263,7 @@ export const load: EPR = async (info, data, send) => { : items, params, skill, + currentTime, mixes, automation: version == 5 ? SDVX_AUTOMATION_SONGS : [], code: IDToCode(profile.id), diff --git a/sdvx@asphyxia/templates/load.pug b/sdvx@asphyxia/templates/load.pug index d6e9ea8..a3dd726 100644 --- a/sdvx@asphyxia/templates/load.pug +++ b/sdvx@asphyxia/templates/load.pug @@ -35,6 +35,8 @@ game packet_booster(__type="s32") 1 if version != 5 block_booster(__type="s32") 1 + blaster_pass_enable(__type="bool") 1 + blaster_pass_limit_date(__type="u64") #{currentTime} eaappli relation(__type="s8") 1