Show Flask Slot for UniqueDB Comparisons (#8871)

This commit is contained in:
Blitz54
2025-07-21 11:40:28 -05:00
committed by GitHub
parent 2c73353ac8
commit 51f647957d
2 changed files with 3 additions and 1 deletions

View File

@@ -1262,6 +1262,8 @@ function ItemClass:GetPrimarySlot()
return "Ring 1"
elseif self.type == "Flask" then
return "Flask 1"
elseif self.type == "Tincture" then
return "Flask 1"
else
return self.type
end

View File

@@ -26,7 +26,7 @@ local ItemDBClass = newClass("ItemDBControl", "ListControl", function(self, anch
self.leaguesAndTypesLoaded = false
self.leagueList = { "Any league", "No league" }
self.typeList = { "Any type", "Armour", "Jewellery", "One Handed Melee", "Two Handed Melee" }
self.slotList = { "Any slot", "Weapon 1", "Weapon 2", "Helmet", "Body Armour", "Gloves", "Boots", "Amulet", "Ring", "Belt", "Jewel" }
self.slotList = { "Any slot", "Weapon 1", "Weapon 2", "Helmet", "Body Armour", "Gloves", "Boots", "Amulet", "Ring", "Belt", "Jewel", "Flask" }
local baseY = dbType == "RARE" and -22 or -62
self.controls.slot = new("DropDownControl", {"BOTTOMLEFT",self,"TOPLEFT"}, {0, baseY, 179, 18}, self.slotList, function(index, value)
self.listBuildFlag = true