Skip to content

Commit

Permalink
Rename Tradeable to more accurate Exchangeable
Browse files Browse the repository at this point in the history
Closes #82.
  • Loading branch information
villermen committed Jan 5, 2022
1 parent be2e1d0 commit b0b0cd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RuneScapeCacheTools/File/ItemDefinitionFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class ItemDefinitionFile
public uint? Unknown43 { get; set; }
public ushort? Unknown44 { get; set; }
public ushort? Unknown45 { get; set; }
public bool? Tradeable { get; set; }
public bool? Exchangeable { get; set; }
public int? GeBuyLimit { get; set; }
public int? ColorEquip1 { get; set; }
public int? ColorEquip2 { get; set; }
Expand Down Expand Up @@ -184,7 +184,7 @@ public static ItemDefinitionFile Decode(byte[] data)
Opcode.Unknown43 => file.Unknown43 = reader.ReadUInt32BigEndian(),
Opcode.Unknown44 => file.Unknown44 = reader.ReadUInt16BigEndian(),
Opcode.Unknown45 => file.Unknown45 = reader.ReadUInt16BigEndian(),
Opcode.Tradeable => file.Tradeable = true,
Opcode.Exchangeable => file.Exchangeable = true,
Opcode.GeBuyLimit => file.GeBuyLimit = reader.ReadInt32BigEndian(),
Opcode.ColorEquip1 => file.ColorEquip1 = reader.ReadAwkwardInt(),
Opcode.ColorEquip2 => file.ColorEquip2 = reader.ReadAwkwardInt(),
Expand Down Expand Up @@ -395,7 +395,7 @@ private enum Opcode
Unknown43 = 43,
Unknown44 = 44,
Unknown45 = 45,
Tradeable = 65,
Exchangeable = 65,
GeBuyLimit = 69,
ColorEquip1 = 78,
ColorEquip2 = 79,
Expand Down

0 comments on commit b0b0cd2

Please sign in to comment.