Update PlayState.hx

This commit is contained in:
Gabriela Bestial
2023-07-01 10:13:09 -04:00
committed by GitHub
parent 1b921bfd45
commit 1418bd1b44
+2 -4
View File
@@ -1456,18 +1456,16 @@ class PlayState extends MusicBeatState
scripts.event("onNoteHit", event);
if (!event.cancelled) {
if (event.score) songScore += score;
if (event.accuracy != null) {
accuracyPressedNotes++;
totalAccuracyAmount += event.accuracy;
updateRating();
}
if (event.countAsCombo) combo++;
if (event.showRating || (event.showRating == null && event.player && !note.isSustainNote))
{
songScore += score;
var separatedScore:String = Std.string(combo).addZeros(3);
if (combo == 0 || combo >= 10) {
@@ -1726,4 +1724,4 @@ typedef PlayStateTransitionData = {
var camFollowX:Float;
var camFollowY:Float;
var camZoom:Float;
}
}