diff --git a/scripts/importer/src/importers/transformations/completeMissingData.js b/scripts/importer/src/importers/transformations/completeMissingData.js index d18a4495..36290669 100644 --- a/scripts/importer/src/importers/transformations/completeMissingData.js +++ b/scripts/importer/src/importers/transformations/completeMissingData.js @@ -13,7 +13,7 @@ const HEURISTICS = { }; const TAGS = ["pro", "new", "ucs", "hidden", "train", "sp", "quest", "another"]; -module.exports = (metadata, charts, content, filePath) => { +module.exports = (metadata, charts) => { // channel if (metadata.channel === "UNKNOWN") { if (GLOBAL_OPTIONS.mode === "auto") metadata.channel = "ORIGINAL"; @@ -55,23 +55,6 @@ module.exports = (metadata, charts, content, filePath) => { checkLevelOrder(singleCharts); } - // separate level 99 charts - const numberOf99Charts = _.sumBy(charts, (it) => it.header.level === 99); - if (numberOf99Charts > 10) throw new Error("too_many_level_99_charts"); - if (numberOf99Charts > 1) { - let variantIndex = 1; - let updatedLevel = 99 - numberOf99Charts + 1; - for (let chart of charts) { - if (chart.header.level === 99) { - chart.header.level = updatedLevel; - chart.header.variant = VARIANTS[variantIndex]; - chart.header.order = updatedLevel; - updatedLevel++; - variantIndex++; - } - } - } - // check limits const singleCharts = charts.filter((it) => !it.header.isDouble); const doubleCharts = charts.filter((it) => it.header.isDouble); diff --git a/src/scenes/SelectionScene.cpp b/src/scenes/SelectionScene.cpp index d7580475..6dafe11e 100644 --- a/src/scenes/SelectionScene.cpp +++ b/src/scenes/SelectionScene.cpp @@ -823,7 +823,7 @@ void SelectionScene::printNumericLevel(Chart* chart, s8 offsetY) { } auto numericLevel = getSelectedNumericLevel(); - auto levelText = numericLevel >= 90 ? "??" : std::to_string(numericLevel); + auto levelText = numericLevel == 99 ? "??" : std::to_string(numericLevel); if (levelText.size() == 1) levelText = "0" + levelText; SCENE_write(levelText, NUMERIC_LEVEL_ROW + offsetY);