From 6db8a565e8976cb63d73cb2d49d3e27e6e1108a7 Mon Sep 17 00:00:00 2001 From: Karthik <32044378+Karthik99999@users.noreply.github.com> Date: Wed, 12 May 2021 18:33:31 -0400 Subject: [PATCH] Fix scene-test and gallery-test (#1781) Dex.getSpecies -> Dex.species.get --- sprites/gallery-test.html | 2 +- sprites/scene-test.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sprites/gallery-test.html b/sprites/gallery-test.html index 35c701132..33191df96 100644 --- a/sprites/gallery-test.html +++ b/sprites/gallery-test.html @@ -126,7 +126,7 @@ let i = 0; for (let baseid in BattlePokedex) { if (baseid.endsWith('totem')) continue; - const species = Dex.getSpecies(baseid); + const species = Dex.species.get(baseid); for (let formid of [''].concat(species.cosmeticFormes || [])) { let spriteid = species.spriteid; if (formid) spriteid += '-' + formid.slice(species.id.length); diff --git a/sprites/scene-test.html b/sprites/scene-test.html index b4fee121e..61c6eaf92 100644 --- a/sprites/scene-test.html +++ b/sprites/scene-test.html @@ -120,7 +120,7 @@ const SPECIES = []; for (let baseid in BattlePokedex) { - const species = Dex.getSpecies(baseid); + const species = Dex.species.get(baseid); for (let formid of [''].concat(species.cosmeticFormes || [])) { let spriteid = species.spriteid; if (formid) spriteid += '-' + formid.slice(species.id.length); @@ -340,7 +340,7 @@ SETTINGS.active.inputs[1].disabled = gen < 3; SETTINGS.active.inputs[2].disabled = gen > 6 || gen < 5; for (const side in SIDES) { - const species = Dex.getSpecies(SIDES[side].pokemon.select.value); + const species = Dex.species.get(SIDES[side].pokemon.select.value); if (gen === 1) { SIDES[side].female.input.disabled = true; } else if (species.gender) { @@ -599,7 +599,7 @@ function getGender(gen, pokemon, female) { if (gen === 1) return undefined; - const species = Dex.getSpecies(pokemon); + const species = Dex.species.get(pokemon); if (species.gender) return species.gender; return female ? 'F' : 'M'; }