From a0f9167bfcb5d57b2ae4aed4a41580dbd54829e3 Mon Sep 17 00:00:00 2001 From: duel0213 Date: Sat, 30 Nov 2024 17:40:29 +0900 Subject: [PATCH] IIDX: misc --- iidx@asphyxia/handlers/music.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/iidx@asphyxia/handlers/music.ts b/iidx@asphyxia/handlers/music.ts index ef95ea1..be7aaf5 100644 --- a/iidx@asphyxia/handlers/music.ts +++ b/iidx@asphyxia/handlers/music.ts @@ -531,24 +531,17 @@ export const musicreg: EPR = async (info, data, send) => { if (exscore > pExscore) { pgArray[clid] = pgnum; gArray[clid] = gnum; - mArray[clid] = mnum; rArray[clid] = rid; esArray[clid] = exscore; optArray[clid] = option; opt2Array[clid] = option_2; update = 1; } else { - // im not sure these are correct needs to be verify by others // - // lower MISS COUNT when EXSCORE is same and current MISS COUNT is lower than saved one // - // lower MISS COUNT when current lamp is FULL COMBO and current MISS COUNT is lower than saved one // - if (exscore == pExscore && mnum < mArray[clid] || - cflg == 7 && mnum < mArray[clid]) - mArray[clid] = Math.min(mArray[clid], mnum); - ghost = music_data[clid]; if (version >= 27) ghost_gauge = music_data[clid + 10]; } + mArray[clid] = mArray[clid] == -1 ? mnum : Math.min(mArray[clid], mnum); cArray[clid] = Math.max(cArray[clid], cflg); }