PKHeX/PKHeX.Core/Legality/Verifiers
Kurt 0626b0c29b
Add Breeding move ordering logic, and use in legality analysis (#3183)
* Initial bred moveset validation logic

Unpeel the inheritance via recursion and permitted moves

* Volt tackle considerations

* Optimize out empty slot skips

* Add tests, fix off-by-one's

* Require all base moves if empty slot in moveset

* Add test to prove failure per Anubis' provided test

* Tweak enum labels for easier debugging

When two enums share the same underlying value, the ToString/name of the value may be either of the two (or the last defined one, in my debugging). Just give it a separate magic value.

* Fix recursion oopsie

Also check for scenario where no-base-moves but not enough moves to push base moves out

* Add Crystal tutor checks

* Add specialized gen2 verification method

Game loops through father's moves and pushes in one iteration, rather than checking by type.

* Add another case with returning base move

* Add push-out requirement for re-added base moves

* Minor tweaks

Condense tests, fix another off-by-one noticed when creating tests

* Disallow inherited parent levelup moves

Disallow volt tackle on Gen2/R/S

* Split MoveBreed into generation specific classes

Gen2 behaves slightly different from Gen3/4, which behaves slightly different from Gen5... and Gen6 behaves differently too.

Add some xmldoc as the api is starting to solidify

* Add method overload that returns the parse

Verify that the parse order is as expected

* Add reordering suggestion logic

Try sorting first, then go nuclear with rebuilding.

* Return base moves if complete fail

* Set base moves when generating eggs, only.

* Use breed logic to check for egg ordering legality

Don't bother helping for split-breed species
2021-04-04 18:30:01 -07:00
..
Ability Check for dual ability =>evo w/single ability capsule 2021-03-20 17:49:16 -07:00
Ball Minor clean 2021-01-10 18:15:33 -08:00
Ribbons Add mythical table, allow non-mythical legends in latest ruleset (master ribbon) 2021-02-16 21:42:36 -08:00
ConsoleRegionVerifier.cs this is not that 2020-12-21 17:12:39 -08:00
ContestStatVerifier.cs Flag contest stats if sheen is present on gen5+ origin 2021-02-27 20:02:18 -08:00
CXDVerifier.cs Simplify more expressions 2021-01-04 17:31:43 -08:00
EffortValueVerifier.cs Fracture the encounter matching checks to allow progressive validation (#3137) 2021-01-29 17:55:27 -08:00
EncounterTypeVerifier.cs Merge EncounterStatic4 back together 2020-12-23 12:15:49 -08:00
FormVerifier.cs Remove obsolete legality checks for safari 2021-02-21 15:22:10 -08:00
GenderVerifier.cs Minor clean 2021-01-16 12:01:40 -08:00
HistoryVerifier.cs Minor tweaks 2021-01-09 21:25:28 -08:00
HyperTrainingVerifier.cs this is not that 2020-12-21 17:12:39 -08:00
IndividualValueVerifier.cs Minor tweaks 2021-01-05 09:58:33 -08:00
ItemVerifier.cs Use more expression return style 2021-01-01 17:08:49 -08:00
LanguageVerifier.cs Refactoring 2021-02-03 11:33:09 -08:00
LevelVerifier.cs Fracture the encounter matching checks to allow progressive validation (#3137) 2021-01-29 17:55:27 -08:00
MarkVerifier.cs Add checks for fishing mark 2021-02-14 22:25:59 -08:00
MedalVerifier.cs moar is or 2020-12-25 12:30:26 -08:00
MemoryPermissions.cs Refactoring 2021-02-03 11:33:09 -08:00
MemoryVerifier.cs Refactoring 2021-02-03 11:33:09 -08:00
MiscVerifier.cs Show seed in output, flag correlations that shouldn't 2021-02-14 16:00:43 -08:00
NHarmoniaVerifier.cs Minor clean 2021-01-10 18:15:33 -08:00
NicknameVerifier.cs Disallow lang=2 for dp trades 2021-03-21 10:34:00 -07:00
ParseSettings.cs Add Breeding move ordering logic, and use in legality analysis (#3183) 2021-04-04 18:30:01 -07:00
PIDVerifier.cs Minor clean 2021-01-16 12:01:40 -08:00
TrainerNameVerifier.cs Minor tweaks 2020-12-30 13:08:15 -08:00
TransferVerifier.cs Rename CheckIdentifier.Move to CheckIdentifier.CurrentMove 2021-01-09 13:05:56 -08:00
Verifier.cs Target type'd new 2020-12-21 17:17:56 -08:00