mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
dfa74c5756
Two fixes to libbagsort's planning stage. Family-aware placement: the sort treated every bag in the list as interchangeable storage, so with a quiver / soul / profession bag in the set it would try to swap a general item into a slot that can't hold it. The client rejects that swap, but the grid was updated as if it succeeded, desyncing the plan and corrupting the sort from there on. Now each destination slot is tagged with its bag's family (via ClassicAPI's GetItemFamily, which reports bag families reliably) and every item is routed to a cell that accepts it -- matching specialty bag first, overflowing to general -- so nothing lands where it can't go and family items consolidate into their bags for free. Locale-independent categories: SortCategoryPrefix compared the localized itemType/quality strings from GetItemInfo, which silently miscategorize everything on a non-enUS client. Switch to the numeric classID/quality via C_Item.GetItemInfo and ClassicAPI's Enum.ItemClass / Enum.ItemQuality.