PKHeX/Tests/PKHeX.Core.Tests/Legality/Legal
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
..
General Port tests to .Net Core (#2156) 2018-11-06 15:25:35 -08:00
Generation 1 Tradeback Port tests to .Net Core (#2156) 2018-11-06 15:25:35 -08:00
Generation 2 Add VC2 trade OT gender check 2019-06-29 17:43:09 -07:00
Generation 3 Add recognition for Method 3 encounters 2019-06-19 19:15:06 -07:00
Generation 4 Add gender changed azurill evo pokewalker edge case 2019-05-15 17:14:48 -07:00
Generation 4 EncounterType Add special set operation for alph rocksmash 2019-01-27 11:08:21 -08:00
Generation 4 Transfer Port tests to .Net Core (#2156) 2018-11-06 15:25:35 -08:00
Generation 5 Add missing filter overrides 2019-09-19 16:19:07 -07:00
Generation 6 Use less efficient IsLevelWithinRange, for clarity 2019-09-19 22:54:53 -07:00
Generation 6 Static Fix Static/Gift IV method call (#2310) 2019-05-15 12:07:48 -07:00
Generation 7 Static Fix Static/Gift IV method call (#2310) 2019-05-15 12:07:48 -07:00
Generation 7 Transfer Add missing filter overrides 2019-09-19 16:19:07 -07:00
Generation 7 Wild Port tests to .Net Core (#2156) 2018-11-06 15:25:35 -08:00