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)
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)

View File

@ -107,10 +107,6 @@ class Ratings
// 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);