From 7dd3d3824bd05301cf479dd2a61855103d44c90d Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 18 Jul 2015 18:39:05 -0700 Subject: [PATCH] Specify what the two unknown parts signify Old research. --- pk3DS/Structs.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pk3DS/Structs.cs b/pk3DS/Structs.cs index 12adc14..c78ac36 100644 --- a/pk3DS/Structs.cs +++ b/pk3DS/Structs.cs @@ -29,14 +29,13 @@ public class PersonalInfo public byte Gender, HatchCycles, BaseFriendship, EXPGrowth; public byte[] EggGroups = new byte[2]; public byte[] Abilities = new byte[3]; - public ushort FormeSprite, BaseEXP; + public ushort FormStats, FormeSprite, BaseEXP; public byte FormeCount, Color; public float Height, Weight; public bool[] TMHM; public bool[] Tutors; public bool[][] ORASTutors = new bool[4][]; - public byte _1B; - public ushort _1C; + public byte EscapeRate; public PersonalInfo(byte[] data) { using (BinaryReader br = new BinaryReader(new MemoryStream(data))) @@ -65,8 +64,8 @@ public PersonalInfo(byte[] data) EXPGrowth = br.ReadByte(); EggGroups = new[] { br.ReadByte(), br.ReadByte() }; Abilities = new[] { br.ReadByte(), br.ReadByte(), br.ReadByte() }; - _1B = br.ReadByte(); - _1C = br.ReadUInt16(); + EscapeRate = br.ReadByte(); + FormStats = br.ReadUInt16(); FormeSprite = br.ReadUInt16(); FormeCount = br.ReadByte(); @@ -127,8 +126,8 @@ public byte[] Write() bw.Write(EXPGrowth); foreach (byte EggGroup in EggGroups) bw.Write(EggGroup); foreach (byte Ability in Abilities) bw.Write(Ability); - bw.Write(_1B); - bw.Write(_1C); + bw.Write(EscapeRate); + bw.Write(FormStats); bw.Write(FormeSprite); bw.Write(FormeCount); bw.Write(Color);