PKHeX/PKHeX.Core/Legality
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
..
Assets
Bulk
Encounters Update EncounterStatic8.cs 2026-05-02 00:03:34 -05:00
Evolutions
Formatting
Learnset
LearnSource
Localization
Moves
Restrictions Gen4: Rewrite 31IV reject loop, inline activation 2026-05-01 23:32:12 -05:00
RNG Gen4: add bcc/safari badIV recursion requirement 2026-05-02 10:46:17 -05:00
Settings
Structures
Tables
Verifiers Misc tweaks 2026-04-30 22:58:02 -05:00
Breeding.cs
BulkGenerator.cs
Legal.cs
LegalityAnalysis.cs
LegalityAnalyzers.cs
MoveListSuggest.cs
MoveSourceType.cs