feat: add second-victory relief exploration

This commit is contained in:
2026-07-27 10:53:20 +09:00
parent e9fcd27611
commit f07a45c62b
24 changed files with 4583 additions and 282 deletions

View File

@@ -4,12 +4,13 @@ import { join } from 'node:path';
const explorationAssetDirectory = join('src', 'assets', 'images', 'exploration');
const expectedAssets = [
'prologue-village.webp',
'prologue-militia-camp.webp'
'prologue-militia-camp.webp',
'second-pursuit-village-ferry.webp'
];
const expectedWidth = 1920;
const expectedHeight = 1080;
const maximumAssetBytes = 2 * 1024 * 1024;
const maximumTotalBytes = 4 * 1024 * 1024;
const maximumTotalBytes = 6 * 1024 * 1024;
const rasterAssetPattern = /\.(?:avif|jpe?g|png|webp)$/i;
const errors = [];
let totalBytes = 0;
@@ -53,7 +54,7 @@ if (totalBytes > maximumTotalBytes) {
}
if (errors.length > 0) {
console.error(`Prologue exploration asset verification failed with ${errors.length} issue(s):`);
console.error(`Exploration background asset verification failed with ${errors.length} issue(s):`);
errors.forEach((error) => console.error(`- ${error}`));
process.exitCode = 1;
} else {
@@ -90,7 +91,7 @@ function validateDirectoryCoverage(validationErrors) {
if (!expectedRasterFiles.includes(fileName)) {
validationErrors.push(
`${explorationAssetDirectory}: unexpected raster asset "${fileName}"; ` +
`only the two optimized runtime WebP backgrounds should be tracked here`
`only the optimized runtime WebP backgrounds should be tracked here`
);
}
}