mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-04-20 16:27:26 -05:00
Merge pull request #14 from dannylin0711/stable
Update for Blaster Pass
This commit is contained in:
commit
6521aef4d8
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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' });
|
||||
|
||||
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', {
|
||||
|
|
@ -263,6 +270,7 @@ export const load: EPR = async (info, data, send) => {
|
|||
: items,
|
||||
params,
|
||||
skill,
|
||||
currentTime,
|
||||
mixes,
|
||||
automation: version == 5 ? SDVX_AUTOMATION_SONGS : [],
|
||||
code: IDToCode(profile.id),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user