mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-08-21 10:24:12 -05:00
IIDX: Fixed grade achieve and miss count
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user