pokemon-showdown icon indicating copy to clipboard operation
pokemon-showdown copied to clipboard

How exactly does Learnsets.ts work?

Open artrixdotdev opened this issue 4 years ago • 3 comments

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?

artrixdotdev avatar Jun 09 '20 17:06 artrixdotdev

8L28 means it learns it at Lv28 in Gen8 by level-up.

PartMan7 avatar Jun 09 '20 17:06 PartMan7

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.

Zarel avatar Jun 09 '20 18:06 Zarel

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

Zarel avatar Jun 09 '20 18:06 Zarel