mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
Migrate the link-scrape-then-discard sites to direct ClassicAPI reads: - IndexEquippedItems / IndexEquipSlot: GetInventoryItemID for the id (GetItemInfo still supplies the stored base link/texture) - IndexItems bag+equip scans: GetContainerItemID/GetInventoryItemID + C_Item.GetItemName (decorated) for the dedup fast-path; drop the now dead GetContainerItemLink/GetInventoryItemLink locals - GetItemFast cache validation: alloc-free id compare via GetInventoryItemID/GetContainerItemID, decorated-name compare otherwise - IsItemEquipped: GetInventoryItemID + C_Item.GetItemName Left untouched: makeInventoryItem/makeBagItem and the GetItem/GetItemFast scan loops, which build a real link that is stored on the item and later fed to GameTooltip:SetHyperlink. Note: the equipped-scan loops now start at slot 1 (GetInventoryItemID requires slot>=1), so the ammo slot (0) is no longer walked by these indexers -- ammo is not referenced by name anywhere in the addon.