mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
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:
parent
bdc9d7edce
commit
d301cb5469
1 changed files with 2 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue