Skip to content

Commit 2dc972b

Browse files
committed
Update FreeplayState.hx
1 parent b08f2b6 commit 2dc972b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/states/FreeplayState.hx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,14 @@ class FreeplayState extends MusicBeatState
143143
Cursor.cursorMode = Default;
144144
instance = this; // For Archipelago
145145

146+
// Check if the Victory Song is cleared.
147+
148+
{
149+
var victorySong = APEntryState.apGame.getSongAndMod(APEntryState.victorySong);
150+
if (APEntryState.apGame.checkGoal(victorySong.song, victorySong.mod))
151+
trace("Victory song is cleared!");
152+
}
153+
146154
if (APEntryState.apGame != null && APEntryState.apGame.info() != null) {
147155
var checker = archipelago.APGameState.instance?.info();
148156
checker.poll();

0 commit comments

Comments
 (0)