[art] PlanetGarden: Her planet and the gardener on the board; the author's S2 and S6 recorded with their guards
This commit is contained in:
@@ -36,6 +36,8 @@ export interface Asset {
|
||||
readonly cells?: readonly Cell[];
|
||||
readonly include: readonly string[];
|
||||
readonly avoid: readonly string[];
|
||||
/** Shared avoid lines this picture may break, each named exactly (the gardener is a person: planet-garden.md). */
|
||||
readonly allow?: readonly string[];
|
||||
/** Indices into STYLE.md §7, the review points shown on its card. */
|
||||
readonly checks: readonly number[];
|
||||
}
|
||||
@@ -108,6 +110,9 @@ export function checkManifest(m: Manifest, checklistLength: number): string[] {
|
||||
problems.push(`${a.id}: a ${a.type} sits over other pictures, so its background must be transparent`);
|
||||
}
|
||||
if (a.type !== 'spritesheet' && (a.subject ?? '').trim() === '') problems.push(`${a.id}: no subject`);
|
||||
for (const line of a.allow ?? []) {
|
||||
if (!m.avoid.includes(line)) problems.push(`${a.id}: allows "${line}", which is not in the shared avoid list`);
|
||||
}
|
||||
for (const i of a.checks) {
|
||||
if (!Number.isInteger(i) || i < 0 || i >= checklistLength) problems.push(`${a.id}: review point ${i} is not in STYLE.md §7`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user