From e2a22ae17d1c07255a40808cb4c43de2b1dcf26a Mon Sep 17 00:00:00 2001 From: Anna Clemens Date: Wed, 12 Aug 2020 00:14:59 -0400 Subject: [PATCH] fix: use 5.3 opcodes --- Globetrotter/TreasureMaps.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Globetrotter/TreasureMaps.cs b/Globetrotter/TreasureMaps.cs index 562686d..0ff5df9 100644 --- a/Globetrotter/TreasureMaps.cs +++ b/Globetrotter/TreasureMaps.cs @@ -8,6 +8,9 @@ using System.Runtime.InteropServices; namespace Globetrotter { class TreasureMaps { + private const ushort ACTOR_CONTROL = 0x212; // updated 5.3 + private const uint TREASURE_MAPS = 0x54; + private static Dictionary _mapToRow; private Dictionary MapToRow { get { @@ -117,12 +120,12 @@ namespace Globetrotter { } public static TreasureMapPacket ParsePacket(IntPtr dataPtr, ushort opCode) { - if (opCode != 0x165) { + if (opCode != ACTOR_CONTROL) { return null; } uint category = (uint)Marshal.ReadByte(dataPtr); - if (category != 0x54) { + if (category != TREASURE_MAPS) { return null; }