mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-20 15:44:23 +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)
|
else if (item.GlamourId != 0)
|
||||||
_itemList.Add((slot, item.GlamourId, item.Stain));
|
_itemList.Add((slot, item.GlamourId, item.Stain));
|
||||||
else
|
else
|
||||||
_itemList.Add((slot, item.ItemID, item.Stain));
|
_itemList.Add((slot, FixId(item.ItemID), item.Stain));
|
||||||
}
|
}
|
||||||
|
|
||||||
var plate = MirageManager.Instance()->GlamourPlatesSpan[glamourPlateId - 1];
|
var plate = MirageManager.Instance()->GlamourPlatesSpan[glamourPlateId - 1];
|
||||||
|
|
@ -96,7 +96,7 @@ public unsafe class InventoryService : IDisposable
|
||||||
else if (item.GlamourId != 0)
|
else if (item.GlamourId != 0)
|
||||||
_itemList.Add((slot, item.GlamourId, item.Stain));
|
_itemList.Add((slot, item.GlamourId, item.Stain));
|
||||||
else
|
else
|
||||||
_itemList.Add((slot, item.ItemID, item.Stain));
|
_itemList.Add((slot, FixId(item.ItemID), item.Stain));
|
||||||
}
|
}
|
||||||
|
|
||||||
Add(EquipSlot.MainHand, ref entry->MainHand);
|
Add(EquipSlot.MainHand, ref entry->MainHand);
|
||||||
|
|
@ -119,6 +119,9 @@ public unsafe class InventoryService : IDisposable
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static uint FixId(uint itemId)
|
||||||
|
=> itemId % 50000;
|
||||||
|
|
||||||
private delegate int MoveItemDelegate(InventoryManager* manager, InventoryType sourceContainer, ushort sourceSlot,
|
private delegate int MoveItemDelegate(InventoryManager* manager, InventoryType sourceContainer, ushort sourceSlot,
|
||||||
InventoryType targetContainer, ushort targetSlot, byte unk);
|
InventoryType targetContainer, ushort targetSlot, byte unk);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue