mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
C_Item.GetItemCount now follows 3.3.5's Script_GetItemCount on 1.12's own CGBag_C::FindItem ancestors (0x622130 stack count, 0x622180 charge count, 0x6223F0 walk), which share 3.3.5's search-flag bits. - Counts equipped bags and the keyring, skips broken items, and reads the bank through flag 0x08 without an open bank window. - includeUses uses 3.3.5's gate (non-stackable, negative base charges) and its reagent-uses override. - A name resolves to the ID of the first carried match, as 3.3.5's s_itemByName does. - Flags are read with the engine's StringToBOOL, so "0" is false. Item::Count::InInventory uses the same engine count, so IsUsableItem, the totem tool check and GetSpellCastCount now count what the engine's reagent and totem gate (0x6E4000) counts. GetSpellCastCount no longer stops at the first empty reagent slot.