fix: use 5.3 opcodes

This commit is contained in:
Anna 2020-08-12 00:14:59 -04:00
parent 8e24a3ec0c
commit 9598b6048c
1 changed files with 5 additions and 2 deletions

View File

@ -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<uint, uint> _mapToRow;
private Dictionary<uint, uint> 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;
}