PKHeX/Tests/PKHeX.Core.Tests
Kurt d11db7a1cb Gen4: add bcc/safari badIV recursion requirement
Since BCC/Safari only roll PIDIV up to 4 times, a large amount of resulting-pk4 will still lack a 31 IV. These require the full recursion failure to be reached, so the traversal needs to travel up 4x before accepting an origin.

Reduce parameter passing by wrapping the immutables/derived in a struct.

Also clean up some level comparisons for lead:pressure boosting check, maybe DPPt's MethodJ impl was comparing wrong (didn't match MethodK). If we're above the encounter slot's level range, then it must have been pressure boosted. Don't bother checking for Grass type (the only type that can boost) as we already check that in the IsMatchExact yield.

Unrelated: Add a unit test of an obvious genned mon EVs I laughed at when scrolling thru my HG save file.
2026-05-02 10:46:17 -05:00
..
General
Legality Gen4: add bcc/safari badIV recursion requirement 2026-05-02 10:46:17 -05:00
PKM
Saves
Simulator
TestData
Util Add HOME 4.0.0 scale reset quirk handling 2026-04-28 01:43:53 -05:00
PKHeX.Core.Tests.csproj