@@ -508,12 +508,12 @@ class FreeplayState extends MusicBeatState
508508 {
509509 colors = [146 , 113 , 253 ];
510510 }
511- var songNameThing : String = song [0 ];
512- var modName : String = leWeek .folder ;
513- var locationIds : Null <Array <Int >> = APEntryState .apGame .locationData (songNameThing ).concat (APEntryState .apGame .noteData (songNameThing , modName ));
514- var isMissing : Bool = APEntryState .apGame .areLocationsMissing (locationIds );
515511 if (CategoryState .loadWeekForce == " unplayed" )
516512 {
513+ var songNameThing : String = song [0 ];
514+ var modName : String = leWeek .folder ;
515+ var locationIds : Null <Array <Int >> = APEntryState .apGame .locationData (songNameThing ).concat (APEntryState .apGame .noteData (songNameThing , modName ));
516+ var isMissing : Bool = APEntryState .apGame .areLocationsMissing (locationIds );
517517 for (songName in curUnlocked .keys ())
518518 {
519519 if (((songNameThing .trim ().toLowerCase ().replace (' -' , ' ' ) == songName .trim ().toLowerCase ().replace (' -' , ' ' )) && leWeek .folder == curUnlocked .get (songName )) && isMissing )
@@ -522,6 +522,10 @@ class FreeplayState extends MusicBeatState
522522 }
523523 else if (CategoryState .loadWeekForce == " unlocked" )
524524 {
525+ var songNameThing : String = song [0 ];
526+ var modName : String = leWeek .folder ;
527+ var locationIds : Null <Array <Int >> = APEntryState .apGame .locationData (songNameThing ).concat (APEntryState .apGame .noteData (songNameThing , modName ));
528+ var isMissing : Bool = APEntryState .apGame .areLocationsMissing (locationIds );
525529 for (songName in curUnlocked .keys ())
526530 {
527531 if (((songNameThing .trim ().toLowerCase ().replace (' -' , ' ' ) == songName .trim ().toLowerCase ().replace (' -' , ' ' )) && leWeek .folder == curUnlocked .get (songName )) && ! isMissing )
@@ -530,6 +534,10 @@ class FreeplayState extends MusicBeatState
530534 }
531535 else if (CategoryState .loadWeekForce == ' hinted' )
532536 {
537+ var songNameThing : String = song [0 ];
538+ var modName : String = leWeek .folder ;
539+ var locationIds : Null <Array <Int >> = APEntryState .apGame .locationData (songNameThing ).concat (APEntryState .apGame .noteData (songNameThing , modName ));
540+ var isMissing : Bool = APEntryState .apGame .areLocationsMissing (locationIds );
533541 for (songName in curHinted .keys ())
534542 {
535543 if (((songNameThing .trim ().toLowerCase ().replace (' -' , ' ' ) == songName .trim ().toLowerCase ().replace (' -' , ' ' )) && leWeek .folder == curHinted .get (songName )) && ! isMissing )
@@ -539,6 +547,10 @@ class FreeplayState extends MusicBeatState
539547 }
540548 else if (categoryWhaat .toLowerCase () == CategoryState .loadWeekForce || (CategoryState .loadWeekForce == " mods" && categoryWhaat == null ) || CategoryState .loadWeekForce == " all" )
541549 {
550+ var songNameThing : String = song [0 ];
551+ var modName : String = leWeek .folder ;
552+ var locationIds : Null <Array <Int >> = APEntryState .apGame .locationData (songNameThing ).concat (APEntryState .apGame .noteData (songNameThing , modName ));
553+ var isMissing : Bool = APEntryState .apGame .areLocationsMissing (locationIds );
542554 if (APEntryState .inArchipelagoMode )
543555 {
544556 if (locationIds != null && locationIds .isNotEmpty ())
@@ -558,12 +570,12 @@ class FreeplayState extends MusicBeatState
558570 colors = [146 , 113 , 253 ];
559571 }
560572
561- var songNameThing : String = song [0 ];
562- var modName : String = leWeek .folder ;
563- var locationIds : Null <Array <Int >> = APEntryState .apGame .locationData (songNameThing ).concat (APEntryState .apGame .noteData (songNameThing , modName ));
564- var isMissing : Bool = APEntryState .apGame .areLocationsMissing (locationIds );
565573 if (CategoryState .loadWeekForce == " unplayed" )
566- {
574+ {
575+ var songNameThing : String = song [0 ];
576+ var modName : String = leWeek .folder ;
577+ var locationIds : Null <Array <Int >> = APEntryState .apGame .locationData (songNameThing ).concat (APEntryState .apGame .noteData (songNameThing , modName ));
578+ var isMissing : Bool = APEntryState .apGame .areLocationsMissing (locationIds );
567579 for (songName in curUnlocked .keys ())
568580 {
569581 if (((songNameThing .trim ().toLowerCase ().replace (' -' , ' ' ) == songName .trim ().toLowerCase ().replace (' -' , ' ' )) && leWeek .folder == curUnlocked .get (songName )) && isMissing )
@@ -572,6 +584,10 @@ class FreeplayState extends MusicBeatState
572584 }
573585 else if (CategoryState .loadWeekForce == " unlocked" )
574586 {
587+ var songNameThing : String = song [0 ];
588+ var modName : String = leWeek .folder ;
589+ var locationIds : Null <Array <Int >> = APEntryState .apGame .locationData (songNameThing ).concat (APEntryState .apGame .noteData (songNameThing , modName ));
590+ var isMissing : Bool = APEntryState .apGame .areLocationsMissing (locationIds );
575591 for (songName in curUnlocked .keys ())
576592 {
577593 if (((songNameThing .trim ().toLowerCase ().replace (' -' , ' ' ) == songName .trim ().toLowerCase ().replace (' -' , ' ' )) && leWeek .folder == curUnlocked .get (songName )) && ! isMissing )
@@ -582,6 +598,9 @@ class FreeplayState extends MusicBeatState
582598 {
583599 if (APEntryState .inArchipelagoMode )
584600 {
601+ var songNameThing : String = song [0 ];
602+ var modName : String = leWeek .folder ;
603+ var locationIds : Null <Array <Int >> = APEntryState .apGame .locationData (songNameThing ).concat (APEntryState .apGame .noteData (songNameThing , modName ));
585604 if (locationIds != null && locationIds .isNotEmpty ())
586605 addSong (song [0 ], i , song [1 ], FlxColor .fromRGB (colors [0 ], colors [1 ], colors [2 ]));
587606 }
0 commit comments