From 18fc3d83b8bc6746f0052273232c1794ef2d7d42 Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Sun, 25 Oct 2026 23:25:06 -0400 Subject: [PATCH] Give the social images every source the xy set has Models and gen 9 species left 93 dex aliases without one: the Champions megas are in src/champions and the CAPs and Gigantamax formes in src/sprites/gen5. The social sets now layer the same sources as xy, first file name wins. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01NapyguGQ2S5QKhY451edA4 --- smogon.build.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/smogon.build.ts b/smogon.build.ts index a0b78d482..a1c24f0ad 100644 --- a/smogon.build.ts +++ b/smogon.build.ts @@ -358,16 +358,19 @@ deploy(async ctx => { manifest.write('__meta/pmd/manifest.json'); }); -// Smogdex social images: models, backfilled with gen9 species not yet in -// models (first source wins). +// Smogdex social images: the xy set's sources, first source wins per file +// name, so everything the dex draws has one. function socialInputs(): string[] { - let social = spriteglob(['src/models/*'], {b: false, s: false}); - let socialSeen = new Set(social.map(base)); - for (let file of spriteglob(['src/gen9species/*'], {b: false, s: false})) { - if (!socialSeen.has(base(file))) { - social.push(file); - socialSeen.add(base(file)); + let social: string[] = []; + let seen = new Set(); + for (let pat of ['src/models/*', 'src/gen9species/*', 'src/champions/*', + 'src/sprites/gen5/*.png', 'src/sprites/gen5/*.gif']) { + for (let file of spriteglob(pat, {b: false, s: false})) { + if (!seen.has(base(file))) { + social.push(file); + seen.add(base(file)); + } } } return social;