This commit is contained in:
KadeDeveloper 2021-07-20 17:25:58 -07:00
parent 4a1a87e6ff
commit eebc9a7a5b
2 changed files with 8 additions and 7 deletions

View File

@ -1611,10 +1611,13 @@ class PlayState extends MusicBeatState
data = i; data = i;
} }
if (data == -1) if (data == -1)
{
trace("couldn't find a keybind with the code " + key);
return; return;
}
if (keys[data]) if (keys[data])
{ {
trace("ur already holding " + key);
return; return;
} }
@ -3390,8 +3393,6 @@ class PlayState extends MusicBeatState
var rating:FlxSprite = new FlxSprite(); var rating:FlxSprite = new FlxSprite();
var score:Float = 350; var score:Float = 350;
trace(totalNotesHit);
if (FlxG.save.data.accuracyMod == 1) if (FlxG.save.data.accuracyMod == 1)
totalNotesHit += wife; totalNotesHit += wife;
@ -3870,9 +3871,9 @@ class PlayState extends MusicBeatState
playerStrums.forEach(function(spr:FlxSprite) playerStrums.forEach(function(spr:FlxSprite)
{ {
if (pressArray[spr.ID] && spr.animation.curAnim.name != 'confirm') if (keys[spr.ID] && spr.animation.curAnim.name != 'confirm')
spr.animation.play('pressed'); spr.animation.play('pressed');
if (!holdArray[spr.ID]) if (!keys[spr.ID])
spr.animation.play('static'); spr.animation.play('static');
if (spr.animation.curAnim.name == 'confirm' && !curStage.startsWith('school')) if (spr.animation.curAnim.name == 'confirm' && !curStage.startsWith('school'))
@ -4194,7 +4195,6 @@ class PlayState extends MusicBeatState
{ {
if (!note.isSustainNote) if (!note.isSustainNote)
{ {
trace(totalNotesHit);
popUpScore(note); popUpScore(note);
combo += 1; combo += 1;
} }

View File

@ -139,7 +139,8 @@ class ResultsScreen extends FlxSubState
var diff = obj[3]; var diff = obj[3];
var judge = obj2; var judge = obj2;
mean += diff; if (diff != (166 * Math.floor((PlayState.rep.replay.sf / 60) * 1000) / 166))
mean += diff;
if (obj[1] != -1) if (obj[1] != -1)
graph.addToHistory(diff, judge, obj3); graph.addToHistory(diff, judge, obj3);
} }