feat(bazaar): bustling lively 2x1 grand bazaar artwork with more people, camels & goods (20261128_v3)
Browse files- assets/bazaar_camp.png +2 -2
- boss-test.html +7 -7
- boss.html +3 -3
- docs/management/STATUS.md +1 -1
- index.html +7 -7
- js/admin.js +7 -7
- js/announcements.js +1 -1
- js/bazaar-ui.js +5 -5
- js/bazaar.js +5 -5
- js/boss-battle.js +6 -6
- js/config.js +1 -1
- js/db.js +7 -7
- js/engine.js +4 -4
- js/event-schedule.js +3 -3
- js/game.js +13 -13
- js/lottery-core.js +2 -2
- js/lottery-draw.js +4 -4
- js/lottery.js +8 -8
- js/map.js +7 -7
- js/merchant-ui.js +4 -4
- js/merchant.js +3 -3
- js/preload.js +4 -4
- js/quiz.js +2 -2
- js/tianji.js +4 -4
- js/world-boss-schedule.js +1 -1
- lottery-draw.html +4 -4
- teacher.html +5 -5
assets/bazaar_camp.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
boss-test.html
CHANGED
|
@@ -5,14 +5,14 @@
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 6 |
<title>上古・饕餮 討伐戰|世界王測試頁</title>
|
| 7 |
<meta name="description" content="世界王上古・饕餮討伐戰獨立測試頁:Boss 介紹、討伐獎勵與全螢幕答題戰鬥。">
|
| 8 |
-
<link rel="stylesheet" href="css/base.css?v=
|
| 9 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 10 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 11 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Noto+Sans+TC:wght@400;500;700;900&display=swap" rel="stylesheet">
|
| 12 |
<!-- KaTeX 數學式與科學記號渲染引擎 -->
|
| 13 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css">
|
| 14 |
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"></script>
|
| 15 |
-
<link rel="stylesheet" href="css/boss.css?v=
|
| 16 |
</head>
|
| 17 |
<body>
|
| 18 |
|
|
@@ -410,15 +410,15 @@
|
|
| 410 |
</div>
|
| 411 |
|
| 412 |
<script type="module">
|
| 413 |
-
import { getDB, DBError, defaultBossState } from './js/db.js?v=
|
| 414 |
-
import { loadBank, loadBankIndex } from './js/quiz.js?v=
|
| 415 |
import {
|
| 416 |
recordMistake, recordCorrect, derive, totalProd, grantGrain, grantTally, grantScroll,
|
| 417 |
WORLD_BOSS_ROSTER, getActiveWorldBossConfig, calcWorldBossRewards, calcWorldBossStatus,
|
| 418 |
getBossDailyQuestionTheme, getBossWeaponBuffs
|
| 419 |
-
} from './js/engine.js?v=
|
| 420 |
-
import { loadEnglishWords, buildWordQuestion } from './js/merchant.js?v=
|
| 421 |
-
import { todayStr, fmt, shuffle, renderRichQuizText } from './js/util.js?v=
|
| 422 |
|
| 423 |
// ==========================================
|
| 424 |
// 1. 全域與連線狀態
|
|
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 6 |
<title>上古・饕餮 討伐戰|世界王測試頁</title>
|
| 7 |
<meta name="description" content="世界王上古・饕餮討伐戰獨立測試頁:Boss 介紹、討伐獎勵與全螢幕答題戰鬥。">
|
| 8 |
+
<link rel="stylesheet" href="css/base.css?v=20261128_v3">
|
| 9 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 10 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 11 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Noto+Sans+TC:wght@400;500;700;900&display=swap" rel="stylesheet">
|
| 12 |
<!-- KaTeX 數學式與科學記號渲染引擎 -->
|
| 13 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css">
|
| 14 |
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"></script>
|
| 15 |
+
<link rel="stylesheet" href="css/boss.css?v=20261128_v3">
|
| 16 |
</head>
|
| 17 |
<body>
|
| 18 |
|
|
|
|
| 410 |
</div>
|
| 411 |
|
| 412 |
<script type="module">
|
| 413 |
+
import { getDB, DBError, defaultBossState } from './js/db.js?v=20261128_v3';
|
| 414 |
+
import { loadBank, loadBankIndex } from './js/quiz.js?v=20261128_v3';
|
| 415 |
import {
|
| 416 |
recordMistake, recordCorrect, derive, totalProd, grantGrain, grantTally, grantScroll,
|
| 417 |
WORLD_BOSS_ROSTER, getActiveWorldBossConfig, calcWorldBossRewards, calcWorldBossStatus,
|
| 418 |
getBossDailyQuestionTheme, getBossWeaponBuffs
|
| 419 |
+
} from './js/engine.js?v=20261128_v3';
|
| 420 |
+
import { loadEnglishWords, buildWordQuestion } from './js/merchant.js?v=20261128_v3';
|
| 421 |
+
import { todayStr, fmt, shuffle, renderRichQuizText } from './js/util.js?v=20261128_v3';
|
| 422 |
|
| 423 |
// ==========================================
|
| 424 |
// 1. 全域與連線狀態
|
boss.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 6 |
<title>世界 Boss 決戰殿堂|爭霸天下</title>
|
| 7 |
<meta name="description" content="全班共抗太古凶神!破除錯題迷障、連擊合力封印,奪取神獸寶庫與至高榮譽稱號!">
|
| 8 |
-
<link rel="stylesheet" href="css/base.css?v=
|
| 9 |
-
<link rel="stylesheet" href="css/boss.css?v=
|
| 10 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 11 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 12 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Noto+Sans+TC:wght@400;500;700;900&display=swap" rel="stylesheet">
|
|
@@ -250,6 +250,6 @@
|
|
| 250 |
|
| 251 |
<!-- ===================== 版本更新公告彈窗(模版展示) ===================== -->
|
| 252 |
|
| 253 |
-
<script type="module" src="js/boss-battle.js?v=
|
| 254 |
</body>
|
| 255 |
</html>
|
|
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 6 |
<title>世界 Boss 決戰殿堂|爭霸天下</title>
|
| 7 |
<meta name="description" content="全班共抗太古凶神!破除錯題迷障、連擊合力封印,奪取神獸寶庫與至高榮譽稱號!">
|
| 8 |
+
<link rel="stylesheet" href="css/base.css?v=20261128_v3">
|
| 9 |
+
<link rel="stylesheet" href="css/boss.css?v=20261128_v3">
|
| 10 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 11 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 12 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Noto+Sans+TC:wght@400;500;700;900&display=swap" rel="stylesheet">
|
|
|
|
| 250 |
|
| 251 |
<!-- ===================== 版本更新公告彈窗(模版展示) ===================== -->
|
| 252 |
|
| 253 |
+
<script type="module" src="js/boss-battle.js?v=20261128_v3"></script>
|
| 254 |
</body>
|
| 255 |
</html>
|
docs/management/STATUS.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# 專案狀態總覽 (STATUS.md)
|
| 2 |
|
| 3 |
> **最後更新**:2026-11-28
|
| 4 |
-
> **目前生產版本**:`APP_BUILD_VERSION = '
|
| 5 |
> **主設計文件 (GDD)**:[docs/game_systems_overview.md](file:///d:/git/idle/docs/game_systems_overview.md)
|
| 6 |
|
| 7 |
---
|
|
|
|
| 1 |
# 專案狀態總覽 (STATUS.md)
|
| 2 |
|
| 3 |
> **最後更新**:2026-11-28
|
| 4 |
+
> **目前生產版本**:`APP_BUILD_VERSION = '20261128_v3'`
|
| 5 |
> **主設計文件 (GDD)**:[docs/game_systems_overview.md](file:///d:/git/idle/docs/game_systems_overview.md)
|
| 6 |
|
| 7 |
---
|
index.html
CHANGED
|
@@ -8,10 +8,10 @@
|
|
| 8 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 9 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 10 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Noto+Sans+TC:wght@400;600;700;900&display=swap" rel="stylesheet">
|
| 11 |
-
<link rel="stylesheet" href="css/base.css?v=
|
| 12 |
-
<link rel="stylesheet" href="css/game.css?v=
|
| 13 |
-
<link rel="stylesheet" href="css/lottery.css?v=
|
| 14 |
-
<link rel="stylesheet" href="css/bazaar.css?v=
|
| 15 |
<!-- KaTeX 數學式與科學記號渲染引擎 -->
|
| 16 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css">
|
| 17 |
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"></script>
|
|
@@ -75,7 +75,7 @@
|
|
| 75 |
<button id="btnLogin" class="btn btn-primary" type="submit" style="width:100%">進入軍帳</button>
|
| 76 |
<p id="loginErr" class="err-text hidden"></p>
|
| 77 |
</form>
|
| 78 |
-
<p class="mute center">大將軍/教師請前往 <a href="teacher.html?v=
|
| 79 |
</div>
|
| 80 |
</section>
|
| 81 |
|
|
@@ -183,7 +183,7 @@
|
|
| 183 |
<button id="merchantCamel" class="merchant-camel hidden" aria-label="駱駝商人">
|
| 184 |
<div class="camel-bubble" id="camelBubble">🐫 駱駝商人來訪!交流交流~</div>
|
| 185 |
<div class="camel-body-wrap">
|
| 186 |
-
<img src="assets/camel_caravan.png?v=
|
| 187 |
<div class="camel-shadow"></div>
|
| 188 |
</div>
|
| 189 |
</button>
|
|
@@ -370,6 +370,6 @@
|
|
| 370 |
<iframe id="bossBattleIframe" style="width:100%; height:100%; border:none; background:#000;" allow="autoplay" src="about:blank"></iframe>
|
| 371 |
</div>
|
| 372 |
|
| 373 |
-
<script type="module" src="js/game.js?v=
|
| 374 |
</body>
|
| 375 |
</html>
|
|
|
|
| 8 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 9 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 10 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Noto+Sans+TC:wght@400;600;700;900&display=swap" rel="stylesheet">
|
| 11 |
+
<link rel="stylesheet" href="css/base.css?v=20261128_v3">
|
| 12 |
+
<link rel="stylesheet" href="css/game.css?v=20261128_v3">
|
| 13 |
+
<link rel="stylesheet" href="css/lottery.css?v=20261128_v3">
|
| 14 |
+
<link rel="stylesheet" href="css/bazaar.css?v=20261128_v3">
|
| 15 |
<!-- KaTeX 數學式與科學記號渲染引擎 -->
|
| 16 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css">
|
| 17 |
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"></script>
|
|
|
|
| 75 |
<button id="btnLogin" class="btn btn-primary" type="submit" style="width:100%">進入軍帳</button>
|
| 76 |
<p id="loginErr" class="err-text hidden"></p>
|
| 77 |
</form>
|
| 78 |
+
<p class="mute center">大將軍/教師請前往 <a href="teacher.html?v=20261128_v3">軍機中樞(教師後台)</a></p>
|
| 79 |
</div>
|
| 80 |
</section>
|
| 81 |
|
|
|
|
| 183 |
<button id="merchantCamel" class="merchant-camel hidden" aria-label="駱駝商人">
|
| 184 |
<div class="camel-bubble" id="camelBubble">🐫 駱駝商人來訪!交流交流~</div>
|
| 185 |
<div class="camel-body-wrap">
|
| 186 |
+
<img src="assets/camel_caravan.png?v=20261128_v3" class="camel-avatar-img" alt="駱駝商人">
|
| 187 |
<div class="camel-shadow"></div>
|
| 188 |
</div>
|
| 189 |
</button>
|
|
|
|
| 370 |
<iframe id="bossBattleIframe" style="width:100%; height:100%; border:none; background:#000;" allow="autoplay" src="about:blank"></iframe>
|
| 371 |
</div>
|
| 372 |
|
| 373 |
+
<script type="module" src="js/game.js?v=20261128_v3"></script>
|
| 374 |
</body>
|
| 375 |
</html>
|
js/admin.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
| 1 |
-
import { getDB, normCode } from './db.js?v=
|
| 2 |
-
import { $, $$, bind, withLoading, toast, openModal, fmtDateTime, fmt, esc, todayStr, addDays } from './util.js?v=
|
| 3 |
-
import { loadBankIndex } from './quiz.js?v=
|
| 4 |
-
import { APP_BUILD_VERSION, SCHEDULE, TIERS, EVENTS_CONFIG, WORLD_BOSS_SCHEDULE, DEFAULT_OPEN_HOUR } from './config.js?v=
|
| 5 |
import {
|
| 6 |
newGame, normalizeGame, derive, totalProd, isEventOpen, getEventStatusInfo,
|
| 7 |
checkYieldHealth, healYield, calcWorldBossStatus, calcWorldBossRewards,
|
| 8 |
hasClaimedBossReward, formatCountdown, formatOpenAt,
|
| 9 |
getActiveWorldBossConfig, getBossDailyQuestionTheme, calcDynamicWorldBossBalance,
|
| 10 |
openDate, isRangeOpen
|
| 11 |
-
} from './engine.js?v=
|
| 12 |
import {
|
| 13 |
resolveWeeklySpotlight, resolveCaravanModeState, buildPilotLotterySpotlightPreset, buildOddWeekSpotlightPreset,
|
| 14 |
findUnclaimedLegacyBossStudents, formatCycleRangeLabel
|
| 15 |
-
} from './event-schedule.js?v=
|
| 16 |
import {
|
| 17 |
LOTTERY_DEFAULT_MILESTONES, LOTTERY_PILOT_MILESTONES, calcLotteryMilestonesProgress, calcDynamicLotteryBalance
|
| 18 |
-
} from './lottery-core.js?v=
|
| 19 |
|
| 20 |
let db, user, currentClassCode = null;
|
| 21 |
let classes = [], students = [], banks = [];
|
|
|
|
| 1 |
+
import { getDB, normCode } from './db.js?v=20261128_v3';
|
| 2 |
+
import { $, $$, bind, withLoading, toast, openModal, fmtDateTime, fmt, esc, todayStr, addDays } from './util.js?v=20261128_v3';
|
| 3 |
+
import { loadBankIndex } from './quiz.js?v=20261128_v3';
|
| 4 |
+
import { APP_BUILD_VERSION, SCHEDULE, TIERS, EVENTS_CONFIG, WORLD_BOSS_SCHEDULE, DEFAULT_OPEN_HOUR } from './config.js?v=20261128_v3';
|
| 5 |
import {
|
| 6 |
newGame, normalizeGame, derive, totalProd, isEventOpen, getEventStatusInfo,
|
| 7 |
checkYieldHealth, healYield, calcWorldBossStatus, calcWorldBossRewards,
|
| 8 |
hasClaimedBossReward, formatCountdown, formatOpenAt,
|
| 9 |
getActiveWorldBossConfig, getBossDailyQuestionTheme, calcDynamicWorldBossBalance,
|
| 10 |
openDate, isRangeOpen
|
| 11 |
+
} from './engine.js?v=20261128_v3';
|
| 12 |
import {
|
| 13 |
resolveWeeklySpotlight, resolveCaravanModeState, buildPilotLotterySpotlightPreset, buildOddWeekSpotlightPreset,
|
| 14 |
findUnclaimedLegacyBossStudents, formatCycleRangeLabel
|
| 15 |
+
} from './event-schedule.js?v=20261128_v3';
|
| 16 |
import {
|
| 17 |
LOTTERY_DEFAULT_MILESTONES, LOTTERY_PILOT_MILESTONES, calcLotteryMilestonesProgress, calcDynamicLotteryBalance
|
| 18 |
+
} from './lottery-core.js?v=20261128_v3';
|
| 19 |
|
| 20 |
let db, user, currentClassCode = null;
|
| 21 |
let classes = [], students = [], banks = [];
|
js/announcements.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
* 支援預約生效時間、剪影展示、未讀自動彈出、手動隨時回看。
|
| 5 |
*/
|
| 6 |
|
| 7 |
-
import { openModal } from './util.js?v=
|
| 8 |
|
| 9 |
export const ANNOUNCEMENT_REGISTRY = [
|
| 10 |
{
|
|
|
|
| 4 |
* 支援預約生效時間、剪影展示、未讀自動彈出、手動隨時回看。
|
| 5 |
*/
|
| 6 |
|
| 7 |
+
import { openModal } from './util.js?v=20261128_v3';
|
| 8 |
|
| 9 |
export const ANNOUNCEMENT_REGISTRY = [
|
| 10 |
{
|
js/bazaar-ui.js
CHANGED
|
@@ -7,10 +7,10 @@
|
|
| 7 |
// - 4 大角色專屬考單字對決舞台(阿卜杜勒/莎赫拉 5×5 配對/迦陵語音切換/伊本拼字)
|
| 8 |
// - 戰後結算、班級首破交易 sync 與計時器/語音嚴格清理
|
| 9 |
// ============================================================================
|
| 10 |
-
import { APP_BUILD_VERSION, BAZAAR_CONFIG, MERCHANT, formatTitleBadge } from './config.js?v=
|
| 11 |
-
import { $, $$, bind, esc, fmt, fmtDateTime, toast, openModal } from './util.js?v=
|
| 12 |
-
import { getMerchantStatus } from './merchant.js?v=
|
| 13 |
-
import { renderMerchantMarketPanel } from './merchant-ui.js?v=
|
| 14 |
import {
|
| 15 |
ensureBazaarCycleState,
|
| 16 |
getBazaarQuotaInfo,
|
|
@@ -25,7 +25,7 @@ import {
|
|
| 25 |
settleBazaarEncounter,
|
| 26 |
loadEnglishWords,
|
| 27 |
speakWord,
|
| 28 |
-
} from './bazaar.js?v=
|
| 29 |
|
| 30 |
const SCROLL_TITLES = ['卷壹', '卷貳', '卷參', '卷肆', '卷伍', '卷陸', '卷柒', '卷捌', '卷玖', '卷拾'];
|
| 31 |
const OPTION_LABELS = ['A', 'B', 'C', 'D'];
|
|
|
|
| 7 |
// - 4 大角色專屬考單字對決舞台(阿卜杜勒/莎赫拉 5×5 配對/迦陵語音切換/伊本拼字)
|
| 8 |
// - 戰後結算、班級首破交易 sync 與計時器/語音嚴格清理
|
| 9 |
// ============================================================================
|
| 10 |
+
import { APP_BUILD_VERSION, BAZAAR_CONFIG, MERCHANT, formatTitleBadge } from './config.js?v=20261128_v3';
|
| 11 |
+
import { $, $$, bind, esc, fmt, fmtDateTime, toast, openModal } from './util.js?v=20261128_v3';
|
| 12 |
+
import { getMerchantStatus } from './merchant.js?v=20261128_v3';
|
| 13 |
+
import { renderMerchantMarketPanel } from './merchant-ui.js?v=20261128_v3';
|
| 14 |
import {
|
| 15 |
ensureBazaarCycleState,
|
| 16 |
getBazaarQuotaInfo,
|
|
|
|
| 25 |
settleBazaarEncounter,
|
| 26 |
loadEnglishWords,
|
| 27 |
speakWord,
|
| 28 |
+
} from './bazaar.js?v=20261128_v3';
|
| 29 |
|
| 30 |
const SCROLL_TITLES = ['卷壹', '卷貳', '卷參', '卷肆', '卷伍', '卷陸', '卷柒', '卷捌', '卷玖', '卷拾'];
|
| 31 |
const OPTION_LABELS = ['A', 'B', 'C', 'D'];
|
js/bazaar.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
| 6 |
// - 錯題三鎖鏈與全域 game.mistakes 雙向同步
|
| 7 |
// - 4 大市集角色隨機遭遇戰與結算引擎
|
| 8 |
// ============================================================================
|
| 9 |
-
import { BAZAAR_CONFIG, MERCHANT, getTitleDef } from './config.js?v=
|
| 10 |
-
import { todayStr, shuffle } from './util.js?v=
|
| 11 |
import {
|
| 12 |
grantGrain,
|
| 13 |
grantTally,
|
|
@@ -16,15 +16,15 @@ import {
|
|
| 16 |
recordCorrect,
|
| 17 |
derive,
|
| 18 |
totalProd,
|
| 19 |
-
} from './engine.js?v=
|
| 20 |
-
import { resolveCaravanModeState } from './event-schedule.js?v=
|
| 21 |
import {
|
| 22 |
loadEnglishWords,
|
| 23 |
speakWord,
|
| 24 |
maskExampleSentence,
|
| 25 |
getMerchantStatus,
|
| 26 |
calcBargainDiscount,
|
| 27 |
-
} from './merchant.js?v=
|
| 28 |
|
| 29 |
export { loadEnglishWords, speakWord };
|
| 30 |
|
|
|
|
| 6 |
// - 錯題三鎖鏈與全域 game.mistakes 雙向同步
|
| 7 |
// - 4 大市集角色隨機遭遇戰與結算引擎
|
| 8 |
// ============================================================================
|
| 9 |
+
import { BAZAAR_CONFIG, MERCHANT, getTitleDef } from './config.js?v=20261128_v3';
|
| 10 |
+
import { todayStr, shuffle } from './util.js?v=20261128_v3';
|
| 11 |
import {
|
| 12 |
grantGrain,
|
| 13 |
grantTally,
|
|
|
|
| 16 |
recordCorrect,
|
| 17 |
derive,
|
| 18 |
totalProd,
|
| 19 |
+
} from './engine.js?v=20261128_v3';
|
| 20 |
+
import { resolveCaravanModeState } from './event-schedule.js?v=20261128_v3';
|
| 21 |
import {
|
| 22 |
loadEnglishWords,
|
| 23 |
speakWord,
|
| 24 |
maskExampleSentence,
|
| 25 |
getMerchantStatus,
|
| 26 |
calcBargainDiscount,
|
| 27 |
+
} from './merchant.js?v=20261128_v3';
|
| 28 |
|
| 29 |
export { loadEnglishWords, speakWord };
|
| 30 |
|
js/boss-battle.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
| 2 |
// js/boss-battle.js
|
| 3 |
// 世界 Boss 決戰殿堂:戰鬥流程、音效合成、題庫連動、血量同步與即時傷害結算
|
| 4 |
// ============================================================================
|
| 5 |
-
import { SCHEDULE } from './config.js?v=
|
| 6 |
-
import { getDB, DBError, defaultBossState, recordBossHighWaterMark, mergeBossObj } from './db.js?v=
|
| 7 |
-
import { loadBank, loadBankIndex } from './quiz.js?v=
|
| 8 |
import {
|
| 9 |
recordMistake, recordCorrect, derive, totalProd, grantGrain, grantTally, grantScroll,
|
| 10 |
WORLD_BOSS_ROSTER, getActiveWorldBossConfig, calcWorldBossRewards, calcWorldBossStatus,
|
| 11 |
hasClaimedBossReward, markBossRewardClaimed, formatCountdown, formatOpenAt,
|
| 12 |
getBossDailyQuestionTheme, buildAdaptiveChargeThresholds, calcStudentChargeQuestions, getBossWeaponBuffs,
|
| 13 |
isRangeOpen
|
| 14 |
-
} from './engine.js?v=
|
| 15 |
-
import { loadEnglishWords, buildWordQuestion, getMerchantDayInfo, getCamelPreviewRange } from './merchant.js?v=
|
| 16 |
-
import { todayStr, fmt, shuffle, renderRichQuizText } from './util.js?v=
|
| 17 |
|
| 18 |
// ==========================================
|
| 19 |
// 1. 全域與連線狀態
|
|
|
|
| 2 |
// js/boss-battle.js
|
| 3 |
// 世界 Boss 決戰殿堂:戰鬥流程、音效合成、題庫連動、血量同步與即時傷害結算
|
| 4 |
// ============================================================================
|
| 5 |
+
import { SCHEDULE } from './config.js?v=20261128_v3';
|
| 6 |
+
import { getDB, DBError, defaultBossState, recordBossHighWaterMark, mergeBossObj } from './db.js?v=20261128_v3';
|
| 7 |
+
import { loadBank, loadBankIndex } from './quiz.js?v=20261128_v3';
|
| 8 |
import {
|
| 9 |
recordMistake, recordCorrect, derive, totalProd, grantGrain, grantTally, grantScroll,
|
| 10 |
WORLD_BOSS_ROSTER, getActiveWorldBossConfig, calcWorldBossRewards, calcWorldBossStatus,
|
| 11 |
hasClaimedBossReward, markBossRewardClaimed, formatCountdown, formatOpenAt,
|
| 12 |
getBossDailyQuestionTheme, buildAdaptiveChargeThresholds, calcStudentChargeQuestions, getBossWeaponBuffs,
|
| 13 |
isRangeOpen
|
| 14 |
+
} from './engine.js?v=20261128_v3';
|
| 15 |
+
import { loadEnglishWords, buildWordQuestion, getMerchantDayInfo, getCamelPreviewRange } from './merchant.js?v=20261128_v3';
|
| 16 |
+
import { todayStr, fmt, shuffle, renderRichQuizText } from './util.js?v=20261128_v3';
|
| 17 |
|
| 18 |
// ==========================================
|
| 19 |
// 1. 全域與連線狀態
|
js/config.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
// 所有數值都集中在這裡,調整平衡只要改這個檔案。
|
| 4 |
// =============================================================
|
| 5 |
|
| 6 |
-
export const APP_BUILD_VERSION = '
|
| 7 |
|
| 8 |
// ---------- 主題(攻城掠地世界觀) ----------
|
| 9 |
export const THEME = {
|
|
|
|
| 3 |
// 所有數值都集中在這裡,調整平衡只要改這個檔案。
|
| 4 |
// =============================================================
|
| 5 |
|
| 6 |
+
export const APP_BUILD_VERSION = '20261128_v3';
|
| 7 |
|
| 8 |
// ---------- 主題(攻城掠地世界觀) ----------
|
| 9 |
export const THEME = {
|
js/db.js
CHANGED
|
@@ -3,13 +3,13 @@
|
|
| 3 |
// 1. FirebaseBackend:正式使用(Auth + Firestore)
|
| 4 |
// 2. LocalBackend :firebaseConfig 未填時的本機示範模式(localStorage)
|
| 5 |
// =============================================================
|
| 6 |
-
import { firebaseConfig, STUDENT_EMAIL_DOMAIN, PIN_SUFFIX } from './firebase-config.js?v=
|
| 7 |
-
import { WEEKLY_SCHEDULE, BAZAAR_CONFIG } from './config.js?v=
|
| 8 |
-
import { trafficTracker } from './traffic-tracker.js?v=
|
| 9 |
-
import { normalizeWorldBossState } from './world-boss-schedule.js?v=
|
| 10 |
-
import { LOTTERY_ROUND_SIZE, scoreLotteryAnswer } from './lottery-core.js?v=
|
| 11 |
-
import { grantTally } from './engine.js?v=
|
| 12 |
-
import { todayStr } from './util.js?v=
|
| 13 |
|
| 14 |
const WEEK_TARGET_MAP = Object.fromEntries(WEEKLY_SCHEDULE.map(w => [w.id, w.target]));
|
| 15 |
function clampWeekCap(weekId, val) {
|
|
|
|
| 3 |
// 1. FirebaseBackend:正式使用(Auth + Firestore)
|
| 4 |
// 2. LocalBackend :firebaseConfig 未填時的本機示範模式(localStorage)
|
| 5 |
// =============================================================
|
| 6 |
+
import { firebaseConfig, STUDENT_EMAIL_DOMAIN, PIN_SUFFIX } from './firebase-config.js?v=20261128_v3';
|
| 7 |
+
import { WEEKLY_SCHEDULE, BAZAAR_CONFIG } from './config.js?v=20261128_v3';
|
| 8 |
+
import { trafficTracker } from './traffic-tracker.js?v=20261128_v3';
|
| 9 |
+
import { normalizeWorldBossState } from './world-boss-schedule.js?v=20261128_v3';
|
| 10 |
+
import { LOTTERY_ROUND_SIZE, scoreLotteryAnswer } from './lottery-core.js?v=20261128_v3';
|
| 11 |
+
import { grantTally } from './engine.js?v=20261128_v3';
|
| 12 |
+
import { todayStr } from './util.js?v=20261128_v3';
|
| 13 |
|
| 14 |
const WEEK_TARGET_MAP = Object.fromEntries(WEEKLY_SCHEDULE.map(w => [w.id, w.target]));
|
| 15 |
function clampWeekCap(weekId, val) {
|
js/engine.js
CHANGED
|
@@ -7,10 +7,10 @@ import {
|
|
| 7 |
OPEN_OFFSET_DAYS, DEFAULT_OPEN_HOUR, SYSTEMS, WEEKLY_SCHEDULE, SLOTH_PENALTY_MULT,
|
| 8 |
EVENTS_CONFIG, WORLD_BOSS_ROSTER, WORLD_BOSS_END_DATE, MERCHANT,
|
| 9 |
ERA2_TALLY_COST, ERA2_BASE_PROD, ERA2_SEQUENCE, ERA2_CONDITIONS, ERA2_TOWN_NAMES,
|
| 10 |
-
} from './config.js?v=
|
| 11 |
-
import { todayStr, addDays } from './util.js?v=
|
| 12 |
-
import { normalizeWorldBossState, getScheduledOpenTs, formatCountdown, formatOpenAt } from './world-boss-schedule.js?v=
|
| 13 |
-
import { resolveWeeklySpotlight, resolveCaravanModeState } from './event-schedule.js?v=
|
| 14 |
export { normalizeWorldBossState, formatCountdown, formatOpenAt };
|
| 15 |
export { todayStr, REVIEW_MAX_QUESTIONS, WORLD_BOSS_ROSTER, ERA2_TALLY_COST, ERA2_BASE_PROD, ERA2_SEQUENCE, ERA2_CONDITIONS, ERA2_TOWN_NAMES };
|
| 16 |
|
|
|
|
| 7 |
OPEN_OFFSET_DAYS, DEFAULT_OPEN_HOUR, SYSTEMS, WEEKLY_SCHEDULE, SLOTH_PENALTY_MULT,
|
| 8 |
EVENTS_CONFIG, WORLD_BOSS_ROSTER, WORLD_BOSS_END_DATE, MERCHANT,
|
| 9 |
ERA2_TALLY_COST, ERA2_BASE_PROD, ERA2_SEQUENCE, ERA2_CONDITIONS, ERA2_TOWN_NAMES,
|
| 10 |
+
} from './config.js?v=20261128_v3';
|
| 11 |
+
import { todayStr, addDays } from './util.js?v=20261128_v3';
|
| 12 |
+
import { normalizeWorldBossState, getScheduledOpenTs, formatCountdown, formatOpenAt } from './world-boss-schedule.js?v=20261128_v3';
|
| 13 |
+
import { resolveWeeklySpotlight, resolveCaravanModeState } from './event-schedule.js?v=20261128_v3';
|
| 14 |
export { normalizeWorldBossState, formatCountdown, formatOpenAt };
|
| 15 |
export { todayStr, REVIEW_MAX_QUESTIONS, WORLD_BOSS_ROSTER, ERA2_TALLY_COST, ERA2_BASE_PROD, ERA2_SEQUENCE, ERA2_CONDITIONS, ERA2_TOWN_NAMES };
|
| 16 |
|
js/event-schedule.js
CHANGED
|
@@ -4,9 +4,9 @@
|
|
| 4 |
// - 嚴格以東八區 (Asia/Taipei, UTC+8) 判定日期與週次
|
| 5 |
// - 零循環依賴:僅依賴 config.js、util.js、world-boss-schedule.js
|
| 6 |
// ============================================================================
|
| 7 |
-
import { EVENT_CATALOG, PASS_SCORE, WORLD_BOSS_ROSTER, BAZAAR_CONFIG, MERCHANT } from './config.js?v=
|
| 8 |
-
import { todayStr } from './util.js?v=
|
| 9 |
-
import { toTs } from './world-boss-schedule.js?v=
|
| 10 |
|
| 11 |
const TAIPEI_OFFSET_MS = 8 * 3600 * 1000;
|
| 12 |
const CARAVAN_ANCHOR_MS = Date.parse('2026-11-02T00:00:00+08:00');
|
|
|
|
| 4 |
// - 嚴格以東八區 (Asia/Taipei, UTC+8) 判定日期與週次
|
| 5 |
// - 零循環依賴:僅依賴 config.js、util.js、world-boss-schedule.js
|
| 6 |
// ============================================================================
|
| 7 |
+
import { EVENT_CATALOG, PASS_SCORE, WORLD_BOSS_ROSTER, BAZAAR_CONFIG, MERCHANT } from './config.js?v=20261128_v3';
|
| 8 |
+
import { todayStr } from './util.js?v=20261128_v3';
|
| 9 |
+
import { toTs } from './world-boss-schedule.js?v=20261128_v3';
|
| 10 |
|
| 11 |
const TAIPEI_OFFSET_MS = 8 * 3600 * 1000;
|
| 12 |
const CARAVAN_ANCHOR_MS = Date.parse('2026-11-02T00:00:00+08:00');
|
js/game.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
-
import { getDB, DBError, recordBossHighWaterMark, mergeBossObj, recordLotteryHighWaterMark } from './db.js?v=
|
| 2 |
import {
|
| 3 |
BUILDINGS, TIERS, SCHEDULE, PASS_SCORE, REVIEW_MAX_QUESTIONS, THEME, QUIZ_COIN_MIN, QUIZ_COIN_SECONDS,
|
| 4 |
CLASS_STAGES, LUCKY, STAR_BASE_MAX, QUIZ_COIN_DAILY_FULL, WEEKLY_SCHEDULE, SLOTH_PENALTY_MULT,
|
| 5 |
WORLD_BOSS_UNLOCK_DATE, WORLD_BOSS_END_DATE, MERCHANT, APP_BUILD_VERSION,
|
| 6 |
TITLE_DEFS, getTitleDef, formatTitleBadge,
|
| 7 |
ERA2_TALLY_COST, ERA2_SEQUENCE, ERA2_CONDITIONS, ERA2_TOWN_NAMES
|
| 8 |
-
} from './config.js?v=
|
| 9 |
import {
|
| 10 |
loadEnglishWords, getMerchantStatus, getMerchantDayInfo, generateMerchantQuiz, speakWord, submitMerchantAnswer,
|
| 11 |
generateDailyChallengeQueue, calcPriceMultiplier, calcBargainDiscount, settleDailyChallenge, buyMerchantItem,
|
| 12 |
getRandomBeggingSpeech, getCaravanImgSrc, getLeaderImgSrc
|
| 13 |
-
} from './merchant.js?v=
|
| 14 |
import {
|
| 15 |
newGame, normalizeGame, derive, isUnlocked, levelCost, maxAffordable, bulkCost,
|
| 16 |
starCost, nextStarMult, donationValue, clickValue, advance, classStage, openDate, isRangeOpen,
|
|
@@ -21,27 +21,27 @@ import {
|
|
| 21 |
WORLD_BOSS_ROSTER, getActiveWorldBossConfig, calcWorldBossRewards, calcWorldBossStatus,
|
| 22 |
hasClaimedBossReward, markBossRewardClaimed,
|
| 23 |
getEra2Status, getEra2UpgradeInfo, evolveTownToEra2
|
| 24 |
-
} from './engine.js?v=
|
| 25 |
-
import { $, $$, fmt, fmtTime, todayStr, bind, withLoading, toast, openModal, esc, fmtDateTime, shuffle, renderRichQuizText } from './util.js?v=
|
| 26 |
-
import { loadBankIndex, buildQuiz, loadBank } from './quiz.js?v=
|
| 27 |
-
import { checkAndShowAnnouncements, showAnnouncementModal } from './announcements.js?v=
|
| 28 |
-
import { startSecretRotator, stopSecretRotator, preloadStudentBankImages } from './preload.js?v=
|
| 29 |
import {
|
| 30 |
setupMap, renderMapSpots, renderInMapTownPanel, updateMapBossHpUI,
|
| 31 |
focusTownOnMap, openWorldBossModal, getWorldBossStatus,
|
| 32 |
MAP_POS, STRATEGIC_ROUTES, getTownLayout
|
| 33 |
-
} from './map.js?v=
|
| 34 |
import {
|
| 35 |
setupMerchantUI, openTodayWordsModal, openCaravanLevelsModal,
|
| 36 |
openMerchantQuizModal, openMerchantEventModal
|
| 37 |
-
} from './merchant-ui.js?v=
|
| 38 |
import {
|
| 39 |
setupBazaarUI, openBazaarEventModal
|
| 40 |
-
} from './bazaar-ui.js?v=
|
| 41 |
-
import { resolveCaravanModeState } from './event-schedule.js?v=
|
| 42 |
import {
|
| 43 |
setupTianji, openTianjiModal, rollChestRewards, showChestUnboxModal
|
| 44 |
-
} from './tianji.js?v=
|
| 45 |
export { openTodayWordsModal, openCaravanLevelsModal, openMerchantQuizModal, openMerchantEventModal, openBazaarEventModal, openTianjiModal };
|
| 46 |
window.showAnnouncementModal = showAnnouncementModal;
|
| 47 |
window.getRandomBeggingSpeech = getRandomBeggingSpeech;
|
|
|
|
| 1 |
+
import { getDB, DBError, recordBossHighWaterMark, mergeBossObj, recordLotteryHighWaterMark } from './db.js?v=20261128_v3';
|
| 2 |
import {
|
| 3 |
BUILDINGS, TIERS, SCHEDULE, PASS_SCORE, REVIEW_MAX_QUESTIONS, THEME, QUIZ_COIN_MIN, QUIZ_COIN_SECONDS,
|
| 4 |
CLASS_STAGES, LUCKY, STAR_BASE_MAX, QUIZ_COIN_DAILY_FULL, WEEKLY_SCHEDULE, SLOTH_PENALTY_MULT,
|
| 5 |
WORLD_BOSS_UNLOCK_DATE, WORLD_BOSS_END_DATE, MERCHANT, APP_BUILD_VERSION,
|
| 6 |
TITLE_DEFS, getTitleDef, formatTitleBadge,
|
| 7 |
ERA2_TALLY_COST, ERA2_SEQUENCE, ERA2_CONDITIONS, ERA2_TOWN_NAMES
|
| 8 |
+
} from './config.js?v=20261128_v3';
|
| 9 |
import {
|
| 10 |
loadEnglishWords, getMerchantStatus, getMerchantDayInfo, generateMerchantQuiz, speakWord, submitMerchantAnswer,
|
| 11 |
generateDailyChallengeQueue, calcPriceMultiplier, calcBargainDiscount, settleDailyChallenge, buyMerchantItem,
|
| 12 |
getRandomBeggingSpeech, getCaravanImgSrc, getLeaderImgSrc
|
| 13 |
+
} from './merchant.js?v=20261128_v3';
|
| 14 |
import {
|
| 15 |
newGame, normalizeGame, derive, isUnlocked, levelCost, maxAffordable, bulkCost,
|
| 16 |
starCost, nextStarMult, donationValue, clickValue, advance, classStage, openDate, isRangeOpen,
|
|
|
|
| 21 |
WORLD_BOSS_ROSTER, getActiveWorldBossConfig, calcWorldBossRewards, calcWorldBossStatus,
|
| 22 |
hasClaimedBossReward, markBossRewardClaimed,
|
| 23 |
getEra2Status, getEra2UpgradeInfo, evolveTownToEra2
|
| 24 |
+
} from './engine.js?v=20261128_v3';
|
| 25 |
+
import { $, $$, fmt, fmtTime, todayStr, bind, withLoading, toast, openModal, esc, fmtDateTime, shuffle, renderRichQuizText } from './util.js?v=20261128_v3';
|
| 26 |
+
import { loadBankIndex, buildQuiz, loadBank } from './quiz.js?v=20261128_v3';
|
| 27 |
+
import { checkAndShowAnnouncements, showAnnouncementModal } from './announcements.js?v=20261128_v3';
|
| 28 |
+
import { startSecretRotator, stopSecretRotator, preloadStudentBankImages } from './preload.js?v=20261128_v3';
|
| 29 |
import {
|
| 30 |
setupMap, renderMapSpots, renderInMapTownPanel, updateMapBossHpUI,
|
| 31 |
focusTownOnMap, openWorldBossModal, getWorldBossStatus,
|
| 32 |
MAP_POS, STRATEGIC_ROUTES, getTownLayout
|
| 33 |
+
} from './map.js?v=20261128_v3';
|
| 34 |
import {
|
| 35 |
setupMerchantUI, openTodayWordsModal, openCaravanLevelsModal,
|
| 36 |
openMerchantQuizModal, openMerchantEventModal
|
| 37 |
+
} from './merchant-ui.js?v=20261128_v3';
|
| 38 |
import {
|
| 39 |
setupBazaarUI, openBazaarEventModal
|
| 40 |
+
} from './bazaar-ui.js?v=20261128_v3';
|
| 41 |
+
import { resolveCaravanModeState } from './event-schedule.js?v=20261128_v3';
|
| 42 |
import {
|
| 43 |
setupTianji, openTianjiModal, rollChestRewards, showChestUnboxModal
|
| 44 |
+
} from './tianji.js?v=20261128_v3';
|
| 45 |
export { openTodayWordsModal, openCaravanLevelsModal, openMerchantQuizModal, openMerchantEventModal, openBazaarEventModal, openTianjiModal };
|
| 46 |
window.showAnnouncementModal = showAnnouncementModal;
|
| 47 |
window.getRandomBeggingSpeech = getRandomBeggingSpeech;
|
js/lottery-core.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
| 6 |
// - 小班名額縮編、不重複加權抽獎與「向上覆蓋升級遞補」演算法
|
| 7 |
// - 智慧里程碑試算與可擴充獎勵信箱結算產生器
|
| 8 |
// ============================================================================
|
| 9 |
-
import { PASS_SCORE } from './config.js?v=
|
| 10 |
-
import { getQuestionKey, calcDynamicWorldBossBalance } from './engine.js?v=
|
| 11 |
|
| 12 |
export const MAX_DAILY_LOTTERY_ROUNDS = 2;
|
| 13 |
export const LOTTERY_ROUND_SIZE = 10;
|
|
|
|
| 6 |
// - 小班名額縮編、不重複加權抽獎與「向上覆蓋升級遞補」演算法
|
| 7 |
// - 智慧里程碑試算與可擴充獎勵信箱結算產生器
|
| 8 |
// ============================================================================
|
| 9 |
+
import { PASS_SCORE } from './config.js?v=20261128_v3';
|
| 10 |
+
import { getQuestionKey, calcDynamicWorldBossBalance } from './engine.js?v=20261128_v3';
|
| 11 |
|
| 12 |
export const MAX_DAILY_LOTTERY_ROUNDS = 2;
|
| 13 |
export const LOTTERY_ROUND_SIZE = 10;
|
js/lottery-draw.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
| 5 |
// - Canvas 2D 物理攪拌轉動 → 真空吸球 → 滾出滑槽揭曉真得主(100% 對齊 lottery-core.js)
|
| 6 |
// - 支援從小獎抽到頭獎+向上覆蓋升級遞補+班導加抽+奇蹟骰+過週日補結案
|
| 7 |
// ============================================================================
|
| 8 |
-
import { formatTitleBadge } from './config.js?v=
|
| 9 |
-
import { getDB } from './db.js?v=
|
| 10 |
import {
|
| 11 |
LOTTERY_DEFAULT_MILESTONES,
|
| 12 |
LOTTERY_PILOT_MILESTONES,
|
|
@@ -21,8 +21,8 @@ import {
|
|
| 21 |
drawWeightedWinner,
|
| 22 |
applyTierDrawWithUpgrade,
|
| 23 |
buildLotterySettlement,
|
| 24 |
-
} from './lottery-core.js?v=
|
| 25 |
-
import { $, esc } from './util.js?v=
|
| 26 |
|
| 27 |
const SILVER_PALETTE = ['#fffbeb', '#fde68a', '#bae6fd', '#bbf7d0', '#fbcfe8', '#ddd6fe'];
|
| 28 |
const TIER_DRAW_RANK = { t3: 1, t2: 2, t1: 3, head: 4 };
|
|
|
|
| 5 |
// - Canvas 2D 物理攪拌轉動 → 真空吸球 → 滾出滑槽揭曉真得主(100% 對齊 lottery-core.js)
|
| 6 |
// - 支援從小獎抽到頭獎+向上覆蓋升級遞補+班導加抽+奇蹟骰+過週日補結案
|
| 7 |
// ============================================================================
|
| 8 |
+
import { formatTitleBadge } from './config.js?v=20261128_v3';
|
| 9 |
+
import { getDB } from './db.js?v=20261128_v3';
|
| 10 |
import {
|
| 11 |
LOTTERY_DEFAULT_MILESTONES,
|
| 12 |
LOTTERY_PILOT_MILESTONES,
|
|
|
|
| 21 |
drawWeightedWinner,
|
| 22 |
applyTierDrawWithUpgrade,
|
| 23 |
buildLotterySettlement,
|
| 24 |
+
} from './lottery-core.js?v=20261128_v3';
|
| 25 |
+
import { $, esc } from './util.js?v=20261128_v3';
|
| 26 |
|
| 27 |
const SILVER_PALETTE = ['#fffbeb', '#fde68a', '#bae6fd', '#bbf7d0', '#fbcfe8', '#ddd6fe'];
|
| 28 |
const TIER_DRAW_RANK = { t3: 1, t2: 2, t1: 3, head: 4 };
|
js/lottery.js
CHANGED
|
@@ -4,11 +4,11 @@
|
|
| 4 |
// - 零 onSnapshot 監聽:開啟舞台時單次拉取班級與同袍錯題,不浪費額度
|
| 5 |
// - P0 就緒防呆 + activeRound F5 鎖定防重整洗題 + Web Audio 音效合成
|
| 6 |
// ============================================================================
|
| 7 |
-
import { SCHEDULE, APP_BUILD_VERSION, formatTitleBadge } from './config.js?v=
|
| 8 |
-
import { recordMistake, recordCorrect, todayStr, isRangeOpen } from './engine.js?v=
|
| 9 |
-
import { loadBank } from './quiz.js?v=
|
| 10 |
-
import { loadEnglishWords, buildWordQuestion, getMerchantDayInfo, getCamelPreviewRange } from './merchant.js?v=
|
| 11 |
-
import { resolveWeeklySpotlight, formatCycleRangeLabel } from './event-schedule.js?v=
|
| 12 |
import {
|
| 13 |
MAX_DAILY_LOTTERY_ROUNDS,
|
| 14 |
LOTTERY_ROUND_SIZE,
|
|
@@ -26,9 +26,9 @@ import {
|
|
| 26 |
calcLotteryMilestonesProgress,
|
| 27 |
calcAdaptiveBallRadius,
|
| 28 |
stepNonOverlappingBalls,
|
| 29 |
-
} from './lottery-core.js?v=
|
| 30 |
-
import { recordLotteryHighWaterMark } from './db.js?v=
|
| 31 |
-
import { $, openModal, esc, renderRichQuizText, toast } from './util.js?v=
|
| 32 |
|
| 33 |
let _audioCtx = null;
|
| 34 |
function playToneSequence(steps = []) {
|
|
|
|
| 4 |
// - 零 onSnapshot 監聽:開啟舞台時單次拉取班級與同袍錯題,不浪費額度
|
| 5 |
// - P0 就緒防呆 + activeRound F5 鎖定防重整洗題 + Web Audio 音效合成
|
| 6 |
// ============================================================================
|
| 7 |
+
import { SCHEDULE, APP_BUILD_VERSION, formatTitleBadge } from './config.js?v=20261128_v3';
|
| 8 |
+
import { recordMistake, recordCorrect, todayStr, isRangeOpen } from './engine.js?v=20261128_v3';
|
| 9 |
+
import { loadBank } from './quiz.js?v=20261128_v3';
|
| 10 |
+
import { loadEnglishWords, buildWordQuestion, getMerchantDayInfo, getCamelPreviewRange } from './merchant.js?v=20261128_v3';
|
| 11 |
+
import { resolveWeeklySpotlight, formatCycleRangeLabel } from './event-schedule.js?v=20261128_v3';
|
| 12 |
import {
|
| 13 |
MAX_DAILY_LOTTERY_ROUNDS,
|
| 14 |
LOTTERY_ROUND_SIZE,
|
|
|
|
| 26 |
calcLotteryMilestonesProgress,
|
| 27 |
calcAdaptiveBallRadius,
|
| 28 |
stepNonOverlappingBalls,
|
| 29 |
+
} from './lottery-core.js?v=20261128_v3';
|
| 30 |
+
import { recordLotteryHighWaterMark } from './db.js?v=20261128_v3';
|
| 31 |
+
import { $, openModal, esc, renderRichQuizText, toast } from './util.js?v=20261128_v3';
|
| 32 |
|
| 33 |
let _audioCtx = null;
|
| 34 |
function playToneSequence(steps = []) {
|
js/map.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
// js/map.js
|
| 3 |
// 超大戰略沙盤大地圖系統(沙盤名都佈局、動態路網、即時互動面板與世界 Boss 標記)
|
| 4 |
// ============================================================================
|
| 5 |
-
import { BUILDINGS, APP_BUILD_VERSION } from './config.js?v=
|
| 6 |
import {
|
| 7 |
isUnlocked, buildingProd, getConquerRequirements, canConquer, conquerTown,
|
| 8 |
maxAffordable, bulkCost, starCost, nextStarMult, nextMilestone, getTianjiStatus,
|
|
@@ -10,15 +10,15 @@ import {
|
|
| 10 |
formatCountdown, formatOpenAt,
|
| 11 |
checkConstructionStatus, isEventOpen, derive,
|
| 12 |
getEra2Status, getEra2UpgradeInfo, evolveTownToEra2, ERA2_TOWN_NAMES, ERA2_SEQUENCE, ERA2_TALLY_COST
|
| 13 |
-
} from './engine.js?v=
|
| 14 |
-
import { resolveWeeklySpotlight, resolveCaravanModeState } from './event-schedule.js?v=
|
| 15 |
import {
|
| 16 |
MAX_DAILY_LOTTERY_ROUNDS, LOTTERY_DEFAULT_MILESTONES,
|
| 17 |
calcLotteryBallStats, calcLotteryMilestonesProgress
|
| 18 |
-
} from './lottery-core.js?v=
|
| 19 |
-
import { getMerchantStatus, getCaravanImgSrc } from './merchant.js?v=
|
| 20 |
-
import { computeBazaarSummary } from './bazaar.js?v=
|
| 21 |
-
import { $, $$, bind, esc, fmt, toast, openModal, todayStr } from './util.js?v=
|
| 22 |
|
| 23 |
// 目前在地圖上選中的城池(預設關閉,點擊城池時才彈出)
|
| 24 |
let selectedTownId = null;
|
|
|
|
| 2 |
// js/map.js
|
| 3 |
// 超大戰略沙盤大地圖系統(沙盤名都佈局、動態路網、即時互動面板與世界 Boss 標記)
|
| 4 |
// ============================================================================
|
| 5 |
+
import { BUILDINGS, APP_BUILD_VERSION } from './config.js?v=20261128_v3';
|
| 6 |
import {
|
| 7 |
isUnlocked, buildingProd, getConquerRequirements, canConquer, conquerTown,
|
| 8 |
maxAffordable, bulkCost, starCost, nextStarMult, nextMilestone, getTianjiStatus,
|
|
|
|
| 10 |
formatCountdown, formatOpenAt,
|
| 11 |
checkConstructionStatus, isEventOpen, derive,
|
| 12 |
getEra2Status, getEra2UpgradeInfo, evolveTownToEra2, ERA2_TOWN_NAMES, ERA2_SEQUENCE, ERA2_TALLY_COST
|
| 13 |
+
} from './engine.js?v=20261128_v3';
|
| 14 |
+
import { resolveWeeklySpotlight, resolveCaravanModeState } from './event-schedule.js?v=20261128_v3';
|
| 15 |
import {
|
| 16 |
MAX_DAILY_LOTTERY_ROUNDS, LOTTERY_DEFAULT_MILESTONES,
|
| 17 |
calcLotteryBallStats, calcLotteryMilestonesProgress
|
| 18 |
+
} from './lottery-core.js?v=20261128_v3';
|
| 19 |
+
import { getMerchantStatus, getCaravanImgSrc } from './merchant.js?v=20261128_v3';
|
| 20 |
+
import { computeBazaarSummary } from './bazaar.js?v=20261128_v3';
|
| 21 |
+
import { $, $$, bind, esc, fmt, toast, openModal, todayStr } from './util.js?v=20261128_v3';
|
| 22 |
|
| 23 |
// 目前在地圖上選中的城池(預設關閉,點擊城池時才彈出)
|
| 24 |
let selectedTownId = null;
|
js/merchant-ui.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
// js/merchant-ui.js
|
| 3 |
// 西域商隊大活動彈窗、夷語單字研讀、商隊等級總覽、行商交流與西域集市系統
|
| 4 |
// ============================================================================
|
| 5 |
-
import { MERCHANT, APP_BUILD_VERSION } from './config.js?v=
|
| 6 |
-
import { totalProd, derive, isEventOpen, getEventStatusInfo, recordMistake, recordCorrect } from './engine.js?v=
|
| 7 |
import {
|
| 8 |
loadEnglishWords, getMerchantStatus, getMerchantDayInfo, generateMerchantQuiz, speakWord, submitMerchantAnswer,
|
| 9 |
generateDailyChallengeQueue, calcPriceMultiplier, calcBargainDiscount, settleDailyChallenge, buyMerchantItem,
|
| 10 |
getRandomBeggingSpeech, getCaravanImgSrc, getLeaderImgSrc, maskExampleSentence
|
| 11 |
-
} from './merchant.js?v=
|
| 12 |
-
import { $, $$, bind, esc, fmt, toast, openModal } from './util.js?v=
|
| 13 |
|
| 14 |
let merchantCtx = null;
|
| 15 |
|
|
|
|
| 2 |
// js/merchant-ui.js
|
| 3 |
// 西域商隊大活動彈窗、夷語單字研讀、商隊等級總覽、行商交流與西域集市系統
|
| 4 |
// ============================================================================
|
| 5 |
+
import { MERCHANT, APP_BUILD_VERSION } from './config.js?v=20261128_v3';
|
| 6 |
+
import { totalProd, derive, isEventOpen, getEventStatusInfo, recordMistake, recordCorrect } from './engine.js?v=20261128_v3';
|
| 7 |
import {
|
| 8 |
loadEnglishWords, getMerchantStatus, getMerchantDayInfo, generateMerchantQuiz, speakWord, submitMerchantAnswer,
|
| 9 |
generateDailyChallengeQueue, calcPriceMultiplier, calcBargainDiscount, settleDailyChallenge, buyMerchantItem,
|
| 10 |
getRandomBeggingSpeech, getCaravanImgSrc, getLeaderImgSrc, maskExampleSentence
|
| 11 |
+
} from './merchant.js?v=20261128_v3';
|
| 12 |
+
import { $, $$, bind, esc, fmt, toast, openModal } from './util.js?v=20261128_v3';
|
| 13 |
|
| 14 |
let merchantCtx = null;
|
| 15 |
|
js/merchant.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
// =============================================================
|
| 2 |
// 西域駱駝商隊系統(英文單字出題、發音、獎勵與進度管理)
|
| 3 |
// =============================================================
|
| 4 |
-
import { APP_BUILD_VERSION, MERCHANT } from './config.js?v=
|
| 5 |
-
import { todayStr, shuffle } from './util.js?v=
|
| 6 |
-
import { grantGrain, grantTally, grantScroll, recordMistake, recordCorrect, getCaravanRotation } from './engine.js?v=
|
| 7 |
|
| 8 |
let cachedWords = null;
|
| 9 |
|
|
|
|
| 1 |
// =============================================================
|
| 2 |
// 西域駱駝商隊系統(英文單字出題、發音、獎勵與進度管理)
|
| 3 |
// =============================================================
|
| 4 |
+
import { APP_BUILD_VERSION, MERCHANT } from './config.js?v=20261128_v3';
|
| 5 |
+
import { todayStr, shuffle } from './util.js?v=20261128_v3';
|
| 6 |
+
import { grantGrain, grantTally, grantScroll, recordMistake, recordCorrect, getCaravanRotation } from './engine.js?v=20261128_v3';
|
| 7 |
|
| 8 |
let cachedWords = null;
|
| 9 |
|
js/preload.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
// =============================================================
|
| 2 |
// 題庫卷宗圖片預載與軍中秘史圖卷畫冊系統
|
| 3 |
// =============================================================
|
| 4 |
-
import { SCHEDULE } from './config.js?v=
|
| 5 |
-
import { isRangeOpen } from './engine.js?v=
|
| 6 |
-
import { todayStr } from './util.js?v=
|
| 7 |
-
import { loadBank } from './quiz.js?v=
|
| 8 |
|
| 9 |
export const ILLUSTRATED_SECRETS = [
|
| 10 |
// b1: 瓷鎮(大內官窯・天朝神都)
|
|
|
|
| 1 |
// =============================================================
|
| 2 |
// 題庫卷宗圖片預載與軍中秘史圖卷畫冊系統
|
| 3 |
// =============================================================
|
| 4 |
+
import { SCHEDULE } from './config.js?v=20261128_v3';
|
| 5 |
+
import { isRangeOpen } from './engine.js?v=20261128_v3';
|
| 6 |
+
import { todayStr } from './util.js?v=20261128_v3';
|
| 7 |
+
import { loadBank } from './quiz.js?v=20261128_v3';
|
| 8 |
|
| 9 |
export const ILLUSTRATED_SECRETS = [
|
| 10 |
// b1: 瓷鎮(大內官窯・天朝神都)
|
js/quiz.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
// 題庫載入與出題
|
| 2 |
-
import { APP_BUILD_VERSION, TIERS, BANKS_FALLBACK } from './config.js?v=
|
| 3 |
-
import { shuffle } from './util.js?v=
|
| 4 |
|
| 5 |
const cache = new Map();
|
| 6 |
|
|
|
|
| 1 |
// 題庫載入與出題
|
| 2 |
+
import { APP_BUILD_VERSION, TIERS, BANKS_FALLBACK } from './config.js?v=20261128_v3';
|
| 3 |
+
import { shuffle } from './util.js?v=20261128_v3';
|
| 4 |
|
| 5 |
const cache = new Map();
|
| 6 |
|
js/tianji.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
| 2 |
// js/tianji.js
|
| 3 |
// 天機閣急速快答演武與三階軍備箱開箱系統
|
| 4 |
// ============================================================================
|
| 5 |
-
import { SCHEDULE, APP_BUILD_VERSION } from './config.js?v=
|
| 6 |
import {
|
| 7 |
isRangeOpen, totalProd, getTianjiStatus, recordMistake, recordCorrect,
|
| 8 |
grantGrain, grantTally, grantScroll
|
| 9 |
-
} from './engine.js?v=
|
| 10 |
-
import { loadBank } from './quiz.js?v=
|
| 11 |
import {
|
| 12 |
$, $$, fmt, todayStr, bind, toast, openModal, esc, shuffle, renderRichQuizText
|
| 13 |
-
} from './util.js?v=
|
| 14 |
|
| 15 |
let tianjiCtx = null;
|
| 16 |
|
|
|
|
| 2 |
// js/tianji.js
|
| 3 |
// 天機閣急速快答演武與三階軍備箱開箱系統
|
| 4 |
// ============================================================================
|
| 5 |
+
import { SCHEDULE, APP_BUILD_VERSION } from './config.js?v=20261128_v3';
|
| 6 |
import {
|
| 7 |
isRangeOpen, totalProd, getTianjiStatus, recordMistake, recordCorrect,
|
| 8 |
grantGrain, grantTally, grantScroll
|
| 9 |
+
} from './engine.js?v=20261128_v3';
|
| 10 |
+
import { loadBank } from './quiz.js?v=20261128_v3';
|
| 11 |
import {
|
| 12 |
$, $$, fmt, todayStr, bind, toast, openModal, esc, shuffle, renderRichQuizText
|
| 13 |
+
} from './util.js?v=20261128_v3';
|
| 14 |
|
| 15 |
let tianjiCtx = null;
|
| 16 |
|
js/world-boss-schedule.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
// 世界 Boss 當期自動排程(純函數,無副作用)
|
| 4 |
// - 供 db.js(讀寫時正規化)、engine.js(狀態計算)共用,確保全站看到同一隻 Boss
|
| 5 |
// ============================================================================
|
| 6 |
-
import { WORLD_BOSS_ROSTER, WORLD_BOSS_SCHEDULE } from './config.js?v=
|
| 7 |
|
| 8 |
/** 將 ISO 字串 / Date / 毫秒數轉為毫秒時間戳;無法解析回傳 NaN */
|
| 9 |
export function toTs(v) {
|
|
|
|
| 3 |
// 世界 Boss 當期自動排程(純函數,無副作用)
|
| 4 |
// - 供 db.js(讀寫時正規化)、engine.js(狀態計算)共用,確保全站看到同一隻 Boss
|
| 5 |
// ============================================================================
|
| 6 |
+
import { WORLD_BOSS_ROSTER, WORLD_BOSS_SCHEDULE } from './config.js?v=20261128_v3';
|
| 7 |
|
| 8 |
/** 將 ISO 字串 / Date / 毫秒數轉為毫秒時間戳;無法解析回傳 NaN */
|
| 9 |
export function toTs(v) {
|
lottery-draw.html
CHANGED
|
@@ -7,8 +7,8 @@
|
|
| 7 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 8 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 9 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Noto+Sans+TC:wght@400;600;700;900&display=swap" rel="stylesheet">
|
| 10 |
-
<link rel="stylesheet" href="css/base.css?v=
|
| 11 |
-
<link rel="stylesheet" href="css/lottery.css?v=
|
| 12 |
</head>
|
| 13 |
<body class="lottery-draw-body">
|
| 14 |
<header class="draw-topbar">
|
|
@@ -23,7 +23,7 @@
|
|
| 23 |
<button id="btnRefreshLotteryPool" class="draw-btn" type="button">🔄 更新最新球數與名單</button>
|
| 24 |
<button id="btnLockLotteryBox" class="draw-btn" type="button">🔒 封箱鎖定準備開獎</button>
|
| 25 |
<button id="btnUnlockLotteryBox" class="draw-btn" type="button">🔓 解除封箱重啟投球</button>
|
| 26 |
-
<a href="teacher.html?v=
|
| 27 |
</div>
|
| 28 |
</header>
|
| 29 |
|
|
@@ -151,6 +151,6 @@
|
|
| 151 |
</div>
|
| 152 |
</div>
|
| 153 |
|
| 154 |
-
<script type="module" src="js/lottery-draw.js?v=
|
| 155 |
</body>
|
| 156 |
</html>
|
|
|
|
| 7 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 8 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 9 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Noto+Sans+TC:wght@400;600;700;900&display=swap" rel="stylesheet">
|
| 10 |
+
<link rel="stylesheet" href="css/base.css?v=20261128_v3">
|
| 11 |
+
<link rel="stylesheet" href="css/lottery.css?v=20261128_v3">
|
| 12 |
</head>
|
| 13 |
<body class="lottery-draw-body">
|
| 14 |
<header class="draw-topbar">
|
|
|
|
| 23 |
<button id="btnRefreshLotteryPool" class="draw-btn" type="button">🔄 更新最新球數與名單</button>
|
| 24 |
<button id="btnLockLotteryBox" class="draw-btn" type="button">🔒 封箱鎖定準備開獎</button>
|
| 25 |
<button id="btnUnlockLotteryBox" class="draw-btn" type="button">🔓 解除封箱重啟投球</button>
|
| 26 |
+
<a href="teacher.html?v=20261128_v3" class="draw-btn" style="text-decoration:none; display:inline-flex; align-items:center;">⬅️ 回教師後台</a>
|
| 27 |
</div>
|
| 28 |
</header>
|
| 29 |
|
|
|
|
| 151 |
</div>
|
| 152 |
</div>
|
| 153 |
|
| 154 |
+
<script type="module" src="js/lottery-draw.js?v=20261128_v3"></script>
|
| 155 |
</body>
|
| 156 |
</html>
|
teacher.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 6 |
<title>教師管理後台 - 放置測驗遊戲</title>
|
| 7 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Noto+Sans+TC:wght@400;700&display=swap" rel="stylesheet">
|
| 8 |
-
<link rel="stylesheet" href="css/base.css?v=
|
| 9 |
<style>
|
| 10 |
:root {
|
| 11 |
--admin-bg: #f9e9da; /* 柔和暖杏底色 */
|
|
@@ -511,7 +511,7 @@
|
|
| 511 |
<option value="english">🐪 固定出題:西域英文單字錯題</option>
|
| 512 |
</select>
|
| 513 |
<button class="btn btn-primary" id="btnSaveBossPhase">💾 套用期別與出題模式</button>
|
| 514 |
-
<a id="btnAdminOpenBossPage" href="boss.html?v=
|
| 515 |
<button class="btn btn-primary" id="btnAdminSettleBoss">📬 結算發信(全班獎勵+戰報)</button>
|
| 516 |
<button class="btn btn-danger" id="btnAdminResetBoss" style="background:#fee2e2; border-color:#fca5a5; color:#dc2626;">🔄 重設班級 Boss 滿血</button>
|
| 517 |
</div>
|
|
@@ -597,7 +597,7 @@
|
|
| 597 |
</select>
|
| 598 |
<button class="btn btn-primary" id="btnAdminStartStandardLottery" type="button">🚀 一鍵啟用正式週錯題樂透(手動封箱)</button>
|
| 599 |
<button class="btn" id="btnAdminApplyPilotPreset" type="button" title="商隊週單日測試用">⚡ 快閃測試 (11/19)</button>
|
| 600 |
-
<a id="btnAdminOpenLotteryPage" href="lottery-draw.html?v=
|
| 601 |
<button class="btn" id="btnAdminLockLotteryBox" type="button">🔒 封箱停收新球</button>
|
| 602 |
<button class="btn" id="btnAdminUnlockLotteryBox" type="button">🔓 解除封箱重啟</button>
|
| 603 |
<button class="btn" id="btnAdminExtendLotteryFri" type="button" style="border-color:#38bdf8; color:#0284c7; font-weight:700;">🛠️ 延長/改期至週五</button>
|
|
@@ -1000,7 +1000,7 @@
|
|
| 1000 |
<!-- 主地圖畫布區 -->
|
| 1001 |
<div class="map-editor-stage" id="mapEditorStage">
|
| 1002 |
<div class="map-editor-canvas" id="mapEditorCanvas">
|
| 1003 |
-
<img src="assets/map_chibi.jpg?v=
|
| 1004 |
<div id="mapEditorBgError" class="map-editor-bg-error hidden">
|
| 1005 |
<div style="font-size:28px;">🗺️</div>
|
| 1006 |
<div style="font-weight:800; font-size:14px;">沙盤底圖載入失敗(可能是網路或快取逾時)</div>
|
|
@@ -1093,6 +1093,6 @@
|
|
| 1093 |
<!-- Float layer for toasts -->
|
| 1094 |
<div id="floatLayer"></div>
|
| 1095 |
|
| 1096 |
-
<script type="module" src="js/admin.js?v=
|
| 1097 |
</body>
|
| 1098 |
</html>
|
|
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 6 |
<title>教師管理後台 - 放置測驗遊戲</title>
|
| 7 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Noto+Sans+TC:wght@400;700&display=swap" rel="stylesheet">
|
| 8 |
+
<link rel="stylesheet" href="css/base.css?v=20261128_v3">
|
| 9 |
<style>
|
| 10 |
:root {
|
| 11 |
--admin-bg: #f9e9da; /* 柔和暖杏底色 */
|
|
|
|
| 511 |
<option value="english">🐪 固定出題:西域英文單字錯題</option>
|
| 512 |
</select>
|
| 513 |
<button class="btn btn-primary" id="btnSaveBossPhase">💾 套用期別與出題模式</button>
|
| 514 |
+
<a id="btnAdminOpenBossPage" href="boss.html?v=20261128_v3" target="_blank" class="btn" style="text-decoration:none;">⚔️ 前往世界 Boss 決戰殿堂 ➔</a>
|
| 515 |
<button class="btn btn-primary" id="btnAdminSettleBoss">📬 結算發信(全班獎勵+戰報)</button>
|
| 516 |
<button class="btn btn-danger" id="btnAdminResetBoss" style="background:#fee2e2; border-color:#fca5a5; color:#dc2626;">🔄 重設班級 Boss 滿血</button>
|
| 517 |
</div>
|
|
|
|
| 597 |
</select>
|
| 598 |
<button class="btn btn-primary" id="btnAdminStartStandardLottery" type="button">🚀 一鍵啟用正式週錯題樂透(手動封箱)</button>
|
| 599 |
<button class="btn" id="btnAdminApplyPilotPreset" type="button" title="商隊週單日測試用">⚡ 快閃測試 (11/19)</button>
|
| 600 |
+
<a id="btnAdminOpenLotteryPage" href="lottery-draw.html?v=20261128_v3" target="_blank" class="btn" style="text-decoration:none; background:#fef3c7; border-color:#f59e0b; color:#92400e; font-weight:800;">🎰 開啟週五公開開獎台 ➔</a>
|
| 601 |
<button class="btn" id="btnAdminLockLotteryBox" type="button">🔒 封箱停收新球</button>
|
| 602 |
<button class="btn" id="btnAdminUnlockLotteryBox" type="button">🔓 解除封箱重啟</button>
|
| 603 |
<button class="btn" id="btnAdminExtendLotteryFri" type="button" style="border-color:#38bdf8; color:#0284c7; font-weight:700;">🛠️ 延長/改期至週五</button>
|
|
|
|
| 1000 |
<!-- 主地圖畫布區 -->
|
| 1001 |
<div class="map-editor-stage" id="mapEditorStage">
|
| 1002 |
<div class="map-editor-canvas" id="mapEditorCanvas">
|
| 1003 |
+
<img src="assets/map_chibi.jpg?v=20261128_v3" id="mapEditorBgImg" class="map-editor-bg" alt="九州大地圖沙盤">
|
| 1004 |
<div id="mapEditorBgError" class="map-editor-bg-error hidden">
|
| 1005 |
<div style="font-size:28px;">🗺️</div>
|
| 1006 |
<div style="font-weight:800; font-size:14px;">沙盤底圖載入失敗(可能是網路或快取逾時)</div>
|
|
|
|
| 1093 |
<!-- Float layer for toasts -->
|
| 1094 |
<div id="floatLayer"></div>
|
| 1095 |
|
| 1096 |
+
<script type="module" src="js/admin.js?v=20261128_v3"></script>
|
| 1097 |
</body>
|
| 1098 |
</html>
|