mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-13 12:14:18 +01:00
Fix HQ Item IDs in inventory service.
This commit is contained in:
parent
8412c2bc68
commit
eed11bb67f
1 changed files with 5 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ public unsafe class InventoryService : IDisposable
|
|||
else if (item.GlamourId != 0)
|
||||
_itemList.Add((slot, item.GlamourId, item.Stain));
|
||||
else
|
||||
_itemList.Add((slot, item.ItemID, item.Stain));
|
||||
_itemList.Add((slot, FixId(item.ItemID), item.Stain));
|
||||
}
|
||||
|
||||
var plate = MirageManager.Instance()->GlamourPlatesSpan[glamourPlateId - 1];
|
||||
|
|
@ -96,7 +96,7 @@ public unsafe class InventoryService : IDisposable
|
|||
else if (item.GlamourId != 0)
|
||||
_itemList.Add((slot, item.GlamourId, item.Stain));
|
||||
else
|
||||
_itemList.Add((slot, item.ItemID, item.Stain));
|
||||
_itemList.Add((slot, FixId(item.ItemID), item.Stain));
|
||||
}
|
||||
|
||||
Add(EquipSlot.MainHand, ref entry->MainHand);
|
||||
|
|
@ -119,6 +119,9 @@ public unsafe class InventoryService : IDisposable
|
|||
return ret;
|
||||
}
|
||||
|
||||
private static uint FixId(uint itemId)
|
||||
=> itemId % 50000;
|
||||
|
||||
private delegate int MoveItemDelegate(InventoryManager* manager, InventoryType sourceContainer, ushort sourceSlot,
|
||||
InventoryType targetContainer, ushort targetSlot, byte unk);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue