mirror of
https://github.com/kwsch/pkNX.git
synced 2026-09-30 13:16:58 -05:00
Update Item8.cs
Battle Tower TMs cost 100,000 so prices must be u32.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user