mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
Bring C_LootHistory closer to the MoP contract and make a UI keying on it robust across the ring saturating. - GetItem now returns rollID, itemLink, numPlayers, isDone, winnerIdx, timestamp (was itemLink-first, with the winner as a name string). rollID is a stable monotonic ID assigned at creation, so addons can key expanded / highlighted rows on it instead of the volatile ring index. winnerIdx is the winner 1-based player index for GetPlayerInfo, matching MoP; the winner is inserted into the roster if their own roll packet never arrived, so it always resolves. timestamp is a ClassicAPI extension (GetTime()-comparable seconds). - LOOT_HISTORY_FULL_UPDATE is now actually dispatched (was reserved-only): on a new item appearing (roll open) and on ring eviction, fired before the granular ROLL_CHANGED / ROLL_COMPLETE. - Add C_LootHistory.Clear() (ClassicAPI extension) to wipe history and fire FULL_UPDATE. - Factor roll/winner roster insertion into a shared FindOrAddPlayer helper. Docs updated for the new signature, Clear, and the FULL_UPDATE semantics.