From 6441dfd21989e28ce8a0f1de33b88039be2a2451 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Tue, 2 Apr 2024 01:56:42 -0400 Subject: [PATCH] [+] Wacca item unlocks --- .../icu/samnyan/aqua/sega/wacca/WaccaServer.kt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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 b13e6ac5..093329b7 100644 --- a/src/main/java/icu/samnyan/aqua/sega/wacca/WaccaServer.kt +++ b/src/main/java/icu/samnyan/aqua/sega/wacca/WaccaServer.kt @@ -185,18 +185,26 @@ fun WaccaServer.init() { val bingo = rp.bingo.findByUser(u).firstOrNull() val go = u.card?.aquaUser?.gameOptions ?: AquaGameOptions() - // TODO: make this and vip configurable - // u.wp = 999999 + // TODO: make vip configurable // All unlock + if (go.waccaInfiniteWp) u.wp = 999999 if (go.unlockMusic && wacca.musicMapping.isNotEmpty()) { items[MUSIC_UNLOCK()] = wacca.musicMapping.keys.map { MUSIC_UNLOCK(u, it, p1 = INFERNO.value.long()) } } if (go.unlockTickets) { - // Valid tickets: 106001, 106002, 206001, 206002 var i = 0 items[TICKET()] = enabledTickets.flatMap { (1..5).map { TICKET(u, it).apply { id = (i++).toLong() } } } } + if (go.unlockChara) { + wacca.itemMapping["plates"]?.let { items[USER_PLATE()] = it.map { (k, _) -> USER_PLATE(u, k.int()) } } + } + if (go.unlockCollectables) { + // TODO: Add titles + mapOf("icon" to ICON, "plates" to USER_PLATE, "trophy" to TROPHY).map { (name, type) -> + wacca.itemMapping[name]?.let { items[type()] = it.map { (k, _) -> type(u, k.int()) } } + } + } u.run { ls( "0 status" - lStatus(),