From d301cb5469e51dc94d2b76c2ac40f1e867e5f359 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 2 Dec 2017 22:34:54 -0800 Subject: [PATCH] Remove ESV rollback for varied level encounters ESV rand is stored uniquely now via generated frames from FrameFinder, no need to roll back. --- PKHeX.Core/Legality/RNG/Frame/Frame.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/PKHeX.Core/Legality/RNG/Frame/Frame.cs b/PKHeX.Core/Legality/RNG/Frame/Frame.cs index 9f786b53f..7ab7b2bfa 100644 --- a/PKHeX.Core/Legality/RNG/Frame/Frame.cs +++ b/PKHeX.Core/Legality/RNG/Frame/Frame.cs @@ -80,14 +80,10 @@ /// Slot number for this frame & lead value. private int GetSlot(EncounterSlot slot) { - uint esv = RandESV; - if (FrameType != FrameType.MethodH && !slot.FixedLevel) - esv = RNG.Prev(RandLevel) >> 16; - // Static and Magnet Pull do a slot search rather than slot mapping 0-99. return Lead != LeadRequired.StaticMagnet - ? SlotRange.GetSlot(slot.Type, esv, FrameType) - : SlotRange.GetSlotStaticMagnet(slot, esv); + ? SlotRange.GetSlot(slot.Type, RandESV, FrameType) + : SlotRange.GetSlotStaticMagnet(slot, RandESV); } ///