Skip to content

Commit

Permalink
fix(Cash): rename Unknown -> Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
matigramirez committed Apr 12, 2024
1 parent dbc9b31 commit b8e9acc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Parsec/Shaiya/Cash/CashProduct.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public sealed class CashProduct : ISerializable

public uint Bag { get; set; }

public uint Unknown { get; set; }
public uint Icon { get; set; }

public uint Cost { get; set; }

Expand All @@ -26,7 +26,7 @@ public void Read(SBinaryReader binaryReader)
{
Index = binaryReader.ReadUInt32();
Bag = binaryReader.ReadUInt32();
Unknown = binaryReader.ReadUInt32();
Icon = binaryReader.ReadUInt32();
Cost = binaryReader.ReadUInt32();
Items = binaryReader.ReadList<CashProductItem>(24).ToList();
ProductName = binaryReader.ReadString();
Expand All @@ -43,7 +43,7 @@ public void Write(SBinaryWriter binaryWriter)
{
binaryWriter.Write(Index);
binaryWriter.Write(Bag);
binaryWriter.Write(Unknown);
binaryWriter.Write(Icon);
binaryWriter.Write(Cost);
binaryWriter.Write(Items.Take(24).ToSerializable(), lengthPrefixed: false);

Expand Down

0 comments on commit b8e9acc

Please sign in to comment.