IIDX: Fixed grade achieve and miss count

This commit is contained in:
duel0213 2025-01-22 01:14:06 +09:00
parent a0f9167bfc
commit 6b5a90b05e
2 changed files with 9 additions and 6 deletions

View File

@ -120,10 +120,8 @@ export const graderaised: EPR = async (info, data, send) => {
if (_.isNil(pcdata)) return send.deny();
if (_.isNil(grade)) {
if (cflg == 4) {
if (gtype == 0)
pcdata.sgid = Math.max(gid, pcdata.sgid);
else
pcdata.dgid = Math.max(gid, pcdata.dgid);
if (gtype == 0) pcdata.sgid = Math.max(gid, pcdata.sgid);
else pcdata.dgid = Math.max(gid, pcdata.dgid);
updatePcdata = true;
}
@ -137,7 +135,12 @@ export const graderaised: EPR = async (info, data, send) => {
updateGrade = true;
}
if (cflg == 4) updatePcdata = true;
if (cflg == 4) {
if (gtype == 0) pcdata.sgid = Math.max(gid, pcdata.sgid);
else pcdata.dgid = Math.max(gid, pcdata.dgid);
updatePcdata = true;
}
}
if (updatePcdata) {

View File

@ -541,7 +541,7 @@ export const musicreg: EPR = async (info, data, send) => {
if (version >= 27) ghost_gauge = music_data[clid + 10];
}
mArray[clid] = mArray[clid] == -1 ? mnum : Math.min(mArray[clid], mnum);
if (mnum != -1) mArray[clid] = mArray[clid] == -1 ? mnum : Math.min(mArray[clid], mnum);
cArray[clid] = Math.max(cArray[clid], cflg);
}