mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Fix Let's Go sprites when forced to 2D (#2479)
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
This commit is contained in:
parent
2b82244cbf
commit
00d4b0aab7
|
|
@ -855,13 +855,14 @@ export const Dex = new class implements ModdedDex {
|
|||
y: -3,
|
||||
};
|
||||
if (pokemon.shiny) spriteData.shiny = true;
|
||||
if (dex.modid === 'gen7letsgo') gen = 8;
|
||||
if (Dex.prefs('nopastgens')) gen = 9;
|
||||
if (Dex.prefs('bwgfx') && gen > 5) gen = 5;
|
||||
let homeExists = (!species.isNonstandard || !['CAP', 'Custom'].includes(species.isNonstandard) ||
|
||||
species.id === "xerneasneutral") && ![
|
||||
"floetteeternal", "pichuspikyeared", "pikachubelle", "pikachucosplay", "pikachulibre", "pikachuphd", "pikachupopstar", "pikachurockstar",
|
||||
].includes(species.id);
|
||||
if ((gen >= 8 || dex.modid === 'gen7letsgo') && homeExists) {
|
||||
if (gen >= 8 && homeExists) {
|
||||
spriteData.spriteDir = 'sprites/home-centered';
|
||||
spriteData.x = 8;
|
||||
spriteData.y = 10;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user