Skip to content

Commit 25f66fc

Browse files
committed
Misc fixes
1 parent bfb1463 commit 25f66fc

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Classes/TradeHelpers.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ function M.getTradeCategory(slotName, item)
301301
elseif slotName == "Amulet" then return "accessory.amulet", "Amulet"
302302
elseif slotName == "Ring 1" or slotName == "Ring 2" or slotName == "Ring 3" then return "accessory.ring", "Ring"
303303
elseif slotName == "Belt" then return "accessory.belt", "Belt"
304-
elseif slotName:find("Abyssal") then return "jewel.abyss", "AbyssJewel"
305-
elseif slotName:find("Jewel") then return "jewel", nil
304+
elseif slotName:find("Abyssal") then return "jewel.abyss", "Jewel"
305+
elseif slotName:find("Jewel") then return "jewel", "Jewel"
306306
elseif slotName:find("Flask") then return "flask", "Flask"
307307
else return nil, nil
308308
end

src/Classes/TradeQueryGenerator.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ Remove: %s will be removed from the search results.]], term, term, term)
11761176
local setModSelectors
11771177
-- jewel type selector
11781178
if isJewelSlot and not context.slotTbl.unique then
1179-
controls.jewelType = new("DropDownControl", { "TOPLEFT", lastItemAnchor, "BOTTOMLEFT" }, { 0, 5, 100, 18 }, { "Base", "Radius" }, function(index, value)
1179+
controls.jewelType = new("DropDownControl", { "TOPLEFT", lastItemAnchor, "BOTTOMLEFT" }, { 0, 5, 100, 18 }, { "Base", "Abyss" }, function(index, value)
11801180
-- update mod list for selectors
11811181
local mods = getModList()
11821182
setModSelectors(controls, mods)
@@ -1218,14 +1218,14 @@ Remove: %s will be removed from the search results.]], term, term, term)
12181218
end
12191219
controls.maxPrice = new("EditControl", {"TOPLEFT",lastItemAnchor,"BOTTOMLEFT"}, {0, 5, 70, 18}, nil, nil, "%D")
12201220
controls.maxPrice.buf = self.lastMaxPrice and tostring(self.lastMaxPrice) or ""
1221-
controls.maxPriceType = new("DropDownControl", { "LEFT", controls.maxPrice, "RIGHT" }, { 5, 0, 150, 18 }, currencyDropdownNames, nil, "The trade site will filter out listings with other currencies,\nif anything other than \"Chaos Orb Equivalent\" is chosen and a maximum is specified.")
1221+
controls.maxPriceType = new("DropDownControl", { "LEFT", controls.maxPrice, "RIGHT" }, { 5, 0, 150, 18 }, currencyDropdownNames, nil, "^7The trade site will filter out listings with other currencies,\nif anything other than \"Chaos Orb Equivalent\" is chosen and a maximum is specified.")
12221222
controls.maxPriceType.selIndex = self.lastMaxPriceTypeIndex or 1
12231223
controls.maxPriceLabel = new("LabelControl", {"RIGHT",controls.maxPrice,"LEFT"}, {-5, 0, 0, 16}, "^7Max Price:")
12241224
updateLastAnchor(controls.maxPrice)
12251225

12261226
controls.maxLevel = new("EditControl", {"TOPLEFT",lastItemAnchor,"BOTTOMLEFT"}, {0, 5, 100, 18}, nil, nil, "%D")
12271227
controls.maxLevel.buf = self.lastMaxLevel and tostring(self.lastMaxLevel) or ""
1228-
controls.maxLevelLabel = new("LabelControl", {"RIGHT",controls.maxLevel,"LEFT"}, {-5, 0, 0, 16}, "Max Level:")
1228+
controls.maxLevelLabel = new("LabelControl", { "RIGHT", controls.maxLevel, "LEFT" }, { -5, 0, 0, 16 }, "^7Max Level:")
12291229
updateLastAnchor(controls.maxLevel)
12301230

12311231
-- basic filtering by slot for sockets and links, Megalomaniac does not have slot and Sockets use "Jewel nodeId"
@@ -1369,7 +1369,7 @@ Remove: %s will be removed from the search results.]], term, term, term)
13691369
updateLastAnchor(controls.modSelectorHeaderAnchor)
13701370
-- get mod selector list
13711371
getModList = function()
1372-
_, itemCategory = tradeHelpers.getTradeCategory(slot.slotName, slot and self.itemsTab.items[slot.selItemId])
1372+
local _, itemCategory = tradeHelpers.getTradeCategory(slot.slotName, slot and self.itemsTab.items[slot.selItemId])
13731373
-- add radius/base as they have different mods
13741374
if controls.jewelType then
13751375
itemCategory = controls.jewelType:GetSelValue() .. itemCategory

0 commit comments

Comments
 (0)