-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
For websites such as Bulbapedia and Serebii, a Pokemon's level-up move list has a defined order, and you can expect a wild Pokemon of a given level to have the most recent four moves relative to its level. As far as I can tell, the PokeAPI has no such feature.
I wanted a script that gets a Pokemon's current four moves via its level. This is easy to do from a glance at Serebii/Bulbapedia. For example, lets say I come across a level 2 Garchomp in a randomizer. Garchomp has five moves known at level 1, but there's a specific order. Fire Fang comes first, which means it gets "overwritten" by Sandstorm according to this order. The PokeAPI makes no distinction on move learn order, so it's impossible to know what moves this Garchomp should have. Instead, the PokeAPI sorts all of a Pokemon's possible moves by the move ID.