fixed psych events trying to be added as normal notes

This commit is contained in:
Yoshman29
2022-11-11 01:19:01 +01:00
parent 119cc69691
commit 9ee2b7ffd6
3 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
1277
1279
+5
View File
@@ -27,6 +27,11 @@ class Note extends FlxSprite
public var tooLate:Bool = false;
public var wasGoodHit:Bool = false;
/**
* Whenever that note should be avoided by Botplay.
*/
public var avoid:Bool = false;
/**
* The note that comes before this one (sustain and not)
*/
+2
View File
@@ -554,6 +554,8 @@ class PlayState extends MusicBeatState
if (songNotes == null) continue;
var daStrumTime:Float = songNotes[0];
var daNoteData:Int = Std.int(songNotes[1] % 8);
if (daNoteData < 0) continue;
var daNoteType:Int = Std.int(songNotes[1] / 8);
var gottaHitNote:Bool = daNoteData >= 4 ? !section.mustHitSection : section.mustHitSection;