Skip to content

Commit 398735b

Browse files
committed
Work around belt implicit matching
1 parent 6d43d9c commit 398735b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Classes/TradeHelpers.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ end
168168
---@return number? value returned if the mod is an option and uses values. e.g. timeless jewel
169169
function M.findTradeHash(item, modLine, modType, isDesecrated)
170170
local formattedLine = M.formatDatabaseText(modLine)
171+
-- hack for belt implicits not matching. TODO: use stat_descriptions instead, which define what
172+
-- description is the canonical form that is used on the trade site, either by assuming it's the
173+
-- first one, or one with a marker called "canonical_line"
174+
formattedLine = formattedLine:gsub("Has # Charm Slots", "Has # Charm Slot")
171175
-- the data export splits some mods into different parts, even though they
172176
-- are technically just one stat. we handle that here
173177
local isUnique = item.rarity == "UNIQUE" or item.rarity == "RELIC"

0 commit comments

Comments
 (0)