use totalNotes instead of currentChart.notes.length

This commit is contained in:
Cameron Taylor 2024-03-04 21:25:56 -05:00
parent fa72fa44b1
commit acc75c5c5c

View file

@ -2618,9 +2618,9 @@ class PlayState extends MusicBeatSubState
combo: Highscore.tallies.combo,
maxCombo: Highscore.tallies.maxCombo,
totalNotesHit: Highscore.tallies.totalNotesHit,
totalNotes: currentChart.notes.length,
totalNotes: Highscore.tallies.totalNotes,
},
accuracy: Highscore.tallies.totalNotesHit / currentChart.notes.length,
accuracy: Highscore.tallies.totalNotesHit / Highscore.tallies.totalNotes,
};
// adds current song data into the tallies for the level (story levels)
@ -2673,7 +2673,7 @@ class PlayState extends MusicBeatSubState
totalNotesHit: 0,
totalNotes: 0,
},
accuracy: Highscore.tallies.totalNotesHit / currentChart.notes.length,
accuracy: Highscore.tallies.totalNotesHit / Highscore.tallies.totalNotes,
};
if (Save.instance.isLevelHighScore(PlayStatePlaylist.campaignId, PlayStatePlaylist.campaignDifficulty, data))