@@ -642,15 +642,15 @@ class FreeplayState extends MusicBeatState
642642
643643 var songName : String = ' ' ;
644644 var modName : String = ' ' ;
645- var locationId : Int = 0 ;
645+ var locationId : Array < Int > = [] ;
646646 var isMissing : Bool = false ;
647647 var color : FlxColor = 0xFFFFFFFF ;
648648
649649 if (APEntryState .inArchipelagoMode ) {
650650 songName = songs [i ].songName ;
651651 modName = WeekData .weeksLoaded .get (WeekData .weeksList [songs [i ].week ]).folder ;
652- locationId = APEntryState .apGame .info (). get_location_id ( songName + (modName != " " ? " (" + modName + " )" : " " ) + " -0 " );
653- isMissing = APEntryState .apGame .isLocationMissing (APEntryState .apGame .info ().get_location_name (locationId )) ;
652+ locationId = APEntryState .apGame .locationData ( songName + (modName != " " ? " (" + modName + " )" : " " ));
653+ isMissing = [ for ( ID in locationId ) APEntryState .apGame .isLocationMissing (APEntryState .apGame .info ().get_location_name (ID ))]. indexOf ( true ) != - 1 || locationId . length == 0 ;
654654 color = isMissing ? FlxColor .RED : FlxColor .GREEN ;
655655
656656 for (daSongName in curUnlocked .keys ())
@@ -665,14 +665,18 @@ class FreeplayState extends MusicBeatState
665665 trueMissing .push (songName );
666666 }
667667 }
668-
669668 var songText : Alphabet ;
670669 if (APEntryState .inArchipelagoMode ) {
671- // trace('Song: ' + songName + ', Mod: ' + (modName != "" ? modName : "(not modded)") + ', Missing: ' + isMissing);
672- songText = isVictorySong (songName , modName ) ? (isMissing ? new VictorySong (90 , 320 , songName , color ) : new ColoredAlphabet (90 , 320 , songName , true , 0xFFFFD700 )) : new ColoredAlphabet (90 , 320 , songName , true , color );
670+ if (locationId .length > 0 && locationId .indexOf (0 ) == - 1 ) {
671+ // trace('Song: ' + songName + ', Mod: ' + (modName != "" ? modName : "(not modded)") + ', Missing: ' + isMissing);
672+ songText = isVictorySong (songName , modName ) ? (isMissing ? new VictorySong (90 , 320 , songName , color ) : new ColoredAlphabet (90 , 320 , songName , true , 0xFFFFD700 )) : new ColoredAlphabet (90 , 320 , songName , true , color );
673+ } else {
674+ continue ;
675+ }
673676 } else {
674677 songText = new Alphabet (90 , 320 , songs [i ].songName , true );
675678 }
679+ // if (songText.exists(true)) {
676680 songText .targetY = i ;
677681 grpSongs .add (songText );
678682
@@ -692,6 +696,7 @@ class FreeplayState extends MusicBeatState
692696 // but over on mixtape engine we do arrays better
693697 iconArray .push (icon );
694698 iconList .add (icon );
699+ // }
695700
696701 // songText.x += 40;
697702 // DONT PUT X IN THE FIRST PARAMETER OF new ALPHABET() !!
0 commit comments