Files
sprites/rules/modelslike.ts
Christopher Monsanto ed199c3768 Move single-use rule sets to their call sites
rules/ exists so several deploys can declare the same rules; a set with
one caller is just indirection. Only gen10Modelslike has two (smogon xy/
and ps ani/), so it stays. The live sets move into assets.build.ts and
smogon.build.ts, and the three deprecated sets move into the commented-out
block that was their only reference, which empties minisprites.ts and
social.ts.

Declarations are copied verbatim, so no rule key moves: a full dry run
reports 7748 up to date, 0 would run, and all three deploy trees come out
byte-identical.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MQicnpaee6kQXGG7uVExLS
2026-08-21 01:13:16 -04:00

17 lines
521 B
TypeScript

import {type Artifact, forEachRule} from '../tools/build/artifact.ts';
// Shared by the smogon xy/ set and the PS ani/ set.
export function gen10Modelslike(): Artifact[] {
return forEachRule('src/champions/*.png', {
display: '96x96 %f',
// TODO, add customizable compression for gif
// ... or investigate using webp instead of both png/gif here
cmds: [
'magick convert %f -trim +repage -resize 90x90 %o',
'gifsicle -O3 -b %o',
],
}, '%B.gif');
}