mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-09-30 10:48:08 +03:00
feat: add chusan force unlock 2967 2999 ultima option (#224)
This commit is contained in:
@@ -43,6 +43,9 @@ class AquaGameOptions(
|
||||
@SettingField("chu3")
|
||||
var chusanInfinitePenguins: Boolean = false,
|
||||
|
||||
@SettingField("chu3") @Column(name = "chusan_unlock_2967_2999_ultima")
|
||||
var chusanUnlock29672999Ultima: Boolean = false,
|
||||
|
||||
@SettingField("chu3-matching")
|
||||
var chusanMatchingServer: String = "",
|
||||
|
||||
|
||||
@@ -237,6 +237,13 @@ fun ChusanController.chusanInit() {
|
||||
items.removeAll { it.itemId in penguins }
|
||||
items.addAll(penguins.map { Chu3UserItem(kind, it, 999, true) })
|
||||
}
|
||||
|
||||
if (it.chusanUnlock29672999Ultima && kind == 12) {
|
||||
val existing = items.map { item -> item.itemId }.toHashSet()
|
||||
setOf(2967, 2999)
|
||||
.filterNot { id -> id in existing }
|
||||
.mapTo(items) { id -> Chu3UserItem(kind, id, 1, true) }
|
||||
}
|
||||
}
|
||||
|
||||
items
|
||||
|
||||
Reference in New Issue
Block a user