-
Notifications
You must be signed in to change notification settings - Fork 311
Description
There seems to be a number of Pokemon which use inconsistent naming conventions when referencing later generations
For example:
- https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-v/black-white/10047.png
- https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-vii/ultra-sun-ultra-moon/214-mega.png
These are both images for Mega Heracross, though one path uses the heracross-mega Pokemon ID while the other uses the heracross species ID with -mega tacked on
- https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-v/black-white/10120.png
- https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-vii/icons/718-complete.png
These are both images for Complete Zygarde, though one path uses the zygarde-complete Pokemon ID while the other uses the zygarde species ID with -mega tacked on
- https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-v/black-white/10035.png
- https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-v/black-white/shiny/6-mega-y.png
These are both images for Mega Charizard Y, though one path uses the charizard-mega-y Pokemon ID while the other uses the charizard species ID with -mega-y tacked on. This is even more confusing, since these are the same image for the same generation, just one is shiny and one is not, so the naming convention is not even guaranteed to be the same within the same generation
This is typically not an issue if you are getting the URL from the API, but since not all images seem to be exposed via the API (see PokeAPI/pokeapi#1281 for details) I have resorted to manually crafting the paths, which seems to be impossible to do conveniently. I've been implementing all the edge cases manually, but it is rather annoying to do, shouldn't the naming conventions be consistent?