@@ -689,10 +689,10 @@ TradeFunc_Main(openSearchInBrowser = false, isAdvancedPriceCheck = false, isAdva
689689 If (s.mods[A_Index ].selected > 0 ) {
690690 modParam := new _ParamMod()
691691
692- If (s.mods[A_Index ].spawntype = " fractured" and s.inlcudeFractured ) {
692+ If (s.mods[A_Index ].spawntype = " fractured" and s.includeFractured ) {
693693 modParam.mod_name := TradeFunc_FindInModGroup(TradeGlobals.Get(" ModsData" )[" fractured" ], s.mods[A_Index ])
694694 }
695-
695+
696696 If (not StrLen (modParam.mod_name)) {
697697 modParam.mod_name := s.mods[A_Index ].param
698698 }
@@ -702,6 +702,19 @@ TradeFunc_Main(openSearchInBrowser = false, isAdvancedPriceCheck = false, isAdva
702702 RequestParams.modGroups[1 ].AddMod(modParam)
703703 }
704704 }
705+ If (s.includeFracturedCount and s.fracturedCount > 0 ) {
706+ modParam := new _ParamMod()
707+ modParam.mod_name := " (pseudo) # Fractured Modifiers" ; TradeFunc_FindInModGroup(TradeGlobals.Get("ModsData")["pseudo"], "# Fractured Modifiers")
708+ /*
709+ _tmpitem := {}
710+ _tmpitem.mods := []
711+ _tmpitem.mods.push({name : "# Fractured Modifiers"})
712+ modParam.mod_name := TradeFunc_GetItemsPoeTradeMods(_tmpitem)
713+ */
714+ modParam.mod_min := s.fracturedCount
715+ modParam.mod_max := s.fracturedCount
716+ RequestParams.modGroups[1 ].AddMod(modParam)
717+ }
705718 Loop % s.stats.Length() {
706719 If (s.stats[A_Index ].selected > 0 ) {
707720 ; defense
@@ -1307,6 +1320,22 @@ TradeFunc_Main(openSearchInBrowser = false, isAdvancedPriceCheck = false, isAdva
13071320 ; Item.UsedInSearch.abyssJewel := 1
13081321 }
13091322 }
1323+
1324+ /*
1325+ prophecies
1326+ */
1327+ If (Item.IsProphecy and RegExMatch (Item.Name , " i)A Master seeks Help" )) {
1328+ _tempItem := {}
1329+ _tempItem.name_orig := " (prophecy) " ItemData.Affixes
1330+ _tempItem.name := " (prophecy) " ItemData.Affixes
1331+ _tempItem.param := " (prophecy) " ItemData.Affixes
1332+
1333+ modParam := new _ParamMod()
1334+ modParam.mod_name := _tempItem.param
1335+ modParam.mod_min :=
1336+ modParam.mod_max :=
1337+ RequestParams.modGroups[1 ].AddMod(modParam)
1338+ }
13101339
13111340 /*
13121341 predicted pricing (poeprices.info - machine learning)
@@ -5101,6 +5130,12 @@ TradeFunc_AdvancedPriceCheckGui(advItem, Stats, Sockets, Links, UniqueStats = ""
51015130
51025131 GuiAddPicture(A_ScriptDir " \resources\images\info-blue.png" , " x+-" 193 " yp+" fracturedImageShift - 1 " w15 h-1 0x0100" , " FracturedInfo" , " FracturedInfoH" , "" , "" , " SelectModsGui" )
51035132 AddToolTip(LblFracturedInfoH, " Includes selected fractured mods with their "" fractured"" porperty`n instead of as normal mods." )
5133+
5134+ GuiAddText(" Fractured mods count" , " x" RightPosText " y+10 right w130 0x0100" , " LblFracturedCount" , " LblFracturedCountH" , "" , "" , " SelectModsGui" )
5135+ Gui , SelectModsGui:Add , CheckBox , x%RightPos% yp + 0 vTradeAdvancedSelectedFracturedCount Checked , % " "
5136+ Gui , SelectModsGui:Add , Edit , x+ 1 yp - 4 w30 vTradeAdvancedFracturedCount ,
5137+ GuiAddPicture(A_ScriptDir " \resources\images\info-blue.png" , " x+-" 193 " yp+" 3 " w15 h-1 0x0100" , " FracturedCount" , " FracturedCountH" , "" , "" , " SelectModsGui" )
5138+ AddToolTip(LblFracturedCountH, " The correct number of fractured mods can't be determined from the item data reliably.`n`nMake sure to check it by pressing "" Alt"" when hovering over your item, `nwhich requires "" Advanced Mod Descriptions"" to be enabled." )
51045139 }
51055140
51065141 If (ModNotFound) {
@@ -5266,6 +5301,8 @@ TradeFunc_ResetGUI() {
52665301 TradeAdvancedSelectedVeiledSuffix :=
52675302 TradeAdvancedVeiledSuffixCount :=
52685303 TradeAdvancedSelectedIncludeFractured :=
5304+ TradeAdvancedSelectedFracturedCount :=
5305+ TradeAdvancedFracturedCount :=
52695306
52705307 TradeGlobals.Set(" AdvancedPriceCheckItem" , {})
52715308}
@@ -5342,7 +5379,9 @@ TradeFunc_HandleGuiSubmit() {
53425379 newItem.veiledPrefixCount := TradeAdvancedVeiledPrefixCount
53435380 newItem.useVeiledSuffix := TradeAdvancedSelectedVeiledSuffix
53445381 newItem.veiledSuffixCount := TradeAdvancedVeiledSuffixCount
5345- newItem.inlcudeFractured := TradeAdvancedSelectedIncludeFractured
5382+ newItem.includeFractured := TradeAdvancedSelectedIncludeFractured
5383+ newItem.includeFracturedCount := TradeAdvancedSelectedFracturedCount
5384+ newItem.fracturedCount := TradeAdvancedFracturedCount
53465385
53475386 TradeGlobals.Set(" AdvancedPriceCheckItem" , newItem)
53485387 Gui , SelectModsGui:Destroy
@@ -5645,7 +5684,7 @@ ReadPoeNinjaCurrencyData:
56455684 fallBackDir := A_ScriptDir . " \data_trade"
56465685 url := " https://poe.ninja/api/Data/GetCurrencyOverview?league=" . league
56475686 parsedJSON := CurrencyDataDownloadURLtoJSON(url, sampleValue, false , isFallback, league, " PoE-TradeMacro" , file, fallBackDir, usedFallback, loggedCurrencyRequestAtStartup, loggedTempLeagueCurrencyRequest, TradeOpts.CurlTimeout)
5648-
5687+
56495688 ; fallback to Standard and Hardcore league if used league seems to not be available
56505689 If (! parsedJSON.currencyDetails.length()) {
56515690 isFallback := true
0 commit comments