From 4b07b9fee61146269e3a64beba4fa1c129863b6c Mon Sep 17 00:00:00 2001 From: meli <57847713+ff-meli@users.noreply.github.com> Date: Thu, 21 Nov 2019 15:30:29 -0800 Subject: [PATCH] Return HQ status for item link parses --- Dalamud/Game/Chat/SeString.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dalamud/Game/Chat/SeString.cs b/Dalamud/Game/Chat/SeString.cs index c2cbaaed3..21203baa0 100644 --- a/Dalamud/Game/Chat/SeString.cs +++ b/Dalamud/Game/Chat/SeString.cs @@ -70,7 +70,8 @@ namespace Dalamud.Game.Chat { if (payload[0] == (byte)PlayerLinkType.ItemLink) { int itemId; - if ((ItemQuality)payload[1] == ItemQuality.HighQuality) + bool isHQ = payload[1] == (byte)ItemQuality.HighQuality; + if (isHQ) { // hq items have an extra 0x0F byte before the ID, and the ID is 0x4240 above the actual item ID // This _seems_ consistent but I really don't know @@ -84,7 +85,7 @@ namespace Dalamud.Game.Chat { payloads.Add(new SeStringPayloadContainer { Type = SeStringPayloadType.PlayerLink, - Param1 = itemId + Param1 = (itemId, isHQ) }); }