You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Watcher's eye trade search
* Improvements per comments
- move find button to separate slot instead of using exisitng jewel sockets
- use exisitng Watcher's Eye slot(if available) for usage in weight calculations with test item
- added option to include rest of applicable mods from Watcher's Eye mod pool that have weight 0 in final query
* fix merge mistake
* remove debugger setup -.-
* Fix getting unweighted mods
* Actually include corrupted mods
* fix checkboxcontrol for watchers eye
* show tooltips for watcher's eye search. either against all jewels or against an equipped eye
* remove mirrored button from eye and megalomaniac search because it is useless
* fix valid slot for watcher's eye
* Move mods to correct places
Moves the mods to their correct areas in ModParser
Removes parsing for mods that we do not currently support calcs for
* Fix crash when opening trader with empty jewel socket
* Fix skill name parsing
---------
Co-authored-by: Borna Ivankovic <borna.ivankovic92@gmail.com>
Co-authored-by: LocalIdentity <localidentity2@gmail.com>
localeffective_row_count=row_count- ((scrollBarShownand#slotTables>=19) and#slotTables-19or0) +2+2-- Two top menu rows, two bottom rows, slots after #19 overlap the other controls at the bottom of the pane
491
499
self.effective_rows_height=row_height* (effective_row_count-#slotTables+ (18- (#slotTables>37and3or0))) -- scrollBar height, "18 - slotTables > 37" logic is fine tuning whitespace after last row
@@ -870,12 +878,38 @@ function TradeQueryClass:addChaosEquivalentPriceToItems(items)
870
878
returnoutputItems
871
879
end
872
880
881
+
-- return valid slot for Watcher's Eye
882
+
-- Tries to first return an existing watcher's eye slot if possible
-- Base item implicit mods. A lot of this code is duplicated from generateModData(), but with important small logical flow changes to handle the format differences
468
481
localsubTypeState= { }
469
482
localfunctionupdateRangeSubType(range, entry)
@@ -727,6 +740,28 @@ function TradeQueryGeneratorClass:StartQuery(slot, options)
727
740
calcNodesInsteadOfMods=true,
728
741
}
729
742
end
743
+
ifoptions.special.itemName=="Watcher's Eye" then
744
+
special={
745
+
queryExtra= {
746
+
name="Watcher's Eye"
747
+
},
748
+
queryFilters= {
749
+
type_filters= {
750
+
filters= {
751
+
category= {
752
+
option="jewel"
753
+
},
754
+
rarity= {
755
+
option="unique"
756
+
}
757
+
}
758
+
}
759
+
},
760
+
watchersEye=true
761
+
}
762
+
itemCategory="AnyJewel"
763
+
itemCategoryQueryStr="jewel"
764
+
end
730
765
elseifslot.slotName:find("^Weapon %d") then
731
766
ifexistingItemthen
732
767
ifexistingItem.type=="Shield" then
@@ -874,6 +909,13 @@ function TradeQueryGeneratorClass:ExecuteQuery()
0 commit comments