ibrahiem96 / poke-readme-action

A small Github Action to add a Pokemon Sprite to your repo README
2 stars 0 forks source link

Not Enough Pokemon in the Database (Update to add newer Generations) #4

Open ismailooli opened 1 year ago

ismailooli commented 1 year ago

I tried adding Mimikyu as a sprite but it seems that the database does not have Mimikyu (Generation VII) in the database and the program ran into an error. Once I entered a pokemon that had existed in an earlier generation (Charmander: Generation I ), the program worked with no errors and had the sprite in my Read Me File. I did not test precisely up to which generation the API has knowledge of so the Creator might want to look into to figure out which generation the Database seems to end at.

ibrahiem96 commented 1 year ago

Hi @ismailooli

If you are referencing mimikyu, you need to specify the exact form. You can find the specific names for the forms here:

https://github.com/PokeAPI/pokeapi/blob/master/data/v2/csv/pokemon.csv

In this case, mimikyu has 4 different sprites, because at different points in the game, it has a different appearance:

mimikyu-busted
mimikyu-disguised
mimikyu-totem-disguised
mimikyu-totem-busted

Hope this helps