Skip to content

Commit b74cb4e

Browse files
LocalIdentityLocalIdentity
andauthored
Fix Trade results not showing Fractured Mods (#1175)
We were not taking into account the fractured mods list when retrieving mods from the trade site Fractured mods always seem to be the first mod on the item to no need to reorder them Co-authored-by: LocalIdentity <[email protected]>
1 parent 71479c0 commit b74cb4e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/Classes/ItemsTab.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2593,6 +2593,9 @@ function ItemsTabClass:AddItemTooltip(tooltip, item, slot, dbMode)
25932593
else
25942594
tooltip:AddLine(20, rarityCode..item.namePrefix..item.baseName:gsub(" %(.+%)","")..item.nameSuffix)
25952595
end
2596+
if item.fractured then
2597+
tooltip:AddLine(16, colorCodes.FRACTURED.."Fractured Item")
2598+
end
25962599

25972600
tooltip:AddSeparator(10)
25982601

src/Classes/TradeQueryRequests.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ function TradeQueryRequestsClass:FetchResultBlock(url, callback)
376376

377377
-- ensure these fields are initialised
378378
item.enchantMods = item.enchantMods or { }
379+
item.fracturedMods = item.fracturedMods or { }
379380
item.runeMods = item.runeMods or { }
380381
item.implicitMods = item.implicitMods or { }
381382
item.explicitMods = item.explicitMods or { }
@@ -390,6 +391,9 @@ function TradeQueryRequestsClass:FetchResultBlock(url, callback)
390391
for _, modLine in ipairs(item.implicitMods) do
391392
t_insert(rawLines, escapeGGGString(modLine))
392393
end
394+
for _, modLine in ipairs(item.fracturedMods) do
395+
t_insert(rawLines, "{fractured}" .. escapeGGGString(modLine))
396+
end
393397
for _, modLine in ipairs(item.explicitMods) do
394398
t_insert(rawLines, escapeGGGString(modLine))
395399
end

0 commit comments

Comments
 (0)