Closed xmillies closed 7 years ago
The pokedex only includes pokemon you have encountered in game. The PokemonMetaRegistry includes all pokemon, even the new onces.
What in fact is outdated is this example: https://github.com/NicklasWallgren/PokemonGoAPI-PHP/blob/2e955389cae3269584282f8283a683f6eb3b5bfe/examples/RetrievePlayerPokedexExample.php#L39
I think this should be completely replaced by something like
foreach ($pokedex->getItems() as $pokedexEntry) {
// Not sure it's getId()
$pokemonmeta = PokemonMetaRegistry::getByPokemonId($pokedexEntry->getId());
echo sprintf("We know Pokemon %d. Name: %s \n", $pokedexEntry->getId(), $pokemonmeta->getuniqueId());
}
instead of using a for
-loop; to eliminate hardcoding the Pokémon count that will likely increase again.
When retrieving pokedex new baby eggs are missing. For instance 240.
The last pokemon in Pokedex is not 151 ... but 240.
A small and usefull code to include ?