From 52ecf6cae9bb3806cda37594063fca4622e0c309 Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Sun, 21 Jun 2026 22:19:51 -0400 Subject: [PATCH] champions change --- Tupfile.lua | 14 ++++++++++++++ smogon.deploy.js | 6 ++++++ 2 files changed, 20 insertions(+) diff --git a/Tupfile.lua b/Tupfile.lua index ff1ea209..fd211648 100644 --- a/Tupfile.lua +++ b/Tupfile.lua @@ -55,6 +55,20 @@ foreach_rule( "build/gen9-modelslike/%B.gif" ) +-- Gen 10 + +foreach_rule( + "src/champions/*.png", + { + display="96x96 %f", + -- TODO, add customizable compression for gif + -- ... or investigate using webp instead of both png/gif here + "magick convert %f -trim +repage -resize 90x90 %o", + "gifsicle -O3 -b %o" + }, + "build/gen10-modelslike/%B.gif" +) + -- Gen 5 CAPs... foreach_rule( diff --git a/smogon.deploy.js b/smogon.deploy.js index a039838c..78e90636 100644 --- a/smogon.deploy.js +++ b/smogon.deploy.js @@ -83,6 +83,12 @@ for (const f of list("build/gen9-modelslike")) { spritecopy(f, {dir: "xy"}); } +for (const f of list("build/gen10-modelslike")) { + if (seenModels.has(f.name)) continue; + seenModels.add(f.name); + spritecopy(f, {dir: "xy"}); +} + // Non-model CAPs for (const f of list("src/sprites/gen5")) { if (f.ext !== 'gif' || seenModels.has(f.name)) continue;