feat: 實裝大內官窯方案1特效(周天靈光升騰金輝)、移除涅槃徽章、版本號升級v=20261112_v7
Browse filesFiles changed (19)
- boss-test.html+7-7
- boss.html+3-3
- css/game.css+61-103
- index.html+3-3
- js/admin.js+5-5
- js/announcements.js+1-1
- js/boss-battle.js+5-5
- js/config.js+1-1
- js/db.js+5-5
- js/engine.js+3-3
- js/game.js+11-11
- js/map.js+11-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
- teacher.html+2-2
4 unmodified lines56789101112131415161718391 unmodified lines4104114124134144154164174184194204214224234244 unmodified lines<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>上古・饕餮 討伐戰|世界王測試頁</title><meta name="description" content="世界王上古・饕餮討伐戰獨立測試頁:Boss 介紹、討伐獎勵與全螢幕答題戰鬥。"><link rel="stylesheet" href="css/base.css?v=20261112_v6"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><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"><!-- KaTeX 數學式與科學記號渲染引擎 --><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"></script><link rel="stylesheet" href="css/boss.css?v=20261112_v6"></head><body>391 unmodified lines</div><script type="module">import { getDB, DBError, defaultBossState } from './js/db.js?v=20261112_v6';import { loadBank, loadBankIndex } from './js/quiz.js?v=20261112_v6';import {recordMistake, recordCorrect, derive, totalProd, grantGrain, grantTally, grantScroll,WORLD_BOSS_ROSTER, getActiveWorldBossConfig, calcWorldBossRewards, calcWorldBossStatus,getBossDailyQuestionTheme, getBossWeaponBuffs} from './js/engine.js?v=20261112_v6';import { loadEnglishWords, buildWordQuestion } from './js/merchant.js?v=20261112_v6';import { todayStr, fmt, shuffle, renderRichQuizText } from './js/util.js?v=20261112_v6';// ==========================================// 1. 全域與連線狀態4 unmodified lines56789101112131415161718391 unmodified lines4104114124134144154164174184194204214224234244 unmodified lines<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>上古・饕餮 討伐戰|世界王測試頁</title><meta name="description" content="世界王上古・饕餮討伐戰獨立測試頁:Boss 介紹、討伐獎勵與全螢幕答題戰鬥。"><link rel="stylesheet" href="css/base.css?v=20261112_v7"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><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"><!-- KaTeX 數學式與科學記號渲染引擎 --><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"></script><link rel="stylesheet" href="css/boss.css?v=20261112_v7"></head><body>391 unmodified lines</div><script type="module">import { getDB, DBError, defaultBossState } from './js/db.js?v=20261112_v7';import { loadBank, loadBankIndex } from './js/quiz.js?v=20261112_v7';import {recordMistake, recordCorrect, derive, totalProd, grantGrain, grantTally, grantScroll,WORLD_BOSS_ROSTER, getActiveWorldBossConfig, calcWorldBossRewards, calcWorldBossStatus,getBossDailyQuestionTheme, getBossWeaponBuffs} from './js/engine.js?v=20261112_v7';import { loadEnglishWords, buildWordQuestion } from './js/merchant.js?v=20261112_v7';import { todayStr, fmt, shuffle, renderRichQuizText } from './js/util.js?v=20261112_v7';// ==========================================// 1. 全域與連線狀態
4 unmodified lines56789101112239 unmodified lines2522532542552562574 unmodified lines<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>世界 Boss 決戰殿堂|爭霸天下</title><meta name="description" content="全班共抗太古凶神!破除錯題迷障、連擊合力封印,奪取神獸寶庫與至高榮譽稱號!"><link rel="stylesheet" href="css/base.css?v=20261112_v6"><link rel="stylesheet" href="css/boss.css?v=20261112_v6"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><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">239 unmodified lines<!-- ===================== 版本更新公告彈窗(模版展示) ===================== --><script type="module" src="js/boss-battle.js?v=20261112_v6"></script></body></html>4 unmodified lines56789101112239 unmodified lines2522532542552562574 unmodified lines<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>世界 Boss 決戰殿堂|爭霸天下</title><meta name="description" content="全班共抗太古凶神!破除錯題迷障、連擊合力封印,奪取神獸寶庫與至高榮譽稱號!"><link rel="stylesheet" href="css/base.css?v=20261112_v7"><link rel="stylesheet" href="css/boss.css?v=20261112_v7"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><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">239 unmodified lines<!-- ===================== 版本更新公告彈窗(模版展示) ===================== --><script type="module" src="js/boss-battle.js?v=20261112_v7"></script></body></html>
4801 unmodified lines4802480348044805480648074808480948101 unmodified line4812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493046 unmodified lines497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450054801 unmodified lines✨ 第二紀元名都涅槃專屬特效(常駐天朝神光、祥雲流光底座、黑金龍紋琉璃標牌)========================================================================== *//* 1. 沙盤手辦節點常駐天朝神光 */.map-spot.era2-spot {z-index: 25 !important;}.map-spot.era2-spot .spot-building-wrap {1 unmodified lineoverflow: visible !important;}/* 貫天神光柱(自城後通天徹地而起) */.era2-pillar-light {position: absolute;bottom: 10%;left: 50%;width: 90px;height: 220px;transform: translateX(-50%);background: linear-gradient(to top, rgba(245, 158, 11, 0.45) 0%, rgba(254, 240, 138, 0.3) 40%, rgba(234, 88, 12, 0.15) 75%, transparent 100%);border-radius: 45px 45px 0 0;filter: blur(10px);pointer-events: none;z-index: 1;animation: era2PillarBreathe 3.5s ease-in-out infinite alternate;}/* 旋轉八荒神輪光陣(位於手辦身後,旋轉流光) */.era2-halo-disc {position: absolute;top: 50%;left: 50%;width: 140%;height: 140%;transform: translate(-50%, -50%);border-radius: 50%;background: radial-gradient(circle, rgba(245, 158, 11, 0.28) 20%, rgba(234, 88, 12, 0.15) 55%, transparent 75%);border: 1.5px dashed rgba(254, 240, 138, 0.75);box-shadow: 0 0 25px rgba(245, 158, 11, 0.65), inset 0 0 15px rgba(234, 88, 12, 0.4);pointer-events: none;z-index: 2;animation: era2HaloRotate 15s linear infinite;}/* 底盤祥雲流光神環 */.era2-pedestal-glow {position: absolute;bottom: -4%;left: 50%;width: 110%;height: 42%;transform: translateX(-50%);background: radial-gradient(ellipse at center, rgba(254, 240, 138, 0.85) 0%, rgba(245, 158, 11, 0.5) 45%, rgba(234, 88, 12, 0.2) 70%, transparent 85%);border-radius: 50%;filter: blur(5px);pointer-events: none;z-index: 2;animation: era2PedestalPulse 2.8s ease-in-out infinite alternate;}/* 手辦圖片本體:多重天朝金色神光投影與立體浮動 */.map-spot.era2-spot .spot-building-img,.spot-building-img.era2-img {position: relative;z-index: 4 !important;filter: drop-shadow(0 0 16px rgba(245, 158, 11, 1))drop-shadow(0 0 35px rgba(234, 88, 12, 0.8))drop-shadow(0 14px 22px rgba(0, 0, 0, 0.65)) !important;animation: era2Floating 4s ease-in-out infinite !important;}.map-spot.era2-spot:hover .spot-building-img,.map-spot.era2-spot.selected .spot-building-img,.spot-building-img.era2-img:hover {filter: drop-shadow(0 0 25px rgba(254, 240, 138, 1))drop-shadow(0 0 50px rgba(245, 158, 11, 1))drop-shadow(0 18px 28px rgba(0, 0, 0, 0.75)) !important;transform: scale(1.08) translateY(-4px);}/* 2. 黑金龍紋琉璃名牌 */.map-spot.era2-spot .spot-label {background: linear-gradient(135deg, rgba(24, 18, 12, 0.96), rgba(42, 28, 16, 0.96)) !important;border: 1.5px solid rgba(245, 158, 11, 0.85) !important;box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(245, 158, 11, 0.45) !important;border-radius: 10px !important;backdrop-filter: blur(8px);position: relative;overflow: visible;}/* 標牌頂部琉璃金邊 Shimmer 呼吸線 */.map-spot.era2-spot .spot-label::before {content: '';position: absolute;top: 0; left: 0; right: 0; height: 2px;background: linear-gradient(90deg, transparent, #fde047, #f59e0b, transparent);animation: era2Shimmer 2.5s ease-in-out infinite;}.map-spot.era2-spot .spot-label-top span {color: #fef08a !important;font-weight: 900 !important;text-shadow: 0 0 8px rgba(245, 158, 11, 0.8);display: inline-flex;align-items: center;gap: 4px;}.map-spot.era2-spot .spot-label-top span::after {content: '🧬涅槃';font-size: 9.5px;font-weight: 800;color: #fff;background: linear-gradient(135deg, #f59e0b, #d97706);padding: 1px 4px;border-radius: 4px;box-shadow: 0 1px 4px rgba(245, 158, 11, 0.4);}.map-spot.era2-spot .spot-label-prod {color: #fde047 !important;font-weight: 800 !important;text-shadow: 0 0 6px rgba(245, 158, 11, 0.6);}/* 3. 名都列表卡片第二紀元樣式 (.era2-card) */46 unmodified lines50% { transform: translateY(-5px); }}@keyframes era2PedestalPulse {0% { opacity: 0.55; transform: translateX(-50%) scale(0.95); }100% { opacity: 0.95; transform: translateX(-50%) scale(1.08); filter: blur(6px); }}@keyframes era2HaloRotate {0% { transform: translateX(-50%) rotate(0deg); }100% { transform: translateX(-50%) rotate(360deg); }}@keyframes era2Shimmer {0%, 100% { opacity: 0.4; }50% { opacity: 1; }}@keyframes era2PillarBurst {0% { opacity: 0; transform: translateX(-50%) scaleY(0.2); }25% { opacity: 1; transform: translateX(-50%) scaleY(1.1); filter: blur(2px); }60% { opacity: 0.85; transform: translateX(-50%) scaleY(1); }100% { opacity: 0; transform: translateX(-50%) scaleY(1.2); filter: blur(8px); }}@keyframes era2PillarBreathe {0% { opacity: 0.45; transform: translateX(-50%) scaleX(0.85); }100% { opacity: 0.9; transform: translateX(-50%) scaleX(1.15); }}4801 unmodified lines4802480348044805480648074808480948101 unmodified line481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490846 unmodified lines4955495649574958495949604961496249634801 unmodified lines✨ 第二紀元名都涅槃專屬特效(常駐天朝神光、祥雲流光底座、黑金龍紋琉璃標牌)========================================================================== *//* 1. 沙盤手辦節點常駐天朝神光(方案 1:周天靈光・升騰金輝) */.map-spot.era2-spot {z-index: 20 !important;}.map-spot.era2-spot .spot-building-wrap {1 unmodified lineoverflow: visible !important;}/* 仙氣金色靈氣火星粒子容器與動畫 */.era2-sparks-wrap {position: absolute;inset: 0;pointer-events: none;z-index: 6;}.era2-spark {position: absolute;width: 4px;height: 4px;background: #fef08a;border-radius: 50%;box-shadow: 0 0 6px #f59e0b, 0 0 10px #fff;animation: era2SparkRise 3s infinite ease-out;opacity: 0;}.era2-spark:nth-child(1) { left: 45%; bottom: 35%; animation-delay: 0.2s; }.era2-spark:nth-child(2) { left: 55%; bottom: 30%; animation-delay: 1.1s; }.era2-spark:nth-child(3) { left: 35%; bottom: 45%; animation-delay: 1.8s; }.era2-spark:nth-child(4) { left: 65%; bottom: 40%; animation-delay: 2.3s; }.era2-spark:nth-child(5) { left: 50%; bottom: 55%; animation-delay: 0.7s; }@keyframes era2SparkRise {0% { transform: translateY(0) scale(0.6); opacity: 0; }20% { opacity: 0.95; transform: translateY(-18px) scale(1.2); }80% { opacity: 0.6; transform: translateY(-60px) scale(0.8); }100% { opacity: 0; transform: translateY(-95px) scale(0.2); }}/* 手辦微縮模型本體:天朝金青雙層琉璃高光與呼吸浮動 */.map-spot.era2-spot .spot-building-img,.spot-building-img.era2-img {position: relative;z-index: 5 !important;filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8))drop-shadow(0 0 22px rgba(254, 240, 138, 0.5))drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55)) !important;animation: era2FloatBreath 3.5s ease-in-out infinite !important;}.map-spot.era2-spot:hover .spot-building-img,.map-spot.era2-spot.selected .spot-building-img,.spot-building-img.era2-img:hover {filter: drop-shadow(0 0 16px rgba(254, 240, 138, 0.95))drop-shadow(0 0 32px rgba(245, 158, 11, 0.8))drop-shadow(0 16px 24px rgba(0, 0, 0, 0.65)) !important;transform: translateY(-4px) scale(1.06);}@keyframes era2FloatBreath {0%, 100% { transform: translateY(0); }50% { transform: translateY(-4px); }}/* 2. 標牌升級:羊��白琉璃底色 + 細緻金邊(移除涅槃字樣,純淨高雅) */.map-spot.era2-spot .spot-label,.spot-label.era2-label {background: rgba(255, 255, 255, 0.96) !important;border: 1.5px solid #f59e0b !important;box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), 0 0 10px rgba(245, 158, 11, 0.3) !important;border-radius: 12px !important;color: #78350f !important;position: relative;}html[data-theme="dark"] .map-spot.era2-spot .spot-label,html[data-theme="dark"] .spot-label.era2-label {background: rgba(28, 24, 20, 0.96) !important;border-color: #f59e0b !important;color: #fef08a !important;box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 12px rgba(245, 158, 11, 0.35) !important;}.map-spot.era2-spot .spot-label-top span {color: #b45309 !important;font-weight: 900 !important;}html[data-theme="dark"] .map-spot.era2-spot .spot-label-top span {color: #fef08a !important;}.map-spot.era2-spot .spot-label-prod {background: rgba(245, 158, 11, 0.15) !important;color: #b45309 !important;font-weight: 900 !important;}html[data-theme="dark"] .map-spot.era2-spot .spot-label-prod {background: rgba(245, 158, 11, 0.25) !important;color: #fde047 !important;}/* 3. 名都列表卡片第二紀元樣式 (.era2-card) */46 unmodified lines50% { transform: translateY(-5px); }}@keyframes era2PillarBurst {0% { opacity: 0; transform: translateX(-50%) scaleY(0.2); }25% { opacity: 1; transform: translateX(-50%) scaleY(1.1); filter: blur(2px); }60% { opacity: 0.85; transform: translateX(-50%) scaleY(1); }100% { opacity: 0; transform: translateX(-50%) scaleY(1.2); filter: blur(8px); }}
7 unmodified lines89101112131415352 unmodified lines3683693703713723737 unmodified lines<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><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"><link rel="stylesheet" href="css/base.css?v=20261112_v6"><link rel="stylesheet" href="css/game.css?v=20261112_v6"><!-- KaTeX 數學式與科學記號渲染引擎 --><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"></script>352 unmodified lines<iframe id="bossBattleIframe" style="width:100%; height:100%; border:none; background:#000;" allow="autoplay" src="about:blank"></iframe></div><script type="module" src="js/game.js?v=20261112_v6"></script></body></html>7 unmodified lines89101112131415352 unmodified lines3683693703713723737 unmodified lines<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><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"><link rel="stylesheet" href="css/base.css?v=20261112_v7"><link rel="stylesheet" href="css/game.css?v=20261112_v7"><!-- KaTeX 數學式與科學記號渲染引擎 --><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"></script>352 unmodified lines<iframe id="bossBattleIframe" style="width:100%; height:100%; border:none; background:#000;" allow="autoplay" src="about:blank"></iframe></div><script type="module" src="js/game.js?v=20261112_v7"></script></body></html>
12345678910111213import { getDB, normCode } from './db.js?v=20261112_v6';import { $, $$, bind, withLoading, toast, openModal, fmtDateTime, fmt, esc, todayStr, addDays } from './util.js?v=20261112_v6';import { loadBankIndex } from './quiz.js?v=20261112_v6';import { SCHEDULE, TIERS, OPEN_OFFSET_DAYS, EVENTS_CONFIG, WORLD_BOSS_SCHEDULE } from './config.js?v=20261112_v6';import {newGame, normalizeGame, derive, totalProd, isEventOpen, getEventStatusInfo,checkYieldHealth, healYield, calcWorldBossStatus, calcWorldBossRewards,hasClaimedBossReward, formatCountdown, formatOpenAt,getActiveWorldBossConfig, getBossDailyQuestionTheme, calcDynamicWorldBossBalance} from './engine.js?v=20261112_v6';let db, user, currentClassCode = null;let classes = [], students = [], banks = [];12345678910111213import { getDB, normCode } from './db.js?v=20261112_v7';import { $, $$, bind, withLoading, toast, openModal, fmtDateTime, fmt, esc, todayStr, addDays } from './util.js?v=20261112_v7';import { loadBankIndex } from './quiz.js?v=20261112_v7';import { SCHEDULE, TIERS, OPEN_OFFSET_DAYS, EVENTS_CONFIG, WORLD_BOSS_SCHEDULE } from './config.js?v=20261112_v7';import {newGame, normalizeGame, derive, totalProd, isEventOpen, getEventStatusInfo,checkYieldHealth, healYield, calcWorldBossStatus, calcWorldBossRewards,hasClaimedBossReward, formatCountdown, formatOpenAt,getActiveWorldBossConfig, getBossDailyQuestionTheme, calcDynamicWorldBossBalance} from './engine.js?v=20261112_v7';let db, user, currentClassCode = null;let classes = [], students = [], banks = [];
3 unmodified lines456789103 unmodified lines* 支援預約生效時間、剪影展示、未讀自動彈出、手動隨時回看。*/import { openModal } from './util.js?v=20261112_v6';export const ANNOUNCEMENT_REGISTRY = [{3 unmodified lines456789103 unmodified lines* 支援預約生效時間、剪影展示、未讀自動彈出、手動隨時回看。*/import { openModal } from './util.js?v=20261112_v7';export const ANNOUNCEMENT_REGISTRY = [{
1 unmodified line2345678910111213141516171 unmodified line// js/boss-battle.js// 世界 Boss 決戰殿堂:戰鬥流程、音效合成、題庫連動、血量同步與即時傷害結算// ============================================================================import { getDB, DBError, defaultBossState, recordBossHighWaterMark, mergeBossObj } from './db.js?v=20261112_v6';import { loadBank, loadBankIndex } from './quiz.js?v=20261112_v6';import {recordMistake, recordCorrect, derive, totalProd, grantGrain, grantTally, grantScroll,WORLD_BOSS_ROSTER, getActiveWorldBossConfig, calcWorldBossRewards, calcWorldBossStatus,hasClaimedBossReward, markBossRewardClaimed, formatCountdown, formatOpenAt,getBossDailyQuestionTheme, buildAdaptiveChargeThresholds, calcStudentChargeQuestions, getBossWeaponBuffs} from './engine.js?v=20261112_v6';import { loadEnglishWords, buildWordQuestion } from './merchant.js?v=20261112_v6';import { todayStr, fmt, shuffle, renderRichQuizText } from './util.js?v=20261112_v6';// ==========================================// 1. 全域與連線狀態1 unmodified line2345678910111213141516171 unmodified line// js/boss-battle.js// 世界 Boss 決戰殿堂:戰鬥流程、音效合成、題庫連動、血量同步與即時傷害結算// ============================================================================import { getDB, DBError, defaultBossState, recordBossHighWaterMark, mergeBossObj } from './db.js?v=20261112_v7';import { loadBank, loadBankIndex } from './quiz.js?v=20261112_v7';import {recordMistake, recordCorrect, derive, totalProd, grantGrain, grantTally, grantScroll,WORLD_BOSS_ROSTER, getActiveWorldBossConfig, calcWorldBossRewards, calcWorldBossStatus,hasClaimedBossReward, markBossRewardClaimed, formatCountdown, formatOpenAt,getBossDailyQuestionTheme, buildAdaptiveChargeThresholds, calcStudentChargeQuestions, getBossWeaponBuffs} from './engine.js?v=20261112_v7';import { loadEnglishWords, buildWordQuestion } from './merchant.js?v=20261112_v7';import { todayStr, fmt, shuffle, renderRichQuizText } from './util.js?v=20261112_v7';// ==========================================// 1. 全域與連線狀態
2 unmodified lines34567892 unmodified lines// 所有數值都集中在這裡,調整平衡只要改這個檔案。// =============================================================export const APP_BUILD_VERSION = '20261112_v6';// ---------- 主題(攻城掠地世界觀) ----------export const THEME = {2 unmodified lines34567892 unmodified lines// 所有數值都集中在這裡,調整平衡只要改這個檔案。// =============================================================export const APP_BUILD_VERSION = '20261112_v7';// ---------- 主題(攻城掠地世界觀) ----------export const THEME = {
2 unmodified lines3456789101112132 unmodified lines// 1. FirebaseBackend:正式使用(Auth + Firestore)// 2. LocalBackend :firebaseConfig 未填時的本機示範模式(localStorage)// =============================================================import { firebaseConfig, STUDENT_EMAIL_DOMAIN, PIN_SUFFIX } from './firebase-config.js?v=20261112_v6';import { WEEKLY_SCHEDULE } from './config.js?v=20261112_v6';import { trafficTracker } from './traffic-tracker.js?v=20261112_v6';import { normalizeWorldBossState } from './world-boss-schedule.js?v=20261112_v6';import { todayStr } from './util.js?v=20261112_v6';const WEEK_TARGET_MAP = Object.fromEntries(WEEKLY_SCHEDULE.map(w => [w.id, w.target]));function clampWeekCap(weekId, val) {2 unmodified lines3456789101112132 unmodified lines// 1. FirebaseBackend:正式使用(Auth + Firestore)// 2. LocalBackend :firebaseConfig 未填時的本機示範模式(localStorage)// =============================================================import { firebaseConfig, STUDENT_EMAIL_DOMAIN, PIN_SUFFIX } from './firebase-config.js?v=20261112_v7';import { WEEKLY_SCHEDULE } from './config.js?v=20261112_v7';import { trafficTracker } from './traffic-tracker.js?v=20261112_v7';import { normalizeWorldBossState } from './world-boss-schedule.js?v=20261112_v7';import { todayStr } from './util.js?v=20261112_v7';const WEEK_TARGET_MAP = Object.fromEntries(WEEKLY_SCHEDULE.map(w => [w.id, w.target]));function clampWeekCap(weekId, val) {
6 unmodified lines7891011121314156 unmodified linesOPEN_OFFSET_DAYS, DEFAULT_OPEN_HOUR, SYSTEMS, WEEKLY_SCHEDULE, SLOTH_PENALTY_MULT,EVENTS_CONFIG, WORLD_BOSS_ROSTER, WORLD_BOSS_END_DATE, MERCHANT,ERA2_TALLY_COST, ERA2_BASE_PROD, ERA2_SEQUENCE, ERA2_CONDITIONS, ERA2_TOWN_NAMES,} from './config.js?v=20261112_v6';import { todayStr, addDays } from './util.js?v=20261112_v6';import { normalizeWorldBossState, getScheduledOpenTs, formatCountdown, formatOpenAt } from './world-boss-schedule.js?v=20261112_v6';export { normalizeWorldBossState, formatCountdown, formatOpenAt };export { todayStr, REVIEW_MAX_QUESTIONS, WORLD_BOSS_ROSTER, ERA2_TALLY_COST, ERA2_BASE_PROD, ERA2_SEQUENCE, ERA2_CONDITIONS, ERA2_TOWN_NAMES };6 unmodified lines7891011121314156 unmodified linesOPEN_OFFSET_DAYS, DEFAULT_OPEN_HOUR, SYSTEMS, WEEKLY_SCHEDULE, SLOTH_PENALTY_MULT,EVENTS_CONFIG, WORLD_BOSS_ROSTER, WORLD_BOSS_END_DATE, MERCHANT,ERA2_TALLY_COST, ERA2_BASE_PROD, ERA2_SEQUENCE, ERA2_CONDITIONS, ERA2_TOWN_NAMES,} from './config.js?v=20261112_v7';import { todayStr, addDays } from './util.js?v=20261112_v7';import { normalizeWorldBossState, getScheduledOpenTs, formatCountdown, formatOpenAt } from './world-boss-schedule.js?v=20261112_v7';export { normalizeWorldBossState, formatCountdown, formatOpenAt };export { todayStr, REVIEW_MAX_QUESTIONS, WORLD_BOSS_ROSTER, ERA2_TALLY_COST, ERA2_BASE_PROD, ERA2_SEQUENCE, ERA2_CONDITIONS, ERA2_TOWN_NAMES };
123456789101112131415164 unmodified lines2122232425262728293031323334353637383940414243import { getDB, DBError, recordBossHighWaterMark, mergeBossObj } from './db.js?v=20261112_v6';import {BUILDINGS, TIERS, SCHEDULE, PASS_SCORE, REVIEW_MAX_QUESTIONS, THEME, QUIZ_COIN_MIN, QUIZ_COIN_SECONDS,CLASS_STAGES, LUCKY, STAR_BASE_MAX, QUIZ_COIN_DAILY_FULL, WEEKLY_SCHEDULE, SLOTH_PENALTY_MULT,WORLD_BOSS_UNLOCK_DATE, WORLD_BOSS_END_DATE, MERCHANT, APP_BUILD_VERSION,TITLE_DEFS, getTitleDef, formatTitleBadge,ERA2_TALLY_COST, ERA2_SEQUENCE, ERA2_CONDITIONS, ERA2_TOWN_NAMES} from './config.js?v=20261112_v6';import {loadEnglishWords, getMerchantStatus, getMerchantDayInfo, generateMerchantQuiz, speakWord, submitMerchantAnswer,generateDailyChallengeQueue, calcPriceMultiplier, calcBargainDiscount, settleDailyChallenge, buyMerchantItem,getRandomBeggingSpeech, getCaravanImgSrc, getLeaderImgSrc} from './merchant.js?v=20261112_v6';import {newGame, normalizeGame, derive, isUnlocked, levelCost, maxAffordable, bulkCost,starCost, nextStarMult, donationValue, clickValue, advance, classStage, openDate, isRangeOpen,4 unmodified linesWORLD_BOSS_ROSTER, getActiveWorldBossConfig, calcWorldBossRewards, calcWorldBossStatus,hasClaimedBossReward, markBossRewardClaimed,getEra2Status, getEra2UpgradeInfo, evolveTownToEra2} from './engine.js?v=20261112_v6';import { $, $$, fmt, fmtTime, todayStr, bind, withLoading, toast, openModal, esc, fmtDateTime, shuffle, renderRichQuizText } from './util.js?v=20261112_v6';import { loadBankIndex, buildQuiz, loadBank } from './quiz.js?v=20261112_v6';import { checkAndShowAnnouncements, showAnnouncementModal } from './announcements.js?v=20261112_v6';import { startSecretRotator, stopSecretRotator, preloadStudentBankImages } from './preload.js?v=20261112_v6';import {setupMap, renderMapSpots, renderInMapTownPanel, updateMapBossHpUI,focusTownOnMap, openWorldBossModal, getWorldBossStatus,MAP_POS, STRATEGIC_ROUTES, getTownLayout} from './map.js?v=20261112_v6';import {setupMerchantUI, openTodayWordsModal, openCaravanLevelsModal,openMerchantQuizModal, openMerchantEventModal} from './merchant-ui.js?v=20261112_v6';import {setupTianji, openTianjiModal, rollChestRewards, showChestUnboxModal} from './tianji.js?v=20261112_v6';export { openTodayWordsModal, openCaravanLevelsModal, openMerchantQuizModal, openMerchantEventModal, openTianjiModal };window.showAnnouncementModal = showAnnouncementModal;window.getRandomBeggingSpeech = getRandomBeggingSpeech;123456789101112131415164 unmodified lines2122232425262728293031323334353637383940414243import { getDB, DBError, recordBossHighWaterMark, mergeBossObj } from './db.js?v=20261112_v7';import {BUILDINGS, TIERS, SCHEDULE, PASS_SCORE, REVIEW_MAX_QUESTIONS, THEME, QUIZ_COIN_MIN, QUIZ_COIN_SECONDS,CLASS_STAGES, LUCKY, STAR_BASE_MAX, QUIZ_COIN_DAILY_FULL, WEEKLY_SCHEDULE, SLOTH_PENALTY_MULT,WORLD_BOSS_UNLOCK_DATE, WORLD_BOSS_END_DATE, MERCHANT, APP_BUILD_VERSION,TITLE_DEFS, getTitleDef, formatTitleBadge,ERA2_TALLY_COST, ERA2_SEQUENCE, ERA2_CONDITIONS, ERA2_TOWN_NAMES} from './config.js?v=20261112_v7';import {loadEnglishWords, getMerchantStatus, getMerchantDayInfo, generateMerchantQuiz, speakWord, submitMerchantAnswer,generateDailyChallengeQueue, calcPriceMultiplier, calcBargainDiscount, settleDailyChallenge, buyMerchantItem,getRandomBeggingSpeech, getCaravanImgSrc, getLeaderImgSrc} from './merchant.js?v=20261112_v7';import {newGame, normalizeGame, derive, isUnlocked, levelCost, maxAffordable, bulkCost,starCost, nextStarMult, donationValue, clickValue, advance, classStage, openDate, isRangeOpen,4 unmodified linesWORLD_BOSS_ROSTER, getActiveWorldBossConfig, calcWorldBossRewards, calcWorldBossStatus,hasClaimedBossReward, markBossRewardClaimed,getEra2Status, getEra2UpgradeInfo, evolveTownToEra2} from './engine.js?v=20261112_v7';import { $, $$, fmt, fmtTime, todayStr, bind, withLoading, toast, openModal, esc, fmtDateTime, shuffle, renderRichQuizText } from './util.js?v=20261112_v7';import { loadBankIndex, buildQuiz, loadBank } from './quiz.js?v=20261112_v7';import { checkAndShowAnnouncements, showAnnouncementModal } from './announcements.js?v=20261112_v7';import { startSecretRotator, stopSecretRotator, preloadStudentBankImages } from './preload.js?v=20261112_v7';import {setupMap, renderMapSpots, renderInMapTownPanel, updateMapBossHpUI,focusTownOnMap, openWorldBossModal, getWorldBossStatus,MAP_POS, STRATEGIC_ROUTES, getTownLayout} from './map.js?v=20261112_v7';import {setupMerchantUI, openTodayWordsModal, openCaravanLevelsModal,openMerchantQuizModal, openMerchantEventModal} from './merchant-ui.js?v=20261112_v7';import {setupTianji, openTianjiModal, rollChestRewards, showChestUnboxModal} from './tianji.js?v=20261112_v7';export { openTodayWordsModal, openCaravanLevelsModal, openMerchantQuizModal, openMerchantEventModal, openTianjiModal };window.showAnnouncementModal = showAnnouncementModal;window.getRandomBeggingSpeech = getRandomBeggingSpeech;
1 unmodified line23456781 unmodified line101112131415161718188 unmodified lines2072082092102112122132142151 unmodified line// js/map.js// 超大戰略沙盤大地圖系統(沙盤名都佈局、動態路網、即時互動面板與世界 Boss 標記)// ============================================================================import { BUILDINGS, APP_BUILD_VERSION } from './config.js?v=20261112_v6';import {isUnlocked, buildingProd, getConquerRequirements, canConquer, conquerTown,maxAffordable, bulkCost, starCost, nextStarMult, nextMilestone, getTianjiStatus,1 unmodified lineformatCountdown, formatOpenAt,checkConstructionStatus, isEventOpen, derive,getEra2Status, getEra2UpgradeInfo, evolveTownToEra2, ERA2_TOWN_NAMES, ERA2_SEQUENCE, ERA2_TALLY_COST} from './engine.js?v=20261112_v6';import { getMerchantStatus, getCaravanImgSrc } from './merchant.js?v=20261112_v6';import { $, $$, bind, esc, fmt, toast, openModal } from './util.js?v=20261112_v6';// 目前在地圖上選中的城池(預設關閉,點擊城池時才彈出)let selectedTownId = null;188 unmodified linesconst visualBody = `<div class="spot-building-wrap ${isEra2 ? 'era2-wrap' : ''}" style="width:clamp(48px, calc(${size} * 100cqw / 1400), ${size}px); height:clamp(48px, calc(${size} * 100cqw / 1400), ${size}px);">${isEra2 ? `<div class="era2-pillar-light"></div><div class="era2-halo-disc"></div><div class="era2-pedestal-glow"></div>` : ''}<img class="spot-building-img ${isEra2 ? 'era2-img' : ''}" src="${imgSrc}" alt="${displayName}">${costBadge}1 unmodified line23456781 unmodified line101112131415161718188 unmodified lines2072082092102112122132142152162172182191 unmodified line// js/map.js// 超大戰略沙盤大地圖系統(沙盤名都佈局、動態路網、即時互動面板與世界 Boss 標記)// ============================================================================import { BUILDINGS, APP_BUILD_VERSION } from './config.js?v=20261112_v7';import {isUnlocked, buildingProd, getConquerRequirements, canConquer, conquerTown,maxAffordable, bulkCost, starCost, nextStarMult, nextMilestone, getTianjiStatus,1 unmodified lineformatCountdown, formatOpenAt,checkConstructionStatus, isEventOpen, derive,getEra2Status, getEra2UpgradeInfo, evolveTownToEra2, ERA2_TOWN_NAMES, ERA2_SEQUENCE, ERA2_TALLY_COST} from './engine.js?v=20261112_v7';import { getMerchantStatus, getCaravanImgSrc } from './merchant.js?v=20261112_v7';import { $, $$, bind, esc, fmt, toast, openModal } from './util.js?v=20261112_v7';// 目前在地圖上選中的城池(預設關閉,點擊城池時才彈出)let selectedTownId = null;188 unmodified linesconst visualBody = `<div class="spot-building-wrap ${isEra2 ? 'era2-wrap' : ''}" style="width:clamp(48px, calc(${size} * 100cqw / 1400), ${size}px); height:clamp(48px, calc(${size} * 100cqw / 1400), ${size}px);">${isEra2 ? `<div class="era2-sparks-wrap"><span class="era2-spark"></span><span class="era2-spark"></span><span class="era2-spark"></span><span class="era2-spark"></span><span class="era2-spark"></span></div>` : ''}<img class="spot-building-img ${isEra2 ? 'era2-img' : ''}" src="${imgSrc}" alt="${displayName}">${costBadge}
1 unmodified line234567891011121314151 unmodified line// js/merchant-ui.js// 西域商隊大活動彈窗、夷語單字研讀、商隊等級總覽、行商交流與西域集市系統// ============================================================================import { MERCHANT, APP_BUILD_VERSION } from './config.js?v=20261112_v6';import { totalProd, derive, isEventOpen, getEventStatusInfo, recordMistake, recordCorrect } from './engine.js?v=20261112_v6';import {loadEnglishWords, getMerchantStatus, getMerchantDayInfo, generateMerchantQuiz, speakWord, submitMerchantAnswer,generateDailyChallengeQueue, calcPriceMultiplier, calcBargainDiscount, settleDailyChallenge, buyMerchantItem,getRandomBeggingSpeech, getCaravanImgSrc, getLeaderImgSrc, maskExampleSentence} from './merchant.js?v=20261112_v6';import { $, $$, bind, esc, fmt, toast, openModal } from './util.js?v=20261112_v6';let merchantCtx = null;1 unmodified line234567891011121314151 unmodified line// js/merchant-ui.js// 西域商隊大活動彈窗、夷語單字研讀、商隊等級總覽、行商交流與西域集市系統// ============================================================================import { MERCHANT, APP_BUILD_VERSION } from './config.js?v=20261112_v7';import { totalProd, derive, isEventOpen, getEventStatusInfo, recordMistake, recordCorrect } from './engine.js?v=20261112_v7';import {loadEnglishWords, getMerchantStatus, getMerchantDayInfo, generateMerchantQuiz, speakWord, submitMerchantAnswer,generateDailyChallengeQueue, calcPriceMultiplier, calcBargainDiscount, settleDailyChallenge, buyMerchantItem,getRandomBeggingSpeech, getCaravanImgSrc, getLeaderImgSrc, maskExampleSentence} from './merchant.js?v=20261112_v7';import { $, $$, bind, esc, fmt, toast, openModal } from './util.js?v=20261112_v7';let merchantCtx = null;
123456789// =============================================================// 西域駱駝商隊系統(英文單字出題、發音、獎勵與進度管理)// =============================================================import { MERCHANT } from './config.js?v=20261112_v6';import { todayStr, shuffle } from './util.js?v=20261112_v6';import { grantGrain, grantTally, grantScroll, recordMistake, recordCorrect, getCaravanRotation } from './engine.js?v=20261112_v6';let cachedWords = null;123456789// =============================================================// 西域駱駝商隊系統(英文單字出題、發音、獎勵與進度管理)// =============================================================import { MERCHANT } from './config.js?v=20261112_v7';import { todayStr, shuffle } from './util.js?v=20261112_v7';import { grantGrain, grantTally, grantScroll, recordMistake, recordCorrect, getCaravanRotation } from './engine.js?v=20261112_v7';let cachedWords = null;
12345678910// =============================================================// 題庫卷宗圖片預載與軍中秘史圖卷畫冊系統// =============================================================import { SCHEDULE } from './config.js?v=20261112_v6';import { isRangeOpen } from './engine.js?v=20261112_v6';import { todayStr } from './util.js?v=20261112_v6';import { loadBank } from './quiz.js?v=20261112_v6';export const ILLUSTRATED_SECRETS = [// b1: 瓷鎮(大內官窯・天朝神都)12345678910// =============================================================// 題庫卷宗圖片預載與軍中秘史圖卷畫冊系統// =============================================================import { SCHEDULE } from './config.js?v=20261112_v7';import { isRangeOpen } from './engine.js?v=20261112_v7';import { todayStr } from './util.js?v=20261112_v7';import { loadBank } from './quiz.js?v=20261112_v7';export const ILLUSTRATED_SECRETS = [// b1: 瓷鎮(大內官窯・天朝神都)
123456// 題庫載入與出題import { TIERS, BANKS_FALLBACK } from './config.js?v=20261112_v6';import { shuffle } from './util.js?v=20261112_v6';const cache = new Map();123456// 題庫載入與出題import { TIERS, BANKS_FALLBACK } from './config.js?v=20261112_v7';import { shuffle } from './util.js?v=20261112_v7';const cache = new Map();
1 unmodified line234567891011121314151 unmodified line// js/tianji.js// 天機閣急速快答演武與三階軍備箱開箱系統// ============================================================================import { SCHEDULE, APP_BUILD_VERSION } from './config.js?v=20261112_v6';import {isRangeOpen, totalProd, getTianjiStatus, recordMistake, recordCorrect} from './engine.js?v=20261112_v6';import { loadBank } from './quiz.js?v=20261112_v6';import {$, $$, fmt, todayStr, bind, toast, openModal, esc, shuffle, renderRichQuizText} from './util.js?v=20261112_v6';let tianjiCtx = null;1 unmodified line234567891011121314151 unmodified line// js/tianji.js// 天機閣急速快答演武與三階軍備箱開箱系統// ============================================================================import { SCHEDULE, APP_BUILD_VERSION } from './config.js?v=20261112_v7';import {isRangeOpen, totalProd, getTianjiStatus, recordMistake, recordCorrect} from './engine.js?v=20261112_v7';import { loadBank } from './quiz.js?v=20261112_v7';import {$, $$, fmt, todayStr, bind, toast, openModal, esc, shuffle, renderRichQuizText} from './util.js?v=20261112_v7';let tianjiCtx = null;
2 unmodified lines34567892 unmodified lines// 世界 Boss 當期自動排程(純函數,無副作用)// - 供 db.js(讀寫時正規化)、engine.js(狀態計算)共用,確保全站看到同一隻 Boss// ============================================================================import { WORLD_BOSS_ROSTER, WORLD_BOSS_SCHEDULE } from './config.js?v=20261112_v6';/** 將 ISO 字串 / Date / 毫秒數轉為毫秒時間戳;無法解析回傳 NaN */export function toTs(v) {2 unmodified lines34567892 unmodified lines// 世界 Boss 當期自動排程(純函數,無副作用)// - 供 db.js(讀寫時正規化)、engine.js(狀態計算)共用,確保全站看到同一隻 Boss// ============================================================================import { WORLD_BOSS_ROSTER, WORLD_BOSS_SCHEDULE } from './config.js?v=20261112_v7';/** 將 ISO 字串 / Date / 毫秒數轉為毫秒時間戳;無法解析回傳 NaN */export function toTs(v) {
4 unmodified lines5678910111010 unmodified lines1022102310241025102610274 unmodified lines<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>教師管理後台 - 放置測驗遊戲</title><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Noto+Sans+TC:wght@400;700&display=swap" rel="stylesheet"><link rel="stylesheet" href="css/base.css?v=20261112_v6"><style>:root {--admin-bg: #f9e9da; /* 柔和暖杏底色 */1010 unmodified lines<!-- Float layer for toasts --><div id="floatLayer"></div><script type="module" src="js/admin.js?v=20261112_v6"></script></body></html>4 unmodified lines5678910111010 unmodified lines1022102310241025102610274 unmodified lines<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>教師管理後台 - 放置測驗遊戲</title><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Noto+Sans+TC:wght@400;700&display=swap" rel="stylesheet"><link rel="stylesheet" href="css/base.css?v=20261112_v7"><style>:root {--admin-bg: #f9e9da; /* 柔和暖杏底色 */1010 unmodified lines<!-- Float layer for toasts --><div id="floatLayer"></div><script type="module" src="js/admin.js?v=20261112_v7"></script></body></html>
boss-test.html+7-7
boss.html+3-3
css/game.css+61-103
index.html+3-3
js/admin.js+5-5
js/announcements.js+1-1
js/boss-battle.js+5-5
js/config.js+1-1
js/db.js+5-5
js/engine.js+3-3
js/game.js+11-11
js/map.js+11-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
teacher.html+2-2