@@ -924,13 +924,17 @@ function TradeQueryGeneratorClass:ExecuteQuery()
924924 if self .calcContext .options .includeScourge then
925925 self :GenerateModWeights (self .modData [" Scourge" ])
926926 end
927- if self .calcContext .options .includeEldritch then
927+ if self .calcContext .options .includeEldritch and
928+ -- skip weights if we need an influenced item as they can produce really
929+ -- bad results due to the filter limit
930+ self .calcContext .options .influence1 == 1 and
931+ self .calcContext .options .influence2 == 1 then
928932 self :GenerateModWeights (self .modData [" Eater" ])
929933 self :GenerateModWeights (self .modData [" Exarch" ])
930934 end
931- if self .calcContext .options .includeSynthesis then
932- self :GenerateModWeights (self .modData [" Synthesis" ])
933- end
935+ -- if self.calcContext.options.includeSynthesis then
936+ -- self:GenerateModWeights(self.modData["Synthesis"])
937+ -- end
934938end
935939
936940function TradeQueryGeneratorClass :addMoreWEMods ()
@@ -1184,7 +1188,7 @@ function TradeQueryGeneratorClass:RequestQuery(slot, context, statWeights, callb
11841188 local isAmuletSlot = slot and slot .slotName == " Amulet"
11851189 local isEldritchModSlot = slot and eldritchModSlots [slot .slotName ] == true
11861190
1187- controls .includeCorrupted = new (" CheckBoxControl" , {" TOP" ,nil ," TOP" }, {- 40 , 30 , 18 }, " Corrupted Mods:" , function (state ) end )
1191+ controls .includeCorrupted = new (" CheckBoxControl" , {" TOP" ,nil ," TOP" }, {- 40 , 30 , 18 }, " Corrupted Mods:" , function (state ) end , " Includes corruption implicit modifiers in the weighted sum. Note that there is a maximum search filter count which means this might cause other weights to not be included. " )
11881192 controls .includeCorrupted .state = not context .slotTbl .alreadyCorrupted and (self .lastIncludeCorrupted == nil or self .lastIncludeCorrupted == true )
11891193 controls .includeCorrupted .enabled = not context .slotTbl .alreadyCorrupted
11901194
@@ -1214,7 +1218,7 @@ function TradeQueryGeneratorClass:RequestQuery(slot, context, statWeights, callb
12141218 if not isJewelSlot and not isAbyssalJewelSlot and includeScourge then
12151219 controls .includeScourge = new (" CheckBoxControl" , {" TOPRIGHT" ,lastItemAnchor ," BOTTOMRIGHT" }, {0 , 5 , 18 }, " Scourge Mods:" , function (state ) end )
12161220 controls .includeScourge .state = (self .lastIncludeScourge == nil or self .lastIncludeScourge == true )
1217- updateLastAnchor (controls .includeScourge )
1221+ updateLastAnchor (controls .includrecteScourge )
12181222 end
12191223
12201224 if isAmuletSlot then
@@ -1223,12 +1227,6 @@ function TradeQueryGeneratorClass:RequestQuery(slot, context, statWeights, callb
12231227 updateLastAnchor (controls .includeTalisman )
12241228 end
12251229
1226- if isEldritchModSlot then
1227- controls .includeEldritch = new (" CheckBoxControl" , {" TOPRIGHT" ,lastItemAnchor ," BOTTOMRIGHT" }, {0 , 5 , 18 }, " Eldritch Mods:" , function (state ) end )
1228- controls .includeEldritch .state = (self .lastIncludeEldritch == true )
1229- updateLastAnchor (controls .includeEldritch )
1230- end
1231-
12321230 if isJewelSlot and context .slotTbl .slotName ~= " Watcher's Eye" then
12331231 controls .jewelType = new (" DropDownControl" , {" TOPLEFT" ,lastItemAnchor ," BOTTOMLEFT" }, {0 , 5 , 100 , 18 }, { " Any" , " Base" , " Abyss" }, function (index , value ) end )
12341232 controls .jewelType .selIndex = self .lastJewelType or 1
@@ -1315,16 +1313,18 @@ function TradeQueryGeneratorClass:RequestQuery(slot, context, statWeights, callb
13151313 main :ClosePopup ()
13161314
13171315 self .tradeTypeIndex = context .controls .tradeTypeSelection .selIndex
1316+ options .includeEldritch = context .controls .eldritchEnchantMode :GetSelValue () == " Include Weights"
1317+ options .useCurrentEnchantsImplicits = context .controls .eldritchEnchantMode :GetSelValue () == " Copy Current"
13181318
13191319 if controls .includeMirrored then
13201320 self .lastIncludeMirrored , options .includeMirrored = controls .includeMirrored .state , controls .includeMirrored .state
13211321 end
13221322 if controls .includeCorrupted then
13231323 self .lastIncludeCorrupted , options .includeCorrupted = controls .includeCorrupted .state , controls .includeCorrupted .state
13241324 end
1325- if controls .includeSynthesis then
1326- self .lastIncludeSynthesis , options .includeSynthesis = controls .includeSynthesis .state , controls .includeSynthesis .state
1327- end
1325+ -- if controls.includeSynthesis then
1326+ -- self.lastIncludeSynthesis, options.includeSynthesis = controls.includeSynthesis.state, controls.includeSynthesis.state
1327+ -- end
13281328 if controls .includeEldritch then
13291329 self .lastIncludeEldritch , options .includeEldritch = controls .includeEldritch .state , controls .includeEldritch .state
13301330 end
0 commit comments