[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:
@@ -71,6 +71,9 @@ const MAKE: Record<Exclude<Asset['type'], 'spritesheet'>, string> = {
|
||||
|
||||
const list = (items: readonly string[]): string => items.join('; ');
|
||||
|
||||
/** The shared avoid lines, less any this picture is allowed to break. */
|
||||
const shared = (a: Asset, m: Manifest): string[] => m.avoid.filter((line) => !(a.allow ?? []).includes(line));
|
||||
|
||||
/** A sheet is cut apart, so its pictures must not touch. Everything else is said positively in the layout. */
|
||||
const SHEET_AVOID = ['pictures touching or overlapping', 'grid lines, frames or labels'];
|
||||
|
||||
@@ -116,7 +119,7 @@ export function promptFor(a: Asset, m: Manifest, style: string): string {
|
||||
lines.push(
|
||||
canvasLine(a.width, a.height, a.background, a.type === 'sprite'),
|
||||
`Include: ${list(a.include)}`,
|
||||
`Avoid: ${list([...a.avoid, ...m.avoid])}`,
|
||||
`Avoid: ${list([...a.avoid, ...shared(a, m)])}`,
|
||||
board(a.id)
|
||||
);
|
||||
return lines.join('\n');
|
||||
@@ -138,7 +141,7 @@ function sheetPrompt(a: Asset, m: Manifest, style: string): string {
|
||||
'Pictures:',
|
||||
...cells.map((c, i) => `${i + 1}. ${c.does}`),
|
||||
`Include: ${list(a.include)}`,
|
||||
`Avoid: ${list([...a.avoid, ...SHEET_AVOID, ...m.avoid])}`,
|
||||
`Avoid: ${list([...a.avoid, ...SHEET_AVOID, ...shared(a, m)])}`,
|
||||
board(a.id)
|
||||
].join('\n');
|
||||
}
|
||||
@@ -155,7 +158,7 @@ export function cellPromptFor(a: Asset, cell: Cell, m: Manifest, style: string):
|
||||
`Drawn alike: ${a.angle ?? ''}`,
|
||||
canvasLine(width, height, 'transparent', true),
|
||||
`Include: ${list(a.include)}`,
|
||||
`Avoid: ${list([...a.avoid, ...m.avoid])}`,
|
||||
`Avoid: ${list([...a.avoid, ...shared(a, m)])}`,
|
||||
board(`${cell.id} (one picture of ${a.id})`)
|
||||
].join('\n');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user