mirror of https://github.com/hykilpikonna/AquaDX
[+] Wacca item unlocks
parent
1e229c12cc
commit
6441dfd219
|
@ -185,18 +185,26 @@ fun WaccaServer.init() {
|
||||||
val bingo = rp.bingo.findByUser(u).firstOrNull()
|
val bingo = rp.bingo.findByUser(u).firstOrNull()
|
||||||
val go = u.card?.aquaUser?.gameOptions ?: AquaGameOptions()
|
val go = u.card?.aquaUser?.gameOptions ?: AquaGameOptions()
|
||||||
|
|
||||||
// TODO: make this and vip configurable
|
// TODO: make vip configurable
|
||||||
// u.wp = 999999
|
|
||||||
|
|
||||||
// All unlock
|
// All unlock
|
||||||
|
if (go.waccaInfiniteWp) u.wp = 999999
|
||||||
if (go.unlockMusic && wacca.musicMapping.isNotEmpty()) {
|
if (go.unlockMusic && wacca.musicMapping.isNotEmpty()) {
|
||||||
items[MUSIC_UNLOCK()] = wacca.musicMapping.keys.map { MUSIC_UNLOCK(u, it, p1 = INFERNO.value.long()) }
|
items[MUSIC_UNLOCK()] = wacca.musicMapping.keys.map { MUSIC_UNLOCK(u, it, p1 = INFERNO.value.long()) }
|
||||||
}
|
}
|
||||||
if (go.unlockTickets) {
|
if (go.unlockTickets) {
|
||||||
// Valid tickets: 106001, 106002, 206001, 206002
|
|
||||||
var i = 0
|
var i = 0
|
||||||
items[TICKET()] = enabledTickets.flatMap { (1..5).map { TICKET(u, it).apply { id = (i++).toLong() } } }
|
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(
|
u.run { ls(
|
||||||
"0 status" - lStatus(),
|
"0 status" - lStatus(),
|
||||||
|
|
Loading…
Reference in New Issue