Skip to content

Commit

Permalink
first try at fixing trademacro for ultimatum league#
Browse files Browse the repository at this point in the history
  • Loading branch information
froks committed Apr 18, 2021
1 parent eb20d12 commit 3e2641c
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions resources/ahk/POE-ItemInfo.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -7365,24 +7365,12 @@ ParseItemName(ItemDataChunk, ByRef ItemName, ByRef ItemBaseName, AffixCount = ""

Loop, Parse, ItemDataChunk, `n, `r
{
If (A_Index == 1)
{
IfNotInString, A_LoopField, Rarity:
{
return
}
Else
{
Continue
}
}

If (StrLen(A_LoopField) == 0 or A_LoopField == "--------" or A_Index > 3)
{
return
}

If (A_Index = 2)
If (A_Index = 1)
{
If InStr(A_LoopField, ">>")
{
Expand Down Expand Up @@ -7433,6 +7421,17 @@ ParseItemName(ItemDataChunk, ByRef ItemName, ByRef ItemBaseName, AffixCount = ""
}
}
}
If (A_Index == 2)
{
IfNotInString, A_LoopField, Rarity:
{
return
}
Else
{
Continue
}
}
If (A_Index = 3)
{
ItemBaseName := A_LoopField
Expand Down

0 comments on commit 3e2641c

Please sign in to comment.