@@ -488,7 +488,7 @@ class APGameState
488488 return false ;
489489 }
490490 }
491- if (FreeplayManager .isVictorySong (songName , modName ))
491+ if (APFreeplayManager .isVictorySong (songName , modName ))
492492 {
493493 setGoal ();
494494 return true ;
@@ -632,23 +632,23 @@ class APGameState
632632 message = " Hint: " + receivingPlayerName + " will find " + itemName + " in " + findingPlayerName + " 's World at " + locationName ;
633633 }
634634
635- if (FreeplayManager .hintTable .exists (locationName ))
635+ if (APFreeplayManager .hintTable .exists (locationName ))
636636 {
637- FreeplayManager .hintTable .set (locationName , FreeplayManager .hintTable .get (locationName ) + " \n " + message );
637+ APFreeplayManager .hintTable .set (locationName , APFreeplayManager .hintTable .get (locationName ) + " \n " + message );
638638 }
639639 else
640640 {
641- FreeplayManager .hintTable .set (locationName , message );
641+ APFreeplayManager .hintTable .set (locationName , message );
642642 }
643643 }
644644 }
645645 }
646- for (hint in FreeplayManager .hintTable .keys ())
646+ for (hint in APFreeplayManager .hintTable .keys ())
647647 {
648- var message = FreeplayManager .hintTable .get (hint );
648+ var message = APFreeplayManager .hintTable .get (hint );
649649 trace (" Hint: " + hint + " - " + message );
650650 var hintSong = getSongAndMod (hint );
651- FreeplayManager .curHinted .push ({song : hintSong .song , mod : hintSong .mod != null ? hintSong .mod : " " });
651+ APFreeplayManager .curHinted .push ({song : hintSong .song , mod : hintSong .mod != null ? hintSong .mod : " " });
652652 trace (hintSong );
653653 }
654654 }
@@ -920,7 +920,7 @@ class APGameState
920920 var tickets = 0 ;
921921 var nonSongs : Map <String , Int > = [];
922922 var nonSongsNames : Array <String > = [];
923- FreeplayManager .curMissing = [];
923+ APFreeplayManager .curMissing = [];
924924
925925 for (songName in song )
926926 {
@@ -945,7 +945,7 @@ class APGameState
945945 data .mod = " " ;
946946 }
947947 var isUnlocked = false ;
948- for (unlocked in FreeplayManager .curUnlocked )
948+ for (unlocked in APFreeplayManager .curUnlocked )
949949 {
950950 if (unlocked .song == data .song && unlocked .mod == data .mod )
951951 {
@@ -960,12 +960,12 @@ class APGameState
960960 {
961961 if (! isSync )
962962 ArchPopup .startPopupSong (data .song , ' archColor' );
963- FreeplayManager .curUnlocked .push ({song : data .song , mod : data .mod });
963+ APFreeplayManager .curUnlocked .push ({song : data .song , mod : data .mod });
964964 }
965965 }
966966
967967 // Check special items and remove any matching items with no mod
968- FreeplayManager .curUnlocked = FreeplayManager .curUnlocked .filter (unlocked ->
968+ APFreeplayManager .curUnlocked = APFreeplayManager .curUnlocked .filter (unlocked ->
969969 ! (APItems .exists (unlocked .song ) && unlocked .mod .trim () == " " )
970970 );
971971 }
@@ -1059,7 +1059,7 @@ class APGameState
10591059 info ().casualSync = false ;
10601060 try
10611061 {
1062- FreeplayManager .reloadFreeplay (true );
1062+ states.freeplay. FreeplayState . instance . fpManager .reloadFreeplay (true );
10631063 }
10641064 catch (e : Dynamic )
10651065 {
@@ -1154,7 +1154,7 @@ class APGameState
11541154
11551155 function checkIfLocked (song : String , mod : String ): Bool
11561156 {
1157- return ! (FreeplayManager .curUnlocked .contains (APEntryState .apGame .getSongAndMod (song + mod )));
1157+ return ! (APFreeplayManager .curUnlocked .contains (APEntryState .apGame .getSongAndMod (song + mod )));
11581158 }
11591159
11601160 function validateMods ()
0 commit comments