From 880c51ac3c1a3db355c067891d3d62fb6c854425 Mon Sep 17 00:00:00 2001 From: KadeDeveloper Date: Wed, 11 Aug 2021 18:41:34 -0700 Subject: [PATCH] some more fixes so botplay works --- source/PlayState.hx | 6 +++--- source/Ratings.hx | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/source/PlayState.hx b/source/PlayState.hx index 86119b2..b8e3df4 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -3937,11 +3937,11 @@ class PlayState extends MusicBeatState if (i != null) replayAna.anaArray.push(i); // put em all there } + if (PlayStateChangeables.botPlay) notes.forEachAlive(function(daNote:Note) { - if ((daNote.mustPress && daNote.tooLate && !PlayStateChangeables.useDownscroll || daNote.mustPress && daNote.tooLate - && PlayStateChangeables.useDownscroll) - && daNote.mustPress && PlayStateChangeables.botPlay) + daNote.rating = Ratings.CalculateRating(-(daNote.strumTime - Conductor.songPosition), Math.floor((PlayStateChangeables.safeFrames / 60) * 1000)); + if (daNote.canBeHit && !daNote.tooLate && daNote.mustPress && daNote.rating == "sick") { // Force good note hit regardless if it's too late to hit it or not as a fail safe if (loadRep) diff --git a/source/Ratings.hx b/source/Ratings.hx index 23689a2..495efb9 100644 --- a/source/Ratings.hx +++ b/source/Ratings.hx @@ -106,11 +106,7 @@ class Ratings // IF LEMON SEES THIS I'M SORRY :( // trace('Hit Info\nDifference: ' + noteDiff + '\nZone: ' + Conductor.safeZoneOffset * 1.5 + "\nTS: " + customTimeScale + "\nLate: " + 155 * customTimeScale); - - if (FlxG.save.data.botplay && !PlayState.loadRep) - return "sick"; // FUNNY - var rating = checkRating(noteDiff,customTimeScale);