Skip to content

Commit f00ab42

Browse files
committed
add support for prism plus
1 parent dbd517d commit f00ab42

File tree

9 files changed

+72121
-690
lines changed

9 files changed

+72121
-690
lines changed

apps/tools/src/genPlateCondition.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { XMLParser } from 'fast-xml-parser';
22
import fs from 'node:fs';
33
import fsP from 'node:fs/promises';
44

5-
const PLATE_NAME = '真超檄橙晓桃樱紫堇白雪辉舞熊华爽煌宙星祭祝双宴'.split('');
6-
const PLATE_NAME_GAME = '真超檄橙暁桃櫻紫菫白雪輝舞熊華爽煌宙星祭祝双宴'.split('');
5+
const PLATE_NAME = '真超檄橙晓桃樱紫堇白雪辉舞熊华爽煌宙星祭祝双宴镜'.split('');
6+
const PLATE_NAME_GAME = '真超檄橙暁桃櫻紫菫白雪輝舞熊華爽煌宙星祭祝双宴鏡'.split('');
77

88
const baseDir = process.argv[2];
99
const parser = new XMLParser();

packages/clients/src/UserProfile.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BUDDIES_LOGO, BUDDIES_PLUS_LOGO, GameVariantPlateMusicList, MaiVersion, PLATE_MUSIC_LIST_145, PLATE_MUSIC_LIST_CN, PLATE_MUSIC_LIST_JP, Regions, Env, Song, UserPreviewSummary, UserProfileDto, PRISM_LOGO, PLATE_MUSIC_LIST_150, ChuniSong } from '@clansty/maibot-types';
1+
import { BUDDIES_LOGO, BUDDIES_PLUS_LOGO, GameVariantPlateMusicList, MaiVersion, PLATE_MUSIC_LIST_145, PLATE_MUSIC_LIST_CN, PLATE_MUSIC_LIST_JP, Regions, Env, Song, UserPreviewSummary, UserProfileDto, PRISM_LOGO, PLATE_MUSIC_LIST_150, ChuniSong, PLATE_MUSIC_LIST_155 } from '@clansty/maibot-types';
22
import { UserSource } from './UserSource';
33
import AquaDxLegacy from './AquaDxLegacy';
44
import SdgbProxied from './SdgbProxied';
@@ -67,6 +67,8 @@ export class UserProfile {
6767
switch (this.region) {
6868
case 'jp':
6969
switch (await this.getVersion()) {
70+
case 155:
71+
return PLATE_MUSIC_LIST_155;
7072
case 150:
7173
return PLATE_MUSIC_LIST_150;
7274
case 145:
@@ -99,11 +101,13 @@ export class UserProfile {
99101
return 140;
100102
else if (version < 50)
101103
return 145;
102-
else
104+
else if (version < 55)
103105
return 150;
106+
else
107+
return 155;
104108
} catch (e) {
105109
console.error('Failed to get user version', e);
106-
return 140;
110+
return 150;
107111
}
108112
}
109113
}

0 commit comments

Comments
 (0)