You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -808,13 +834,13 @@ class FreeplayState extends MusicBeatState
808
834
809
835
for (locationIdIntinlocationIdInts)
810
836
{
811
-
if (locationIdInt!=0&&APEntryState.apGame.info().get_location_name(locationIdInt).trim().toLowerCase().replace("", "-") ==APEntryState.victorySong.trim().toLowerCase().replace("", "-"))
812
-
{
813
-
archipelago.ArchPopup.startPopupCustom("You've completed your goal!", "You win!", "archipelago", function() {
814
-
FlxG.sound.playMusic(Paths.sound('secret'));
815
-
});
816
-
APEntryState.apGame.info().set_goal();
817
-
}
837
+
if (locationIdInt!=0&&states.FreeplayState.isVictorySong(songName, modName))
838
+
{
839
+
archipelago.ArchPopup.startPopupCustom("You've completed your goal!", "You win!", "archipelago", function() {
0 commit comments