mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-08 06:48:04 +03:00
there is no pale purple
This commit is contained in:
@@ -63,6 +63,7 @@ The following judgements are defined:
|
||||
- `Past`
|
||||
- `Present`
|
||||
- `Future`
|
||||
- `Eternal`
|
||||
- `Beyond`
|
||||
|
||||
## Classes
|
||||
|
||||
@@ -13,10 +13,10 @@ import { bgc } from "./_util";
|
||||
const ARCAEA_DIFFICULTY_COLORS: GPTClientImplementation<
|
||||
GamesForGroup["arcaea"]
|
||||
>["difficultyColours"] = {
|
||||
Past: COLOUR_SET.paleBlue,
|
||||
Present: COLOUR_SET.paleGreen,
|
||||
Past: COLOUR_SET.blue,
|
||||
Present: COLOUR_SET.green,
|
||||
Future: COLOUR_SET.purple,
|
||||
Eternal: COLOUR_SET.palePurple,
|
||||
Eternal: COLOUR_SET.paleBlue,
|
||||
Beyond: COLOUR_SET.vibrantRed,
|
||||
};
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ interface SonglistEntry {
|
||||
search_artist?: LocalizedSearchTerms;
|
||||
version: string;
|
||||
difficulties: Array<SonglistChart>;
|
||||
deleted?: boolean
|
||||
deleted?: boolean;
|
||||
}
|
||||
|
||||
interface PacklistEntry {
|
||||
@@ -178,7 +178,7 @@ const newSongs: Array<SongDocument<"arcaea">> = [];
|
||||
const newCharts: Array<ChartDocument<"arcaea">> = [];
|
||||
|
||||
for (const entry of data.songs) {
|
||||
if(entry.deleted) {
|
||||
if (entry.deleted) {
|
||||
continue;
|
||||
}
|
||||
const inGameID = entry.id;
|
||||
|
||||
@@ -35,7 +35,7 @@ const MANUAL_TITLE_MAP = {
|
||||
"Signal feat. Such": "Signal",
|
||||
"キャラメルポップコーンたべたいよ~": "キャラメルポップコーンたべたいよ〜",
|
||||
"患部で止まってすぐ溶ける ~ 狂気の優曇華院": "患部で止まってすぐ溶ける 〜 狂気の優曇華院",
|
||||
"患部で止まってすぐ溶ける~ 狂気の優曇華院": "患部で止まってすぐ溶ける 〜 狂気の優曇華院"
|
||||
"患部で止まってすぐ溶ける~ 狂気の優曇華院": "患部で止まってすぐ溶ける 〜 狂気の優曇華院",
|
||||
};
|
||||
// Multiple different songs with the same title, requiring artist search.
|
||||
const NEEDS_ARTIST_SEARCH = ["Quon", "Genesis"];
|
||||
@@ -48,8 +48,8 @@ const AF_FTR_BLACKLIST = [
|
||||
"0xe0e1ccull",
|
||||
"HIVEMIND INTERLINKED",
|
||||
"Live Faster Die Younger",
|
||||
"Mistempered Malignance"
|
||||
]
|
||||
"Mistempered Malignance",
|
||||
];
|
||||
|
||||
const songs = ReadCollection("songs-arcaea.json");
|
||||
|
||||
@@ -81,12 +81,7 @@ function parseScrapedData(file, mutationCallback) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const chart = FindChartWithDFVersion(
|
||||
charts,
|
||||
song.id,
|
||||
entry.difficulty,
|
||||
"mobile",
|
||||
);
|
||||
const chart = FindChartWithDFVersion(charts, song.id, entry.difficulty, "mobile");
|
||||
|
||||
if (!chart) {
|
||||
console.warn(`${song.title} [${entry.difficulty}] - Couldn't find chart?`);
|
||||
@@ -101,7 +96,7 @@ function parseScrapedData(file, mutationCallback) {
|
||||
}
|
||||
|
||||
function chartConstantMutationCallback(chart, entry) {
|
||||
if(chart.levelNum !== entry.levelNum) {
|
||||
if (chart.levelNum !== entry.levelNum) {
|
||||
console.info(`${entry.title} ${entry.difficulty} ${chart.levelNum} -> ${entry.levelNum}`);
|
||||
}
|
||||
chart.level = entry.level;
|
||||
@@ -118,8 +113,14 @@ if (fs.existsSync(path.join(__dirname, "upper.json"))) {
|
||||
|
||||
if (fs.existsSync(path.join(__dirname, "notecount.json"))) {
|
||||
parseScrapedData("notecount.json", (chart, entry) => {
|
||||
if (chart.data.notecount !== undefined && chart.data.notecount > 0 && chart.data.notecount !== entry.notecount) {
|
||||
console.warn(`${entry.title} ${entry.difficulty} ${chart.notecount} -> ${entry.notecount}`);
|
||||
if (
|
||||
chart.data.notecount !== undefined &&
|
||||
chart.data.notecount > 0 &&
|
||||
chart.data.notecount !== entry.notecount
|
||||
) {
|
||||
console.warn(
|
||||
`${entry.title} ${entry.difficulty} ${chart.notecount} -> ${entry.notecount}`,
|
||||
);
|
||||
}
|
||||
chart.data = {
|
||||
...chart.data,
|
||||
|
||||
@@ -6,7 +6,7 @@ MutateCollection("folders.json", (folders) => {
|
||||
logger.info("Updating Folders.");
|
||||
|
||||
for (const folder of folders) {
|
||||
if(folder.id === undefined || !folder.id.startsWith("F")) {
|
||||
if (folder.id === undefined || !folder.id.startsWith("F")) {
|
||||
folder.id = CreateFolderID();
|
||||
folder.legacyFolderID = `F${crypto.randomBytes(32).toString("hex")}`;
|
||||
logger.info(`Updating ${folder.slug}`);
|
||||
|
||||
Reference in New Issue
Block a user