expose special move & isegg flag

surf pikachu, and egg eevee (same as SM)
This commit is contained in:
Kurt
2017-11-08 19:51:32 -08:00
parent a8a8a0bcba
commit 05bd6a7bb9

View File

@@ -50,12 +50,12 @@ public override int HeldItem
get => BitConverter.ToUInt16(Data, 0x8);
set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x8);
}
public byte _A
public bool IsEgg
{
get => Data[0xA];
set => Data[0xA] = value;
get => Data[0xA] == 1;
set => Data[0xA] = (byte)(value ? 1 : 0);
}
public int _C
public int SpecialMove
{
get => BitConverter.ToUInt16(Data, 0xC);
set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0xC);
@@ -70,6 +70,8 @@ public string GetSummary()
str += "Shiny = false, ";
if (HeldItem != 0)
str += $"HeldItem = {HeldItem}, ";
if (SpecialMove != 0)
str += $"Moves = new[] {{{SpecialMove}}}, ";
str = str.Trim() + " },";
return str;