add informationmessage handler relying on datacode

This commit is contained in:
vvo
2022-10-10 19:37:29 +08:00
parent 4058eb26b1
commit 02a9e7f709
2 changed files with 59 additions and 30 deletions
+36 -29
View File
@@ -39,6 +39,13 @@ export const EVENT6 = [
'DISP_PASELI_BANNER'
];
export const INFORMATION6 = {
'2022021400': ['[img:ver06/info_psd.ifs:hexa_diver_220215]'],
'2022030800': ['[img:ver06/info_psd.ifs:hexa_diver_220310]'],
'2022042500': ['[img:ver06/info_psd.ifs:hexa_diver_220215]', '[img:ver06/info_psd.ifs:hexa_diver_220310]'],
'2022071200': ['[img:ver06/info_psd.ifs:hexa_diver_220714]']
}
export const MISSINGSONGS6 = [
'1471', '1477', '1634', '1635', '1636', '1637', '1649', '1650', '1653', '1654',
'1655', '1657', '1658', '1739', '1740', '1741', '1744', '1753', '1754', '1755',
@@ -4079,37 +4086,37 @@ export const SDVX_AUTOMATION_SONGS_2 = [
export const EXTENDS6 = [
{
{
id: 91,
type: 17,
params: [
0,
0,
0,
0,
0,
SDVX_AUTOMATION_SONGS.join(','),
'',
'',
'',
'',
],
},
type: 17,
params: [
0,
0,
0,
0,
0,
SDVX_AUTOMATION_SONGS.join(','),
'',
'',
'',
'',
],
},
{
id: 92,
type: 17,
params: [
0,
0,
0,
0,
0,
SDVX_AUTOMATION_SONGS_2.join(','),
'',
'',
'',
'',
],
},
type: 17,
params: [
0,
0,
0,
0,
0,
SDVX_AUTOMATION_SONGS_2.join(','),
'',
'',
'',
'',
],
},
];
+23 -1
View File
@@ -2,7 +2,8 @@ import { EVENT4, COURSES4, EXTENDS4 } from '../data/hvn';
import { EVENT5, COURSES5, EXTENDS5 } from '../data/vvw';
import { EVENT6, COURSES6, EXTENDS6, APRILFOOLSSONGS, XRECORDSONGS,
KONASTESONGS, BEMANI2021EVENTSONGS, BPLSTAMPRALLYSONGS, SDVX10THSTAMPSONGS,
REFLECBEATSTAMPSONGS, VALKYRIEEXCLUSIVESONGS, MISSINGSONGS6, ARENA, VALGENE
REFLECBEATSTAMPSONGS, VALKYRIEEXCLUSIVESONGS, MISSINGSONGS6, ARENA, VALGENE,
INFORMATION6
} from '../data/exg';
import { COURSE2 } from '../data/inf';
import {getVersion, getRandomIntInclusive} from '../utils';
@@ -158,6 +159,27 @@ export const common: EPR = async (info, data, send) => {
'',
],
});
} else if(INFORMATION6[version.toString()] != undefined) {
console.log("Sending server information");
let time = new Date();
let tempDate = time.getDate();
const currentTime = parseInt((time.getTime()/100000) as unknown as string)*100;
extend.push({
id: 1,
type: 1,
params: [
1,
currentTime,
1,
1,
31,
'[f:0]SERVER INFORMATION',
INFORMATION6[version.toString()][Math.floor(Math.random() * (INFORMATION6[version.toString()].length - 1))],
'',
'',
'',
],
});
}
if(U.GetConfig('use_asphyxia_gameover')){