fix: add new option for lv and bump correctly

This commit is contained in:
Raymond
2026-05-12 18:27:59 -04:00
parent eb600f1715
commit aec0fdac8b
4 changed files with 28 additions and 16 deletions
@@ -16,7 +16,7 @@
let changed: string[] = []; let changed: string[] = [];
let symbols: Record<number, number> = {}; let symbols: Record<number, number> = {};
let allItems: Record<string, Record<string, { name: string }>> = {} let allItems: Record<string, Record<string, { name: string }>> = {}
let submitting: string | undefined | null; let submitting: string | undefined | null;
let settings: Record<string, GameOption> = {}; let settings: Record<string, GameOption> = {};
let existingUrl = ""; let existingUrl = "";
@@ -101,12 +101,13 @@
{#if linkedVerseAvailable} {#if linkedVerseAvailable}
<GameSettingFields game="chu3-linked-verse" /> <GameSettingFields game="chu3-linked-verse" />
{#if settings["chusanLvDifficulty"]} {#if settings["chusanLvDifficulty"]}
<a target="_blank" href="https://silentblue.remywiki.com/CHUNITHM:Linked_VERSE">{t(`userbox.lv.help`)}</a>
<div class="field"> <div class="field">
<label for={`chusanLvDifficulty`}>{ts(`userbox.lv.difficulty`)}</label> <label for={`chusanLvDifficulty`}>{ts(`userbox.lv.difficulty`)}</label>
<div> <div>
<select bind:value={settings["chusanLvDifficulty"].value} id={`chusanLvDifficulty`} on:change={() => {changed = [...changed, `chusanLvDifficulty`];}}> <select bind:value={settings["chusanLvDifficulty"].value} id={`chusanLvDifficulty`} on:change={() => {changed = [...changed, `chusanLvDifficulty`];}}>
{#each {length: 5}, i} {#each {length: 6}, i}
<option value={i + 1}>{t(`userbox.lv.difficulty.${i + 1}` as keyof typeof EN_REF)}</option> <option value={i}>{t(`userbox.lv.difficulty.${i}` as keyof typeof EN_REF)}</option>
{/each} {/each}
</select> </select>
{#if changed.includes(`chusanLvDifficulty`)} {#if changed.includes(`chusanLvDifficulty`)}
+8 -6
View File
@@ -302,13 +302,15 @@ export const EN_REF_USERBOX = {
'userbox.matching.symbolChat': 'Message Choice', 'userbox.matching.symbolChat': 'Message Choice',
'userbox.matching.symbolChat.default': 'Default', 'userbox.matching.symbolChat.default': 'Default',
'userbox.lv.diffnotice': 'In Linked Verse, you will be matched separately based on your difficulty.', 'userbox.lv.help': 'Information about Linked Verse Difficulty',
'userbox.lv.diffnotice': 'In Linked Verse, you will be matched separately based on your difficulty.',
'userbox.lv.difficulty': 'Linked Verse Difficulty', 'userbox.lv.difficulty': 'Linked Verse Difficulty',
'userbox.lv.difficulty.1': 'LEVEL V (1000 life, MASTER only)', 'userbox.lv.difficulty.0': 'LEVEL (Only for supported gates)',
'userbox.lv.difficulty.2': 'LEVEL IV (3000 life, MASTER only)', 'userbox.lv.difficulty.1': 'LEVEL V',
'userbox.lv.difficulty.3': 'LEVEL III (5000 life, MASTER only)', 'userbox.lv.difficulty.2': 'LEVEL IV',
'userbox.lv.difficulty.4': 'LEVEL II (5000 life, MASTER & EXPERT only)', 'userbox.lv.difficulty.3': 'LEVEL III',
'userbox.lv.difficulty.5': 'LEVEL I (5000 life, ALL difficulties)', 'userbox.lv.difficulty.4': 'LEVEL II',
'userbox.lv.difficulty.5': 'LEVEL I',
'userbox.new.name': 'AquaBox', 'userbox.new.name': 'AquaBox',
'userbox.new.setup': 'Drag and drop your Chuni game folder (Lumi or newer) into the box below to display UserBoxes with their nameplate & avatar. All files are handled in-browser.', 'userbox.new.setup': 'Drag and drop your Chuni game folder (Lumi or newer) into the box below to display UserBoxes with their nameplate & avatar. All files are handled in-browser.',
+8 -6
View File
@@ -320,13 +320,15 @@ export const zhUserbox: typeof EN_REF_USERBOX = {
'userbox.matching.symbolChat': '表情选择', 'userbox.matching.symbolChat': '表情选择',
'userbox.matching.symbolChat.default': '默认', 'userbox.matching.symbolChat.default': '默认',
'userbox.lv.diffnotice': ' Linked Verse 中,你将根据难度分别进行匹配。', 'userbox.lv.help': '关于 Linked Verse Difficulty 的信息',
'userbox.lv.diffnotice': '在 Linked Verse 中,你将根据难度分别进行匹配。',
'userbox.lv.difficulty': 'Linked Verse 难度', 'userbox.lv.difficulty': 'Linked Verse 难度',
'userbox.lv.difficulty.1': 'LEVEL V (1000 生命, 仅限 MASTER)', 'userbox.lv.difficulty.0': 'LEVEL (并非总是可用)',
'userbox.lv.difficulty.2': 'LEVEL IV (3000 生命, 仅限 MASTER)', 'userbox.lv.difficulty.1': 'LEVEL V',
'userbox.lv.difficulty.3': 'LEVEL III (5000 生命, 仅限 MASTER)', 'userbox.lv.difficulty.2': 'LEVEL IV',
'userbox.lv.difficulty.4': 'LEVEL II (5000 生命, 仅限 MASTER & EXPERT)', 'userbox.lv.difficulty.3': 'LEVEL III',
'userbox.lv.difficulty.5': 'LEVEL I (5000 生命, 所有难度)', 'userbox.lv.difficulty.4': 'LEVEL II',
'userbox.lv.difficulty.5': 'LEVEL I',
'userbox.new.name': 'AquaBox', 'userbox.new.name': 'AquaBox',
'userbox.new.setup': '将中二(Lumi 或更高版本)的游戏文件夹拖放到下方区域,以显示带有名牌和头像的 UserBox。所有文件都在浏览器中处理。', 'userbox.new.setup': '将中二(Lumi 或更高版本)的游戏文件夹拖放到下方区域,以显示带有名牌和头像的 UserBox。所有文件都在浏览器中处理。',
@@ -37,7 +37,14 @@ fun ChusanController.chusanInit() {
mapOf("courseId" to 300009, "startDate" to "2019-01-01 00:00:00", "endDate" to "2077-01-01 11:45:14"), mapOf("courseId" to 300009, "startDate" to "2019-01-01 00:00:00", "endDate" to "2077-01-01 11:45:14"),
) + (0..14).toList().map { ) + (0..14).toList().map {
// Linked Verse // Linked Verse
mapOf("courseId" to 500000 + (opts?.chusanLvDifficulty ?: 5) + (it * 100), "startDate" to "2019-01-01 00:00:00", "endDate" to "2077-01-01 11:45:14") val difficulty = (opts?.chusanLvDifficulty ?: 5);
mapOf(
"courseId" to 500000
+ (if (it < 12 && difficulty == 0) 1 else difficulty)
+ (if (it >= 12) 1 else 0) + (it * 100),
"startDate" to "2019-01-01 00:00:00",
"endDate" to "2077-01-01 11:45:14"
)
} }
mapOf("length" to lst.size, "gameCourseLevelList" to lst) mapOf("length" to lst.size, "gameCourseLevelList" to lst)