Skip to content

Commit 1ffe032

Browse files
committed
Refactor influence handling in TradeQueryGenerator to use default influence info structure
1 parent b5b5197 commit 1ffe032

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Classes/TradeQueryGenerator.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ local tradeStatCategoryIndices = {
8585
local influenceSuffixes = { "_shaper", "_elder", "_adjudicator", "_basilisk", "_crusader", "_eyrie"}
8686
local influenceDropdownNames = { "None" }
8787
local hasInfluenceModIds = { }
88-
for i, curInfluenceInfo in ipairs(itemLib.influenceInfo) do
88+
for i, curInfluenceInfo in ipairs(itemLib.influenceInfo.default) do
8989
influenceDropdownNames[i + 1] = curInfluenceInfo.display
9090
hasInfluenceModIds[i] = "pseudo.pseudo_has_" .. string.lower(curInfluenceInfo.display) .. "_influence"
9191
end
@@ -810,10 +810,10 @@ function TradeQueryGeneratorClass:StartQuery(slot, options)
810810

811811
-- Apply any requests influences
812812
if options.influence1 > 1 then
813-
testItem[itemLib.influenceInfo[options.influence1 - 1].key] = true
813+
testItem[itemLib.influenceInfo.default[options.influence1 - 1].key] = true
814814
end
815815
if options.influence2 > 1 then
816-
testItem[itemLib.influenceInfo[options.influence2 - 1].key] = true
816+
testItem[itemLib.influenceInfo.default[options.influence2 - 1].key] = true
817817
end
818818

819819
-- Calculate base output with a blank item

0 commit comments

Comments
 (0)