Fix Let's Go sprites when forced to 2D (#2479)
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled

This commit is contained in:
André Bastos Dias 2025-07-23 03:07:16 +01:00 committed by GitHub
parent 2b82244cbf
commit 00d4b0aab7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;