From 0f4c3179fa6fff104a308e748cd95df7280ba378 Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Tue, 11 Jan 2022 15:13:13 +0100 Subject: [PATCH] holy shit im in the future? --- buildnumber.txt | 2 +- source/funkin/game/PlayState.hx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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(); }