mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 19:07:58 +03:00
feat: support iidx omnimix 1.30.1 (#971)
Co-authored-by: zkldi <20380519+zkldi@users.noreply.github.com>
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user