mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-03-21 17:34:46 -05:00
Usaneko/Peace : Add Omnimix support
This commit is contained in:
parent
5b0cfb25b2
commit
6b158087b5
|
|
@ -1,6 +1,6 @@
|
|||
# Pop'n Music
|
||||
|
||||
Plugin Version: **v2.2.1**
|
||||
Plugin Version: **v2.2.2**
|
||||
|
||||
## Supported Versions
|
||||
- pop'n music 19 Tune Street
|
||||
|
|
@ -15,6 +15,9 @@ Important : require minimum Asphyxia Core **v1.31**
|
|||
|
||||
## Changelog
|
||||
|
||||
### 2.2.2
|
||||
* Usaneko/Peace : Add Omnimix support (songs with id >= 3000).
|
||||
|
||||
### 2.2.1
|
||||
* Tune Street : User customization is now saved
|
||||
* Fix 1.x to 2.x conversion code when there are multiple profiles
|
||||
|
|
|
|||
|
|
@ -166,6 +166,7 @@ const readScore = async (req: EamuseInfo, data: any, send: EamuseSend): Promise<
|
|||
const getScores = async (refid: string, version: string, forFriend: boolean = false) => {
|
||||
const scoresData = await utils.readScores(refid, version);
|
||||
const result = [];
|
||||
const maxMusicId = GAME_MAX_MUSIC_ID[isOmni ? 'omni' : version];
|
||||
|
||||
for (const key in scoresData.scores) {
|
||||
const keyData = key.split(':');
|
||||
|
|
@ -186,7 +187,7 @@ const getScores = async (refid: string, version: string, forFriend: boolean = fa
|
|||
1100: 11,
|
||||
}[score.clear_type];
|
||||
|
||||
if (music > GAME_MAX_MUSIC_ID[version]) {
|
||||
if (music > maxMusicId) {
|
||||
continue;
|
||||
}
|
||||
if ([0, 1, 2, 3].indexOf(sheet) == -1) {
|
||||
|
|
@ -667,7 +668,13 @@ const friend = async (req: EamuseInfo, data: any, send: EamuseSend): Promise<any
|
|||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
let isOmni= false;
|
||||
|
||||
const getVersion = (req: EamuseInfo): string => {
|
||||
if(req.model.indexOf('J:A:X') >= 0) {
|
||||
isOmni = true;
|
||||
}
|
||||
|
||||
const date: number = parseInt(req.model.match(/:(\d*)$/)[1]);
|
||||
if (date >= 2018101700) {
|
||||
return 'v25';
|
||||
|
|
@ -678,7 +685,8 @@ const getVersion = (req: EamuseInfo): string => {
|
|||
|
||||
const GAME_MAX_MUSIC_ID = {
|
||||
v24: 1704,
|
||||
v25: 1877
|
||||
v25: 1877,
|
||||
omni: 3155
|
||||
}
|
||||
|
||||
const defaultAchievements: AchievementsUsaneko = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user