Remove ESV rollback for varied level encounters

ESV rand is stored uniquely now via generated frames from FrameFinder,
no need to roll back.
This commit is contained in:
Kurt 2017-12-02 22:34:54 -08:00
parent bdc9d7edce
commit d301cb5469

View file

@ -80,14 +80,10 @@
/// <returns>Slot number for this frame & lead value.</returns>
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);
}
/// <summary>