Teambuilder: Show 2D sprites for the Z-A Megas (#2542)
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled

* Show 2d sprites for the Z-A Megas

* Lint
This commit is contained in:
André Bastos Dias 2025-10-29 01:01:20 +00:00 committed by GitHub
parent 7ab0dbec92
commit 144560ffd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -866,10 +866,11 @@ export const Dex = new class implements ModdedDex {
if (dex.modid === 'gen7letsgo') gen = 8;
if (Dex.prefs('nopastgens')) gen = 9;
if (Dex.prefs('bwgfx') && gen > 5) gen = 5;
// TODO: refactor after we get home sprites for Z-A Megas and Eternal Floette
let homeExists = (!species.isNonstandard || !['CAP', 'Custom'].includes(species.isNonstandard) ||
species.id === "xerneasneutral") && ![
"floetteeternal", "pichuspikyeared", "pikachubelle", "pikachucosplay", "pikachulibre", "pikachuphd", "pikachupopstar", "pikachurockstar",
].includes(species.id);
].includes(species.id) && !(species.isMega && species.gen === 9);
if (gen >= 8 && homeExists) {
spriteData.spriteDir = 'sprites/home-centered';
spriteData.x = 8;