mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 14:44:24 +00:00
Update G8PKM.cs
This commit is contained in:
parent
d2bed713e4
commit
3b697a5da1
1 changed files with 2 additions and 2 deletions
|
@ -395,7 +395,7 @@ public abstract class G8PKM : PKM, ISanityChecksum, IMoveReset,
|
|||
public byte HT_Feeling { get => Data[0xCB]; set => Data[0xCB] = value; }
|
||||
public ushort HT_TextVar { get => ReadUInt16LittleEndian(Data.AsSpan(0xCC)); set => WriteUInt16LittleEndian(Data.AsSpan(0xCC), value); }
|
||||
|
||||
public Span<byte> PokeJob => Data.Slice(0xCE, 14);
|
||||
public Span<byte> PokeJob => Data.AsSpan(0xCE, 14);
|
||||
public bool GetPokeJobFlag(int index) => FlagUtil.GetFlag(PokeJob, index >> 3, index & 7);
|
||||
public void SetPokeJobFlag(int index, bool value) => FlagUtil.SetFlag(PokeJob, index >> 3, index & 7, value);
|
||||
public bool GetPokeJobFlagAny() => PokeJob.IndexOfAnyExcept<byte>(0) >= 0;
|
||||
|
@ -450,7 +450,7 @@ public abstract class G8PKM : PKM, ISanityChecksum, IMoveReset,
|
|||
public bool HT_SPD { get => ((HyperTrainFlags >> 4) & 1) == 1; set => HyperTrainFlags = (byte)((HyperTrainFlags & ~(1 << 4)) | ((value ? 1 : 0) << 4)); }
|
||||
public bool HT_SPE { get => ((HyperTrainFlags >> 5) & 1) == 1; set => HyperTrainFlags = (byte)((HyperTrainFlags & ~(1 << 5)) | ((value ? 1 : 0) << 5)); }
|
||||
|
||||
public Span<byte> RecordFlags => Data.Slice(0x127, 14);
|
||||
public Span<byte> RecordFlags => Data.AsSpan(0x127, 14);
|
||||
public bool GetMoveRecordFlag(int index) => FlagUtil.GetFlag(RecordFlags, index >> 3, index & 7);
|
||||
public void SetMoveRecordFlag(int index, bool value) => FlagUtil.SetFlag(RecordFlags, index >> 3, index & 7, value);
|
||||
public bool GetMoveRecordFlagAny() => RecordFlags.IndexOfAnyExcept<byte>(0) >= 0;
|
||||
|
|
Loading…
Reference in a new issue