using System; namespace PKHeX.Core { public sealed class Misc5 : SaveBlock { public Misc5(SAV5 sav, int offset) : base(sav) => Offset = offset; public uint Money { get => BitConverter.ToUInt32(Data, Offset); set => BitConverter.GetBytes(value).CopyTo(Data, Offset); } public int Badges { get => Data[Offset + 0x4]; set => Data[Offset + 0x4] = (byte)value; } } }