mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-01 03:18:06 +03:00
19 lines
441 B
JavaScript
19 lines
441 B
JavaScript
const { MutateCollection } = require("../util");
|
|
|
|
module.exports = (idSet) =>
|
|
MutateCollection("charts-iidx.json", (charts) => {
|
|
for (const chart of charts) {
|
|
if (
|
|
idSet.includes(chart.data.inGameID) &&
|
|
!chart.versions.includes("inf") &&
|
|
chart.data["2dxtraSet"] === null &&
|
|
chart.difficulty !== "LEGGENDARIA" &&
|
|
chart.difficulty !== "BEGINNER"
|
|
) {
|
|
chart.versions.push("inf");
|
|
}
|
|
}
|
|
|
|
return charts;
|
|
});
|