fix: correct chart scoring weights for v1.0.3
This commit is contained in:
+1
-10
@@ -18,13 +18,10 @@ type ActiveCandidate = {
|
||||
export const CHART_SCORE_WEIGHT_COEFFICIENT = 0.3713416563352296;
|
||||
|
||||
export function scoreRatioFromNotes(notes: ExactSongChart['notes']): number {
|
||||
const countedMidTimes = new Set<number>();
|
||||
let weight = 0;
|
||||
|
||||
for (const note of notes) {
|
||||
if (note.type === 'mid') {
|
||||
if (countedMidTimes.has(note.timeSeconds)) continue;
|
||||
countedMidTimes.add(note.timeSeconds);
|
||||
weight += 0.1;
|
||||
continue;
|
||||
}
|
||||
@@ -129,13 +126,7 @@ export function calculateExactScore(
|
||||
options: ExactScoreOptions
|
||||
): ExactScoreResult {
|
||||
const directBonus = options.directSongScoreBonusPercent ?? 0;
|
||||
const countedMidTimes = new Set<number>();
|
||||
const scoreNotes = chart.notes.filter((note) => {
|
||||
if (note.type !== 'mid') return true;
|
||||
if (countedMidTimes.has(note.timeSeconds)) return false;
|
||||
countedMidTimes.add(note.timeSeconds);
|
||||
return true;
|
||||
});
|
||||
const scoreNotes = chart.notes;
|
||||
const notePoints = scoreNotes.map((note, index) => {
|
||||
const combo = index + 1;
|
||||
const baseNoteScore = note.type === 'mid'
|
||||
|
||||
Reference in New Issue
Block a user