mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-21 01:43:10 +00:00
d1cfdd782e
Two checks are performed for Gen 3 & 4: A: Encounterability (wurmple, ball, ability) B: RNG Compatibility (frame) Original code only checked 'A' Recent code ordered by 'A', but returned anything that matched 'B'. If 'B was not satisfied, an 'A' match would get deferred, allowing for an eventual B & !A to be returned before a A & !B being returned. yay bool logic we want to prefer a RNGFrameMatch as well as a SlotCompatible match original code (no RNG checks) retrieves with SlotCompatible just fine recent adding in framematch resulted in deferring compatible if not RNG frame, yielding !A matches before A & !B maintain 3 queues (A & B get yielded immediately) to track A!B, !AB, and !A!B not necessary to check unown case anymore as it'll fall into the A!B group. better performant to skip that check in favor of only adding for fail. thanks theSlayer!
232 B
232 B