This commit is contained in:
Dragon Fire
2021-01-20 18:24:05 -05:00
parent dd29572bb1
commit 2be66ffb63
3 changed files with 36 additions and 10 deletions
+1
View File
@@ -41,6 +41,7 @@ module.exports = class PokemonStore extends Collection {
this.smogonData[gen.toLowerCase()] = JSON.parse(text.match(/dexSettings = ({.+})/i)[1])
.injectRpcs[1][1]
.pokemon
.filter(pkmn => pkmn.oob)
.map(pkmn => ({ id: pkmn.oob.dex_number, formats: pkmn.formats }));
return this.smogonData[gen.toLowerCase()];
}