mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-03-21 17:34:46 -05:00
IIDX: Moved invalid miss count migration code position
This commit is contained in:
parent
1b277d768c
commit
7aff587928
|
|
@ -527,6 +527,12 @@ export const musicreg: EPR = async (info, data, send) => {
|
|||
rArray = music_data.rArray;
|
||||
}
|
||||
|
||||
// migration for invalid miss count //
|
||||
// if EXSCORE/MISS COUNT is 0 and CLEAR FLAG is NO PLAY then set MISS COUNT to -1 //
|
||||
for (let a = 0; a < mArray.length; a++) {
|
||||
if (esArray[a] == 0 && cArray[a] == 0 && mArray[a] == 0) mArray[a] = -1;
|
||||
}
|
||||
|
||||
const pExscore = esArray[clid];
|
||||
if (exscore > pExscore) {
|
||||
pgArray[clid] = pgnum;
|
||||
|
|
@ -546,12 +552,6 @@ export const musicreg: EPR = async (info, data, send) => {
|
|||
cArray[clid] = Math.max(cArray[clid], cflg);
|
||||
}
|
||||
|
||||
// migration for invalid miss count //
|
||||
// if EXSCORE/MISS COUNT is 0 and CLEAR FLAG is NO PLAY then set MISS COUNT to -1 //
|
||||
for (let a = 0; a < mArray.length; a++) {
|
||||
if (esArray[a] == 0 && cArray[a] == 0 && mArray[a] == 0) mArray[a] = -1;
|
||||
}
|
||||
|
||||
if (version >= 27) { // TODO:: support old version //
|
||||
const score_top: score_top | null = await DB.FindOne<score_top>(null, {
|
||||
collection: "score_top",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user