pokemon-showdown
pokemon-showdown copied to clipboard
How exactly does Learnsets.ts work?
Looking at learnsets.ts i fail to understand how it works, as in how each move is given to each pokemon on a specific level. example, how does 8L28 work? i dont see how it uses the level to find out if the move is learnable. or how 8M does either. can someone please help me understand?
8L28 means it learns it at Lv28 in Gen8 by level-up.
If you use Visual Studio Code and you cmd+click (Mac) or ctrl+click (Windows) LearnsetData
, it'll tell you. I'll add a comment to make it clearer how to get to its documentation at some point; I'll leave this issue open for that.
Wait, are you looking for level-up move validation specifically? That's here:
https://github.com/smogon/pokemon-showdown/blob/c444036f85d7f6a40b8c7f06ca94153b28894d0d/sim/team-validator.ts#L1844-L1860