mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-03-21 17:34:46 -05:00
IIDX: Fixed where music.crate response may not compatible with certain versions
This commit is contained in:
parent
7aff587928
commit
5821ea8b95
|
|
@ -934,20 +934,15 @@ export const musiccrate: EPR = async (info, data, send) => {
|
|||
K.ITEM("str", str, { ver: String(verMid[0]) })
|
||||
);
|
||||
}
|
||||
else if (version < 27) {
|
||||
c.push(
|
||||
K.ARRAY("u8", [...indices.map(i => cRate[i]), ...indices.map(i => fcRate[i])], { mid: key }),
|
||||
);
|
||||
}
|
||||
else {
|
||||
c.push(
|
||||
K.ARRAY("s32", [...cRate, ...fcRate], { mid: key }),
|
||||
);
|
||||
let rateArray = version < 27 ? [...indices.map(i => cRate[i]), ...indices.map(i => fcRate[i])] : [...cRate, ...fcRate];
|
||||
let rateResult = version < 24 ? K.ARRAY("u8", rateArray, { mid: key }) : K.ARRAY("s32", rateArray, { mid: key });
|
||||
|
||||
c.push(rateResult);
|
||||
}
|
||||
}
|
||||
|
||||
if (version == 14 || version == 15) result = { cdata };
|
||||
else result = { c };
|
||||
result = (version == 14 || version == 15) ? { cdata } : { c };
|
||||
|
||||
return send.object(result);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3063,8 +3063,6 @@ export const pcsave: EPR = async (info, data, send) => {
|
|||
pcdata.d_pace = parseInt($(data).attr().d_pace);
|
||||
pcdata.s_gno = parseInt($(data).attr().s_gno);
|
||||
pcdata.d_gno = parseInt($(data).attr().d_gno);
|
||||
pcdata.s_sub_gno = parseInt($(data).attr().s_sub_gno);
|
||||
pcdata.d_sub_gno = parseInt($(data).attr().d_sub_gno);
|
||||
pcdata.s_gtype = parseInt($(data).attr().s_gtype);
|
||||
pcdata.d_gtype = parseInt($(data).attr().d_gtype);
|
||||
pcdata.s_sdlen = parseInt($(data).attr().s_sdlen);
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ export function register() {
|
|||
name: "忍々七鍵伝",
|
||||
desc: "忍々七鍵伝 Phase",
|
||||
type: "integer",
|
||||
default: 2,
|
||||
default: 1,
|
||||
});
|
||||
R.Config("sb_extraboss",
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user