Files
sprites/rules/modelslike.ts
Christopher Monsanto ebbb5e6f2e Tighten formatting to the smogon.com house style
Annotation colons are tight (ternaries keep their spaces), plain
double-quoted strings become single-quoted, and .editorconfig comes
over verbatim. Rule cmd values are untouched; the sheet rules reran
once because their tool sources are declared deps, byte-identically.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-21 01:13:14 -04:00

42 lines
1.2 KiB
TypeScript

import {type Artifact, forEachRule} from '../tools/build/artifact.ts';
// Gen 9
export function gen9Modelslike(): Artifact[] {
return forEachRule('src/gen9species/*.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');
}
// Gen 10
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');
}
// Gen 5 CAPs...
export function gen5Gifs(): Artifact[] {
return forEachRule('src/sprites/gen5/*.png', [
// TODO, add customizable compression for gif
// ... or investigate using webp instead of both png/gif here
'magick convert %f %o',
'gifsicle -O3 -b %o',
], '%B.gif');
}