mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Returns true if an item is a consumable: item class Consumable (0), or inventory type INVTYPE_AMMO (24) / INVTYPE_THROWN (25). Registered as both the namespaced C_Item form and the bare global, like IsUsableItem. Definition established by decoding 3.3.5's Script_IsConsumableItem (0x005173E0) then verifying the surviving contract on a modern client: 3.3.5 walked the item's on-use spells and returned true for any with a real effect (which would include on-use trinkets), but that heuristic did NOT survive -- an on-use trinket with a numeric Use: effect (Talisman of Ephemeral Power) returns false on modern. It's a plain class/ammo check. Verified in-game on our client, matching modern exactly: potion / bandage / Faintly Glowing Skull (all class 0) and Rough Arrow (Ammo) -> true; Hearthstone, Talisman, plain armor -> false. itemID / "item:NNN" / link input (names -> false, no vanilla name->ID map); uncached -> false with no async load, same contract as C_Item.IsEquippableItem. Documented in API.md (+ TOC) and the README Item-row index.