mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Teambuilder: Show 2D sprites for the Z-A Megas (#2542)
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
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:
parent
7ab0dbec92
commit
144560ffd5
|
|
@ -866,10 +866,11 @@ export const Dex = new class implements ModdedDex {
|
||||||
if (dex.modid === 'gen7letsgo') gen = 8;
|
if (dex.modid === 'gen7letsgo') gen = 8;
|
||||||
if (Dex.prefs('nopastgens')) gen = 9;
|
if (Dex.prefs('nopastgens')) gen = 9;
|
||||||
if (Dex.prefs('bwgfx') && gen > 5) gen = 5;
|
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) ||
|
let homeExists = (!species.isNonstandard || !['CAP', 'Custom'].includes(species.isNonstandard) ||
|
||||||
species.id === "xerneasneutral") && ![
|
species.id === "xerneasneutral") && ![
|
||||||
"floetteeternal", "pichuspikyeared", "pikachubelle", "pikachucosplay", "pikachulibre", "pikachuphd", "pikachupopstar", "pikachurockstar",
|
"floetteeternal", "pichuspikyeared", "pikachubelle", "pikachucosplay", "pikachulibre", "pikachuphd", "pikachupopstar", "pikachurockstar",
|
||||||
].includes(species.id);
|
].includes(species.id) && !(species.isMega && species.gen === 9);
|
||||||
if (gen >= 8 && homeExists) {
|
if (gen >= 8 && homeExists) {
|
||||||
spriteData.spriteDir = 'sprites/home-centered';
|
spriteData.spriteDir = 'sprites/home-centered';
|
||||||
spriteData.x = 8;
|
spriteData.x = 8;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user