feat: complete campaign flow and optimize battle assets

This commit is contained in:
2026-07-19 21:31:07 +09:00
parent f83296db7b
commit 31e1396ac8
211 changed files with 4219 additions and 281 deletions

View File

@@ -410,7 +410,7 @@ async function verifyCombatAssetStallFallback(browserInstance, baseUrl, kind) {
const url = route.request().url();
const fileName = decodeURIComponent(url.split('/').pop()?.split('?')[0] ?? '');
const shouldStall = kind === 'action'
? /^unit-.*-actions-[^.]+\.png$/i.test(fileName)
? /^unit-.*-actions-[^.]+\.(?:png|webp)$/i.test(fileName)
: /^(?:liu-bei|guan-yu|zhang-fei)-[^.]+\.webp$/i.test(fileName);
const isSelectedStall = shouldStall && (!stalledUrl || stalledUrl === url);
if (isSelectedStall) {
@@ -578,7 +578,7 @@ function extensionOf(name) {
function actionSheetFiles(entries) {
return entries
.map((entry) => decodeURIComponent(entry.name.split('/').pop() ?? entry.name))
.filter((file) => /^unit-.*-actions(?:-[^.]+)?\.png(?:[?#]|$)/i.test(file));
.filter((file) => /^unit-.*-actions(?:-[^.]+)?\.(?:png|webp)(?:[?#]|$)/i.test(file));
}
function bytesToKb(bytes) {