From efec331741c48ab0138be3b4079ea2a7a4e27621 Mon Sep 17 00:00:00 2001 From: Frank Date: Mon, 2 Dec 2019 13:40:09 -0800 Subject: [PATCH] add some customization options in MyStatus8 (#2552) --- .../Saves/Substructures/Gen8/MyStatus8.cs | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/PKHeX.Core/Saves/Substructures/Gen8/MyStatus8.cs b/PKHeX.Core/Saves/Substructures/Gen8/MyStatus8.cs index 495c9d528..c17a70cd5 100644 --- a/PKHeX.Core/Saves/Substructures/Gen8/MyStatus8.cs +++ b/PKHeX.Core/Saves/Substructures/Gen8/MyStatus8.cs @@ -6,6 +6,92 @@ public sealed class MyStatus8 : SaveBlock { public MyStatus8(SAV8SWSH sav, SCBlock block) : base(sav, block.Data) { } + public ulong Hair + { + get => BitConverter.ToUInt64(Data, 0x10); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x10); + } + + public ulong Brow + { + get => BitConverter.ToUInt64(Data, 0x18); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x18); + } + + public ulong Lashes + { + get => BitConverter.ToUInt64(Data, 0x20); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x20); + } + + public ulong Contacts + { + get => BitConverter.ToUInt64(Data, 0x28); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x28); + } + + public ulong Lips + { + get => BitConverter.ToUInt64(Data, 0x30); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x30); + } + + public ulong Glasses + { + get => BitConverter.ToUInt64(Data, 0x38); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x38); + } + + public ulong Hat + { + get => BitConverter.ToUInt64(Data, 0x40); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x40); + } + + public ulong Jacket + { + get => BitConverter.ToUInt64(Data, 0x48); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x48); + } + + public ulong Top + { + get => BitConverter.ToUInt64(Data, 0x50); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x50); + } + + public ulong Bag + { + get => BitConverter.ToUInt64(Data, 0x58); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x58); + } + + public ulong Gloves + { + get => BitConverter.ToUInt64(Data, 0x60); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x60); + } + + public ulong BottonOrDress + { + get => BitConverter.ToUInt64(Data, 0x68); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x68); + } + + public ulong Sock + { + get => BitConverter.ToUInt64(Data, 0x70); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x70); + } + + public ulong Shoe + { + get => BitConverter.ToUInt64(Data, 0x78); + set => BitConverter.GetBytes(value).CopyTo(Data, 0x78); + } + + // 80 - A0 + public int TID { get => BitConverter.ToUInt16(Data, 0xA0);