From 51c852ea977053b9d7335f1a0eca4d27c89cd9ee Mon Sep 17 00:00:00 2001 From: kurtekat <142125482+kurtekat@users.noreply.github.com> Date: Mon, 5 Feb 2024 22:43:18 -0500 Subject: [PATCH] fix(ItemDefinition): fix read/write --- src/Parsec/Shaiya/Item/ItemDefinition.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Parsec/Shaiya/Item/ItemDefinition.cs b/src/Parsec/Shaiya/Item/ItemDefinition.cs index 9858d8e3..a10b7d6b 100644 --- a/src/Parsec/Shaiya/Item/ItemDefinition.cs +++ b/src/Parsec/Shaiya/Item/ItemDefinition.cs @@ -186,13 +186,13 @@ public void Read(SBinaryReader binaryReader) ReqInt = binaryReader.ReadUInt16(); ReqWis = binaryReader.ReadUInt16(); ReqLuc = binaryReader.ReadUInt16(); - ReqVg = binaryReader.ReadUInt16(); if (episode >= Episode.EP6) { Unknown = binaryReader.ReadUInt16(); } + ReqVg = binaryReader.ReadUInt16(); ReqOg = binaryReader.ReadByte(); ReqIg = binaryReader.ReadByte(); @@ -287,19 +287,19 @@ public void Write(SBinaryWriter binaryWriter) binaryWriter.Write(ReqInt); binaryWriter.Write(ReqWis); binaryWriter.Write(ReqLuc); - binaryWriter.Write(ReqVg); if (episode >= Episode.EP6) { binaryWriter.Write(Unknown); } + binaryWriter.Write(ReqVg); binaryWriter.Write(ReqOg); binaryWriter.Write(ReqIg); if (episode <= Episode.EP5) { - binaryWriter.Write(Range); + binaryWriter.Write((byte)Range); } else {