feat: support every song difficulty including Easy and Normal
Publish GitHub Pages output / publish (push) Successful in 41s
Publish GitHub Pages output / publish (push) Successful in 41s
This commit is contained in:
@@ -6,7 +6,7 @@ import { formulaScoreMetadata } from './song-score-formulas.mjs';
|
||||
const sourceOrigin = process.argv[2] ?? 'https://dreams.wf-calc.net';
|
||||
const outputDirectory = path.resolve('static/data/charts');
|
||||
const catalogPath = path.resolve('src/lib/data/exact-chart-catalog.json');
|
||||
const selectedDifficulties = new Set(['HARD', 'EXPERT']);
|
||||
const selectedDifficulties = new Set(['EASY', 'NORMAL', 'HARD', 'EXPERT']);
|
||||
const chartScoreWeightCoefficient = 0.3713416563352296;
|
||||
const scoreCalibrations = JSON.parse(await readFile(path.resolve('data/score-calibrations.json'), 'utf8'));
|
||||
const scoreCalibrationByKey = new Map(scoreCalibrations.charts.map((row) => [
|
||||
@@ -219,7 +219,7 @@ for (const match of simulatorModule.matchAll(importPattern)) {
|
||||
if (selectedDifficulties.has(difficulty)) imports.push({ songId, difficulty, difficultyLevel, chartFile, assetFile });
|
||||
}
|
||||
|
||||
if (imports.length === 0) throw new Error('수집할 Hard/Expert 채보 모듈을 찾지 못했습니다.');
|
||||
if (imports.length === 0) throw new Error('수집할 채보 모듈을 찾지 못했습니다.');
|
||||
await mkdir(outputDirectory, { recursive: true });
|
||||
|
||||
let completed = 0;
|
||||
|
||||
Reference in New Issue
Block a user