Update Item8.cs

This commit is contained in:
sora10pls
2021-09-11 11:24:32 -04:00
parent c5e24ecfbc
commit de8bed982e

View File

@@ -16,20 +16,20 @@ public Item8(int id, byte[] data)
public int Price
{
get => BitConverter.ToInt16(Data, 0x00);
set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x00);
get => BitConverter.ToUInt16(Data, 0x00);
set => BitConverter.GetBytes(value).CopyTo(Data, 0x00);
}
public int PriceWatts
{
get => BitConverter.ToInt16(Data, 0x04);
set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x04);
get => BitConverter.ToUInt16(Data, 0x04);
set => BitConverter.GetBytes(value).CopyTo(Data, 0x04);
}
public int PriceAlternate // BP, Dynite Ore
{
get => BitConverter.ToInt16(Data, 0x08);
set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x08);
get => BitConverter.ToUInt16(Data, 0x08);
set => BitConverter.GetBytes(value).CopyTo(Data, 0x08);
}
public PouchID Pouch