From ab2d0140479ba1b6d1566d3b44b0cc850c9e3f5e Mon Sep 17 00:00:00 2001 From: Kade M Date: Mon, 2 Aug 2021 17:46:02 -0700 Subject: [PATCH] fix the uhmm the uh uhmm fix uhmmm the uhmn uh uhhmm the uh uhmm diff calc so it doesn't uhmm uhmn uh break --- source/DiffCalc.hx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source/DiffCalc.hx b/source/DiffCalc.hx index 5022cb8..608fb05 100644 --- a/source/DiffCalc.hx +++ b/source/DiffCalc.hx @@ -23,7 +23,6 @@ class DiffCalc public static function CalculateDiff(song:SwagSong, ?accuracy:Float = .93) { - trace('calcuilafjwaf'); // cleaned notes var cleanedNotes:Array = []; @@ -38,14 +37,16 @@ class DiffCalc { for (ii in i.sectionNotes) // notes { - if (ii[1] > 3 && !i.mustHitSection) + var gottaHitNote:Bool = i.mustHitSection; + + if (ii[1] >= 3 && gottaHitNote) cleanedNotes.push(new SmallNote(ii[0],Math.floor(Math.abs(ii[1])))); - else if (ii[1] < 4 && i.mustHitSection) + if (ii[1] <= 4 && !gottaHitNote) cleanedNotes.push(new SmallNote(ii[0],Math.floor(Math.abs(ii[1])))); } } - trace(cleanedNotes.length + " - playable notes"); + trace('calcuilafjwaf ' + cleanedNotes.length); var handOne:Array = []; var handTwo:Array = []; @@ -369,4 +370,4 @@ class DiffCalc diffVector[i] = (fuck + floatZero) / 2; } } -} \ No newline at end of file +}