mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
Return HQ status for item link parses
This commit is contained in:
parent
cf651c5970
commit
4b07b9fee6
1 changed files with 3 additions and 2 deletions
|
|
@ -70,7 +70,8 @@ namespace Dalamud.Game.Chat {
|
||||||
if (payload[0] == (byte)PlayerLinkType.ItemLink)
|
if (payload[0] == (byte)PlayerLinkType.ItemLink)
|
||||||
{
|
{
|
||||||
int itemId;
|
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
|
// 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
|
// This _seems_ consistent but I really don't know
|
||||||
|
|
@ -84,7 +85,7 @@ namespace Dalamud.Game.Chat {
|
||||||
payloads.Add(new SeStringPayloadContainer
|
payloads.Add(new SeStringPayloadContainer
|
||||||
{
|
{
|
||||||
Type = SeStringPayloadType.PlayerLink,
|
Type = SeStringPayloadType.PlayerLink,
|
||||||
Param1 = itemId
|
Param1 = (itemId, isHQ)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue