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 +}