Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit f5da85b

Browse files
authored
Trade query improvements (#193)
* remove affixes that no longer exist * updated QueryMods
1 parent d916932 commit f5da85b

File tree

2 files changed

+282
-297
lines changed

2 files changed

+282
-297
lines changed

src/Classes/TradeQueryGenerator.lua

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -200,27 +200,12 @@ function TradeQueryGeneratorClass:ProcessMod(mod, tradeQueryStatsParsed, itemCat
200200

201201
-- Special cases
202202
local specialCaseData = { }
203-
if mod.group and (mod.group:find("Local") or mod.group:find("Shield")) and modLine:gsub("[#()0-9%-%+%.]","") == "% Chance to Block" then
204-
specialCaseData.overrideModLine = "+#% Chance to Block"
205-
modLine = modLine .. " (Shields)"
206-
elseif modType == "Implicit" and modLine:find("Chance to Block Attack Damage while wielding a Staff$") then
207-
specialCaseData.overrideModLine = "+#% Chance to Block Attack Damage while wielding a Staff"
208-
modLine = modLine .. " (Staves)"
209-
elseif modLine == "You can apply an additional Curse" then
203+
if modLine == "You can apply an additional Curse" then
210204
specialCaseData.overrideModLineSingular = "You can apply an additional Curse"
211205
modLine = "You can apply 1 additional Curses"
212206
elseif modLine == "Bow Attacks fire an additional Arrow" then
213207
specialCaseData.overrideModLineSingular = "Bow Attacks fire an additional Arrow"
214208
modLine = "Bow Attacks fire 1 additional Arrows"
215-
elseif modLine == "Projectiles Pierce an additional Target" then
216-
specialCaseData.overrideModLineSingular = "Projectiles Pierce an additional Target"
217-
modLine = "Projectiles Pierce 1 additional Targets"
218-
elseif modLine == "Has 1 Abyssal Socket" then
219-
specialCaseData.overrideModLineSingular = "Has 1 Abyssal Socket"
220-
modLine = "Has 1 Abyssal Sockets"
221-
elseif modLine:find("Modifiers allowed") then
222-
specialCaseData.overrideModLinePlural = "+# "..modLine:match(" (%a+) Modifiers allowed").." Modifiers allowed"
223-
modLine = modLine:gsub("Modifiers", "Modifier")
224209
elseif modLine:find("Charm Slots") then
225210
specialCaseData.overrideModLinePlural = "+# Charm Slots"
226211
modLine = modLine:gsub("Slots", "Slot")

0 commit comments

Comments
 (0)