Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* valuables: step1: enhance syntax #1

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
42 changes: 41 additions & 1 deletion POE-ItemInfo.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -4698,6 +4698,23 @@ UniqueIsValuable(ItemName)
return False
}

UniqueIsWorthless(ItemName)
{
Loop, Read, %A_ScriptDir%\data\WorthlessUniques.txt
{
Line := StripLineCommentRight(A_LoopReadLine)
If (SkipLine(Line))
{
Continue
}
IfInString, ItemName, %Line%
{
return True
}
}
return False
}

GemIsDropOnly(ItemName)
{
Loop, Read, %A_ScriptDir%\data\DropOnlyGems.txt
Expand Down Expand Up @@ -5367,10 +5384,25 @@ ParseItemData(ItemDataText, ByRef RarityLevel="")
TT = %TT%`n--------`nUnidentified
}

If ((Item.IsUnique and (Opts.ShowUniqueEvaluation == 1) and UniqueIsValuable(Item.Name)) or (Opts.MarkHighLinksAsValuable == 1 and (Item.IsUnique or Item.IsRare) and ItemData.Links >= 5))
If (Opts.MarkHighLinksAsValuable == 1 and (Item.IsUnique or Item.IsRare) and ItemData.Links >= 5)
{
TT = %TT%`n--------`nValuable
}
If (Item.IsUnique and (Opts.ShowUniqueEvaluation == 1))
{
If UniqueIsValuable(Item.Name)
{
TT = %TT%`n--------`nValuable
}
Else If UniqueIsWorthless(Item.Name)
{
TT = %TT%`n--------`nWorthless
}
Else
{
TT = %TT%`n--------`nValue not listed
}
}

If (Item.IsMirrored)
{
Expand Down Expand Up @@ -6487,3 +6519,11 @@ UnhandledDlg_OK:
return

; ############ ADD YOUR OWN MACROS HERE #############

#IfWinActive Path of Exile
SendMode Input
{
F2::Send {enter}/oos{enter}
F3::Send {enter}/remaining{enter}
F4::Send {enter}/itemlevel{enter}
}
9 changes: 8 additions & 1 deletion data/ValuableGems.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,11 @@ Reduced Duration
Reduced Mana
Slower Projectiles
Spell Totem
Temporal Chains
Temporal Chains
Vaal Cyclone
Vaal Discipline
Vaal Grace
Vaal Haste
Vaal Immortal Call
Vaal Molten Shell
Vaal Spark
4 changes: 3 additions & 1 deletion data/ValuableUniques.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Bino's Kitchen Knife
Bloodseeker
Carcass Jack
Carnage Heart
Cloak of Defiance
Crown of Eyes
Daresso's Defiance
Death Rush
Expand All @@ -39,6 +40,7 @@ Marylene's Fallacy
Meginord's Girdle
Midnight Bargain
Ming's Heart
Mj�lner
Mon'tregul's Grasp
Olmec's Sanctum
Oro's Sacrifice
Expand Down Expand Up @@ -78,4 +80,4 @@ Voll's Devotion
Voltaxic Rift
Wheel of the Stormsail
Windscream
Wings of Entropy
Wings of Entropy
60 changes: 60 additions & 0 deletions data/WorthlessUniques.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
; One exact item name per line.
; Line comments with semicolon. Blank lines will be ignored.
;
; Items are considered 'worthless' if there are more than 99 offers at poegoods for 1 chaos or less in standard.
; This may of course be different in leagues and races or as new builds become popular.
; Vendor pizes as comment on each line.
;
Al Dhih ; 10 Alt shards
Ambu's Charge
Foxshade
Chalice of Horrors ; 4 Alt shards + 9 Alch shards
Reverberation Rod ; 11 Alch shards
Nomic's Storm ; 11 Alt shards + 10 Alch shards
Wanderlust ; 10 Alt shards + 6 Alch shards
Gang's Momentum ; 11 Alt shards + 16 Alch shards
The Blood Dance ; 6 Alt shards + 4 Alch shards
Chernobog's Pillar ; 6 Alt shards + 6 Alch shards
Doomfletch ; 6 Alt shards + 10 Alch shards
Limbsplit ; 14 Alt shards + 12 Alch shards
Doedre's Tenure ; 8 Alt shards
Goldwyrm ; 5 Alt shards + 2 Alch shards
Veil of the Night ; 8 Alch shards
Soul Mantle ; 11 Alt shards + 3 Alch shards
The Peregrine ; 12 Alt shards + 2 Alch shards
Shackles of the Wretched ; 8 Alt shards + 4 Alch shards
The Magnate ; 8 Alt shards
Sentari's Answer ; 2 Alt shards + 6 Alch shards
Hrimnor's Resolve ; 7 Alt shards
Fencoil ; 4 Alt shards + 7 Alch shards
Sibyl's Lament ; 1 Alt shards + 3 Alch shards
Infernal Mantle ; 10 Alt shards + 1 Alch shards
Mindspiral ; 12 Alch shards
Asenath's Mark ; 12 Alt shards
Matua Tupuna ; 4 Alt shards + 19 Alch shards
Terminus Est ; 16 Alt shards + 6 Alch shards
Last Resort ; 8 Alt shards
Asphyxia's Wrath ; 8 Alt shards + 9 Alch shards
Dusktoe ; 12 Alt shards + 4 Alch shards
Araku Tiki ; 5 Alt shards + 12 Alch shards
The Ignomon ; 11 Alt shards
Bloodboil ; 8 Alt shards + 10 Alch shards
Kaom's Sign ; 8 Alt shards + 3 Alch shards
Wideswing ; 7 Alt shards + 2 Alch shards
Bones of Ullr ; 12 Alt shards + 6 Alch shards
Icetomb ; 10 Alt shards
Voll's Protector ; 4 Alt shards + 3 Alch shards
Springleaf ; 4 Alt shards + 12 Alch shards
Sin Trek ; 15 Alt shards + 6 Alch shards
Sadima's Touch ; 10 Alt shards + 2 Alch shards
Leer Cast ; 6 Alt shards + 6 Alch shards
Ezomyte Peak ; 8 Alt shards
Ondar's Clasp ; 7 Alt shards
The Blood Thorn ; 8 Alt shards + 3 Alch shards
Rigvald's Charge ; 15 Alt shards
Daresso's Courage ; 13 Alt shards + 6 Alch shards
Sundance ; 17 Alt shards + 2 Alch shards
Ungil's Gauche ; 1 Alt shards + 6 Alch shards
Goldrim ; 8 Alt shards + 4 Alch shards
Prismatic Eclipse ; 4 Alt shards + 14 Alch shards
Deidbell ; 8 Alt shards