some more fixes so botplay works

This commit is contained in:
KadeDeveloper 2021-08-11 18:41:34 -07:00
parent cde9e30dfc
commit 880c51ac3c
2 changed files with 3 additions and 7 deletions

View File

@ -3937,11 +3937,11 @@ class PlayState extends MusicBeatState
if (i != null) if (i != null)
replayAna.anaArray.push(i); // put em all there replayAna.anaArray.push(i); // put em all there
} }
if (PlayStateChangeables.botPlay)
notes.forEachAlive(function(daNote:Note) notes.forEachAlive(function(daNote:Note)
{ {
if ((daNote.mustPress && daNote.tooLate && !PlayStateChangeables.useDownscroll || daNote.mustPress && daNote.tooLate daNote.rating = Ratings.CalculateRating(-(daNote.strumTime - Conductor.songPosition), Math.floor((PlayStateChangeables.safeFrames / 60) * 1000));
&& PlayStateChangeables.useDownscroll) if (daNote.canBeHit && !daNote.tooLate && daNote.mustPress && daNote.rating == "sick")
&& daNote.mustPress && PlayStateChangeables.botPlay)
{ {
// Force good note hit regardless if it's too late to hit it or not as a fail safe // Force good note hit regardless if it's too late to hit it or not as a fail safe
if (loadRep) if (loadRep)

View File

@ -106,11 +106,7 @@ class Ratings
// IF LEMON SEES THIS I'M SORRY :( // IF LEMON SEES THIS I'M SORRY :(
// trace('Hit Info\nDifference: ' + noteDiff + '\nZone: ' + Conductor.safeZoneOffset * 1.5 + "\nTS: " + customTimeScale + "\nLate: " + 155 * customTimeScale); // 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); var rating = checkRating(noteDiff,customTimeScale);