Fix Blaster Pass time, Fix VW appeal cards not appearing

This commit is contained in:
dannylin0711 2021-03-12 20:22:42 +08:00
parent 8144150de9
commit be159cef77
2 changed files with 9 additions and 1 deletions

View File

@ -13,6 +13,7 @@ export const EVENT5 = [
'FACTORY\t10',
'CONTINUATION',
'APPEAL_CARD_GEN_NEW_PRICE',
'APPEAL_CARD_UNLOCK\t0,30170914,0,30171014,0,30171116,0,30180201,0,30180607,0,30181206,0,30200326,0,30200611',
'FAVORITE_APPEALCARD_MAX\t100',
'FAVORITE_MUSIC_MAX\t500',
'EVENTDATE_APRILFOOL',

View File

@ -253,7 +253,14 @@ export const load: EPR = async (info, data, send) => {
const courses = await DB.Find<CourseRecord>(refid, { collection: 'course' });
const items = await DB.Find<Item>(refid, { collection: 'item' });
const params = await DB.Find<Param>(refid, { collection: 'param' });
const currentTime = Date.now();
let time = new Date();
let tempHour = time.getHours();
let tempDate = time.getDate();
tempHour += 12;
tempDate += 1;
time.setDate(tempDate);
time.setHours(tempHour);
const currentTime = time.getTime();
const mixes = version == 5 ? await getAutomationMixes(params) : [];
send.pugFile('templates/load.pug', {