mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-15 04:25:35 -05:00
Keep festaID separate from nex ID bytes
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace PKHeX.Core
|
||||
{
|
||||
@@ -61,16 +60,10 @@ public string NexUniqueID
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] FestaID // 12byte
|
||||
public uint FestaID
|
||||
{
|
||||
get => Data.Skip(Offset + 0x28).Take(4).Concat(Data.Skip(Offset + 0x18).Take(8)).ToArray();
|
||||
set
|
||||
{
|
||||
if (value.Length != 12)
|
||||
return;
|
||||
Array.Copy(value, 0, Data, Offset + 0x28, 4);
|
||||
Array.Copy(value, 4, Data, Offset + 0x18, 8);
|
||||
}
|
||||
get => BitConverter.ToUInt32(Data, Offset + 0x28);
|
||||
set => BitConverter.GetBytes(value).CopyTo(Data, Offset + 0x28);
|
||||
}
|
||||
|
||||
public int SubRegion
|
||||
|
||||
Reference in New Issue
Block a user