feat: support iidx omnimix 1.30.1 (#971)

Co-authored-by: zkldi <20380519+zkldi@users.noreply.github.com>
This commit is contained in:
GRIM657
2023-11-21 22:51:52 +00:00
committed by GitHub
co-authored by zkldi
parent 7b060f04ce
commit ccebb1d01d
7 changed files with 26117 additions and 12939 deletions
@@ -13,7 +13,17 @@ export const ConverterIRFervidexStatic: ConverterFunction<
FervidexStaticScore,
FervidexStaticContext
> = async (data, context, importType, logger) => {
const { difficulty, playtype } = SplitFervidexChartRef(data.chart);
// eslint-disable-next-line prefer-const
let { difficulty, playtype } = SplitFervidexChartRef(data.chart);
// Scripted Long used to be an ANOTHER with id 21201
//
// now it has an id of 12250 and is a legg.
// Versions of omnimix prior to oct 2023 depend on this behaviour.
if (data.song_id === 21201 && difficulty === "ANOTHER") {
data.song_id = 12250;
difficulty = "LEGGENDARIA";
}
const chart = await FindChartOnInGameIDVersion(
"iidx",
@@ -145,7 +145,16 @@ export const ConverterIRFervidex: ConverterFunction<FervidexScore, FervidexConte
importType,
logger
) => {
const { difficulty, playtype } = SplitFervidexChartRef(data.chart);
let { difficulty, playtype } = SplitFervidexChartRef(data.chart);
// Scripted Long used to be an ANOTHER with id 21201
//
// now it has an id of 12250 and is a legg.
// Versions of omnimix prior to oct 2023 depend on this behaviour.
if (data.entry_id === 21201 && difficulty === "ANOTHER") {
data.entry_id = 12250;
difficulty = "LEGGENDARIA";
}
let chart;
@@ -114,6 +114,8 @@ export function SoftwareIDToVersion(
} else if (EXT_RESIDENT.includes(data.ext)) {
if (data.rev === REV_NORMAL) {
return "30";
} else if (data.rev === REV_OMNIMIX) {
return "30-omni";
}
}
}