feat: add chusan force unlock 2967 2999 ultima option (#224)

This commit is contained in:
crxmsxn
2026-05-31 14:23:49 -04:00
committed by GitHub
parent 6243ee7205
commit 6a10570fa6
5 changed files with 16 additions and 0 deletions
+2
View File
@@ -228,6 +228,8 @@ export const EN_REF_SETTINGS = {
'settings.fields.chusanTeamName.desc': 'Customize the text displayed on the top of your profile.',
'settings.fields.chusanInfinitePenguins.name': 'Infinite Penguins',
'settings.fields.chusanInfinitePenguins.desc': 'Set penguin statues for character level prompting to 999.',
'settings.fields.chusanUnlock29672999Ultima.name': 'Unlock 2967, 2999 Ultima',
'settings.fields.chusanUnlock29672999Ultima.desc': 'Unlocks Ultima difficulty ONLY for musicIds 2967, 2999. Do not use if you don\'t know why you need this.',
'settings.fields.chusanLvUnlockAll.name': 'Unlock Linked Gates',
'settings.fields.chusanLvUnlockAll.desc': 'Incurs a long animated sequence, cannot be undone',
'settings.fields.chusanMatchingReflector.name': 'Matching Server Reflector',
+2
View File
@@ -240,6 +240,8 @@ const zhSettings: typeof EN_REF_SETTINGS = {
'settings.fields.chusanTeamName.desc': '自定义显示在个人资料顶部的文本。',
'settings.fields.chusanInfinitePenguins.name': '我是桐谷遥',
'settings.fields.chusanInfinitePenguins.desc': '将角色界限突破的企鹅雕像数量设置为 999。',
'settings.fields.chusanUnlock29672999Ultima.name': '解锁 2967、2999 Ultima',
'settings.fields.chusanUnlock29672999Ultima.desc': '仅解锁曲目 2967、2999 的 Ultima 难度。不清楚用途请勿使用。',
'settings.fields.chusanLvUnlockAll.name': '解锁所有 Linked Gate',
'settings.fields.chusanLvUnlockAll.desc': '会触发一个很长的动画序列,且无法撤销',
'settings.fields.chusanMatchingReflector.name': '全国对战 Reflector',
@@ -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
@@ -0,0 +1,2 @@
ALTER TABLE aqua_game_options
ADD COLUMN chusan_unlock_2967_2999_ultima BIT(1) NOT NULL DEFAULT 0;