diff --git a/buildnumber.txt b/buildnumber.txt index d8f80992..9947b8e3 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -1994 \ No newline at end of file +1995 \ No newline at end of file diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index 2d75b98c..2d03a81d 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -1568,14 +1568,14 @@ class PlayState extends MusicBeatState var event:NoteHitEvent; if (note.mustPress) // event = scripts.event("onPlayerHit", EventManager.get(NoteHitEvent).recycle(note, [boyfriend], true, note.noteType, note.strumID, note.noteData > 0 ? 0.023 : 0.004, score, note.animSuffix, daRating, note.isSustainNote ? null : accuracy, "game/score/", '')); - event = scripts.event("onPlayerHit", EventManager.get(NoteHitEvent).recycle(false, true, !note.isSustainNote, note, [boyfriend], true, note.noteType, "", "game/score/", "", note.strumID, score, accuracy, note.noteData > 0 ? 0.023 : 0.004, daRating)); + event = scripts.event("onPlayerHit", EventManager.get(NoteHitEvent).recycle(false, true, !note.isSustainNote, note, [boyfriend], true, note.noteType, "", "game/score/", "", note.strumID, score, note.isSustainNote ? null : accuracy, note.noteData > 0 ? 0.023 : 0.004, daRating)); else event = scripts.event("onDadHit", EventManager.get(NoteHitEvent).recycle(false, false, false, note, [dad], false, note.noteType, "", "game/score/", "", note.strumID, 0, null, 0, daRating)); if (!event.cancelled) { if (event.accuracy != null) { accuracyPressedNotes++; - totalAccuracyAmount += accuracy; + totalAccuracyAmount += event.accuracy; updateRating(); }