Update Item8.cs

Battle Tower TMs cost 100,000 so prices must be u32.
This commit is contained in:
sora10pls
2021-09-16 18:39:36 -04:00
parent 5c6c506a29
commit 857df4dcd3

View File

@@ -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);
}