display specific bags like (quiver, ammo pouch, soulbag) separately when viewing other characters bag

This commit is contained in:
Salikh Gurgenidze
2025-11-19 21:50:42 +04:00
parent 8c3afafa2d
commit 650859ffe1
3 changed files with 36 additions and 2 deletions
+9
View File
@@ -26,10 +26,19 @@ end
-- Scan a single bank bag
function BankScanner:ScanBankBag(bagID)
-- Determine bag type
local bagType = "regular"
if addon.Modules.Utils:IsSoulBag(bagID) then
bagType = "soul"
elseif addon.Modules.Utils:IsAmmoQuiverBag(bagID) then
bagType = "ammo"
end
local bag = {
slots = {},
numSlots = addon.Modules.Utils:GetBagSlotCount(bagID),
freeSlots = 0,
bagType = bagType,
}
if not addon.Modules.Utils:IsBagValid(bagID) then