From d4178c85a96788e59d0c38bdf21bf5285eee6774 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Sat, 30 Mar 2024 20:49:40 -0400 Subject: [PATCH] [F] Fix wacca song unlock (!) --- src/main/java/icu/samnyan/aqua/sega/wacca/WaccaServer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/icu/samnyan/aqua/sega/wacca/WaccaServer.kt b/src/main/java/icu/samnyan/aqua/sega/wacca/WaccaServer.kt index 03b37cc8..fade59a9 100644 --- a/src/main/java/icu/samnyan/aqua/sega/wacca/WaccaServer.kt +++ b/src/main/java/icu/samnyan/aqua/sega/wacca/WaccaServer.kt @@ -194,7 +194,7 @@ fun WaccaServer.init() { else if (it == TICKET && go?.unlockTickets == true) (0..4).map { ls(it, 106002, 0) } else items[it()]?.map { it.ls() } ?: empty }, - "4 scores" - (scores.map { it.ls() } + (items[MUSIC_UNLOCK()]?.map { song -> + "4 scores" - (scores.map { it.ls() } + (items[MUSIC_UNLOCK()]?.flatMap { song -> // If the song is unlocked but hasn't been played, add a song in the score list with 0 clears (WaccaDifficulty.HARD()..song.p1).filter { scoreMap[song.itemId to it.int()] == null }.map { diff -> WcUserScore().apply { user = u; musicId = song.itemId; level = diff.int() }.ls()