add nature

This commit is contained in:
Kurt
2017-11-12 12:16:11 -08:00
parent 4389a3b02e
commit 1e2736ab35

View File

@@ -83,6 +83,11 @@ public int[] RelearnMoves
BitConverter.GetBytes((ushort)value[i]).CopyTo(Data, 0xC + i * 2);
}
}
public int Nature
{
get => Data[0x14];
set => Data[0x14] = (byte)value;
}
public int[] IVs
{
@@ -125,6 +130,8 @@ public string GetSummary()
str += $"Gender = {Gender - 1}, ";
if (HeldItem != 0)
str += $"HeldItem = {HeldItem}, ";
if (Nature != 0)
str += $"Nature = {Nature - 1}, ";
str = str.Trim() + " },";
return str;