Skip to content

Commit

Permalink
Merge pull request #309 from wraythex/wraythex-patch-3
Browse files Browse the repository at this point in the history
Update utils.pokemon.js to include Gen 8 and 9 (async)
  • Loading branch information
wraythex authored Sep 4, 2023
2 parents ed18dbe + 33dc372 commit 84a3388
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion static/js/utils/utils.pokemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const rarityNames = ['Common', 'Uncommon', 'Rare', 'Very Rare', 'Ultra Rare', 'N
// FontAwesome gender classes.
const genderClasses = ['fa-mars', 'fa-venus', 'fa-neuter']
var pokemonSearchList = []
const availablePokemonCount = 809
const availablePokemonCount = 1010
const pokemonIds = new Set()

function initPokemonData() {
Expand Down Expand Up @@ -45,6 +45,8 @@ function initPokemonData() {
gen = 7
} else if (id <= 898) {
gen = 8
} else if (id <= 1010) {
gen = 9
}
pokemonData[id].gen = gen
pokemonSearchList.push({
Expand Down

0 comments on commit 84a3388

Please sign in to comment.