PKHeX/Tests/PKHeX.Core.Tests/Legality
Kurt 3c50983afd Use less efficient IsLevelWithinRange, for clarity
See previous commit for discussion; it's easier to read and maintain
this rather than have the precomputed min/max comparisons.

LevelMin - minDecrease <= min && max <= LevelMax + maxIncrease;
See EncounterArea7b:
Since we know min and minDecrease (0) before doing the linq filter we
can precompute the lowbound, same for highbound; but this isn't
immediately obvious to the reader. The perf cost is pretty much
negligible in the big picture, so leave it in the more readable state.

Thanks @fattard & @ammako !

#2389
2019-09-19 22:54:53 -07:00
..
Illegal Provide min level to evochain fetch 2019-07-02 08:34:28 -07:00
Legal Use less efficient IsLevelWithinRange, for clarity 2019-09-19 22:54:53 -07:00
LearnabilityTests.cs Make parsing flexible / diacritic insensitive 2019-03-18 18:09:48 -07:00
LegalityRules.cs Split encounter areas, relocate slot finding to obj 2019-09-12 23:20:52 -07:00
LegalityTests.cs Minor tweaks 2019-03-18 19:33:56 -07:00
ShadowTests.cs Remove temporary test 2019-01-06 20:58:17 -08:00