mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-24 04:53:08 +00:00
1162ba5b3d
https://pastebin.com/Y0VRnJxu not sure what the 2nd rand value is still some things to sort out with RoC's PC
26 lines
753 B
C#
26 lines
753 B
C#
namespace PKHeX.Core
|
|
{
|
|
public class Frame
|
|
{
|
|
public readonly uint Seed;
|
|
public readonly LeadRequired Lead;
|
|
|
|
private readonly FrameType FrameType;
|
|
private readonly RNG RNG;
|
|
|
|
public uint ESV { get; set; }
|
|
public int EncounterSlot(SlotType t) => SlotRange.GetSlot(t, ESV, FrameType, Seed);
|
|
public void SetOriginSeed(int Offset) => OriginSeed = RNG.Reverse(Seed, Offset);
|
|
public bool LevelSlotModified => Lead > LeadRequired.SynchronizeFail;
|
|
|
|
public uint OriginSeed;
|
|
|
|
public Frame(uint seed, FrameType type, RNG rng, LeadRequired lead)
|
|
{
|
|
Seed = seed;
|
|
Lead = lead;
|
|
FrameType = type;
|
|
RNG = rng;
|
|
}
|
|
}
|
|
}
|