From feb18074febc6c4a14ecf32e1e3d29d17f4231c3 Mon Sep 17 00:00:00 2001 From: CAtlas0784 Date: Sat, 24 Oct 2026 19:12:10 +0700 Subject: [PATCH] feat: add monster settings and AA room selection controls --- README.md | 7 + css/styles.css | 356 ++++++++++++++++++++++ index.html | 64 +++- js/app.js | 803 ++++++++++++++++++++++++++++++++++++++++++++++++- js/i18n.js | 214 +++++++++++++ 5 files changed, 1434 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index c9a0aa1..c124f6c 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,13 @@ - การบันทึกแก้เฉพาะจำนวนไอเทมใน `freesr-data.json` ไม่เขียนทับตัวละคร, LC, Relic หรือ Battle Config - รองรับเฉพาะ GaC-hkrpg-go ผ่าน `/api/inventory/materials`; บันทึกลงไฟล์ทันทีและต้องเข้าเกมใหม่เพื่อโหลด session พร้อมจำนวนที่แก้แล้ว +### 👾 6.1 Monster Setting +- แยก Memory of Chaos, Pure Fiction, Apocalyptic Shadow และ Anomaly Arbitration เพื่อดูชื่อด่าน/มอนสเตอร์ รูป, level และ wave จาก metadata Nanoka ที่ตรงกับ `client_version` ของเซิร์ฟเวอร์และ resource `challenge_data.json` / `resources/StageConfig.json` (อ่านอย่างเดียว); เมื่อ Client เปลี่ยนเวอร์ชัน API จะดึง metadata ของเวอร์ชันนั้นให้อัตโนมัติ โดยไม่ใช้ข้อมูลจากเวอร์ชันอื่น +- เปลี่ยนการเลือกกลุ่ม/ด่านเป็นการ์ด และ Custom Enemy ค้นมอนด้วยชื่อหรือ ID พร้อมรูป/ชื่อจาก Nanoka; พิมพ์ ID เองได้ และแสดงรูปตัวอย่างขนาดใหญ่ขึ้น +- Anomaly Arbitration เป็นโหมด Endgame ที่อ่าน stage จาก resource เช่นเดียวกับโหมดอื่น ไม่ใช่ Custom Enemy; Aha's Help มีแท็บแยกจาก AA +- แก้ Custom Enemy ได้เฉพาะ Golden / Crimson Calyx และต้องเชื่อมต่อ GaC-Srtool; การกดใช้ stage จาก Client จะล้าง custom waves เพื่อให้กลับไปใช้ resource +- Weekly Boss, Stagnant Shadow, Cavern of Corrosion, Endgame และ Simulated Universe ไม่รับ custom waves จากหน้านี้ + ### 💾 7. จัดการไฟล์เซฟ GaC (Persistent & FreeSR Data) - **ตั้งค่าตัวเอก (ผู้บุกเบิก):** สลับเพศ (Caelus / Stelle) และเปลี่ยนธาตุ (กายภาพ, ไฟ, จินตภาพ, ความจำ) - **สลับพาธ March 7th:** เลือกระหว่างพาธการอนุรักษ์ (น้ำแข็ง) และพาธล่าสังหาร (จินตภาพ) diff --git a/css/styles.css b/css/styles.css index ccdbb64..4e0acca 100644 --- a/css/styles.css +++ b/css/styles.css @@ -233,6 +233,11 @@ body { margin: 0 auto; } +/* Give the stage browser the full available width when it is active. */ +.main-container:has(#tab-monster-settings.active) { + max-width: none; +} + .tab-content { display: none; animation: fadeIn 0.25s ease-out; @@ -845,6 +850,202 @@ body { border-color: rgba(99, 120, 160, 0.45); } +/* Aha's Help level picker */ +.aha-help-card { + position: relative; + display: flex; + flex-direction: column; + gap: 1.1rem; + margin: 0.25rem 0 1rem; + padding: clamp(1rem, 2.2vw, 1.5rem); + border: 1px solid rgba(245, 180, 75, 0.28); + border-radius: 18px; + background: + radial-gradient(ellipse at 100% 0, rgba(245, 158, 11, 0.09), transparent 42%), + linear-gradient(145deg, rgba(25, 29, 42, 0.96), rgba(15, 19, 30, 0.96)); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025); +} + +.aha-help-heading { + display: flex; + align-items: flex-start; + gap: 1rem; +} + +.aha-help-emblem { + display: grid; + place-items: center; + flex: 0 0 48px; + width: 48px; + height: 48px; + border: 1px solid rgba(251, 191, 36, 0.4); + border-radius: 15px; + background: linear-gradient(145deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.06)); + color: #fcd34d; + font-size: 1.65rem; + text-shadow: 0 0 16px rgba(251, 191, 36, 0.55); +} + +.aha-help-heading-copy { + min-width: 0; +} + +.aha-help-eyebrow { + margin: 0 0 0.3rem; + color: #fbbf24; + font-size: 0.68rem; + font-weight: 800; + letter-spacing: 0.12em; +} + +.aha-help-heading h3 { + margin: 0; + color: var(--text-highlight); + font-size: clamp(1.1rem, 2vw, 1.35rem); + line-height: 1.25; +} + +.aha-help-heading p { + max-width: 760px; + margin: 0.4rem 0 0; + color: var(--text-muted); + font-size: 0.9rem; + line-height: 1.55; +} + +.aha-help-options { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); + gap: 0.75rem; +} + +.aha-help-option { + position: relative; + display: flex; + min-width: 0; + min-height: 112px; + flex-direction: column; + align-items: flex-start; + justify-content: center; + gap: 0.45rem; + padding: 1rem 2.4rem 1rem 1rem; + border: 1px solid rgba(110, 123, 148, 0.28); + border-radius: 13px; + background: rgba(9, 13, 22, 0.62); + color: var(--text-main); + text-align: left; + cursor: pointer; + transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease; +} + +.aha-help-option:hover { + transform: translateY(-2px); + border-color: rgba(251, 191, 36, 0.55); + background: rgba(32, 34, 42, 0.92); +} + +.aha-help-option:focus-visible { + outline: 3px solid rgba(56, 189, 248, 0.8); + outline-offset: 2px; +} + +.aha-help-option.is-selected { + border-color: rgba(251, 191, 36, 0.88); + background: linear-gradient(145deg, rgba(120, 82, 22, 0.34), rgba(37, 31, 27, 0.82)); + box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.18), 0 8px 24px rgba(0, 0, 0, 0.17); +} + +.aha-help-option[data-kind="off"].is-selected { + border-color: rgba(148, 163, 184, 0.7); + background: linear-gradient(145deg, rgba(71, 85, 105, 0.3), rgba(24, 29, 40, 0.88)); + box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.15); +} + +.aha-help-option-title { + color: var(--text-highlight); + font-size: 1.05rem; + font-weight: 800; + line-height: 1.25; +} + +.aha-help-option-detail { + color: var(--text-muted); + font-size: 0.82rem; + line-height: 1.45; +} + +.aha-help-option-check { + position: absolute; + top: 0.8rem; + right: 0.85rem; + display: grid; + width: 25px; + height: 25px; + place-items: center; + border: 1px solid rgba(148, 163, 184, 0.28); + border-radius: 50%; + color: transparent; + font-size: 0.8rem; + font-weight: 900; +} + +.aha-help-option.is-selected .aha-help-option-check { + border-color: #fbbf24; + background: #fbbf24; + color: #171717; +} + +.aha-help-actions { + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; + padding-top: 0.15rem; +} + +.aha-help-save-state { + display: inline-flex; + min-width: 0; + align-items: center; + gap: 0.6rem; + color: var(--text-muted); + font-size: 0.86rem; + line-height: 1.45; +} + +.aha-help-state-dot { + flex: 0 0 9px; + width: 9px; + height: 9px; + border-radius: 50%; + background: #94a3b8; + box-shadow: 0 0 9px currentColor; +} + +.aha-help-save-state[data-state="saved"] .aha-help-state-dot { background: #34d399; } +.aha-help-save-state[data-state="unsaved"] .aha-help-state-dot { background: #fbbf24; } +.aha-help-save-state[data-state="error"] .aha-help-state-dot { background: #fb7185; } +.aha-help-save-state[data-state="unavailable"] .aha-help-state-dot { background: #94a3b8; } + +.aha-help-save-button { + display: inline-flex; + min-height: 46px; + align-items: center; + justify-content: center; + gap: 0.55rem; + padding: 0.7rem 1.15rem; + white-space: nowrap; +} + +.aha-help-native-select { + position: absolute; + width: 1px; + height: 1px; + overflow: hidden; + clip-path: inset(50%); + white-space: nowrap; +} + .switch { position: relative; display: inline-block; @@ -903,6 +1104,11 @@ input:checked + .slider:before { letter-spacing: 0.05em; } +#btn-save-aha-help:disabled { + opacity: 0.45; + cursor: not-allowed; +} + .form-input, .form-select { width: 100%; padding: 0.65rem 0.85rem; @@ -3390,4 +3596,154 @@ input:checked + .slider:before { .build-guide-stat-grid { grid-template-columns: minmax(0, 1fr); } + + .aha-help-actions { + align-items: stretch; + flex-direction: column; + } + + .aha-help-save-button { + width: 100%; + } +} + +@media (max-width: 390px) { + .aha-help-options { + grid-template-columns: minmax(0, 1fr); + } + + .aha-help-heading { + gap: 0.7rem; + } + + .aha-help-emblem { + flex-basis: 40px; + width: 40px; + height: 40px; + } +} + +/* Anomaly Arbitration monster wave editor */ +.monster-settings-intro { margin-bottom: 1rem; } +.monster-settings-rule { display: flex; gap: .65rem; align-items: flex-start; margin-top: .8rem; padding: .8rem 1rem; border: 1px solid rgba(251, 191, 36, .28); border-radius: 10px; background: rgba(245, 158, 11, .08); color: var(--text-main); line-height: 1.55; } +.monster-settings-tabs { display: flex; gap: .5rem; margin: 1rem 0; padding: .45rem; overflow-x: auto; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-secondary); } +.monster-settings-tab { flex: 1 0 auto; min-height: 44px; padding: .65rem .9rem; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text-muted); font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; } +.monster-settings-tab:hover { color: var(--text-main); background: rgba(148, 163, 184, .08); } +.monster-settings-tab.active { color: var(--text-highlight); border-color: rgba(56, 189, 248, .36); background: rgba(14, 165, 233, .13); } +.monster-settings-tab-aha.active { color: #fcd34d; border-color: rgba(251, 191, 36, .45); background: rgba(245, 158, 11, .12); } +.monster-settings-status { margin: .75rem 0; padding: .8rem 1rem; border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-muted); background: var(--bg-card); line-height: 1.5; } +.monster-settings-status[data-state="saved"] { color: #6ee7b7; } +.monster-settings-status[data-state="error"] { color: #fda4af; } +.monster-settings-status[data-state="loading"] { color: #7dd3fc; } +.monster-settings-view { display: grid; gap: 1rem; } +.monster-settings-picker-section { display: grid; gap: .65rem; } +.monster-settings-picker-title { margin: 0; color: var(--text-muted); font-size: .88rem; font-weight: 800; letter-spacing: .02em; } +.monster-settings-group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: .75rem; } +.monster-settings-group-card { display: flex; min-width: 0; min-height: 78px; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem .85rem; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); color: var(--text-main); text-align: left; cursor: pointer; transition: border-color 140ms ease, background 140ms ease, transform 140ms ease; } +.monster-settings-group-card:hover, .monster-settings-stage-card:hover { transform: translateY(-1px); border-color: rgba(56, 189, 248, .45); background: rgba(25, 35, 51, .95); } +.monster-settings-group-card.active { border-color: rgba(56, 189, 248, .72); background: linear-gradient(125deg, rgba(14, 165, 233, .16), rgba(15, 23, 42, .9)); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .1); } +.monster-settings-group-copy, .monster-settings-stage-copy { display: grid; gap: .3rem; min-width: 0; } +.monster-settings-group-name { color: var(--text-main); font-size: .91rem; line-height: 1.3; overflow-wrap: anywhere; } +.monster-settings-group-meta, .monster-settings-stage-meta { color: var(--text-muted); font-size: .75rem; line-height: 1.3; } +.monster-settings-monster.group-feature { flex: 0 0 56px; width: 56px; padding: 0; border: 0; background: transparent; } +.monster-settings-monster.group-feature .monster-settings-monster-portrait { width: 56px; height: 56px; flex-basis: 56px; } +.monster-settings-monster.group-feature .monster-settings-monster-copy { display: none; } +.monster-settings-stage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: .75rem; } +.monster-settings-stage-card { display: flex; min-width: 0; min-height: 144px; align-items: center; gap: .9rem; padding: .85rem; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-card); color: var(--text-main); text-align: left; cursor: pointer; transition: border-color 140ms ease, background 140ms ease, transform 140ms ease; } +.monster-settings-stage-card.active { border-color: rgba(56, 189, 248, .76); background: linear-gradient(125deg, rgba(14, 165, 233, .16), rgba(15, 23, 42, .94)); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .12); } +.monster-settings-stage-card.is-boss { border-color: rgba(251, 191, 36, .3); } +.monster-settings-stage-card.is-boss.active { border-color: rgba(251, 191, 36, .78); background: linear-gradient(125deg, rgba(245, 158, 11, .16), rgba(15, 23, 42, .94)); } +.monster-settings-stage-card:focus-visible, .monster-settings-group-card:focus-visible { outline: 2px solid rgba(56, 189, 248, .75); outline-offset: 2px; } +.monster-settings-monster.stage-feature { flex: 0 0 92px; width: 92px; flex-direction: column; align-items: center; padding: 0; border: 0; background: transparent; } +.monster-settings-monster.stage-feature .monster-settings-monster-portrait { width: 88px; height: 88px; flex-basis: 88px; border-radius: 12px; } +.monster-settings-monster.stage-feature .monster-settings-monster-copy { display: none; } +.monster-settings-stage-copy { flex: 1; } +.monster-settings-stage-copy strong { color: var(--text-main); font-size: .92rem; line-height: 1.28; overflow-wrap: anywhere; } +.monster-settings-stage-card.is-boss .monster-settings-stage-meta:first-of-type { color: #fcd34d; } +.monster-settings-view[hidden] { display: none; } +.monster-aa-room-control { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1rem 1.1rem; border: 1px solid rgba(56, 189, 248, .28); border-radius: 14px; background: linear-gradient(120deg, rgba(14, 165, 233, .1), rgba(15, 23, 42, .72)); } +.monster-aa-room-header { display: grid; gap: .6rem; min-width: 0; } +.monster-aa-room-copy h3 { margin: 0; color: var(--text-highlight); font-size: 1rem; } +.monster-aa-room-copy p { margin: .35rem 0 0; color: var(--text-muted); line-height: 1.5; } +.monster-aa-room-status { color: var(--text-muted); font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; } +.monster-aa-room-status.is-pending { color: #86efac; } +.monster-aa-room-status.is-error { color: #fda4af; } +.monster-aa-room-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .6rem; } +.monster-aa-room-actions .btn { min-height: 42px; white-space: nowrap; } +.monster-aa-room-actions .btn:disabled { opacity: .55; cursor: not-allowed; } +.monster-settings-stage-heading { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; } +.monster-settings-stage-heading h3 { margin: 0; color: var(--text-highlight); font-size: 1.1rem; } +.monster-settings-badge { padding: .25rem .55rem; border: 1px solid rgba(192, 132, 252, .3); border-radius: 999px; color: #d8b4fe; background: rgba(168, 85, 247, .1); font-size: .75rem; font-weight: 700; } +.monster-settings-battle { display: grid; gap: .7rem; padding: 1rem; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); } +.monster-settings-battle h4 { margin: 0; color: var(--text-main); } +.monster-settings-encounter-heading { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; } +.monster-settings-id-badge { color: var(--text-muted); font-size: .76rem; } +.monster-settings-meta { display: flex; gap: .55rem; flex-wrap: wrap; color: var(--text-muted); font-size: .8rem; } +.monster-settings-wave { display: flex; align-items: flex-start; gap: .8rem; padding: .7rem; border: 1px solid rgba(148, 163, 184, .13); border-radius: 9px; background: rgba(148, 163, 184, .035); } +.monster-settings-wave strong { flex: 0 0 85px; color: var(--text-muted); font-size: .82rem; } +.monster-settings-monsters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .65rem; flex: 1; min-width: 0; } +.monster-settings-monster { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .5rem .65rem; border: 1px solid rgba(56, 189, 248, .16); border-radius: 10px; background: rgba(14, 165, 233, .055); } +.monster-settings-monster-portrait { position: relative; display: grid; flex: 0 0 72px; width: 72px; height: 72px; place-items: center; overflow: hidden; border-radius: 10px; background: rgba(15, 23, 42, .8); font-size: 1.55rem; } +.monster-settings-monster-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } +.monster-settings-monster-copy { display: grid; gap: .18rem; min-width: 0; } +.monster-settings-monster-copy strong { overflow-wrap: anywhere; color: var(--text-main); font-size: .86rem; line-height: 1.25; } +.monster-settings-monster-copy code { width: fit-content; color: var(--text-muted); font-size: .72rem; } +.monster-settings-monster.compact { padding: .25rem; } +.monster-settings-empty { padding: 1.4rem; border: 1px dashed rgba(148, 163, 184, .3); border-radius: 12px; color: var(--text-muted); background: var(--bg-card); text-align: center; line-height: 1.6; } +.monster-settings-aha-help[hidden] { display: none; } +.monster-settings-aha-help { margin-top: 1rem; } +.monster-custom-card { display: grid; gap: .85rem; } +.monster-custom-card h3 { margin: 0; color: var(--text-highlight); } +.monster-custom-card > .card-subtitle { margin: 0; } +.monster-settings-source { color: var(--text-muted); font-size: .82rem; } +.monster-custom-wave-list { display: grid; gap: .8rem; } +.monster-custom-wave { display: grid; gap: .75rem; padding: .9rem; border: 1px solid rgba(110, 123, 148, .23); border-radius: 12px; background: rgba(9, 13, 22, .5); } +.monster-custom-wave-heading, .monster-custom-row, .monster-custom-toolbar, .monster-custom-actions, .monster-custom-save-actions { display: flex; align-items: center; gap: .65rem; } +.monster-custom-wave-heading, .monster-custom-toolbar { justify-content: space-between; } +.monster-custom-wave-heading strong { color: var(--text-highlight); } +.monster-custom-rows { display: grid; gap: .55rem; } +.monster-custom-row { align-items: flex-end; padding: .7rem; border: 1px solid rgba(110, 123, 148, .16); border-radius: 10px; background: rgba(255, 255, 255, .018); } +.monster-custom-field { display: flex; min-width: 0; flex: 1 1 0; flex-direction: column; gap: .35rem; color: var(--text-muted); font-size: .76rem; font-weight: 700; } +.monster-custom-field input { width: 100%; min-height: 42px; padding: .55rem .65rem; border: 1px solid rgba(110, 123, 148, .32); border-radius: 8px; background: rgba(7, 10, 17, .76); color: var(--text-main); } +.monster-custom-field input:focus { outline: 2px solid rgba(56, 189, 248, .55); outline-offset: 1px; } +.monster-custom-monster-preview { min-height: 62px; } +.monster-custom-monster-field { min-width: 250px; } +.monster-custom-picker { position: relative; width: 100%; } +.monster-custom-picker-results { position: absolute; z-index: 30; top: calc(100% + .35rem); left: 0; right: 0; display: grid; max-height: 340px; overflow-y: auto; padding: .35rem; border: 1px solid rgba(92, 115, 148, .55); border-radius: 12px; background: #111827; box-shadow: 0 18px 42px rgba(0, 0, 0, .5); } +.monster-custom-picker-results[hidden] { display: none; } +.monster-custom-picker-option { display: flex; width: 100%; min-width: 0; padding: .25rem; border: 0; border-radius: 8px; background: transparent; color: var(--text-main); text-align: left; cursor: pointer; } +.monster-custom-picker-option:hover, .monster-custom-picker-option:focus-visible { outline: none; background: rgba(56, 189, 248, .14); } +.monster-custom-picker-option .monster-settings-monster { width: 100%; padding: .25rem .35rem; border: 0; background: transparent; } +.monster-custom-picker-option .monster-settings-monster-portrait { flex-basis: 52px; width: 52px; height: 52px; } +.monster-custom-picker-option .monster-settings-monster-copy strong { font-size: .84rem; } +.monster-custom-picker-option .monster-settings-monster-copy code { font-size: .7rem; } +.monster-custom-monster-preview .monster-settings-monster { width: fit-content; max-width: 100%; padding: .2rem .35rem; } +.monster-custom-monster-preview .monster-settings-monster-portrait { flex-basis: 80px; width: 80px; height: 80px; } +.monster-custom-monster-preview .monster-settings-monster-copy strong { font-size: .76rem; } +.monster-custom-monster-preview .monster-settings-monster-copy code { font-size: .66rem; } +.monster-custom-remove { min-width: 42px; min-height: 42px; } +.monster-custom-add-enemy { justify-self: start; } +.monster-custom-save-actions { justify-content: flex-end; } +.monster-custom-save-actions .monster-settings-status { margin: 0; } +.monster-custom-card button:disabled, .monster-custom-card input:disabled { cursor: not-allowed; opacity: .55; } + +@media (max-width: 700px) { + .monster-settings-wave { flex-direction: column; } + .monster-settings-monsters { width: 100%; } + .monster-settings-stage-grid { grid-template-columns: 1fr; } + .monster-aa-room-control { align-items: stretch; flex-direction: column; } + .monster-aa-room-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } + .monster-aa-room-actions .btn { width: 100%; } + .monster-custom-toolbar, .monster-custom-save-actions { align-items: stretch; flex-direction: column; } + .monster-custom-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); } + .monster-custom-save-actions .btn { width: 100%; } + .monster-custom-row { align-items: stretch; flex-wrap: wrap; } + .monster-custom-field { flex-basis: calc(50% - .65rem); } + .monster-custom-monster-field { flex-basis: 100%; } + .monster-custom-remove { margin-left: auto; } +} + +@media (max-width: 390px) { + .monster-settings-wave { flex-direction: column; } + .monster-custom-field { flex-basis: 100%; } } diff --git a/index.html b/index.html index 52f54c0..3c0b410 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ GaC-Srtool - + @@ -30,8 +30,8 @@ 🌐 @@ -57,6 +57,7 @@ + @@ -476,6 +477,56 @@ + +
+
+
👾 Monster Setting
+

