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

This commit is contained in:
Kade M 2021-08-02 17:46:02 -07:00 committed by GitHub
parent fc0a08ed53
commit ab2d014047
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,6 @@ class DiffCalc
public static function CalculateDiff(song:SwagSong, ?accuracy:Float = .93) public static function CalculateDiff(song:SwagSong, ?accuracy:Float = .93)
{ {
trace('calcuilafjwaf');
// cleaned notes // cleaned notes
var cleanedNotes:Array<SmallNote> = []; var cleanedNotes:Array<SmallNote> = [];
@ -38,14 +37,16 @@ class DiffCalc
{ {
for (ii in i.sectionNotes) // notes 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])))); 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])))); cleanedNotes.push(new SmallNote(ii[0],Math.floor(Math.abs(ii[1]))));
} }
} }
trace(cleanedNotes.length + " - playable notes"); trace('calcuilafjwaf ' + cleanedNotes.length);
var handOne:Array<SmallNote> = []; var handOne:Array<SmallNote> = [];
var handTwo:Array<SmallNote> = []; var handTwo:Array<SmallNote> = [];