[art-prep] Phase2Pictures: Add the fox, berries, bush, paths and lanterns to the art board, each card marked with its phase

This commit is contained in:
2026-11-01 21:55:04 +01:00
parent 846d082003
commit a5dbd5251b
44 changed files with 576 additions and 17 deletions
+6
View File
@@ -16,6 +16,8 @@ export interface Cell {
export interface Asset {
readonly id: string;
readonly type: AssetType;
/** The roadmap phase that first shows it (docs/ROADMAP.md §4). The manifest lists phases in order. */
readonly phase: number;
readonly width: number;
readonly height: number;
readonly background: Background;
@@ -88,8 +90,12 @@ export function checkManifest(m: Manifest, checklistLength: number): string[] {
else if (sheet.type !== 'sheet') problems.push(`character ${name}: "${c.sheet}" is a ${sheet.type}, not a character sheet`);
}
let lastPhase = 0;
for (const a of m.assets) {
claim(a.id, a.id);
if (!Number.isInteger(a.phase) || a.phase < 1 || a.phase > 6) problems.push(`${a.id}: phase ${String(a.phase)} is not a roadmap phase (1–6)`);
else if (a.phase < lastPhase) problems.push(`${a.id}: phase ${a.phase} comes after phase ${lastPhase}; list the pictures in phase order`);
else lastPhase = a.phase;
if (!TYPES.includes(a.type)) problems.push(`${a.id}: unknown type "${a.type}"`);
if (!GENERATOR_SIZES.some(([w, h]) => w === a.width && h === a.height)) {
problems.push(`${a.id}: ${a.width} × ${a.height} is not a size image generators offer (${GENERATOR_SIZES.map(([w, h]) => `${w} × ${h}`).join(', ')})`);