Googer / Professor-Pine

Official repository for the Professor Pine Pokemon GO raid coordination Discord bot
GNU General Public License v3.0
15 stars 19 forks source link

Images not loading for Pokemon with ID less than 100 #30

Closed ajstewart closed 5 years ago

ajstewart commented 5 years ago

I discovered this by having an Alakazam raid nearby as my first test and found that a lot of Gen 1 Pokemon were not having their image loaded.

In the url call the poke.number is not zero padded so the url link won't work, as the poke.number is just an integer value. https://github.com/Googer/Professor-Pine/blob/67a3e9cc0bacebadad960b42a8638d48912aa55b/app/pokemon.js#L131-L138

I tested putting some crude zero padding in my version and the images then worked as expected.

jeremy-dentel commented 5 years ago

This is fixed in the v1.0.4 release.