ตรวจสอบข้อมูลด่านและคลื่นมอนจาก resource ของ Client ตามเวอร์ชัน ปรับ custom monster ได้เฉพาะ Golden / Crimson Calyx เท่านั้น

+
+ + Weekly Boss, Stagnant Shadow, Cavern of Corrosion และ Endgame ใช้ข้อมูลด่านจาก Client และแก้คลื่นมอนผ่าน Srtool ไม่ได้ +
+
+ +
+ + + + + + + +
+
กำลังอ่าน stage จาก resource ของ Client...
+
+ + +
+
@@ -659,6 +710,7 @@ +
@@ -725,8 +777,8 @@ @@ -1754,6 +1806,6 @@
- + diff --git a/js/app.js b/js/app.js index aaa37c1..92dbf3d 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ import { LIGHTCONE_METADATA, RELIC_SET_METADATA, getLightconeInfo, getRelicSetIn import { initializeItemCatalog } from './item-catalog.js?v=2'; import { initializeUnstuck } from './unstuck.js?v=1'; import { PRYDWEN_BUILD_GUIDES } from './build-guides-data.js'; -import { SUPPORTED_LANGUAGES, TRANSLATIONS, getCurrentLanguage, setLanguage, t, translateElement, translatePath } from './i18n.js?v=2.8'; +import { SUPPORTED_LANGUAGES, TRANSLATIONS, getCurrentLanguage, setLanguage, t, translateElement, translatePath } from './i18n.js?v=2.13'; import { getAvatarIconUrl, getLightconeArtUrl, @@ -50,7 +50,8 @@ const state = { inventoryItems: [], inventorySaved: {}, inventoryDraft: {}, - inventoryPage: 0 + inventoryPage: 0, + monsterSettings: { activeMode: 'moc', catalog: null, groupId: '', stageId: '', waves: [], savedFingerprint: '', ready: false, canEdit: false, aaSelection: null, aaSelectionLoaded: false, aaSelectionBusy: false, aaSelectionError: '', aaSelectionErrorKey: '' }, }; // UI Elements Map @@ -461,8 +462,10 @@ window.addEventListener('pagehide', () => { // Update connection status UI function setConnectionStatus(connected, extraText = '') { + const connectionChanged = state.isConnected !== connected; if (connected !== toolSessionConnected) syncToolSession(connected); state.isConnected = connected; + if (connectionChanged && state.activeTab === 'tab-monster-settings') loadMonsterSettings(); if (connected) { el.statusDot.classList.add('connected'); el.connectionStatusText.textContent = extraText || t('online'); @@ -972,6 +975,7 @@ function applyTranslations() { // Update connection status text with new language setConnectionStatus(state.isConnected); + document.getElementById('aha-help-options')?.setAttribute('aria-label', t('ahaHelpTitle')); // Update server mode badges & labels for current language setupServerModes(); @@ -994,6 +998,10 @@ function applyTranslations() { } updateDashboardBattleBanner(); updateDocumentTitle(); + if (state.activeTab === 'tab-monster-settings') { + renderMonsterSettings(); + if (state.monsterSettings.activeMode === 'aha') loadAhaHelpSettings(); + } } // Setup Language Selector @@ -1020,8 +1028,13 @@ function setupLanguageSelector() { // Server Mode Setup function setupServerModes() { const updateModeDisplay = (mode) => { + if (mode !== 'gac') { + mode = 'gac'; + showToast(t('serverModesPausedNotice'), 'warning'); + } state.serverMode = mode; localStorage.setItem('gac_srtool_mode', mode); + if (state.activeTab === 'tab-monster-settings') loadMonsterSettings(); if (el.serverModeSelect) el.serverModeSelect.value = mode; if (el.settingServerMode) el.settingServerMode.value = mode; @@ -6763,6 +6776,758 @@ async function handleAddRelicSubmit(e) { showToast(t('toastRelicAdded'), 'success'); } +async function loadAhaHelpSettings() { + const select = document.getElementById('aha-help-level'); + const save = document.getElementById('btn-save-aha-help'); + if (!select || !save) return; + const options = document.getElementById('aha-help-options'); + const status = document.getElementById('aha-help-status'); + const statusText = document.getElementById('aha-help-status-text'); + const canRenderOptions = typeof options?.replaceChildren === 'function'; + const setStatus = (stateName, message, vars) => { + if (status?.dataset) status.dataset.state = stateName; + if (statusText) statusText.textContent = t(message, vars); + }; + const renderOptions = (levels, legacyEnabled) => { + if (!canRenderOptions) return; + const choices = [ + { + value: '', + title: t('ahaHelpLegacyTitle'), + detail: t('ahaHelpLegacyDescription', { status: t(legacyEnabled ? 'enabled' : 'disabled') }), + type: 'legacy' + }, + { + value: '0', + title: t('ahaHelpOffTitle'), + detail: t('ahaHelpOffDescription'), + type: 'off' + }, + ...levels.map(row => ({ + value: String(row.BuffLevel), + title: `LV ${row.BuffLevel}`, + detail: t('ahaHelpProgress', { percent: Math.round(Number(row.ProgressPercent) * 100) }), + type: 'level' + })) + ]; + options.replaceChildren(); + for (const choice of choices) { + const button = document.createElement('button'); + button.type = 'button'; + button.className = 'aha-help-option'; + button.dataset.value = choice.value; + button.dataset.kind = choice.type; + button.setAttribute('aria-pressed', 'false'); + const title = document.createElement('span'); + title.className = 'aha-help-option-title'; + title.textContent = choice.title; + const detail = document.createElement('span'); + detail.className = 'aha-help-option-detail'; + detail.textContent = choice.detail; + const selectedMark = document.createElement('span'); + selectedMark.className = 'aha-help-option-check'; + selectedMark.setAttribute('aria-hidden', 'true'); + selectedMark.textContent = '✓'; + button.append(title, detail, selectedMark); + options.append(button); + } + const syncSelection = () => { + for (const button of options.querySelectorAll('.aha-help-option')) { + const selected = button.dataset.value === select.value; + button.classList.toggle('is-selected', selected); + button.setAttribute('aria-pressed', String(selected)); + } + }; + options.setAttribute('aria-label', t('ahaHelpTitle')); + syncSelection(); + options.onclick = event => { + const button = event.target.closest('.aha-help-option'); + if (!button || select.disabled) return; + select.value = button.dataset.value; + syncSelection(); + if (select.value === select.dataset.savedValue) setStatus('saved', 'ahaHelpStatusSaved'); + else setStatus('unsaved', 'ahaHelpStatusUnsaved'); + }; + }; + select.disabled = true; + save.disabled = true; + if (canRenderOptions) options.replaceChildren(); + if (state.serverMode !== 'gac' || !state.isConnected) { + select.replaceChildren(new Option(t('ahaHelpConnect'), '')); + setStatus('unavailable', 'ahaHelpConnect'); + return; + } + select.replaceChildren(new Option(t('ahaHelpLoading'), '')); + setStatus('loading', 'ahaHelpLoading'); + try { + const result = await apiCall('/api/aha-help'); + if (!Array.isArray(result.levels) || result.levels.length === 0) throw new Error(t('ahaHelpNoLevels')); + const legacyLabel = t('ahaHelpLegacyTitle'); + select.replaceChildren(new Option(legacyLabel, ''), new Option(t('ahaHelpOffTitle'), '0')); + for (const row of result.levels) select.add(new Option(`LV ${row.BuffLevel}`, String(row.BuffLevel))); + select.value = result.level == null ? '' : String(result.level); + select.dataset.savedValue = select.value; + select.disabled = false; + save.disabled = false; + renderOptions(result.levels, result.legacy_enabled === true); + setStatus('saved', 'ahaHelpStatusSaved'); + } catch (err) { + select.replaceChildren(new Option(t('ahaHelpLoadError', { error: err.message }), '')); + setStatus('error', 'ahaHelpLoadError', { error: err.message }); + console.warn('Aha help loading error:', err); + } +} + +function setMonsterSettingsStatus(key, status = 'info', vars) { + const node = document.getElementById('monster-settings-status'); + if (!node) return; + node.dataset.state = status; + state.monsterSettings.statusKey = key; + state.monsterSettings.statusVars = vars; + state.monsterSettings.statusState = status; + node.textContent = t(key, vars); +} + +function monsterElement(tag, className, text) { + const node = document.createElement(tag); + if (className) node.className = className; + if (text != null) node.textContent = text; + return node; +} + +function monsterLocalizedText(names) { + if (!names || typeof names !== 'object') return ''; + const current = String(getCurrentLanguage() || 'en'); + const locale = current.startsWith('zh') ? 'zh' : ['en', 'ja', 'ko'].includes(current) ? current : 'en'; + return String(names[locale] || names.en || names.zh || names.ja || names.ko || '') + .replace(/<[^>]*>/g, ' ') + .replace(/\s+/g, ' ') + .trim(); +} + +function monsterName(monsterId) { + const metadata = state.monsterSettings.catalog?.monsters?.[String(monsterId)]; + return monsterLocalizedText(metadata?.names) || `Monster ${monsterId}`; +} + +function makeMonsterIdentity(monsterId, variant = '') { + const metadata = state.monsterSettings.catalog?.monsters?.[String(monsterId)]; + const item = monsterElement('span', `monster-settings-monster${variant ? ` ${variant}` : ''}`); + const portrait = monsterElement('span', 'monster-settings-monster-portrait', '👾'); + if (metadata?.icon_url) { + const image = document.createElement('img'); + image.src = metadata.icon_url; + image.alt = ''; + image.loading = 'lazy'; + image.referrerPolicy = 'no-referrer'; + image.addEventListener('error', () => image.remove(), { once: true }); + portrait.append(image); + } + const copy = monsterElement('span', 'monster-settings-monster-copy'); + copy.append(monsterElement('strong', '', monsterName(monsterId))); + copy.append(monsterElement('code', '', String(monsterId))); + item.append(portrait, copy); + return item; +} + +function appendMonsterIdentity(container, monsterId, variant = '') { + container.append(makeMonsterIdentity(monsterId, variant)); +} + +function monsterStagePreviewNames(stage) { + return (stage?.monster_ids || []).map(monsterName).filter(Boolean); +} + +function renderAARoomSelection(stage, groups) { + const editor = state.monsterSettings; + const section = monsterElement('section', 'monster-aa-room-control'); + const header = monsterElement('div', 'monster-aa-room-header'); + const copy = monsterElement('div', 'monster-aa-room-copy'); + copy.append(monsterElement('h3', '', t('monsterAaRoomTitle'))); + copy.append(monsterElement('p', '', t('monsterAaRoomDescription'))); + header.append(copy); + + const queued = editor.aaSelection; + if (queued) { + const queuedStage = groups.flatMap(group => group.stages || []).find(item => Number(item.id) === Number(queued.peak_id)); + const queuedName = monsterStagePreviewNames(queuedStage).slice(0, 2).join(' / ') || t('monsterSettingsStageTitle', { id: queued.peak_id }); + const status = monsterElement('div', 'monster-aa-room-status is-pending', t('monsterAaRoomPending', { room: queuedName, id: queued.peak_id })); + status.setAttribute('role', 'status'); + header.append(status); + } else if (editor.aaSelectionError) { + const status = monsterElement('div', 'monster-aa-room-status is-error', t(editor.aaSelectionErrorKey || 'monsterAaRoomLoadError', { error: editor.aaSelectionError })); + status.setAttribute('role', 'status'); + header.append(status); + } else if (!editor.aaSelectionLoaded && state.isConnected && state.serverMode === 'gac') { + header.append(monsterElement('div', 'monster-aa-room-status', t('monsterAaRoomLoading'))); + } else if (!state.isConnected || state.serverMode !== 'gac') { + header.append(monsterElement('div', 'monster-aa-room-status', t('monsterAaRoomConnect'))); + } + + const actions = monsterElement('div', 'monster-aa-room-actions'); + const selectButton = monsterElement('button', 'btn btn-primary monster-aa-room-select', t('monsterAaRoomUse')); + selectButton.type = 'button'; + selectButton.dataset.aaRoomAction = 'select'; + selectButton.dataset.aaRoomId = String(stage.id); + selectButton.disabled = editor.aaSelectionBusy || !state.isConnected || state.serverMode !== 'gac' || !editor.catalog; + actions.append(selectButton); + if (queued) { + const clearButton = monsterElement('button', 'btn btn-secondary monster-aa-room-clear', t('monsterAaRoomClear')); + clearButton.type = 'button'; + clearButton.dataset.aaRoomAction = 'clear'; + clearButton.disabled = editor.aaSelectionBusy || !state.isConnected || state.serverMode !== 'gac'; + actions.append(clearButton); + } + section.append(header, actions); + return section; +} + +function renderMonsterChallengeMode(mode) { + const root = document.getElementById('monster-settings-view'); + const catalog = state.monsterSettings.catalog; + const groups = catalog?.modes?.[mode] || []; + root.replaceChildren(); + if (!groups.length) { + root.append(monsterElement('div', 'monster-settings-empty', t(catalog ? 'monsterSettingsNoStages' : 'monsterSettingsReadOnly'))); + return; + } + + const selectedGroup = groups.find(group => String(group.id) === String(state.monsterSettings.groupId)) || groups[0]; + state.monsterSettings.groupId = String(selectedGroup.id); + const selectedStage = selectedGroup.stages.find(stage => String(stage.id) === String(state.monsterSettings.stageId)) || selectedGroup.stages[0]; + state.monsterSettings.stageId = String(selectedStage.id); + + const groupPicker = monsterElement('section', 'monster-settings-picker-section'); + groupPicker.append(monsterElement('h3', 'monster-settings-picker-title', t('monsterSettingsGroup'))); + const groupGrid = monsterElement('div', 'monster-settings-group-grid'); + for (const group of groups) { + const button = monsterElement('button', `monster-settings-group-card${group.id === selectedGroup.id ? ' active' : ''}`); + button.type = 'button'; + button.dataset.monsterGroup = String(group.id); + button.setAttribute('aria-pressed', String(group.id === selectedGroup.id)); + const copy = monsterElement('span', 'monster-settings-group-copy'); + copy.append(monsterElement('strong', 'monster-settings-group-name', monsterLocalizedText(group.names) || t('monsterSettingsGroupOption', { id: group.id, count: group.stages.length }))); + copy.append(monsterElement('span', 'monster-settings-group-meta', t('monsterSettingsGroupOption', { id: group.id, count: group.stages.length }))); + button.append(copy); + const bossStage = group.stages.find(stage => stage.is_boss); + const bossId = bossStage?.monster_ids?.[0]; + if (bossId) appendMonsterIdentity(button, bossId, 'group-feature'); + groupGrid.append(button); + } + groupPicker.append(groupGrid); + root.append(groupPicker); + + const stagePicker = monsterElement('section', 'monster-settings-picker-section'); + stagePicker.append(monsterElement('h3', 'monster-settings-picker-title', t('monsterSettingsChallenge'))); + const stageGrid = monsterElement('div', 'monster-settings-stage-grid'); + for (const stage of selectedGroup.stages) { + const button = monsterElement('button', `monster-settings-stage-card${stage.id === selectedStage.id ? ' active' : ''}${stage.is_boss ? ' is-boss' : ''}`); + button.type = 'button'; + button.dataset.monsterStage = String(stage.id); + button.setAttribute('aria-pressed', String(stage.id === selectedStage.id)); + const monsterId = stage.monster_ids?.[0] || stage.battles?.[0]?.waves?.[0]?.[0]; + if (monsterId) button.append(makeMonsterIdentity(monsterId, 'stage-feature')); + const copy = monsterElement('span', 'monster-settings-stage-copy'); + const stageNames = monsterStagePreviewNames(stage); + copy.append(monsterElement('strong', '', stageNames.length ? stageNames.slice(0, 2).join(' / ') : t('monsterSettingsStageTitle', { id: stage.id }))); + copy.append(monsterElement('span', 'monster-settings-stage-meta', t('monsterSettingsStageOption', { id: stage.id, boss: stage.is_boss ? ' · ' + t('monsterSettingsBoss') : '' }))); + const battleCount = (stage.battles || []).reduce((count, battle) => count + (battle.waves || []).length, 0); + if (battleCount) copy.append(monsterElement('span', 'monster-settings-stage-meta', t('monsterSettingsWaveCount', { count: battleCount }))); + button.append(copy); + stageGrid.append(button); + } + stagePicker.append(stageGrid); + root.append(stagePicker); + + if (mode === 'aa') root.append(renderAARoomSelection(selectedStage, groups)); + + const stageHeader = monsterElement('div', 'monster-settings-stage-heading'); + const stageNames = monsterStagePreviewNames(selectedStage); + stageHeader.append(monsterElement('h3', '', stageNames.length ? stageNames.slice(0, 2).join(' / ') : t('monsterSettingsStageTitle', { id: selectedStage.id }))); + if (stageNames.length) stageHeader.append(monsterElement('span', 'monster-settings-badge', t('monsterSettingsStageTitle', { id: selectedStage.id }))); + if (selectedStage.is_boss) stageHeader.append(monsterElement('span', 'monster-settings-badge', t('monsterSettingsBoss'))); + if (selectedStage.default_buff_id) stageHeader.append(monsterElement('span', 'monster-settings-badge', t('monsterSettingsDefaultBuff', { id: selectedStage.default_buff_id }))); + root.append(stageHeader); + + for (const battle of selectedStage.battles || []) { + const card = monsterElement('article', 'monster-settings-battle'); + const firstWaveIds = battle.waves?.[0] || []; + const featuredMonsterIds = selectedStage.monster_ids?.length ? selectedStage.monster_ids : firstWaveIds; + const encounterNames = featuredMonsterIds.slice(0, 2).map(monsterName); + const heading = monsterElement('div', 'monster-settings-encounter-heading'); + heading.append(monsterElement('h4', '', encounterNames.length ? encounterNames.join(' / ') : t('monsterSettingsEncounterTitle', { id: battle.stage_id }))); + if (encounterNames.length) heading.append(monsterElement('span', 'monster-settings-id-badge', t('monsterSettingsEncounterTitle', { id: battle.stage_id }))); + card.append(heading); + const meta = monsterElement('div', 'monster-settings-meta'); + meta.append(monsterElement('span', '', t('monsterSettingsLevel', { level: battle.level }))); + meta.append(monsterElement('span', '', t('monsterSettingsWaveCount', { count: (battle.waves || []).length }))); + card.append(meta); + (battle.waves || []).forEach((wave, index) => { + const waveRow = monsterElement('div', 'monster-settings-wave'); + waveRow.append(monsterElement('strong', '', t('monsterSettingsWave', { number: index + 1 }))); + const monsters = monsterElement('div', 'monster-settings-monsters'); + for (const monsterId of wave) appendMonsterIdentity(monsters, monsterId); + waveRow.append(monsters); + card.append(waveRow); + }); + root.append(card); + } +} + +function setMonsterEditorStatus(key, status = 'saved', vars) { + const node = document.getElementById('monster-custom-status'); + if (!node) return; + node.dataset.state = status; + node.textContent = t(key, vars); +} + +function readMonsterWaves(waves) { + if (!Array.isArray(waves)) return []; + return waves.map(wave => Array.isArray(wave) ? wave.map(monster => ({ + monster_id: monster?.monster_id == null ? '' : String(monster.monster_id), + level: monster?.level == null ? '' : String(monster.level), + max_hp: !monster?.max_hp ? '' : String(monster.max_hp) + })) : []); +} + +function monsterWavesFingerprint() { + return JSON.stringify(state.monsterSettings.waves); +} + +function updateMonsterEditorControls() { + const editor = state.monsterSettings; + const enabled = editor.canEdit && editor.ready; + const save = document.getElementById('monster-custom-save'); + const add = document.getElementById('monster-custom-add-wave'); + const reset = document.getElementById('monster-custom-reset'); + if (save) save.disabled = !enabled || monsterWavesFingerprint() === editor.savedFingerprint; + if (add) add.disabled = !enabled; + if (reset) reset.disabled = !enabled || editor.waves.length === 0; +} + +function renderMonsterCustomWaves() { + const editor = state.monsterSettings; + const list = document.getElementById('monster-custom-wave-list'); + if (!list) return; + list.replaceChildren(); + if (editor.waves.length === 0) list.append(monsterElement('div', 'monster-settings-empty', t('monsterCustomEmpty'))); + + const makeInput = (waveIndex, monsterIndex, field, labelKey, value, options = {}) => { + const wrapper = monsterElement(field === 'monster_id' ? 'div' : 'label', 'monster-custom-field'); + wrapper.append(monsterElement('span', '', t(labelKey))); + const input = document.createElement('input'); + input.type = field === 'monster_id' ? 'text' : 'number'; + if (field === 'monster_id') { + input.inputMode = 'numeric'; + input.autocomplete = 'off'; + input.placeholder = t('monsterCustomSearch'); + input.setAttribute('role', 'combobox'); + input.setAttribute('aria-autocomplete', 'list'); + input.setAttribute('aria-expanded', 'false'); + } + input.min = options.min || '1'; + input.max = '4294967295'; + input.step = '1'; + input.value = value; + input.disabled = !editor.canEdit || !editor.ready; + input.dataset.customField = field; + input.dataset.waveIndex = String(waveIndex); + input.dataset.monsterIndex = String(monsterIndex); + input.setAttribute('aria-label', t(labelKey)); + if (options.list && field !== 'monster_id') input.setAttribute('list', options.list); + if (options.placeholder) input.placeholder = t(options.placeholder); + if (field === 'monster_id') { + const monster = state.monsterSettings.waves[waveIndex]?.[monsterIndex]; + const picker = monsterElement('div', 'monster-custom-picker'); + const preview = monsterElement('div', 'monster-custom-monster-preview'); + const results = monsterElement('div', 'monster-custom-picker-results'); + results.id = `monster-custom-results-${waveIndex}-${monsterIndex}`; + results.setAttribute('role', 'listbox'); + results.hidden = true; + input.setAttribute('aria-controls', results.id); + const updatePreview = () => { + preview.replaceChildren(); + const id = Number(monster?.monster_id); + if (Number.isInteger(id) && id > 0) appendMonsterIdentity(preview, id, 'compact'); + }; + const matchingIDs = () => { + const query = input.value.trim().toLocaleLowerCase(); + if (!query) return []; + return (state.monsterSettings.catalog?.monster_ids || []).filter(id => { + const names = Object.values(state.monsterSettings.catalog?.monsters?.[String(id)]?.names || {}).join(' ').toLocaleLowerCase(); + return String(id).includes(query) || names.includes(query); + }).slice(0, 30); + }; + const closeResults = () => { + results.hidden = true; + input.setAttribute('aria-expanded', 'false'); + }; + const chooseMonster = id => { + input.value = String(id); + if (monster) monster.monster_id = String(id); + closeResults(); + updatePreview(); + const unchanged = monsterWavesFingerprint() === state.monsterSettings.savedFingerprint; + setMonsterEditorStatus(unchanged ? 'monsterCustomSaved' : 'monsterCustomUnsaved', unchanged ? 'saved' : 'unsaved'); + updateMonsterEditorControls(); + }; + const renderResults = () => { + results.replaceChildren(); + const matches = matchingIDs(); + for (const id of matches) { + const option = monsterElement('button', 'monster-custom-picker-option'); + option.type = 'button'; + option.setAttribute('role', 'option'); + option.setAttribute('aria-selected', String(String(id) === monster?.monster_id)); + option.append(makeMonsterIdentity(id, 'picker-option')); + option.addEventListener('mousedown', event => event.preventDefault()); + option.addEventListener('click', () => chooseMonster(id)); + results.append(option); + } + results.hidden = matches.length === 0; + input.setAttribute('aria-expanded', String(matches.length > 0)); + }; + input.addEventListener('input', event => { + event.stopPropagation(); + const raw = input.value.trim(); + if ((raw === '' || /^\d+$/.test(raw)) && monster) { + monster.monster_id = raw; + updatePreview(); + const unchanged = monsterWavesFingerprint() === state.monsterSettings.savedFingerprint; + setMonsterEditorStatus(unchanged ? 'monsterCustomSaved' : 'monsterCustomUnsaved', unchanged ? 'saved' : 'unsaved'); + updateMonsterEditorControls(); + } + renderResults(); + }); + input.addEventListener('keydown', event => { + if (event.key === 'Escape') closeResults(); + if (event.key === 'Enter') { + const first = matchingIDs()[0]; + if (first) { + event.preventDefault(); + chooseMonster(first); + } + } + }); + input.addEventListener('blur', () => { + window.setTimeout(() => { + if (!results.contains(document.activeElement)) closeResults(); + if (!/^\d+$/.test(input.value.trim())) input.value = monster?.monster_id || ''; + }, 0); + }); + wrapper.classList.add('monster-custom-monster-field'); + picker.append(input, results); + wrapper.append(picker); + updatePreview(); + wrapper.append(preview); + } else { + wrapper.append(input); + } + return wrapper; + }; + + editor.waves.forEach((wave, waveIndex) => { + const section = monsterElement('section', 'monster-custom-wave'); + const heading = monsterElement('div', 'monster-custom-wave-heading'); + heading.append(monsterElement('strong', '', t('monsterSettingsWave', { number: waveIndex + 1 }))); + const removeWave = monsterElement('button', 'btn btn-sm btn-secondary'); + removeWave.type = 'button'; + removeWave.textContent = '× ' + t('monsterCustomRemoveWave'); + removeWave.dataset.customAction = 'remove-wave'; + removeWave.dataset.waveIndex = String(waveIndex); + removeWave.disabled = !editor.canEdit || !editor.ready; + heading.append(removeWave); + section.append(heading); + + const rows = monsterElement('div', 'monster-custom-rows'); + wave.forEach((monster, monsterIndex) => { + const row = monsterElement('div', 'monster-custom-row'); + row.append( + makeInput(waveIndex, monsterIndex, 'monster_id', 'monsterCustomId', monster.monster_id), + makeInput(waveIndex, monsterIndex, 'level', 'monsterCustomLevel', monster.level, { list: 'monster-level-options' }), + makeInput(waveIndex, monsterIndex, 'max_hp', 'monsterCustomMaxHP', monster.max_hp, { min: '0', placeholder: 'monsterCustomNaturalHP' }) + ); + const remove = monsterElement('button', 'btn btn-sm btn-secondary monster-custom-remove', '×'); + remove.type = 'button'; + remove.dataset.customAction = 'remove-monster'; + remove.dataset.waveIndex = String(waveIndex); + remove.dataset.monsterIndex = String(monsterIndex); + remove.disabled = !editor.canEdit || !editor.ready; + remove.setAttribute('aria-label', t('monsterCustomRemoveEnemy')); + row.append(remove); + rows.append(row); + }); + section.append(rows); + const addEnemy = monsterElement('button', 'btn btn-sm btn-secondary monster-custom-add-enemy', '+ ' + t('monsterCustomAddEnemy')); + addEnemy.type = 'button'; + addEnemy.dataset.customAction = 'add-monster'; + addEnemy.dataset.waveIndex = String(waveIndex); + addEnemy.disabled = !editor.canEdit || !editor.ready; + section.append(addEnemy); + list.append(section); + }); + updateMonsterEditorControls(); +} + +function renderMonsterCustomEditor() { + const root = document.getElementById('monster-settings-view'); + const editor = state.monsterSettings; + root.replaceChildren(); + const card = monsterElement('div', 'card monster-custom-card'); + card.append(monsterElement('h3', '', t('monsterCustomTitle'))); + card.append(monsterElement('p', 'card-subtitle', t('monsterCustomDescription'))); + card.append(monsterElement('div', 'monster-settings-rule', t('monsterCustomCalyxOnly'))); + card.append(monsterElement('div', 'monster-settings-source', t(state.isConnected ? 'monsterCustomConnected' : 'monsterCustomConnect'))); + const list = monsterElement('div', 'monster-custom-wave-list'); + list.id = 'monster-custom-wave-list'; + card.append(list); + const levels = document.createElement('datalist'); + levels.id = 'monster-level-options'; + for (const value of editor.catalog?.levels || []) { + const option = document.createElement('option'); option.value = String(value); levels.append(option); + } + card.append(levels); + const toolbar = monsterElement('div', 'monster-custom-toolbar'); + const actions = monsterElement('div', 'monster-custom-actions'); + const add = monsterElement('button', 'btn btn-secondary', '+ ' + t('monsterCustomAddWave')); + add.type = 'button'; add.id = 'monster-custom-add-wave'; + const reset = monsterElement('button', 'btn btn-secondary', '↺ ' + t('monsterCustomUseClient')); + reset.type = 'button'; reset.id = 'monster-custom-reset'; + actions.append(add, reset); + const saveActions = monsterElement('div', 'monster-custom-save-actions'); + const status = monsterElement('div', 'monster-settings-status'); + const dirty = monsterWavesFingerprint() !== editor.savedFingerprint; + status.id = 'monster-custom-status'; status.dataset.state = dirty ? 'unsaved' : editor.canEdit ? 'saved' : 'unavailable'; + status.textContent = t(dirty ? 'monsterCustomUnsaved' : editor.canEdit ? 'monsterCustomSaved' : 'monsterCustomConnect'); + const save = monsterElement('button', 'btn btn-success', '💾 ' + t('monsterCustomSave')); + save.type = 'button'; save.id = 'monster-custom-save'; + saveActions.append(status, save); + toolbar.append(actions, saveActions); + card.append(toolbar); + root.append(card); + renderMonsterCustomWaves(); +} + +function renderMonsterSettings() { + const root = document.getElementById('monster-settings-view'); + const help = document.getElementById('monster-settings-aha-help'); + const status = document.getElementById('monster-settings-status'); + if (!root) return; + const mode = state.monsterSettings.activeMode; + document.querySelector('.monster-settings-tabs')?.setAttribute('aria-label', t('monsterSettingsTitle')); + document.querySelectorAll('[data-monster-mode]').forEach(button => { + const selected = button.dataset.monsterMode === mode; + button.classList.toggle('active', selected); + button.setAttribute('aria-selected', String(selected)); + }); + if (help) help.hidden = mode !== 'aha'; + root.hidden = mode === 'aha'; + if (status) status.hidden = mode === 'aha'; + if (mode === 'aha') { + if (!state.monsterSettings.ahaLoaded) { + state.monsterSettings.ahaLoaded = true; + loadAhaHelpSettings(); + } + } else if (mode === 'custom') renderMonsterCustomEditor(); + else if (mode === 'su') { + root.replaceChildren(monsterElement('div', 'monster-settings-empty', t('monsterSettingsSuReadOnly'))); + } else renderMonsterChallengeMode(mode); + if (state.monsterSettings.statusKey) setMonsterSettingsStatus(state.monsterSettings.statusKey, state.monsterSettings.statusState, state.monsterSettings.statusVars); +} + +async function loadMonsterSettings() { + const editor = state.monsterSettings; + if (!document.getElementById('monster-settings-view')) return; + editor.ready = false; + editor.canEdit = false; + editor.catalog = null; + editor.aaSelection = null; + editor.aaSelectionLoaded = false; + editor.aaSelectionError = ''; + editor.aaSelectionErrorKey = ''; + setMonsterSettingsStatus('monsterSettingsLoading', 'loading'); + + let catalogError = null; + if (state.isConnected && state.serverMode === 'gac') { + try { + editor.catalog = await apiCall('/api/monster-settings/catalog'); + } catch (error) { catalogError = error; } + try { + const result = await apiCall('/api/monster-settings/aa-room'); + editor.aaSelection = result?.selection || null; + editor.aaSelectionLoaded = true; + } catch (error) { + editor.aaSelectionError = error.message; + editor.aaSelectionErrorKey = 'monsterAaRoomLoadError'; + } + } + + let data = null; + let loadedFromServer = false; + if (state.isConnected && state.serverMode === 'gac') { + try { + const result = await apiCall('/api/freesr'); + if (!result?.data || typeof result.data !== 'object') throw new Error(t('monsterSettingsDataUnavailable')); + data = result.data; + state.fullFreesrData = data; + await saveFreesrCache(data); + loadedFromServer = true; + } catch (error) { + console.warn('Monster settings data loading error:', error); + } + } + if (!data && state.fullFreesrData) data = state.fullFreesrData; + if (!data) { + try { + data = await idbGet('gac_srtool_freesr_cache') || null; + if (!data) { + const cached = localStorage.getItem('gac_srtool_freesr_cache'); + if (cached) data = JSON.parse(cached); + } + } catch (_) { /* Keep the view read-only when no cache exists. */ } + } + editor.waves = readMonsterWaves(data?.battle_config?.monsters); + editor.savedFingerprint = monsterWavesFingerprint(); + editor.canEdit = loadedFromServer && state.serverMode === 'gac' && state.isConnected; + editor.ready = Boolean(data); + + if (editor.activeMode === 'aha' && editor.ahaLoaded) loadAhaHelpSettings(); + renderMonsterSettings(); + if (catalogError) setMonsterSettingsStatus('monsterSettingsCatalogError', 'error', { error: catalogError.message }); + else if (!editor.canEdit) setMonsterSettingsStatus('monsterSettingsReadOnly', 'unavailable'); + else { + let sources = (editor.catalog?.sources || []).join(', ') || t('monsterSettingsClientResources'); + if (editor.catalog?.metadata_error) sources += ', Nanoka metadata unavailable'; + setMonsterSettingsStatus('monsterSettingsLoaded', 'saved', { source: sources }); + } +} + +function setupMonsterSettingsEvents() { + document.querySelectorAll('[data-monster-mode]').forEach(button => { + button.addEventListener('click', () => { + state.monsterSettings.activeMode = button.dataset.monsterMode; + renderMonsterSettings(); + }); + }); + const root = document.getElementById('monster-settings-view'); + root?.addEventListener('click', async event => { + const action = event.target.closest('[data-aa-room-action]'); + if (!action || action.disabled) return; + const editor = state.monsterSettings; + if (editor.aaSelectionBusy) return; + editor.aaSelectionBusy = true; + editor.aaSelectionError = ''; + editor.aaSelectionErrorKey = ''; + renderMonsterSettings(); + try { + const payload = action.dataset.aaRoomAction === 'clear' + ? { action: 'clear' } + : { peak_id: Number(action.dataset.aaRoomId) }; + const result = await apiCall('/api/monster-settings/aa-room', 'POST', payload); + editor.aaSelection = result?.selection || null; + editor.aaSelectionLoaded = true; + showToast(t(editor.aaSelection ? 'monsterAaRoomSavedToast' : 'monsterAaRoomClearedToast'), 'success'); + } catch (error) { + editor.aaSelectionError = error.message; + editor.aaSelectionErrorKey = 'monsterAaRoomSaveError'; + showToast(t('monsterAaRoomSaveError', { error: error.message }), 'error'); + } finally { + editor.aaSelectionBusy = false; + renderMonsterSettings(); + } + }); + root?.addEventListener('click', event => { + const groupCard = event.target.closest('[data-monster-group]'); + if (groupCard) { + state.monsterSettings.groupId = groupCard.dataset.monsterGroup; + state.monsterSettings.stageId = ''; + renderMonsterSettings(); + return; + } + const stageCard = event.target.closest('[data-monster-stage]'); + if (stageCard) { + state.monsterSettings.stageId = stageCard.dataset.monsterStage; + renderMonsterSettings(); + } + }); + root?.addEventListener('input', event => { + const input = event.target.closest('[data-custom-field]'); + if (!input) return; + const monster = state.monsterSettings.waves[Number(input.dataset.waveIndex)]?.[Number(input.dataset.monsterIndex)]; + if (!monster) return; + monster[input.dataset.customField] = input.value; + setMonsterEditorStatus(monsterWavesFingerprint() === state.monsterSettings.savedFingerprint ? 'monsterCustomSaved' : 'monsterCustomUnsaved', + monsterWavesFingerprint() === state.monsterSettings.savedFingerprint ? 'saved' : 'unsaved'); + updateMonsterEditorControls(); + }); + root?.addEventListener('click', event => { + const button = event.target.closest('[data-custom-action]'); + if (!button || button.disabled) return; + const editor = state.monsterSettings; + const waveIndex = Number(button.dataset.waveIndex); + if (button.dataset.customAction === 'remove-wave') editor.waves.splice(waveIndex, 1); + if (button.dataset.customAction === 'add-monster' && editor.waves[waveIndex]) editor.waves[waveIndex].push({ monster_id: '', level: '', max_hp: '' }); + if (button.dataset.customAction === 'remove-monster' && editor.waves[waveIndex]) editor.waves[waveIndex].splice(Number(button.dataset.monsterIndex), 1); + renderMonsterCustomEditor(); + setMonsterEditorStatus(monsterWavesFingerprint() === editor.savedFingerprint ? 'monsterCustomSaved' : 'monsterCustomUnsaved', + monsterWavesFingerprint() === editor.savedFingerprint ? 'saved' : 'unsaved'); + }); + root?.addEventListener('click', async event => { + const button = event.target.closest('#monster-custom-add-wave, #monster-custom-reset, #monster-custom-save'); + if (!button || button.disabled) return; + const editor = state.monsterSettings; + if (button.id === 'monster-custom-add-wave') { + editor.waves.push([]); + renderMonsterCustomEditor(); + setMonsterEditorStatus('monsterCustomUnsaved', 'unsaved'); + return; + } + if (button.id === 'monster-custom-reset') { + editor.waves = []; + renderMonsterCustomEditor(); + setMonsterEditorStatus('monsterCustomUnsaved', 'unsaved'); + return; + } + if (!state.fullFreesrData) return; + const normalized = []; + for (let waveIndex = 0; waveIndex < editor.waves.length; waveIndex++) { + const wave = editor.waves[waveIndex]; + if (!wave.length) { setMonsterEditorStatus('monsterCustomEmptyWave', 'error', { number: waveIndex + 1 }); return; } + const monsters = []; + for (const monster of wave) { + const monsterId = Number(monster.monster_id); + const level = Number(monster.level); + const maxHP = monster.max_hp === '' ? 0 : Number(monster.max_hp); + if (!Number.isInteger(monsterId) || monsterId <= 0 || monsterId > 4294967295 + || !Number.isInteger(level) || level <= 0 || level > 4294967295 + || !Number.isInteger(maxHP) || maxHP < 0 || maxHP > 4294967295) { + setMonsterEditorStatus('monsterCustomInvalidEntry', 'error'); return; + } + monsters.push({ monster_id: monsterId, level, max_hp: maxHP }); + } + normalized.push(monsters); + } + const config = state.fullFreesrData.battle_config || (state.fullFreesrData.battle_config = {}); + const previous = config.monsters; + config.monsters = normalized; + button.disabled = true; + try { + await saveFreesrChangesToServer(); + editor.waves = readMonsterWaves(normalized); + editor.savedFingerprint = monsterWavesFingerprint(); + renderMonsterCustomEditor(); + setMonsterEditorStatus('monsterCustomSaved', 'saved'); + showToast(t('monsterCustomSaveSuccess'), 'success'); + } catch (error) { + if (previous === undefined) delete config.monsters; + else config.monsters = previous; + await saveFreesrCache(state.fullFreesrData).catch(() => {}); + setMonsterEditorStatus('monsterCustomSaveError', 'error', { error: error.message }); + showToast(t('toastErrorMessage', { message: error.message }), 'error'); + } finally { updateMonsterEditorControls(); } + }); +} + // Load Persistent / Character Path Settings (GaC persistent vs Firefly data-in-game) async function loadPersistentSettings() { if (state.serverMode === 'robin') return; @@ -6788,8 +7553,8 @@ async function loadPersistentSettings() { let data = state.persistentData; if (state.isConnected) { const res = await apiCall('/api/persistent'); - if (res && res.data) { - data = res.data; + if (res && (res.persistent || res.data)) { + data = res.persistent || res.data; state.persistentData = data; savePersistentCache(data); } @@ -7179,6 +7944,8 @@ function setupTabs() { loadEquipment(); } else if (targetId === 'tab-inventory') { loadMaterialsInventory(); + } else if (targetId === 'tab-monster-settings') { + loadMonsterSettings(); } else if (targetId === 'tab-persistent') { loadPersistentSettings(); } else if (targetId === 'tab-json') { @@ -7610,6 +8377,33 @@ function setupEvents() { }); // Persistent Toggles + document.getElementById('btn-save-aha-help')?.addEventListener('click', async () => { + const select = document.getElementById('aha-help-level'); + const button = document.getElementById('btn-save-aha-help'); + if (!select || !button || select.disabled) return; + button.disabled = true; + try { + await apiCall('/api/aha-help', 'POST', { level: select.value === '' ? null : Number(select.value) }); + select.dataset.savedValue = select.value; + const status = document.getElementById('aha-help-status'); + const statusText = document.getElementById('aha-help-status-text'); + if (status?.dataset) status.dataset.state = 'saved'; + if (statusText) statusText.textContent = t('ahaHelpStatusSaved'); + document.querySelectorAll('#aha-help-options .aha-help-option').forEach(option => { + const selected = option.dataset.value === select.value; + option.classList.toggle('is-selected', selected); + option.setAttribute('aria-pressed', String(selected)); + }); + showToast(t('ahaHelpSavedToast'), 'success'); + } catch (err) { + const status = document.getElementById('aha-help-status'); + const statusText = document.getElementById('aha-help-status-text'); + if (status?.dataset) status.dataset.state = 'error'; + if (statusText) statusText.textContent = t('ahaHelpStatusSaveError', { error: err.message }); + showToast(t('toastErrorMessage', { message: err.message }), 'error'); + } finally { button.disabled = select.disabled; } + }); + setupMonsterSettingsEvents(); el.btnSavePersistentToggles.addEventListener('click', async () => { const sw = el.toggleSwGlobal.checked; const castorice = el.toggleCastoriceGlobal.checked; @@ -8098,6 +8892,7 @@ function updateDocumentTitle(tabId = state.activeTab || 'tab-dashboard') { 'tab-avatars': `👥 ${t('tabAvatars')} | GaC-Srtool`, 'tab-equipment': `🗡️ ${t('tabEquipment')} | GaC-Srtool`, 'tab-inventory': `🎒 ${t('tabInventory')} | GaC-Srtool`, + 'tab-monster-settings': `👾 ${t('tabMonsterSettings')} | GaC-Srtool`, 'tab-damage-analyst': `💥 ${t('tabDamageAnalyst')} | GaC-Srtool`, 'tab-persistent': `💾 ${t('tabPersistent')} | GaC-Srtool`, 'tab-exrank': `⚡ ${t('tabExrank')} | GaC-Srtool`, diff --git a/js/i18n.js b/js/i18n.js index a4d27d0..33b274a 100644 --- a/js/i18n.js +++ b/js/i18n.js @@ -6613,6 +6613,214 @@ const LAST_MILE_TRANSLATIONS = { pt: { offline: 'Desconectado', exrankToggleSuccess: 'Ex-Rank de {name}: {status}' } }; +const AHA_HELP_TRANSLATIONS = { + th: { + ahaHelpMode: 'โหมด Anomaly Arbitration', ahaHelpTitle: 'ความช่วยเหลือจาก Aha', + ahaHelpDescription: 'เลือกระดับความช่วยเหลือสำหรับการต่อสู้ครั้งถัดไปที่มี Voracity Corruption ค่านี้แยกจาก Aha Global', + ahaHelpLegacyTitle: 'ใช้ค่าจาก FreeSR', ahaHelpLegacyDescription: 'ให้ FreeSR ควบคุมการตั้งค่านี้ (ตอนนี้: {status})', + ahaHelpOffTitle: 'ปิด', ahaHelpOffDescription: 'ไม่เพิ่มระดับ Aha’s Help', ahaHelpProgress: 'เกณฑ์ความคืบหน้า {percent}%', + ahaHelpConnect: 'เชื่อมต่อเซิร์ฟเวอร์ GaC เพื่อเลือกระดับ', ahaHelpLoading: 'กำลังโหลดระดับ…', + ahaHelpNoLevels: 'ไม่พบข้อมูลระดับ Aha’s Help', ahaHelpLoadError: 'โหลดระดับไม่สำเร็จ: {error}', + ahaHelpStatusSaved: 'บันทึกแล้ว · มีผลเมื่อเริ่มการต่อสู้ครั้งถัดไป', ahaHelpStatusUnsaved: 'มีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก', + ahaHelpStatusSaveError: 'บันทึกไม่สำเร็จ: {error}', ahaHelpSave: 'บันทึกการตั้งค่า', ahaHelpSavedToast: 'บันทึก Aha’s Help แล้ว มีผลเมื่อเริ่มการต่อสู้ครั้งถัดไป' + }, + en: { + ahaHelpMode: 'ANOMALY ARBITRATION', ahaHelpTitle: 'Aha’s Help', + ahaHelpDescription: 'Choose the support level for the next battle with Voracity Corruption. This is separate from Aha Global.', + ahaHelpLegacyTitle: 'Use FreeSR setting', ahaHelpLegacyDescription: 'Let FreeSR control this setting (currently: {status})', + ahaHelpOffTitle: 'Off', ahaHelpOffDescription: 'Do not add an Aha’s Help level', ahaHelpProgress: '{percent}% progress threshold', + ahaHelpConnect: 'Connect to a GaC server to choose a level', ahaHelpLoading: 'Loading levels…', + ahaHelpNoLevels: 'No Aha’s Help levels were returned', ahaHelpLoadError: 'Could not load levels: {error}', + ahaHelpStatusSaved: 'Saved · applies when the next battle starts', ahaHelpStatusUnsaved: 'You have unsaved changes', + ahaHelpStatusSaveError: 'Could not save: {error}', ahaHelpSave: 'Save settings', ahaHelpSavedToast: 'Aha’s Help saved. It applies when the next battle starts.' + }, + 'zh-CN': { + ahaHelpMode: '异常仲裁模式', ahaHelpTitle: '阿哈的帮助', + ahaHelpDescription: '选择下一场含有贪欲腐蚀的战斗所用的帮助等级。此设置独立于阿哈全局功能。', + ahaHelpLegacyTitle: '使用 FreeSR 设置', ahaHelpLegacyDescription: '由 FreeSR 控制此设置(当前:{status})', + ahaHelpOffTitle: '关闭', ahaHelpOffDescription: '不添加阿哈的帮助等级', ahaHelpProgress: '进度阈值 {percent}%', + ahaHelpConnect: '连接 GaC 服务器后才能选择等级', ahaHelpLoading: '正在加载等级…', + ahaHelpNoLevels: '未找到阿哈的帮助等级数据', ahaHelpLoadError: '无法加载等级:{error}', + ahaHelpStatusSaved: '已保存 · 下次战斗开始时生效', ahaHelpStatusUnsaved: '有尚未保存的更改', + ahaHelpStatusSaveError: '保存失败:{error}', ahaHelpSave: '保存设置', ahaHelpSavedToast: '阿哈的帮助已保存,将在下次战斗开始时生效。' + }, + 'zh-TW': { + ahaHelpMode: '異常仲裁模式', ahaHelpTitle: '阿哈的幫助', + ahaHelpDescription: '選擇下一場含有貪欲腐蝕的戰鬥所用的幫助等級。此設定獨立於阿哈全域功能。', + ahaHelpLegacyTitle: '使用 FreeSR 設定', ahaHelpLegacyDescription: '由 FreeSR 控制此設定(目前:{status})', + ahaHelpOffTitle: '關閉', ahaHelpOffDescription: '不新增阿哈的幫助等級', ahaHelpProgress: '進度門檻 {percent}%', + ahaHelpConnect: '連線至 GaC 伺服器後才能選擇等級', ahaHelpLoading: '正在載入等級…', + ahaHelpNoLevels: '找不到阿哈的幫助等級資料', ahaHelpLoadError: '無法載入等級:{error}', + ahaHelpStatusSaved: '已儲存 · 下次戰鬥開始時生效', ahaHelpStatusUnsaved: '有尚未儲存的變更', + ahaHelpStatusSaveError: '儲存失敗:{error}', ahaHelpSave: '儲存設定', ahaHelpSavedToast: '阿哈的幫助已儲存,將於下次戰鬥開始時生效。' + }, + ja: { + ahaHelpMode: '異常アービトレーション', ahaHelpTitle: 'アハの助け', + ahaHelpDescription: '貪欲の侵食が発生する次の戦闘で使うサポートレベルを選択します。アハのグローバル設定とは別の設定です。', + ahaHelpLegacyTitle: 'FreeSRの設定を使用', ahaHelpLegacyDescription: 'この設定をFreeSRに任せます(現在:{status})', + ahaHelpOffTitle: 'オフ', ahaHelpOffDescription: 'アハの助けのレベルを追加しません', ahaHelpProgress: '進行度のしきい値 {percent}%', + ahaHelpConnect: 'レベルを選択するにはGaCサーバーに接続してください', ahaHelpLoading: 'レベルを読み込み中…', + ahaHelpNoLevels: 'アハの助けのレベル情報がありません', ahaHelpLoadError: 'レベルを読み込めませんでした:{error}', + ahaHelpStatusSaved: '保存済み · 次の戦闘開始時に反映', ahaHelpStatusUnsaved: '未保存の変更があります', + ahaHelpStatusSaveError: '保存できませんでした:{error}', ahaHelpSave: '設定を保存', ahaHelpSavedToast: 'アハの助けを保存しました。次の戦闘開始時に反映されます。' + }, + ko: { + ahaHelpMode: '이상 중재 모드', ahaHelpTitle: '아하의 도움', + ahaHelpDescription: '탐식의 침식이 포함된 다음 전투에서 사용할 지원 레벨을 선택합니다. 아하 전역 설정과는 별개입니다.', + ahaHelpLegacyTitle: 'FreeSR 설정 사용', ahaHelpLegacyDescription: '이 설정을 FreeSR에서 제어합니다 (현재: {status})', + ahaHelpOffTitle: '끔', ahaHelpOffDescription: '아하의 도움 레벨을 추가하지 않습니다', ahaHelpProgress: '진행도 기준 {percent}%', + ahaHelpConnect: '레벨을 선택하려면 GaC 서버에 연결하세요', ahaHelpLoading: '레벨 불러오는 중…', + ahaHelpNoLevels: '아하의 도움 레벨 데이터가 없습니다', ahaHelpLoadError: '레벨을 불러오지 못했습니다: {error}', + ahaHelpStatusSaved: '저장됨 · 다음 전투 시작 시 적용', ahaHelpStatusUnsaved: '저장하지 않은 변경 사항이 있습니다', + ahaHelpStatusSaveError: '저장하지 못했습니다: {error}', ahaHelpSave: '설정 저장', ahaHelpSavedToast: '아하의 도움을 저장했습니다. 다음 전투 시작 시 적용됩니다.' + }, + vi: { + ahaHelpMode: 'CHẾ ĐỘ ANOMALY ARBITRATION', ahaHelpTitle: 'Sự trợ giúp của Aha', + ahaHelpDescription: 'Chọn cấp hỗ trợ cho trận chiến tiếp theo có Voracity Corruption. Thiết lập này độc lập với Aha Global.', + ahaHelpLegacyTitle: 'Dùng thiết lập FreeSR', ahaHelpLegacyDescription: 'Để FreeSR điều khiển thiết lập này (hiện tại: {status})', + ahaHelpOffTitle: 'Tắt', ahaHelpOffDescription: 'Không thêm cấp Sự trợ giúp của Aha', ahaHelpProgress: 'Ngưỡng tiến độ {percent}%', + ahaHelpConnect: 'Kết nối máy chủ GaC để chọn cấp', ahaHelpLoading: 'Đang tải các cấp…', + ahaHelpNoLevels: 'Không tìm thấy dữ liệu cấp Sự trợ giúp của Aha', ahaHelpLoadError: 'Không tải được cấp: {error}', + ahaHelpStatusSaved: 'Đã lưu · áp dụng khi bắt đầu trận chiến tiếp theo', ahaHelpStatusUnsaved: 'Bạn có thay đổi chưa lưu', + ahaHelpStatusSaveError: 'Không thể lưu: {error}', ahaHelpSave: 'Lưu thiết lập', ahaHelpSavedToast: 'Đã lưu Sự trợ giúp của Aha. Thiết lập có hiệu lực từ trận chiến tiếp theo.' + }, + id: { + ahaHelpMode: 'MODE ANOMALY ARBITRATION', ahaHelpTitle: 'Bantuan Aha', + ahaHelpDescription: 'Pilih level bantuan untuk pertempuran berikutnya yang memiliki Voracity Corruption. Pengaturan ini terpisah dari Aha Global.', + ahaHelpLegacyTitle: 'Gunakan pengaturan FreeSR', ahaHelpLegacyDescription: 'Biarkan FreeSR mengatur opsi ini (saat ini: {status})', + ahaHelpOffTitle: 'Mati', ahaHelpOffDescription: 'Jangan tambahkan level Bantuan Aha', ahaHelpProgress: 'Ambang progres {percent}%', + ahaHelpConnect: 'Hubungkan ke server GaC untuk memilih level', ahaHelpLoading: 'Memuat level…', + ahaHelpNoLevels: 'Data level Bantuan Aha tidak ditemukan', ahaHelpLoadError: 'Gagal memuat level: {error}', + ahaHelpStatusSaved: 'Tersimpan · berlaku saat pertempuran berikutnya dimulai', ahaHelpStatusUnsaved: 'Ada perubahan yang belum disimpan', + ahaHelpStatusSaveError: 'Gagal menyimpan: {error}', ahaHelpSave: 'Simpan pengaturan', ahaHelpSavedToast: 'Bantuan Aha tersimpan. Pengaturan berlaku pada pertempuran berikutnya.' + }, + es: { + ahaHelpMode: 'MODO ANOMALY ARBITRATION', ahaHelpTitle: 'Ayuda de Aha', + ahaHelpDescription: 'Elige el nivel de apoyo para el próximo combate con Voracity Corruption. Este ajuste es independiente de Aha Global.', + ahaHelpLegacyTitle: 'Usar ajuste de FreeSR', ahaHelpLegacyDescription: 'Dejar que FreeSR controle este ajuste (ahora: {status})', + ahaHelpOffTitle: 'Desactivado', ahaHelpOffDescription: 'No añadir un nivel de Ayuda de Aha', ahaHelpProgress: 'Umbral de progreso: {percent}%', + ahaHelpConnect: 'Conéctate a un servidor GaC para elegir un nivel', ahaHelpLoading: 'Cargando niveles…', + ahaHelpNoLevels: 'No se encontraron niveles de Ayuda de Aha', ahaHelpLoadError: 'No se pudieron cargar los niveles: {error}', + ahaHelpStatusSaved: 'Guardado · se aplica al comenzar el próximo combate', ahaHelpStatusUnsaved: 'Hay cambios sin guardar', + ahaHelpStatusSaveError: 'No se pudo guardar: {error}', ahaHelpSave: 'Guardar ajustes', ahaHelpSavedToast: 'Ayuda de Aha guardada. Se aplicará al comenzar el próximo combate.' + }, + fr: { + ahaHelpMode: 'MODE ANOMALY ARBITRATION', ahaHelpTitle: 'Aide d’Aha', + ahaHelpDescription: 'Choisissez le niveau de soutien pour le prochain combat avec Voracity Corruption. Ce réglage est indépendant d’Aha Global.', + ahaHelpLegacyTitle: 'Utiliser le réglage FreeSR', ahaHelpLegacyDescription: 'Laisser FreeSR gérer ce réglage (actuellement : {status})', + ahaHelpOffTitle: 'Désactivé', ahaHelpOffDescription: 'Ne pas ajouter de niveau d’aide d’Aha', ahaHelpProgress: 'Seuil de progression : {percent} %', + ahaHelpConnect: 'Connectez-vous à un serveur GaC pour choisir un niveau', ahaHelpLoading: 'Chargement des niveaux…', + ahaHelpNoLevels: 'Aucun niveau d’aide d’Aha trouvé', ahaHelpLoadError: 'Impossible de charger les niveaux : {error}', + ahaHelpStatusSaved: 'Enregistré · appliqué au prochain combat', ahaHelpStatusUnsaved: 'Modifications non enregistrées', + ahaHelpStatusSaveError: 'Échec de l’enregistrement : {error}', ahaHelpSave: 'Enregistrer', ahaHelpSavedToast: 'Aide d’Aha enregistrée. Elle sera appliquée au prochain combat.' + }, + de: { + ahaHelpMode: 'ANOMALIE-ARBITRATION', ahaHelpTitle: 'Ahas Hilfe', + ahaHelpDescription: 'Wähle die Unterstützungsstufe für den nächsten Kampf mit Voracity Corruption. Diese Einstellung ist unabhängig von Aha Global.', + ahaHelpLegacyTitle: 'FreeSR-Einstellung verwenden', ahaHelpLegacyDescription: 'FreeSR steuert diese Einstellung (aktuell: {status})', + ahaHelpOffTitle: 'Aus', ahaHelpOffDescription: 'Keine Stufe von Ahas Hilfe hinzufügen', ahaHelpProgress: 'Fortschrittsschwelle {percent}%', + ahaHelpConnect: 'Verbinde dich mit einem GaC-Server, um eine Stufe auszuwählen', ahaHelpLoading: 'Stufen werden geladen…', + ahaHelpNoLevels: 'Keine Stufen für Ahas Hilfe gefunden', ahaHelpLoadError: 'Stufen konnten nicht geladen werden: {error}', + ahaHelpStatusSaved: 'Gespeichert · gilt ab dem nächsten Kampf', ahaHelpStatusUnsaved: 'Ungespeicherte Änderungen vorhanden', + ahaHelpStatusSaveError: 'Speichern fehlgeschlagen: {error}', ahaHelpSave: 'Einstellungen speichern', ahaHelpSavedToast: 'Ahas Hilfe gespeichert. Die Einstellung gilt ab dem nächsten Kampf.' + }, + ru: { + ahaHelpMode: 'РЕЖИМ АНОМАЛЬНОГО ПРОТИВОСТОЯНИЯ', ahaHelpTitle: 'Помощь Ахи', + ahaHelpDescription: 'Выберите уровень поддержки для следующего боя с «Порчей алчности». Эта настройка не зависит от глобальной функции Ахи.', + ahaHelpLegacyTitle: 'Использовать настройку FreeSR', ahaHelpLegacyDescription: 'Передать управление этой настройкой FreeSR (сейчас: {status})', + ahaHelpOffTitle: 'Выкл.', ahaHelpOffDescription: 'Не добавлять уровень помощи Ахи', ahaHelpProgress: 'Порог прогресса: {percent}%', + ahaHelpConnect: 'Подключитесь к серверу GaC, чтобы выбрать уровень', ahaHelpLoading: 'Загрузка уровней…', + ahaHelpNoLevels: 'Уровни помощи Ахи не найдены', ahaHelpLoadError: 'Не удалось загрузить уровни: {error}', + ahaHelpStatusSaved: 'Сохранено · вступит в силу в следующем бою', ahaHelpStatusUnsaved: 'Есть несохранённые изменения', + ahaHelpStatusSaveError: 'Не удалось сохранить: {error}', ahaHelpSave: 'Сохранить настройки', ahaHelpSavedToast: 'Помощь Ахи сохранена и вступит в силу в следующем бою.' + }, + pt: { + ahaHelpMode: 'MODO ANOMALY ARBITRATION', ahaHelpTitle: 'Ajuda de Aha', + ahaHelpDescription: 'Escolha o nível de apoio para a próxima batalha com Voracity Corruption. Esta opção é independente de Aha Global.', + ahaHelpLegacyTitle: 'Usar configuração do FreeSR', ahaHelpLegacyDescription: 'Deixar o FreeSR controlar esta opção (atual: {status})', + ahaHelpOffTitle: 'Desativado', ahaHelpOffDescription: 'Não adicionar um nível de Ajuda de Aha', ahaHelpProgress: 'Limite de progresso: {percent}%', + ahaHelpConnect: 'Conecte-se a um servidor GaC para escolher um nível', ahaHelpLoading: 'Carregando níveis…', + ahaHelpNoLevels: 'Nenhum nível de Ajuda de Aha encontrado', ahaHelpLoadError: 'Não foi possível carregar os níveis: {error}', + ahaHelpStatusSaved: 'Salvo · aplicado ao iniciar a próxima batalha', ahaHelpStatusUnsaved: 'Há alterações não salvas', + ahaHelpStatusSaveError: 'Falha ao salvar: {error}', ahaHelpSave: 'Salvar configuração', ahaHelpSavedToast: 'Ajuda de Aha salva. Será aplicada na próxima batalha.' + } +}; + +const MONSTER_SETTINGS_TRANSLATIONS = { + en: { tabMonsterSettings:'👾 Monster Setting', monsterSettingsTitle:'👾 Monster Setting', monsterSettingsDescription:'Inspect stage and wave data from the installed Client resources. Custom enemy waves are limited to Golden / Crimson Calyx.', monsterSettingsRule:'Weekly Boss, Stagnant Shadow, Cavern of Corrosion, and Endgame stages use Client data and cannot be changed here.', monsterModeMoc:'Memory of Chaos', monsterModePf:'Pure Fiction', monsterModeAs:'Apocalyptic Shadow', monsterModeAa:'Anomaly Arbitration', monsterModeCustom:'Custom Enemy', monsterModeSu:'Simulated Universe', monsterSettingsLoading:'Reading stages from Client resources…', monsterSettingsNoStages:'No stages were found in the connected Client resources.', monsterSettingsGroup:'Stage group', monsterSettingsGroupOption:'Group {id} · {count} entries', monsterSettingsChallenge:'Challenge entry', monsterSettingsStageOption:'Entry {id}{boss}', monsterSettingsBoss:'Boss', monsterSettingsStageTitle:'Entry {id}', monsterSettingsDefaultBuff:'Default buff ID {id}', monsterSettingsEncounterTitle:'Encounter stage {id}', monsterSettingsLevel:'Level {level}', monsterSettingsWaveCount:'{count} waves', monsterSettingsWave:'Wave {number}', monsterSettingsSuReadOnly:'Simulated Universe monster editing is not supported by this server. No verified SU monster resources are available here.', monsterSettingsCatalogError:'Could not read Client stage resources: {error}', monsterSettingsReadOnly:'Read-only: connect to the GaC server to load its Client resource catalog.', monsterSettingsLoaded:'Read-only stage data · source: {source}', monsterSettingsClientResources:'Client resources', monsterSettingsDataUnavailable:'FreeSR player data is unavailable', monsterCustomTitle:'Custom Enemy Waves', monsterCustomDescription:'These waves are used only when entering Golden or Crimson Calyx with the GaC-Srtool session active.', monsterCustomCalyxOnly:'This setting never replaces Weekly Boss, Stagnant Shadow, Cavern of Corrosion, MoC, Pure Fiction, Apocalyptic Shadow, or AA enemies.', monsterCustomConnected:'Connected. Changes are saved to the server and apply on a later eligible Calyx entry.', monsterCustomConnect:'Connect to GaC to edit and save custom Calyx waves.', monsterCustomEmpty:'No custom waves are set. “Use Client stages” restores the installed Calyx waves.', monsterCustomAddWave:'Add wave', monsterCustomUseClient:'Use Client stages', monsterCustomSave:'Save custom waves', monsterCustomSaved:'Saved · applies to Golden / Crimson Calyx only', monsterCustomUnsaved:'Unsaved changes', monsterCustomAddEnemy:'Add enemy', monsterCustomRemoveEnemy:'Remove enemy', monsterCustomRemoveWave:'Remove wave', monsterCustomId:'Monster ID', monsterCustomLevel:'Level', monsterCustomMaxHP:'Max HP (optional)', monsterCustomNaturalHP:'Blank = use the monster’s normal HP', monsterCustomEmptyWave:'Wave {number} has no enemies.', monsterCustomInvalidEntry:'Enter a valid Monster ID, Level, and Max HP.', monsterCustomSaveSuccess:'Custom Calyx waves saved.', monsterCustomSaveError:'Could not save custom waves: {error}' }, + th: { tabMonsterSettings:'👾 ตั้งค่ามอนสเตอร์', monsterSettingsTitle:'👾 ตั้งค่ามอนสเตอร์', monsterSettingsDescription:'ตรวจดู stage และ wave จาก resource ของ Client ที่ติดตั้งอยู่ Custom Enemy ใช้ได้เฉพาะ Golden / Crimson Calyx', monsterSettingsRule:'Weekly Boss, Stagnant Shadow, Cavern of Corrosion และ Endgame ใช้ข้อมูลด่านจาก Client แก้คลื่นมอนที่นี่ไม่ได้', monsterModeMoc:'ความทรงจำแห่งความโกลาหล', monsterModePf:'โลกมายาคติ', monsterModeAs:'เงาจุติ', monsterModeAa:'Anomaly Arbitration', monsterModeCustom:'Custom Enemy', monsterModeSu:'จักรวาลจำลอง', monsterSettingsLoading:'กำลังอ่านด่านจาก resource ของ Client…', monsterSettingsNoStages:'ไม่พบ stage ใน resource ของ Client ที่เชื่อมต่อ', monsterSettingsGroup:'กลุ่มด่าน', monsterSettingsGroupOption:'กลุ่ม {id} · {count} รายการ', monsterSettingsChallenge:'รายการท้าทาย', monsterSettingsStageOption:'รายการ {id}{boss}', monsterSettingsBoss:'บอส', monsterSettingsStageTitle:'รายการ {id}', monsterSettingsDefaultBuff:'Buff เริ่มต้น ID {id}', monsterSettingsEncounterTitle:'Stage ต่อสู้ {id}', monsterSettingsLevel:'เลเวล {level}', monsterSettingsWaveCount:'{count} wave', monsterSettingsWave:'Wave {number}', monsterSettingsSuReadOnly:'เซิร์ฟเวอร์นี้ยังไม่รองรับการแก้ monster ใน Simulated Universe และไม่มี resource ที่ยืนยันแล้ว', monsterSettingsCatalogError:'อ่าน resource stage ของ Client ไม่ได้: {error}', monsterSettingsReadOnly:'อ่านได้อย่างเดียว: เชื่อมต่อ GaC เพื่อโหลด catalog จาก resource Client', monsterSettingsLoaded:'ข้อมูลด่านอ่านอย่างเดียว · แหล่งที่มา: {source}', monsterSettingsClientResources:'resource ของ Client', monsterSettingsDataUnavailable:'ไม่มีข้อมูลผู้เล่น FreeSR', monsterCustomTitle:'คลื่นมอน Custom Enemy', monsterCustomDescription:'wave นี้ใช้เฉพาะเมื่อเข้าต่อสู้ Golden หรือ Crimson Calyx ขณะ Srtool เชื่อมต่อกับ GaC', monsterCustomCalyxOnly:'ค่านี้ไม่แทนมอนของ Weekly Boss, Stagnant Shadow, Cavern of Corrosion, MoC, Pure Fiction, Apocalyptic Shadow หรือ AA', monsterCustomConnected:'เชื่อมต่อแล้ว บันทึกไปเซิร์ฟเวอร์และใช้เมื่อเข้า Calyx ที่รองรับครั้งถัดไป', monsterCustomConnect:'เชื่อมต่อ GaC เพื่อแก้และบันทึก wave ของ Calyx', monsterCustomEmpty:'ยังไม่มี custom wave กด “ใช้ stage จาก Client” เพื่อกลับไปใช้ wave ของ Calyx ที่ติดตั้ง', monsterCustomAddWave:'เพิ่ม wave', monsterCustomUseClient:'ใช้ stage จาก Client', monsterCustomSave:'บันทึก custom wave', monsterCustomSaved:'บันทึกแล้ว · ใช้เฉพาะ Golden / Crimson Calyx', monsterCustomUnsaved:'มีการแก้ไขที่ยังไม่บันทึก', monsterCustomAddEnemy:'เพิ่มมอน', monsterCustomRemoveEnemy:'ลบมอน', monsterCustomRemoveWave:'ลบ wave', monsterCustomId:'Monster ID', monsterCustomLevel:'Level', monsterCustomMaxHP:'Max HP (ไม่บังคับ)', monsterCustomNaturalHP:'เว้นว่างเพื่อใช้ HP ปกติของมอน', monsterCustomEmptyWave:'Wave {number} ยังไม่มีมอน', monsterCustomInvalidEntry:'กรอก Monster ID, Level และ Max HP ให้ถูกต้อง', monsterCustomSaveSuccess:'บันทึก wave ของ Calyx แล้ว', monsterCustomSaveError:'บันทึก wave ไม่สำเร็จ: {error}' }, + 'zh-CN': { tabMonsterSettings:'👾 怪物设置', monsterSettingsTitle:'👾 怪物设置', monsterSettingsDescription:'查看当前客户端资源中的关卡与波次。自定义敌人波次仅适用于 Golden / Crimson Calyx。', monsterSettingsRule:'历战余响、凝滞虚影、侵蚀隧洞和末日幻影等终局关卡使用客户端数据,不能在此修改。', monsterModeMoc:'混沌回忆', monsterModePf:'虚构叙事', monsterModeAs:'末日幻影', monsterModeAa:'异相仲裁', monsterModeCustom:'自定义敌人', monsterModeSu:'模拟宇宙', monsterSettingsLoading:'正在读取客户端关卡资源…', monsterSettingsNoStages:'连接的客户端资源中没有找到关卡。', monsterSettingsGroup:'关卡组', monsterSettingsGroupOption:'组 {id} · {count} 项', monsterSettingsChallenge:'挑战条目', monsterSettingsStageOption:'条目 {id}{boss}', monsterSettingsBoss:'首领', monsterSettingsStageTitle:'条目 {id}', monsterSettingsDefaultBuff:'默认增益 ID {id}', monsterSettingsEncounterTitle:'战斗关卡 {id}', monsterSettingsLevel:'等级 {level}', monsterSettingsWaveCount:'{count} 波', monsterSettingsWave:'第 {number} 波', monsterSettingsSuReadOnly:'此服务器暂不支持编辑模拟宇宙敌人,也没有已验证的模拟宇宙敌人资源。', monsterSettingsCatalogError:'无法读取客户端关卡资源:{error}', monsterSettingsReadOnly:'只读:连接 GaC 服务器以读取客户端资源目录。', monsterSettingsLoaded:'只读关卡数据 · 来源:{source}', monsterSettingsClientResources:'客户端资源', monsterSettingsDataUnavailable:'无法读取 FreeSR 玩家数据', monsterCustomTitle:'自定义敌人波次', monsterCustomDescription:'仅在 GaC-Srtool 会话有效时进入 Golden 或 Crimson Calyx 才会使用这些波次。', monsterCustomCalyxOnly:'此设置不会替换历战余响、凝滞虚影、侵蚀隧洞、混沌回忆、虚构叙事、末日幻影或异相仲裁的敌人。', monsterCustomConnected:'已连接。更改会保存到服务器,并在下次进入符合条件的 Calyx 时生效。', monsterCustomConnect:'连接 GaC 后才能编辑和保存 Calyx 自定义波次。', monsterCustomEmpty:'尚未设置自定义波次。选择“使用客户端关卡”可恢复客户端 Calyx 波次。', monsterCustomAddWave:'添加波次', monsterCustomUseClient:'使用客户端关卡', monsterCustomSave:'保存自定义波次', monsterCustomSaved:'已保存 · 仅用于 Golden / Crimson Calyx', monsterCustomUnsaved:'有未保存的更改', monsterCustomAddEnemy:'添加敌人', monsterCustomRemoveEnemy:'删除敌人', monsterCustomRemoveWave:'删除波次', monsterCustomId:'怪物 ID', monsterCustomLevel:'等级', monsterCustomMaxHP:'最大生命值(可选)', monsterCustomNaturalHP:'留空 = 使用怪物默认生命值', monsterCustomEmptyWave:'第 {number} 波没有敌人。', monsterCustomInvalidEntry:'请输入有效的怪物 ID、等级和最大生命值。', monsterCustomSaveSuccess:'Calyx 自定义波次已保存。', monsterCustomSaveError:'无法保存自定义波次:{error}' }, + 'zh-TW': { tabMonsterSettings:'👾 怪物設定', monsterSettingsTitle:'👾 怪物設定', monsterSettingsDescription:'檢視目前用戶端資源中的關卡與波次。自訂敵人波次僅適用於 Golden / Crimson Calyx。', monsterSettingsRule:'歷戰餘響、凝滯虛影、侵蝕隧洞與終局關卡使用用戶端資料,無法在此修改。', monsterModeMoc:'混沌回憶', monsterModePf:'虛構敘事', monsterModeAs:'末日幻影', monsterModeAa:'異相仲裁', monsterModeCustom:'自訂敵人', monsterModeSu:'模擬宇宙', monsterSettingsLoading:'正在讀取用戶端關卡資源…', monsterSettingsNoStages:'連線的用戶端資源中找不到關卡。', monsterSettingsGroup:'關卡組', monsterSettingsGroupOption:'組 {id} · {count} 項', monsterSettingsChallenge:'挑戰項目', monsterSettingsStageOption:'項目 {id}{boss}', monsterSettingsBoss:'首領', monsterSettingsStageTitle:'項目 {id}', monsterSettingsDefaultBuff:'預設增益 ID {id}', monsterSettingsEncounterTitle:'戰鬥關卡 {id}', monsterSettingsLevel:'等級 {level}', monsterSettingsWaveCount:'{count} 波', monsterSettingsWave:'第 {number} 波', monsterSettingsSuReadOnly:'此伺服器尚未支援編輯模擬宇宙敵人,也沒有已驗證的模擬宇宙敵人資源。', monsterSettingsCatalogError:'無法讀取用戶端關卡資源:{error}', monsterSettingsReadOnly:'唯讀:連線 GaC 伺服器以讀取用戶端資源目錄。', monsterSettingsLoaded:'唯讀關卡資料 · 來源:{source}', monsterSettingsClientResources:'用戶端資源', monsterSettingsDataUnavailable:'無法讀取 FreeSR 玩家資料', monsterCustomTitle:'自訂敵人波次', monsterCustomDescription:'僅在 GaC-Srtool 工作階段有效時進入 Golden 或 Crimson Calyx 才會使用這些波次。', monsterCustomCalyxOnly:'此設定不會替換歷戰餘響、凝滯虛影、侵蝕隧洞、混沌回憶、虛構敘事、末日幻影或異相仲裁的敵人。', monsterCustomConnected:'已連線。變更會儲存至伺服器,並於下次進入符合條件的 Calyx 時生效。', monsterCustomConnect:'連線 GaC 後才能編輯及儲存 Calyx 自訂波次。', monsterCustomEmpty:'尚未設定自訂波次。選擇「使用用戶端關卡」可還原用戶端 Calyx 波次。', monsterCustomAddWave:'新增波次', monsterCustomUseClient:'使用用戶端關卡', monsterCustomSave:'儲存自訂波次', monsterCustomSaved:'已儲存 · 僅用於 Golden / Crimson Calyx', monsterCustomUnsaved:'有尚未儲存的變更', monsterCustomAddEnemy:'新增敵人', monsterCustomRemoveEnemy:'移除敵人', monsterCustomRemoveWave:'移除波次', monsterCustomId:'怪物 ID', monsterCustomLevel:'等級', monsterCustomMaxHP:'最大生命值(選填)', monsterCustomNaturalHP:'留白 = 使用怪物預設生命值', monsterCustomEmptyWave:'第 {number} 波沒有敵人。', monsterCustomInvalidEntry:'請輸入有效的怪物 ID、等級和最大生命值。', monsterCustomSaveSuccess:'Calyx 自訂波次已儲存。', monsterCustomSaveError:'無法儲存自訂波次:{error}' }, + ja: { tabMonsterSettings:'👾 モンスター設定', monsterSettingsTitle:'👾 モンスター設定', monsterSettingsDescription:'現在のクライアントリソースにあるステージとウェーブを確認します。カスタム敵ウェーブはGolden / Crimson Calyxのみで使用できます。', monsterSettingsRule:'週ボス、凝結虚影、侵食トンネル、エンドゲームはクライアントのステージデータを使い、ここから変更できません。', monsterModeMoc:'忘却の庭', monsterModePf:'虚構叙事', monsterModeAs:'末日の幻影', monsterModeAa:'異相仲裁', monsterModeCustom:'カスタム敵', monsterModeSu:'模擬宇宙', monsterSettingsLoading:'クライアントのステージリソースを読み込み中…', monsterSettingsNoStages:'接続中のクライアントリソースにステージがありません。', monsterSettingsGroup:'ステージグループ', monsterSettingsGroupOption:'グループ {id} · {count} 件', monsterSettingsChallenge:'挑戦項目', monsterSettingsStageOption:'項目 {id}{boss}', monsterSettingsBoss:'ボス', monsterSettingsStageTitle:'項目 {id}', monsterSettingsDefaultBuff:'初期バフ ID {id}', monsterSettingsEncounterTitle:'戦闘ステージ {id}', monsterSettingsLevel:'レベル {level}', monsterSettingsWaveCount:'{count} ウェーブ', monsterSettingsWave:'ウェーブ {number}', monsterSettingsSuReadOnly:'このサーバーは模擬宇宙の敵編集に対応していません。確認済みの模擬宇宙リソースもありません。', monsterSettingsCatalogError:'クライアントのステージリソースを読み込めません: {error}', monsterSettingsReadOnly:'読み取り専用です。GaCサーバーに接続するとクライアントリソースを読み込めます。', monsterSettingsLoaded:'ステージデータ(読み取り専用)· ソース: {source}', monsterSettingsClientResources:'クライアントリソース', monsterSettingsDataUnavailable:'FreeSRのプレイヤーデータを読み込めません', monsterCustomTitle:'カスタム敵ウェーブ', monsterCustomDescription:'GaC-Srtoolのセッションが有効な状態でGoldenまたはCrimson Calyxに入る場合のみ適用されます。', monsterCustomCalyxOnly:'週ボス、凝結虚影、侵食トンネル、忘却の庭、虚構叙事、末日の幻影、異相仲裁の敵には適用されません。', monsterCustomConnected:'接続済みです。変更はサーバーに保存され、次回対象のCalyxに入ると適用されます。', monsterCustomConnect:'GaCに接続するとCalyxのカスタムウェーブを編集・保存できます。', monsterCustomEmpty:'カスタムウェーブは未設定です。「クライアントのステージを使用」でCalyxの既定ウェーブに戻します。', monsterCustomAddWave:'ウェーブを追加', monsterCustomUseClient:'クライアントのステージを使用', monsterCustomSave:'カスタムウェーブを保存', monsterCustomSaved:'保存済み · Golden / Crimson Calyxのみ', monsterCustomUnsaved:'未保存の変更があります', monsterCustomAddEnemy:'敵を追加', monsterCustomRemoveEnemy:'敵を削除', monsterCustomRemoveWave:'ウェーブを削除', monsterCustomId:'モンスターID', monsterCustomLevel:'レベル', monsterCustomMaxHP:'最大HP(任意)', monsterCustomNaturalHP:'空欄 = 通常HPを使用', monsterCustomEmptyWave:'ウェーブ {number} に敵がいません。', monsterCustomInvalidEntry:'有効なモンスターID、レベル、最大HPを入力してください。', monsterCustomSaveSuccess:'Calyxのカスタムウェーブを保存しました。', monsterCustomSaveError:'保存できませんでした: {error}' }, + ko: { tabMonsterSettings:'👾 몬스터 설정', monsterSettingsTitle:'👾 몬스터 설정', monsterSettingsDescription:'현재 클라이언트 리소스의 스테이지와 웨이브를 확인합니다. 커스텀 적 웨이브는 Golden / Crimson Calyx에서만 사용됩니다.', monsterSettingsRule:'주간 보스, 정체된 허영, 침식된 터널, 엔드게임은 클라이언트 스테이지 데이터를 사용하며 여기서 변경할 수 없습니다.', monsterModeMoc:'혼돈의 기억', monsterModePf:'허구 이야기', monsterModeAs:'종말의 그림자', monsterModeAa:'이상 중재', monsterModeCustom:'커스텀 적', monsterModeSu:'시뮬레이션 우주', monsterSettingsLoading:'클라이언트 스테이지 리소스를 읽는 중…', monsterSettingsNoStages:'연결된 클라이언트 리소스에서 스테이지를 찾지 못했습니다.', monsterSettingsGroup:'스테이지 그룹', monsterSettingsGroupOption:'그룹 {id} · {count}개 항목', monsterSettingsChallenge:'도전 항목', monsterSettingsStageOption:'항목 {id}{boss}', monsterSettingsBoss:'보스', monsterSettingsStageTitle:'항목 {id}', monsterSettingsDefaultBuff:'기본 버프 ID {id}', monsterSettingsEncounterTitle:'전투 스테이지 {id}', monsterSettingsLevel:'레벨 {level}', monsterSettingsWaveCount:'웨이브 {count}개', monsterSettingsWave:'웨이브 {number}', monsterSettingsSuReadOnly:'이 서버는 시뮬레이션 우주 적 편집을 지원하지 않으며 확인된 SU 리소스도 없습니다.', monsterSettingsCatalogError:'클라이언트 스테이지 리소스를 읽을 수 없습니다: {error}', monsterSettingsReadOnly:'읽기 전용입니다. GaC 서버에 연결하면 클라이언트 리소스 카탈로그를 읽습니다.', monsterSettingsLoaded:'읽기 전용 스테이지 데이터 · 출처: {source}', monsterSettingsClientResources:'클라이언트 리소스', monsterSettingsDataUnavailable:'FreeSR 플레이어 데이터를 읽을 수 없습니다', monsterCustomTitle:'커스텀 적 웨이브', monsterCustomDescription:'GaC-Srtool 세션이 활성화된 상태에서 Golden 또는 Crimson Calyx에 입장할 때만 적용됩니다.', monsterCustomCalyxOnly:'주간 보스, 정체된 허영, 침식된 터널, 혼돈의 기억, 허구 이야기, 종말의 그림자, 이상 중재에는 적용되지 않습니다.', monsterCustomConnected:'연결됨. 변경 사항은 서버에 저장되며 다음 대상 Calyx 입장 때 적용됩니다.', monsterCustomConnect:'GaC에 연결하면 Calyx 커스텀 웨이브를 편집하고 저장할 수 있습니다.', monsterCustomEmpty:'커스텀 웨이브가 없습니다. “클라이언트 스테이지 사용”을 선택하면 기본 Calyx 웨이브로 복원됩니다.', monsterCustomAddWave:'웨이브 추가', monsterCustomUseClient:'클라이언트 스테이지 사용', monsterCustomSave:'커스텀 웨이브 저장', monsterCustomSaved:'저장됨 · Golden / Crimson Calyx 전용', monsterCustomUnsaved:'저장하지 않은 변경 사항', monsterCustomAddEnemy:'적 추가', monsterCustomRemoveEnemy:'적 삭제', monsterCustomRemoveWave:'웨이브 삭제', monsterCustomId:'몬스터 ID', monsterCustomLevel:'레벨', monsterCustomMaxHP:'최대 HP (선택)', monsterCustomNaturalHP:'비우면 기본 HP 사용', monsterCustomEmptyWave:'웨이브 {number}에 적이 없습니다.', monsterCustomInvalidEntry:'올바른 몬스터 ID, 레벨, 최대 HP를 입력하세요.', monsterCustomSaveSuccess:'Calyx 커스텀 웨이브를 저장했습니다.', monsterCustomSaveError:'커스텀 웨이브 저장 실패: {error}' }, + vi: { tabMonsterSettings:'👾 Cài đặt quái', monsterSettingsTitle:'👾 Cài đặt quái', monsterSettingsDescription:'Xem stage và wave từ tài nguyên Client hiện tại. Wave quái tùy chỉnh chỉ dùng tại Golden / Crimson Calyx.', monsterSettingsRule:'Boss tuần, Bóng Ngưng Đọng, Hang Ăn Mòn và Endgame dùng dữ liệu stage của Client, không thể sửa tại đây.', monsterModeMoc:'Ký Ức Hỗn Độn', monsterModePf:'Hư Cấu Ảo Ảnh', monsterModeAs:'Ảnh Ảo Tận Thế', monsterModeAa:'Anomaly Arbitration', monsterModeCustom:'Quái tùy chỉnh', monsterModeSu:'Vũ Trụ Mô Phỏng', monsterSettingsLoading:'Đang đọc tài nguyên stage của Client…', monsterSettingsNoStages:'Không tìm thấy stage trong tài nguyên Client đã kết nối.', monsterSettingsGroup:'Nhóm stage', monsterSettingsGroupOption:'Nhóm {id} · {count} mục', monsterSettingsChallenge:'Mục thử thách', monsterSettingsStageOption:'Mục {id}{boss}', monsterSettingsBoss:'Boss', monsterSettingsStageTitle:'Mục {id}', monsterSettingsDefaultBuff:'Buff mặc định ID {id}', monsterSettingsEncounterTitle:'Stage chiến đấu {id}', monsterSettingsLevel:'Cấp {level}', monsterSettingsWaveCount:'{count} wave', monsterSettingsWave:'Wave {number}', monsterSettingsSuReadOnly:'Máy chủ này chưa hỗ trợ sửa quái trong Vũ Trụ Mô Phỏng và chưa có tài nguyên SU được xác minh.', monsterSettingsCatalogError:'Không đọc được tài nguyên stage của Client: {error}', monsterSettingsReadOnly:'Chỉ đọc: kết nối máy chủ GaC để tải danh mục tài nguyên Client.', monsterSettingsLoaded:'Dữ liệu stage chỉ đọc · nguồn: {source}', monsterSettingsClientResources:'tài nguyên Client', monsterSettingsDataUnavailable:'Không có dữ liệu người chơi FreeSR', monsterCustomTitle:'Wave quái tùy chỉnh', monsterCustomDescription:'Chỉ dùng các wave này khi vào Golden hoặc Crimson Calyx với phiên GaC-Srtool đang hoạt động.', monsterCustomCalyxOnly:'Thiết lập này không thay quái của Boss tuần, Bóng Ngưng Đọng, Hang Ăn Mòn, MoC, Pure Fiction, Apocalyptic Shadow hoặc AA.', monsterCustomConnected:'Đã kết nối. Thay đổi được lưu lên máy chủ và áp dụng ở lần vào Calyx hợp lệ tiếp theo.', monsterCustomConnect:'Kết nối GaC để sửa và lưu wave Calyx tùy chỉnh.', monsterCustomEmpty:'Chưa có wave tùy chỉnh. Chọn “Dùng stage Client” để khôi phục wave Calyx đã cài.', monsterCustomAddWave:'Thêm wave', monsterCustomUseClient:'Dùng stage Client', monsterCustomSave:'Lưu wave tùy chỉnh', monsterCustomSaved:'Đã lưu · chỉ áp dụng Golden / Crimson Calyx', monsterCustomUnsaved:'Có thay đổi chưa lưu', monsterCustomAddEnemy:'Thêm quái', monsterCustomRemoveEnemy:'Xóa quái', monsterCustomRemoveWave:'Xóa wave', monsterCustomId:'Monster ID', monsterCustomLevel:'Cấp', monsterCustomMaxHP:'HP tối đa (không bắt buộc)', monsterCustomNaturalHP:'Để trống = HP mặc định', monsterCustomEmptyWave:'Wave {number} chưa có quái.', monsterCustomInvalidEntry:'Nhập Monster ID, cấp và HP tối đa hợp lệ.', monsterCustomSaveSuccess:'Đã lưu wave tùy chỉnh Calyx.', monsterCustomSaveError:'Không lưu được wave tùy chỉnh: {error}' }, + id: { tabMonsterSettings:'👾 Pengaturan Monster', monsterSettingsTitle:'👾 Pengaturan Monster', monsterSettingsDescription:'Lihat stage dan wave dari resource Client yang terpasang. Wave musuh kustom hanya berlaku di Golden / Crimson Calyx.', monsterSettingsRule:'Boss mingguan, Stagnant Shadow, Cavern of Corrosion, dan Endgame memakai data stage Client dan tidak dapat diubah di sini.', monsterModeMoc:'Memory of Chaos', monsterModePf:'Pure Fiction', monsterModeAs:'Apocalyptic Shadow', monsterModeAa:'Anomaly Arbitration', monsterModeCustom:'Musuh Kustom', monsterModeSu:'Simulated Universe', monsterSettingsLoading:'Membaca resource stage Client…', monsterSettingsNoStages:'Tidak ada stage dalam resource Client yang terhubung.', monsterSettingsGroup:'Grup stage', monsterSettingsGroupOption:'Grup {id} · {count} entri', monsterSettingsChallenge:'Entri tantangan', monsterSettingsStageOption:'Entri {id}{boss}', monsterSettingsBoss:'Boss', monsterSettingsStageTitle:'Entri {id}', monsterSettingsDefaultBuff:'Buff default ID {id}', monsterSettingsEncounterTitle:'Stage pertarungan {id}', monsterSettingsLevel:'Level {level}', monsterSettingsWaveCount:'{count} wave', monsterSettingsWave:'Wave {number}', monsterSettingsSuReadOnly:'Server ini belum mendukung pengeditan musuh Simulated Universe dan belum memiliki resource SU terverifikasi.', monsterSettingsCatalogError:'Resource stage Client gagal dibaca: {error}', monsterSettingsReadOnly:'Hanya-baca: sambungkan ke server GaC untuk memuat katalog resource Client.', monsterSettingsLoaded:'Data stage hanya-baca · sumber: {source}', monsterSettingsClientResources:'resource Client', monsterSettingsDataUnavailable:'Data pemain FreeSR tidak tersedia', monsterCustomTitle:'Wave Musuh Kustom', monsterCustomDescription:'Wave ini hanya digunakan saat masuk Golden atau Crimson Calyx dengan sesi GaC-Srtool aktif.', monsterCustomCalyxOnly:'Pengaturan ini tidak mengganti musuh Boss mingguan, Stagnant Shadow, Cavern of Corrosion, MoC, Pure Fiction, Apocalyptic Shadow, atau AA.', monsterCustomConnected:'Terhubung. Perubahan disimpan ke server dan berlaku saat masuk Calyx yang sesuai berikutnya.', monsterCustomConnect:'Sambungkan ke GaC untuk mengedit dan menyimpan wave Calyx kustom.', monsterCustomEmpty:'Belum ada wave kustom. Pilih “Gunakan stage Client” untuk memulihkan wave Calyx bawaan.', monsterCustomAddWave:'Tambah wave', monsterCustomUseClient:'Gunakan stage Client', monsterCustomSave:'Simpan wave kustom', monsterCustomSaved:'Tersimpan · hanya untuk Golden / Crimson Calyx', monsterCustomUnsaved:'Ada perubahan yang belum disimpan', monsterCustomAddEnemy:'Tambah musuh', monsterCustomRemoveEnemy:'Hapus musuh', monsterCustomRemoveWave:'Hapus wave', monsterCustomId:'Monster ID', monsterCustomLevel:'Level', monsterCustomMaxHP:'HP Maks (opsional)', monsterCustomNaturalHP:'Kosong = HP normal monster', monsterCustomEmptyWave:'Wave {number} belum memiliki musuh.', monsterCustomInvalidEntry:'Masukkan Monster ID, Level, dan Max HP yang valid.', monsterCustomSaveSuccess:'Wave kustom Calyx tersimpan.', monsterCustomSaveError:'Wave kustom gagal disimpan: {error}' }, + es: { tabMonsterSettings:'👾 Ajustes de monstruos', monsterSettingsTitle:'👾 Ajustes de monstruos', monsterSettingsDescription:'Consulta fases y oleadas de los recursos del cliente instalado. Las oleadas personalizadas solo se aplican en Golden / Crimson Calyx.', monsterSettingsRule:'Los jefes semanales, Sombra estancada, Caverna de la corrosión y Endgame usan datos del cliente y no se modifican aquí.', monsterModeMoc:'Memoria del caos', monsterModePf:'Ficción pura', monsterModeAs:'Sombra apocalíptica', monsterModeAa:'Anomaly Arbitration', monsterModeCustom:'Enemigo personalizado', monsterModeSu:'Universo Simulado', monsterSettingsLoading:'Leyendo recursos de fases del cliente…', monsterSettingsNoStages:'No se encontraron fases en los recursos del cliente conectado.', monsterSettingsGroup:'Grupo de fases', monsterSettingsGroupOption:'Grupo {id} · {count} entradas', monsterSettingsChallenge:'Entrada del desafío', monsterSettingsStageOption:'Entrada {id}{boss}', monsterSettingsBoss:'Jefe', monsterSettingsStageTitle:'Entrada {id}', monsterSettingsDefaultBuff:'Beneficio predeterminado ID {id}', monsterSettingsEncounterTitle:'Fase de combate {id}', monsterSettingsLevel:'Nivel {level}', monsterSettingsWaveCount:'{count} oleadas', monsterSettingsWave:'Oleada {number}', monsterSettingsSuReadOnly:'Este servidor no permite editar enemigos del Universo Simulado y no dispone de recursos SU verificados.', monsterSettingsCatalogError:'No se pudieron leer los recursos de fases del cliente: {error}', monsterSettingsReadOnly:'Solo lectura: conecta con el servidor GaC para cargar el catálogo del cliente.', monsterSettingsLoaded:'Datos de fase de solo lectura · origen: {source}', monsterSettingsClientResources:'recursos del cliente', monsterSettingsDataUnavailable:'No hay datos de jugador de FreeSR', monsterCustomTitle:'Oleadas de enemigos personalizadas', monsterCustomDescription:'Solo se usan al entrar en Golden o Crimson Calyx con la sesión de GaC-Srtool activa.', monsterCustomCalyxOnly:'No reemplaza enemigos de jefes semanales, Sombra estancada, Caverna de la corrosión, MoC, Pure Fiction, Apocalyptic Shadow ni AA.', monsterCustomConnected:'Conectado. Los cambios se guardan en el servidor y se aplican en la próxima entrada a un Calyx compatible.', monsterCustomConnect:'Conecta con GaC para editar y guardar oleadas personalizadas de Calyx.', monsterCustomEmpty:'No hay oleadas personalizadas. Usa «Usar fases del cliente» para restaurar las oleadas instaladas de Calyx.', monsterCustomAddWave:'Añadir oleada', monsterCustomUseClient:'Usar fases del cliente', monsterCustomSave:'Guardar oleadas', monsterCustomSaved:'Guardado · solo para Golden / Crimson Calyx', monsterCustomUnsaved:'Hay cambios sin guardar', monsterCustomAddEnemy:'Añadir enemigo', monsterCustomRemoveEnemy:'Quitar enemigo', monsterCustomRemoveWave:'Quitar oleada', monsterCustomId:'Monster ID', monsterCustomLevel:'Nivel', monsterCustomMaxHP:'PV máx. (opcional)', monsterCustomNaturalHP:'Vacío = PV normal del enemigo', monsterCustomEmptyWave:'La oleada {number} no tiene enemigos.', monsterCustomInvalidEntry:'Introduce un Monster ID, nivel y PV máx. válidos.', monsterCustomSaveSuccess:'Oleadas personalizadas de Calyx guardadas.', monsterCustomSaveError:'No se pudieron guardar las oleadas: {error}' }, + fr: { tabMonsterSettings:'👾 Réglages des monstres', monsterSettingsTitle:'👾 Réglages des monstres', monsterSettingsDescription:'Consultez les stages et vagues des ressources du client installé. Les vagues personnalisées ne s’appliquent qu’aux Golden / Crimson Calyx.', monsterSettingsRule:'Les boss hebdomadaires, Ombre stagnante, Caverne de la corrosion et Endgame utilisent les données du client et ne sont pas modifiables ici.', monsterModeMoc:'Mémoire du chaos', monsterModePf:'Pure Fiction', monsterModeAs:'Apocalyptic Shadow', monsterModeAa:'Anomaly Arbitration', monsterModeCustom:'Ennemi personnalisé', monsterModeSu:'Univers simulé', monsterSettingsLoading:'Lecture des ressources de stage du client…', monsterSettingsNoStages:'Aucun stage trouvé dans les ressources du client connecté.', monsterSettingsGroup:'Groupe de stages', monsterSettingsGroupOption:'Groupe {id} · {count} entrées', monsterSettingsChallenge:'Entrée de défi', monsterSettingsStageOption:'Entrée {id}{boss}', monsterSettingsBoss:'Boss', monsterSettingsStageTitle:'Entrée {id}', monsterSettingsDefaultBuff:'Bonus par défaut ID {id}', monsterSettingsEncounterTitle:'Stage de combat {id}', monsterSettingsLevel:'Niveau {level}', monsterSettingsWaveCount:'{count} vagues', monsterSettingsWave:'Vague {number}', monsterSettingsSuReadOnly:'Ce serveur ne permet pas de modifier les ennemis de l’Univers simulé et ne dispose pas de ressources SU vérifiées.', monsterSettingsCatalogError:'Impossible de lire les ressources de stage du client : {error}', monsterSettingsReadOnly:'Lecture seule : connectez-vous au serveur GaC pour charger le catalogue du client.', monsterSettingsLoaded:'Données de stage en lecture seule · source : {source}', monsterSettingsClientResources:'ressources du client', monsterSettingsDataUnavailable:'Données joueur FreeSR indisponibles', monsterCustomTitle:'Vagues d’ennemis personnalisées', monsterCustomDescription:'Ces vagues sont utilisées uniquement à l’entrée d’un Golden ou Crimson Calyx avec une session GaC-Srtool active.', monsterCustomCalyxOnly:'Ne remplace pas les ennemis des boss hebdomadaires, Ombre stagnante, Caverne de la corrosion, MoC, Pure Fiction, Apocalyptic Shadow ou AA.', monsterCustomConnected:'Connecté. Les modifications sont enregistrées sur le serveur et s’appliqueront à la prochaine entrée dans un Calyx compatible.', monsterCustomConnect:'Connectez-vous à GaC pour modifier et enregistrer les vagues de Calyx.', monsterCustomEmpty:'Aucune vague personnalisée. « Utiliser les stages du client » restaure les vagues Calyx installées.', monsterCustomAddWave:'Ajouter une vague', monsterCustomUseClient:'Utiliser les stages du client', monsterCustomSave:'Enregistrer les vagues', monsterCustomSaved:'Enregistré · Golden / Crimson Calyx uniquement', monsterCustomUnsaved:'Modifications non enregistrées', monsterCustomAddEnemy:'Ajouter un ennemi', monsterCustomRemoveEnemy:'Supprimer l’ennemi', monsterCustomRemoveWave:'Supprimer la vague', monsterCustomId:'Monster ID', monsterCustomLevel:'Niveau', monsterCustomMaxHP:'PV max (facultatif)', monsterCustomNaturalHP:'Vide = PV normaux du monstre', monsterCustomEmptyWave:'La vague {number} ne contient aucun ennemi.', monsterCustomInvalidEntry:'Saisissez un Monster ID, un niveau et des PV max valides.', monsterCustomSaveSuccess:'Vagues personnalisées de Calyx enregistrées.', monsterCustomSaveError:'Impossible d’enregistrer les vagues : {error}' }, + de: { tabMonsterSettings:'👾 Monster-Einstellungen', monsterSettingsTitle:'👾 Monster-Einstellungen', monsterSettingsDescription:'Stages und Wellen aus den installierten Client-Ressourcen anzeigen. Eigene Gegnerwellen gelten nur im Golden / Crimson Calyx.', monsterSettingsRule:'Wöchentliche Bosse, stagnierende Schatten, Höhle der Korrosion und Endgame nutzen Clientdaten und können hier nicht geändert werden.', monsterModeMoc:'Memory of Chaos', monsterModePf:'Pure Fiction', monsterModeAs:'Apocalyptic Shadow', monsterModeAa:'Anomaly Arbitration', monsterModeCustom:'Eigene Gegner', monsterModeSu:'Simuliertes Universum', monsterSettingsLoading:'Client-Stage-Ressourcen werden gelesen…', monsterSettingsNoStages:'In den verbundenen Client-Ressourcen wurden keine Stages gefunden.', monsterSettingsGroup:'Stage-Gruppe', monsterSettingsGroupOption:'Gruppe {id} · {count} Einträge', monsterSettingsChallenge:'Herausforderungseintrag', monsterSettingsStageOption:'Eintrag {id}{boss}', monsterSettingsBoss:'Boss', monsterSettingsStageTitle:'Eintrag {id}', monsterSettingsDefaultBuff:'Standardbuff-ID {id}', monsterSettingsEncounterTitle:'Kampfstage {id}', monsterSettingsLevel:'Stufe {level}', monsterSettingsWaveCount:'{count} Wellen', monsterSettingsWave:'Welle {number}', monsterSettingsSuReadOnly:'Dieser Server unterstützt keine Bearbeitung von Gegnern im Simulierten Universum; bestätigte SU-Ressourcen fehlen ebenfalls.', monsterSettingsCatalogError:'Client-Stage-Ressourcen konnten nicht gelesen werden: {error}', monsterSettingsReadOnly:'Nur lesbar: Mit dem GaC-Server verbinden, um den Client-Katalog zu laden.', monsterSettingsLoaded:'Stage-Daten, nur lesbar · Quelle: {source}', monsterSettingsClientResources:'Client-Ressourcen', monsterSettingsDataUnavailable:'FreeSR-Spielerdaten sind nicht verfügbar', monsterCustomTitle:'Eigene Gegnerwellen', monsterCustomDescription:'Diese Wellen gelten nur beim Betreten eines Golden oder Crimson Calyx mit aktiver GaC-Srtool-Sitzung.', monsterCustomCalyxOnly:'Ersetzt keine Gegner bei wöchentlichen Bossen, stagnierenden Schatten, Höhle der Korrosion, MoC, Pure Fiction, Apocalyptic Shadow oder AA.', monsterCustomConnected:'Verbunden. Änderungen werden auf dem Server gespeichert und beim nächsten passenden Calyx-Eintritt angewendet.', monsterCustomConnect:'Mit GaC verbinden, um Calyx-Wellen zu bearbeiten und zu speichern.', monsterCustomEmpty:'Keine eigenen Wellen gesetzt. „Client-Stages verwenden“ stellt die installierten Calyx-Wellen wieder her.', monsterCustomAddWave:'Welle hinzufügen', monsterCustomUseClient:'Client-Stages verwenden', monsterCustomSave:'Wellen speichern', monsterCustomSaved:'Gespeichert · nur Golden / Crimson Calyx', monsterCustomUnsaved:'Ungespeicherte Änderungen', monsterCustomAddEnemy:'Gegner hinzufügen', monsterCustomRemoveEnemy:'Gegner entfernen', monsterCustomRemoveWave:'Welle entfernen', monsterCustomId:'Monster-ID', monsterCustomLevel:'Stufe', monsterCustomMaxHP:'Max. LP (optional)', monsterCustomNaturalHP:'Leer = normale Monster-LP', monsterCustomEmptyWave:'Welle {number} enthält keine Gegner.', monsterCustomInvalidEntry:'Gültige Monster-ID, Stufe und maximale LP eingeben.', monsterCustomSaveSuccess:'Eigene Calyx-Wellen gespeichert.', monsterCustomSaveError:'Wellen konnten nicht gespeichert werden: {error}' }, + ru: { tabMonsterSettings:'👾 Настройки монстров', monsterSettingsTitle:'👾 Настройки монстров', monsterSettingsDescription:'Просмотр этапов и волн из ресурсов установленного клиента. Свои волны доступны только в Golden / Crimson Calyx.', monsterSettingsRule:'Еженедельные боссы, Застойная тень, Пещера коррозии и эндгейм используют данные клиента и здесь не изменяются.', monsterModeMoc:'Зал забвения', monsterModePf:'Чистый вымысел', monsterModeAs:'Апокалиптическая тень', monsterModeAa:'Аномальное противостояние', monsterModeCustom:'Свои монстры', monsterModeSu:'Виртуальная вселенная', monsterSettingsLoading:'Чтение ресурсов этапов клиента…', monsterSettingsNoStages:'В ресурсах подключённого клиента этапы не найдены.', monsterSettingsGroup:'Группа этапов', monsterSettingsGroupOption:'Группа {id} · записей: {count}', monsterSettingsChallenge:'Запись испытания', monsterSettingsStageOption:'Запись {id}{boss}', monsterSettingsBoss:'Босс', monsterSettingsStageTitle:'Запись {id}', monsterSettingsDefaultBuff:'Базовый эффект ID {id}', monsterSettingsEncounterTitle:'Этап боя {id}', monsterSettingsLevel:'Уровень {level}', monsterSettingsWaveCount:'Волн: {count}', monsterSettingsWave:'Волна {number}', monsterSettingsSuReadOnly:'Сервер не поддерживает редактирование монстров Виртуальной вселенной; проверенных ресурсов SU нет.', monsterSettingsCatalogError:'Не удалось прочитать ресурсы этапов клиента: {error}', monsterSettingsReadOnly:'Только чтение: подключитесь к GaC, чтобы загрузить каталог клиента.', monsterSettingsLoaded:'Данные этапа, только чтение · источник: {source}', monsterSettingsClientResources:'ресурсы клиента', monsterSettingsDataUnavailable:'Данные игрока FreeSR недоступны', monsterCustomTitle:'Свои волны монстров', monsterCustomDescription:'Волны применяются только при входе в Golden или Crimson Calyx с активной сессией GaC-Srtool.', monsterCustomCalyxOnly:'Не заменяет монстров еженедельных боссов, Застойной тени, Пещеры коррозии, MoC, Pure Fiction, Apocalyptic Shadow или AA.', monsterCustomConnected:'Подключено. Изменения сохранены на сервере и применятся при следующем подходящем входе в Calyx.', monsterCustomConnect:'Подключитесь к GaC, чтобы редактировать и сохранять волны Calyx.', monsterCustomEmpty:'Свои волны не заданы. «Использовать этапы клиента» восстановит волны Calyx из клиента.', monsterCustomAddWave:'Добавить волну', monsterCustomUseClient:'Использовать этапы клиента', monsterCustomSave:'Сохранить волны', monsterCustomSaved:'Сохранено · только Golden / Crimson Calyx', monsterCustomUnsaved:'Есть несохранённые изменения', monsterCustomAddEnemy:'Добавить монстра', monsterCustomRemoveEnemy:'Удалить монстра', monsterCustomRemoveWave:'Удалить волну', monsterCustomId:'ID монстра', monsterCustomLevel:'Уровень', monsterCustomMaxHP:'Макс. HP (необязательно)', monsterCustomNaturalHP:'Пусто = обычное HP монстра', monsterCustomEmptyWave:'В волне {number} нет монстров.', monsterCustomInvalidEntry:'Введите корректные ID монстра, уровень и макс. HP.', monsterCustomSaveSuccess:'Свои волны Calyx сохранены.', monsterCustomSaveError:'Не удалось сохранить волны: {error}' }, + pt: { tabMonsterSettings:'👾 Configurações de monstros', monsterSettingsTitle:'👾 Configurações de monstros', monsterSettingsDescription:'Consulte fases e ondas dos recursos do Client instalado. Ondas personalizadas só se aplicam em Golden / Crimson Calyx.', monsterSettingsRule:'Chefes semanais, Sombra Estagnada, Caverna da Corrosão e Endgame usam dados do Client e não podem ser alterados aqui.', monsterModeMoc:'Memória do Caos', monsterModePf:'Ficção Pura', monsterModeAs:'Sombra Apocalíptica', monsterModeAa:'Anomaly Arbitration', monsterModeCustom:'Inimigo personalizado', monsterModeSu:'Universo Simulado', monsterSettingsLoading:'Lendo recursos de fase do Client…', monsterSettingsNoStages:'Nenhuma fase encontrada nos recursos do Client conectado.', monsterSettingsGroup:'Grupo de fases', monsterSettingsGroupOption:'Grupo {id} · {count} entradas', monsterSettingsChallenge:'Entrada de desafio', monsterSettingsStageOption:'Entrada {id}{boss}', monsterSettingsBoss:'Chefe', monsterSettingsStageTitle:'Entrada {id}', monsterSettingsDefaultBuff:'Bônus padrão ID {id}', monsterSettingsEncounterTitle:'Fase de combate {id}', monsterSettingsLevel:'Nível {level}', monsterSettingsWaveCount:'{count} ondas', monsterSettingsWave:'Onda {number}', monsterSettingsSuReadOnly:'Este servidor não permite editar inimigos do Universo Simulado e não possui recursos SU verificados.', monsterSettingsCatalogError:'Não foi possível ler recursos de fase do Client: {error}', monsterSettingsReadOnly:'Somente leitura: conecte-se ao servidor GaC para carregar o catálogo do Client.', monsterSettingsLoaded:'Dados de fase somente leitura · origem: {source}', monsterSettingsClientResources:'recursos do Client', monsterSettingsDataUnavailable:'Dados de jogador do FreeSR indisponíveis', monsterCustomTitle:'Ondas de inimigos personalizadas', monsterCustomDescription:'Estas ondas só são usadas ao entrar em Golden ou Crimson Calyx com a sessão GaC-Srtool ativa.', monsterCustomCalyxOnly:'Não substitui inimigos de chefes semanais, Sombra Estagnada, Caverna da Corrosão, MoC, Pure Fiction, Apocalyptic Shadow ou AA.', monsterCustomConnected:'Conectado. As alterações são salvas no servidor e aplicadas na próxima entrada elegível em Calyx.', monsterCustomConnect:'Conecte-se ao GaC para editar e salvar ondas personalizadas de Calyx.', monsterCustomEmpty:'Nenhuma onda personalizada definida. “Usar fases do Client” restaura as ondas instaladas de Calyx.', monsterCustomAddWave:'Adicionar onda', monsterCustomUseClient:'Usar fases do Client', monsterCustomSave:'Salvar ondas', monsterCustomSaved:'Salvo · somente Golden / Crimson Calyx', monsterCustomUnsaved:'Há alterações não salvas', monsterCustomAddEnemy:'Adicionar inimigo', monsterCustomRemoveEnemy:'Remover inimigo', monsterCustomRemoveWave:'Remover onda', monsterCustomId:'Monster ID', monsterCustomLevel:'Nível', monsterCustomMaxHP:'HP máx. (opcional)', monsterCustomNaturalHP:'Vazio = HP normal do monstro', monsterCustomEmptyWave:'A onda {number} não tem inimigos.', monsterCustomInvalidEntry:'Informe Monster ID, nível e HP máx. válidos.', monsterCustomSaveSuccess:'Ondas personalizadas de Calyx salvas.', monsterCustomSaveError:'Não foi possível salvar as ondas: {error}' } +}; + +for (const [language, additions] of Object.entries(MONSTER_SETTINGS_TRANSLATIONS)) { + Object.assign(TRANSLATIONS[language], additions); +} + +const AA_ROOM_SELECTION_TRANSLATIONS = { + en: { monsterAaRoomTitle:'Use selected AA room', monsterAaRoomDescription:'Queue this Client stage for your next Anomaly Arbitration start from the game. The selection is one-shot and expires with the Srtool session.', monsterAaRoomPending:'Queued for the next AA start: {room} (Entry {id}).', monsterAaRoomUse:'Use this room next', monsterAaRoomClear:'Clear queued room', monsterAaRoomLoading:'Checking for a queued AA room…', monsterAaRoomConnect:'Connect to GaC to queue a room for the game.', monsterAaRoomLoadError:'Could not check the queued room: {error}', monsterAaRoomSavedToast:'AA room queued. Start Anomaly Arbitration from the game to use it.', monsterAaRoomClearedToast:'Queued AA room cleared.', monsterAaRoomSaveError:'Could not update the AA room: {error}' }, + th: { monsterAaRoomTitle:'เลือกห้อง AA ที่จะเข้า', monsterAaRoomDescription:'ตั้ง stage ของ Client นี้เป็นห้องที่จะเข้าเมื่อเริ่ม Anomaly Arbitration ครั้งถัดไปจากในเกม การเลือกใช้ครั้งเดียวและหมดอายุตาม session ของ Srtool', monsterAaRoomPending:'ตั้งไว้สำหรับการเข้า AA ครั้งถัดไปแล้ว: {room} (รายการ {id})', monsterAaRoomUse:'ใช้ห้องนี้ครั้งถัดไป', monsterAaRoomClear:'ยกเลิกห้องที่ตั้งไว้', monsterAaRoomLoading:'กำลังตรวจสอบห้อง AA ที่ตั้งไว้…', monsterAaRoomConnect:'เชื่อมต่อ GaC เพื่อตั้งห้องให้เกมเข้า', monsterAaRoomLoadError:'ตรวจสอบห้องที่ตั้งไว้ไม่สำเร็จ: {error}', monsterAaRoomSavedToast:'ตั้งห้อง AA แล้ว ให้เริ่ม Anomaly Arbitration จากในเกมเพื่อเข้าไป', monsterAaRoomClearedToast:'ยกเลิกห้อง AA ที่ตั้งไว้แล้ว', monsterAaRoomSaveError:'เปลี่ยนห้อง AA ไม่สำเร็จ: {error}' }, + 'zh-CN': { monsterAaRoomTitle:'使用所选异相仲裁关卡', monsterAaRoomDescription:'将此客户端关卡设为下次从游戏内开始异相仲裁时进入的房间。该设置只使用一次,并会随 Srtool 会话过期。', monsterAaRoomPending:'已设为下次异相仲裁进入的房间:{room}(条目 {id})。', monsterAaRoomUse:'下次进入此房间', monsterAaRoomClear:'清除已选房间', monsterAaRoomLoading:'正在检查已选的异相仲裁房间…', monsterAaRoomConnect:'连接 GaC 后才能为游戏设置房间。', monsterAaRoomLoadError:'无法检查已选房间:{error}', monsterAaRoomSavedToast:'已设置异相仲裁房间。请从游戏内开始异相仲裁。', monsterAaRoomClearedToast:'已清除异相仲裁房间设置。', monsterAaRoomSaveError:'无法更新异相仲裁房间:{error}' }, + 'zh-TW': { monsterAaRoomTitle:'選擇下次進入的 AA 房間', monsterAaRoomDescription:'將此 Client 關卡設為下次從遊戲內開始 Anomaly Arbitration 時進入的房間。此設定僅使用一次,並會隨 Srtool 工作階段到期。', monsterAaRoomPending:'已設定為下次 AA 開始時進入的房間:{room}(項目 {id})。', monsterAaRoomUse:'下次使用此房間', monsterAaRoomClear:'清除已設定的房間', monsterAaRoomLoading:'正在檢查已設定的 AA 房間…', monsterAaRoomConnect:'請連線至 GaC,才能為遊戲設定房間。', monsterAaRoomLoadError:'無法檢查已設定的房間:{error}', monsterAaRoomSavedToast:'已設定 AA 房間。請從遊戲內開始 Anomaly Arbitration 以進入此房間。', monsterAaRoomClearedToast:'已清除 AA 房間設定。', monsterAaRoomSaveError:'無法更新 AA 房間:{error}' }, + ja: { monsterAaRoomTitle:'次に入るAAの部屋を選択', monsterAaRoomDescription:'このクライアントのステージを、ゲーム内から次にAnomaly Arbitrationを開始したときの部屋に設定します。設定は1回限りで、Srtoolセッションの期限に合わせて失効します。', monsterAaRoomPending:'次回のAA開始時に入る部屋:{room}(エントリー {id})', monsterAaRoomUse:'次回この部屋に入る', monsterAaRoomClear:'選択した部屋を解除', monsterAaRoomLoading:'選択中のAA部屋を確認中…', monsterAaRoomConnect:'ゲームの部屋を設定するにはGaCに接続してください。', monsterAaRoomLoadError:'選択中の部屋を確認できませんでした:{error}', monsterAaRoomSavedToast:'AAの部屋を設定しました。ゲーム内からAnomaly Arbitrationを開始してください。', monsterAaRoomClearedToast:'AAの部屋設定を解除しました。', monsterAaRoomSaveError:'AAの部屋を更新できませんでした:{error}' }, + ko: { monsterAaRoomTitle:'다음에 입장할 AA 방 선택', monsterAaRoomDescription:'이 Client 스테이지를 게임에서 다음 Anomaly Arbitration을 시작할 때 입장할 방으로 설정합니다. 한 번만 적용되며 Srtool 세션과 함께 만료됩니다.', monsterAaRoomPending:'다음 AA 시작 시 입장할 방: {room} (항목 {id})', monsterAaRoomUse:'다음에 이 방 입장', monsterAaRoomClear:'예약된 방 지우기', monsterAaRoomLoading:'예약된 AA 방 확인 중…', monsterAaRoomConnect:'게임에 방을 예약하려면 GaC에 연결하세요.', monsterAaRoomLoadError:'예약된 방을 확인하지 못했습니다: {error}', monsterAaRoomSavedToast:'AA 방을 예약했습니다. 게임에서 Anomaly Arbitration을 시작하세요.', monsterAaRoomClearedToast:'예약된 AA 방을 지웠습니다.', monsterAaRoomSaveError:'AA 방을 변경하지 못했습니다: {error}' }, + vi: { monsterAaRoomTitle:'Chọn phòng AA sẽ vào', monsterAaRoomDescription:'Đặt stage của Client này làm phòng sẽ vào khi bắt đầu Anomaly Arbitration tiếp theo trong game. Lựa chọn chỉ dùng một lần và hết hạn cùng phiên Srtool.', monsterAaRoomPending:'Đã đặt cho lần bắt đầu AA tiếp theo: {room} (Mục {id}).', monsterAaRoomUse:'Dùng phòng này tiếp theo', monsterAaRoomClear:'Xóa phòng đã đặt', monsterAaRoomLoading:'Đang kiểm tra phòng AA đã đặt…', monsterAaRoomConnect:'Kết nối GaC để đặt phòng cho game.', monsterAaRoomLoadError:'Không thể kiểm tra phòng đã đặt: {error}', monsterAaRoomSavedToast:'Đã đặt phòng AA. Hãy bắt đầu Anomaly Arbitration trong game để vào phòng.', monsterAaRoomClearedToast:'Đã xóa phòng AA đã đặt.', monsterAaRoomSaveError:'Không thể cập nhật phòng AA: {error}' }, + id: { monsterAaRoomTitle:'Pilih ruang AA berikutnya', monsterAaRoomDescription:'Atur stage Client ini sebagai ruang yang dimasuki saat memulai Anomaly Arbitration berikutnya dari dalam game. Pilihan hanya berlaku sekali dan kedaluwarsa bersama sesi Srtool.', monsterAaRoomPending:'Diatur untuk mulai AA berikutnya: {room} (Entri {id}).', monsterAaRoomUse:'Gunakan ruang ini berikutnya', monsterAaRoomClear:'Hapus ruang yang diatur', monsterAaRoomLoading:'Memeriksa ruang AA yang diatur…', monsterAaRoomConnect:'Hubungkan ke GaC untuk mengatur ruang bagi game.', monsterAaRoomLoadError:'Tidak dapat memeriksa ruang yang diatur: {error}', monsterAaRoomSavedToast:'Ruang AA diatur. Mulai Anomaly Arbitration dari dalam game untuk memakainya.', monsterAaRoomClearedToast:'Pengaturan ruang AA dihapus.', monsterAaRoomSaveError:'Tidak dapat memperbarui ruang AA: {error}' }, + es: { monsterAaRoomTitle:'Elegir la próxima sala de AA', monsterAaRoomDescription:'Programa esta fase del cliente como la sala para la próxima vez que inicies Anomaly Arbitration desde el juego. La selección se usa una vez y caduca con la sesión de Srtool.', monsterAaRoomPending:'Programada para el próximo inicio de AA: {room} (entrada {id}).', monsterAaRoomUse:'Usar esta sala la próxima vez', monsterAaRoomClear:'Borrar sala programada', monsterAaRoomLoading:'Comprobando la sala de AA programada…', monsterAaRoomConnect:'Conéctate a GaC para programar una sala para el juego.', monsterAaRoomLoadError:'No se pudo comprobar la sala programada: {error}', monsterAaRoomSavedToast:'Sala de AA programada. Inicia Anomaly Arbitration desde el juego para entrar.', monsterAaRoomClearedToast:'Se borró la sala de AA programada.', monsterAaRoomSaveError:'No se pudo actualizar la sala de AA: {error}' }, + fr: { monsterAaRoomTitle:'Choisir la prochaine salle AA', monsterAaRoomDescription:'Programmez ce stage du client comme salle à rejoindre au prochain lancement d’Anomaly Arbitration depuis le jeu. Le choix ne sert qu’une fois et expire avec la session Srtool.', monsterAaRoomPending:'Programmée pour le prochain lancement AA : {room} (entrée {id}).', monsterAaRoomUse:'Utiliser cette salle ensuite', monsterAaRoomClear:'Effacer la salle programmée', monsterAaRoomLoading:'Vérification de la salle AA programmée…', monsterAaRoomConnect:'Connectez-vous à GaC pour programmer une salle pour le jeu.', monsterAaRoomLoadError:'Impossible de vérifier la salle programmée : {error}', monsterAaRoomSavedToast:'Salle AA programmée. Lancez Anomaly Arbitration depuis le jeu pour y accéder.', monsterAaRoomClearedToast:'La salle AA programmée a été effacée.', monsterAaRoomSaveError:'Impossible de modifier la salle AA : {error}' }, + de: { monsterAaRoomTitle:'Nächsten AA-Raum auswählen', monsterAaRoomDescription:'Diesen Client-Stage als Raum für den nächsten Start von Anomaly Arbitration im Spiel vormerken. Die Auswahl gilt einmalig und läuft mit der Srtool-Sitzung ab.', monsterAaRoomPending:'Für den nächsten AA-Start vorgemerkt: {room} (Eintrag {id}).', monsterAaRoomUse:'Diesen Raum als Nächstes nutzen', monsterAaRoomClear:'Vorgemerkten Raum löschen', monsterAaRoomLoading:'Vorgemerkten AA-Raum wird geprüft…', monsterAaRoomConnect:'Mit GaC verbinden, um einen Raum für das Spiel vorzumerken.', monsterAaRoomLoadError:'Vorgemerkter Raum konnte nicht geprüft werden: {error}', monsterAaRoomSavedToast:'AA-Raum vorgemerkt. Starte Anomaly Arbitration im Spiel, um ihn zu betreten.', monsterAaRoomClearedToast:'Vorgemerkter AA-Raum gelöscht.', monsterAaRoomSaveError:'AA-Raum konnte nicht aktualisiert werden: {error}' }, + ru: { monsterAaRoomTitle:'Выбрать следующую комнату AA', monsterAaRoomDescription:'Назначьте этот этап клиента комнатой для следующего запуска Anomaly Arbitration из игры. Выбор действует один раз и истекает вместе с сеансом Srtool.', monsterAaRoomPending:'Назначено для следующего запуска AA: {room} (этап {id}).', monsterAaRoomUse:'Войти в эту комнату в следующий раз', monsterAaRoomClear:'Очистить выбранную комнату', monsterAaRoomLoading:'Проверка выбранной комнаты AA…', monsterAaRoomConnect:'Подключитесь к GaC, чтобы назначить комнату для игры.', monsterAaRoomLoadError:'Не удалось проверить выбранную комнату: {error}', monsterAaRoomSavedToast:'Комната AA назначена. Запустите Anomaly Arbitration в игре, чтобы войти.', monsterAaRoomClearedToast:'Выбор комнаты AA очищен.', monsterAaRoomSaveError:'Не удалось изменить комнату AA: {error}' }, + pt: { monsterAaRoomTitle:'Escolher próxima sala de AA', monsterAaRoomDescription:'Agende esta fase do Client como a sala para a próxima vez que iniciar Anomaly Arbitration no jogo. A seleção é usada uma vez e expira com a sessão do Srtool.', monsterAaRoomPending:'Agendada para a próxima entrada em AA: {room} (Entrada {id}).', monsterAaRoomUse:'Usar esta sala na próxima vez', monsterAaRoomClear:'Limpar sala agendada', monsterAaRoomLoading:'Verificando sala AA agendada…', monsterAaRoomConnect:'Conecte-se ao GaC para agendar uma sala para o jogo.', monsterAaRoomLoadError:'Não foi possível verificar a sala agendada: {error}', monsterAaRoomSavedToast:'Sala AA agendada. Inicie Anomaly Arbitration no jogo para entrar nela.', monsterAaRoomClearedToast:'Sala AA agendada removida.', monsterAaRoomSaveError:'Não foi possível atualizar a sala AA: {error}' } +}; + +for (const [language, additions] of Object.entries(AA_ROOM_SELECTION_TRANSLATIONS)) { + Object.assign(TRANSLATIONS[language], additions); +} + +const MONSTER_PICKER_TRANSLATIONS = { + en: 'Search monsters by name or ID', + th: 'ค้นหามอนสเตอร์ด้วยชื่อหรือ ID', + 'zh-CN': '按名称或 ID 搜索怪物', + 'zh-TW': '依名稱或 ID 搜尋怪物', + ja: '名前またはIDでモンスターを検索', + ko: '이름 또는 ID로 몬스터 검색', + fr: 'Rechercher un monstre par nom ou ID', + de: 'Monster nach Name oder ID suchen', + ru: 'Поиск монстра по имени или ID', + pt: 'Buscar monstros por nome ou ID', + vi: 'Tìm quái vật theo tên hoặc ID', + id: 'Cari monster berdasarkan nama atau ID' +}; + +for (const [language, label] of Object.entries(MONSTER_PICKER_TRANSLATIONS)) { + if (TRANSLATIONS[language]) TRANSLATIONS[language].monsterCustomSearch = label; +} + +const SERVER_MODE_AVAILABILITY_TRANSLATIONS = { + th: { serverModeFireflyPaused: 'FireflyGo — กำลังพัฒนา', serverModeRobinPaused: 'RobinSR — กำลังพัฒนา', serverModesPausedNotice: 'FireflyGo และ RobinSR ปิดใช้งานชั่วคราวระหว่างพัฒนา จึงกลับไปใช้ GaC' }, + en: { serverModeFireflyPaused: 'FireflyGo — Under development', serverModeRobinPaused: 'RobinSR — Under development', serverModesPausedNotice: 'FireflyGo and RobinSR are temporarily disabled during development. Switched back to GaC.' }, + 'zh-CN': { serverModeFireflyPaused: 'FireflyGo — 开发中', serverModeRobinPaused: 'RobinSR — 开发中', serverModesPausedNotice: 'FireflyGo 和 RobinSR 正在开发中,暂时停用。已切回 GaC。' }, + 'zh-TW': { serverModeFireflyPaused: 'FireflyGo — 開發中', serverModeRobinPaused: 'RobinSR — 開發中', serverModesPausedNotice: 'FireflyGo 和 RobinSR 正在開發中,暫時停用。已切回 GaC。' }, + ja: { serverModeFireflyPaused: 'FireflyGo — 開発中', serverModeRobinPaused: 'RobinSR — 開発中', serverModesPausedNotice: 'FireflyGo と RobinSR は開発中のため一時停止しています。GaC に切り替えました。' }, + ko: { serverModeFireflyPaused: 'FireflyGo — 개발 중', serverModeRobinPaused: 'RobinSR — 개발 중', serverModesPausedNotice: 'FireflyGo와 RobinSR은 개발 중이라 일시적으로 비활성화되었습니다. GaC로 전환했습니다.' }, + vi: { serverModeFireflyPaused: 'FireflyGo — Đang phát triển', serverModeRobinPaused: 'RobinSR — Đang phát triển', serverModesPausedNotice: 'FireflyGo và RobinSR đang được phát triển nên tạm thời bị tắt. Đã chuyển về GaC.' }, + id: { serverModeFireflyPaused: 'FireflyGo — Sedang dikembangkan', serverModeRobinPaused: 'RobinSR — Sedang dikembangkan', serverModesPausedNotice: 'FireflyGo dan RobinSR dinonaktifkan sementara selama pengembangan. Kembali ke GaC.' }, + es: { serverModeFireflyPaused: 'FireflyGo — En desarrollo', serverModeRobinPaused: 'RobinSR — En desarrollo', serverModesPausedNotice: 'FireflyGo y RobinSR están desactivados temporalmente durante su desarrollo. Se cambió a GaC.' }, + fr: { serverModeFireflyPaused: 'FireflyGo — En développement', serverModeRobinPaused: 'RobinSR — En développement', serverModesPausedNotice: 'FireflyGo et RobinSR sont temporairement désactivés pendant leur développement. Retour à GaC.' }, + de: { serverModeFireflyPaused: 'FireflyGo — In Entwicklung', serverModeRobinPaused: 'RobinSR — In Entwicklung', serverModesPausedNotice: 'FireflyGo und RobinSR sind während der Entwicklung vorübergehend deaktiviert. Zu GaC gewechselt.' }, + ru: { serverModeFireflyPaused: 'FireflyGo — В разработке', serverModeRobinPaused: 'RobinSR — В разработке', serverModesPausedNotice: 'FireflyGo и RobinSR временно отключены на время разработки. Выполнен переход на GaC.' }, + pt: { serverModeFireflyPaused: 'FireflyGo — Em desenvolvimento', serverModeRobinPaused: 'RobinSR — Em desenvolvimento', serverModesPausedNotice: 'FireflyGo e RobinSR estão temporariamente desativados durante o desenvolvimento. Voltou para GaC.' } +}; + for (const [language, additions] of Object.entries(ADDITIONAL_TRANSLATIONS)) { Object.assign(TRANSLATIONS[language], additions); } @@ -6634,6 +6842,12 @@ for (const [language, additions] of Object.entries(INTERACTION_FEEDBACK_TRANSLAT for (const [language, additions] of Object.entries(LAST_MILE_TRANSLATIONS)) { Object.assign(TRANSLATIONS[language], additions); } +for (const [language, additions] of Object.entries(AHA_HELP_TRANSLATIONS)) { + Object.assign(TRANSLATIONS[language], additions); +} +for (const [language, additions] of Object.entries(SERVER_MODE_AVAILABILITY_TRANSLATIONS)) { + Object.assign(TRANSLATIONS[language], additions); +} const ITEM_CATALOG_TRANSLATIONS = {