From 857df4dcd3b5f9d9878c55c6d3cada9edda3f63b Mon Sep 17 00:00:00 2001 From: sora10pls <17801814+sora10pls@users.noreply.github.com> Date: Thu, 16 Sep 2021 18:39:36 -0400 Subject: [PATCH] Update Item8.cs Battle Tower TMs cost 100,000 so prices must be u32. --- pkNX.Structures/Item/Item8.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkNX.Structures/Item/Item8.cs b/pkNX.Structures/Item/Item8.cs index ade65c85..b86488bc 100644 --- a/pkNX.Structures/Item/Item8.cs +++ b/pkNX.Structures/Item/Item8.cs @@ -14,21 +14,21 @@ public Item8(int id, byte[] data) Data = data; } - public int Price + public uint Price { - get => BitConverter.ToUInt16(Data, 0x00); + get => BitConverter.ToUInt32(Data, 0x00); set => BitConverter.GetBytes(value).CopyTo(Data, 0x00); } - public int PriceWatts + public uint PriceWatts { - get => BitConverter.ToUInt16(Data, 0x04); + get => BitConverter.ToUInt32(Data, 0x04); set => BitConverter.GetBytes(value).CopyTo(Data, 0x04); } - public int PriceAlternate // BP, Dynite Ore + public uint PriceAlternate // BP, Dynite Ore { - get => BitConverter.ToUInt16(Data, 0x08); + get => BitConverter.ToUInt32(Data, 0x08); set => BitConverter.GetBytes(value).CopyTo(Data, 0x08); }