PKHeX/PKHeX.Core/Legality/Formatting
Kurt 9deafa851a
Create initial movesets for Alpha entities correctly, verify initial mastery (#3489)
* Draft checks for encounter slot mastery

* Check encounter mastery flags

* Add moves for LA static encounters that don't follow learnset

* Add moves on crossover LA static encounters

* add alpha moveset population method

Now generates and applies moves as the game does
Updates some handling of other methods to use Span

* Show better message for bad mastery init flags

* Insert descending if candidates have same level

Level 78 Yanmega:
- [01] [10] Quick Attack
- [06] [15] Gust
- [11] [20] Silver Wind
- [18] [28] Hypnosis
- [25] [35] Air Slash
- [34] [45] Ancient Power
- [43] [54] Crunch
- [43] [54] Bug Buzz

Yields:
AlphaMove
Crunch*
Bug Buzz*
Ancient Power

* Descending order due to iteration

Co-authored-by: Lusamine <30205550+Lusamine@users.noreply.github.com>
2022-05-06 15:43:23 -07:00
..
BaseLegalityFormatter.cs More records/sealing 2021-12-05 23:54:59 -08:00
ILegalityFormatter.cs Rework EncounterCriteria to be ability indexed rather than direct ability (#3179) 2021-03-23 17:05:15 -07:00
LegalityCheckStrings.cs Create initial movesets for Alpha entities correctly, verify initial mastery (#3489) 2022-05-06 15:43:23 -07:00
LegalityFormatting.cs Performance: Slightly reduce allocations in moveset validation (#3460) 2022-03-12 17:39:00 -08:00