Skip to content

Commit 9eecc80

Browse files
QuickStick123LocalIdentity
andauthored
Add Trader support for corrupted enchants, jewels, flasks and runes (#164)
* Flasks, jewels and charms mostly working * Remove exclusive mods and essences from ModItem.lua * WIP start splitting out unique modifers. * Add corrupted mods, there seems to be an issue regarding 0 weight values not being used. * Add runes and special corrupted enchants * Add runes and special corrupted enchants * Revert "Merge branch 'update-trade-2' of https://github.com/QuickStick123/PathOfBuilding-PoE2 into update-trade-2" This reverts commit de88478, reversing changes made to 5626812. * Add the ability to include runes and corrrupted mods. * Readd sign as it missing was breaking stuff. * Remove claw and WIP on removing 0 mods from stuff it shouldn't be on. * Fix 0 mods not being handled correctly. * Fix missing crossbow and premature exit for trade * Disable if not a rune slot --------- Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 3a5b3a0 commit 9eecc80

File tree

11 files changed

+4963
-4336
lines changed

11 files changed

+4963
-4336
lines changed

src/Classes/TradeQuery.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ local m_min = math.min
1616
local m_ceil = math.ceil
1717
local s_format = string.format
1818

19-
local baseSlots = { "Weapon 1", "Weapon 2", "Helmet", "Body Armour", "Gloves", "Boots", "Amulet", "Ring 1", "Ring 2", "Belt", "Flask 1", "Flask 2", "Flask 3", "Flask 4", "Flask 5" }
19+
local baseSlots = { "Weapon 1", "Weapon 2", "Helmet", "Body Armour", "Gloves", "Boots", "Amulet", "Ring 1", "Ring 2", "Belt", "Charm 1", "Charm 2", "Charm 3", "Flask 1", "Flask 2" }
2020

2121
local TradeQueryClass = newClass("TradeQuery", function(self, itemsTab)
2222
self.itemsTab = itemsTab

src/Classes/TradeQueryGenerator.lua

Lines changed: 104 additions & 64 deletions
Large diffs are not rendered by default.

src/Data/ModItem.lua

Lines changed: 0 additions & 3364 deletions
Large diffs are not rendered by default.
File renamed without changes.

src/Data/ModRunes.lua

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -3,103 +3,103 @@
33

44
return {
55
["Soul Core of Tacati"] = {
6-
weapon = { "15% chance to Poison on Hit", statOrder = { 6867 }, },
7-
armour = { "+7% to Chaos Resistance", statOrder = { 953 }, },
6+
weapon = { type = "Rune", "15% chance to Poison on Hit", statOrder = { 6867 }, },
7+
armour = { type = "Rune", "+7% to Chaos Resistance", statOrder = { 953 }, },
88
},
99
["Soul Core of Opiloti"] = {
10-
weapon = { "15% chance to cause Bleeding on Hit", statOrder = { 2156 }, },
11-
armour = { "10% increased Charm Charges gained", statOrder = { 5066 }, },
10+
weapon = { type = "Rune", "15% chance to cause Bleeding on Hit", statOrder = { 2156 }, },
11+
armour = { type = "Rune", "10% increased Charm Charges gained", statOrder = { 5066 }, },
1212
},
1313
["Soul Core of Jiquani"] = {
14-
weapon = { "Recover 2% of Life on Kill", statOrder = { 1443 }, },
15-
armour = { "2% increased maximum Life", statOrder = { 872 }, },
14+
weapon = { type = "Rune", "Recover 2% of Life on Kill", statOrder = { 1443 }, },
15+
armour = { type = "Rune", "2% increased maximum Life", statOrder = { 872 }, },
1616
},
1717
["Soul Core of Zalatl"] = {
18-
weapon = { "Recover 2% of Mana on Kill", statOrder = { 1445 }, },
19-
armour = { "2% increased maximum Mana", statOrder = { 874 }, },
18+
weapon = { type = "Rune", "Recover 2% of Mana on Kill", statOrder = { 1445 }, },
19+
armour = { type = "Rune", "2% increased maximum Mana", statOrder = { 874 }, },
2020
},
2121
["Soul Core of Citaqualotl"] = {
22-
weapon = { "30% increased Elemental Damage with Attacks", statOrder = { 860 }, },
23-
armour = { "+5% to all Elemental Resistances", statOrder = { 949 }, },
22+
weapon = { type = "Rune", "30% increased Elemental Damage with Attacks", statOrder = { 860 }, },
23+
armour = { type = "Rune", "+5% to all Elemental Resistances", statOrder = { 949 }, },
2424
},
2525
["Soul Core of Puhuarte"] = {
26-
weapon = { "30% increased chance to Ignite", statOrder = { 978 }, },
27-
armour = { "+1% to Maximum Fire Resistance", statOrder = { 945 }, },
26+
weapon = { type = "Rune", "30% increased chance to Ignite", statOrder = { 978 }, },
27+
armour = { type = "Rune", "+1% to Maximum Fire Resistance", statOrder = { 945 }, },
2828
},
2929
["Soul Core of Tzamoto"] = {
30-
weapon = { "20% increased Freeze Buildup", statOrder = { 980 }, },
31-
armour = { "+1% to Maximum Cold Resistance", statOrder = { 946 }, },
30+
weapon = { type = "Rune", "20% increased Freeze Buildup", statOrder = { 980 }, },
31+
armour = { type = "Rune", "+1% to Maximum Cold Resistance", statOrder = { 946 }, },
3232
},
3333
["Soul Core of Xopec"] = {
34-
weapon = { "30% increased chance to Shock", statOrder = { 982 }, },
35-
armour = { "+1% to Maximum Lightning Resistance", statOrder = { 947 }, },
34+
weapon = { type = "Rune", "30% increased chance to Shock", statOrder = { 982 }, },
35+
armour = { type = "Rune", "+1% to Maximum Lightning Resistance", statOrder = { 947 }, },
3636
},
3737
["Soul Core of Azcapa"] = {
38-
weapon = { "+15 to Spirit", statOrder = { 876 }, },
39-
armour = { "10% increased Rarity of Items found", statOrder = { 911 }, },
38+
weapon = { type = "Rune", "+15 to Spirit", statOrder = { 876 }, },
39+
armour = { type = "Rune", "10% increased Rarity of Items found", statOrder = { 911 }, },
4040
},
4141
["Soul Core of Topotante"] = {
42-
weapon = { "Attacks with this Weapon Penetrate 15% Elemental Resistances", statOrder = { 3369 }, },
43-
armour = { "15% increased Elemental Ailment Threshold", statOrder = { 4150 }, },
42+
weapon = { type = "Rune", "Attacks with this Weapon Penetrate 15% Elemental Resistances", statOrder = { 3369 }, },
43+
armour = { type = "Rune", "15% increased Elemental Ailment Threshold", statOrder = { 4150 }, },
4444
},
4545
["Soul Core of Quipolatl"] = {
46-
weapon = { "5% increased Attack Speed", statOrder = { 914 }, },
47-
armour = { "10% reduced Slowing Potency of Debuffs on You", statOrder = { 4506 }, },
46+
weapon = { type = "Rune", "5% increased Attack Speed", statOrder = { 914 }, },
47+
armour = { type = "Rune", "10% reduced Slowing Potency of Debuffs on You", statOrder = { 4506 }, },
4848
},
4949
["Soul Core of Ticaba"] = {
50-
weapon = { "+12% to Critical Damage Bonus", statOrder = { 913 }, },
51-
armour = { "Hits against you have 10% reduced Critical Damage Bonus", statOrder = { 942 }, },
50+
weapon = { type = "Rune", "+12% to Critical Damage Bonus", statOrder = { 913 }, },
51+
armour = { type = "Rune", "Hits against you have 10% reduced Critical Damage Bonus", statOrder = { 942 }, },
5252
},
5353
["Soul Core of Atmohua"] = {
54-
weapon = { "Convert 20% of Requirements to Strength", statOrder = { 6872 }, },
55-
armour = { "Convert 20% of Requirements to Strength", statOrder = { 6872 }, },
54+
weapon = { type = "Rune", "Convert 20% of Requirements to Strength", statOrder = { 6872 }, },
55+
armour = { type = "Rune", "Convert 20% of Requirements to Strength", statOrder = { 6872 }, },
5656
},
5757
["Soul Core of Cholotl"] = {
58-
weapon = { "Convert 20% of Requirements to Dexterity", statOrder = { 6870 }, },
59-
armour = { "Convert 20% of Requirements to Dexterity", statOrder = { 6870 }, },
58+
weapon = { type = "Rune", "Convert 20% of Requirements to Dexterity", statOrder = { 6870 }, },
59+
armour = { type = "Rune", "Convert 20% of Requirements to Dexterity", statOrder = { 6870 }, },
6060
},
6161
["Soul Core of Zantipi"] = {
62-
weapon = { "Convert 20% of Requirements to Intelligence", statOrder = { 6871 }, },
63-
armour = { "Convert 20% of Requirements to Intelligence", statOrder = { 6871 }, },
62+
weapon = { type = "Rune", "Convert 20% of Requirements to Intelligence", statOrder = { 6871 }, },
63+
armour = { type = "Rune", "Convert 20% of Requirements to Intelligence", statOrder = { 6871 }, },
6464
},
6565
["Desert Rune"] = {
66-
weapon = { "Adds 7 to 11 Fire Damage", statOrder = { 824 }, },
67-
armour = { "+12% to Fire Resistance", statOrder = { 950 }, },
66+
weapon = { type = "Rune", "Adds 7 to 11 Fire Damage", statOrder = { 824 }, },
67+
armour = { type = "Rune", "+12% to Fire Resistance", statOrder = { 950 }, },
6868
},
6969
["Glacial Rune"] = {
70-
weapon = { "Adds 6 to 10 Cold Damage", statOrder = { 825 }, },
71-
armour = { "+12% to Cold Resistance", statOrder = { 951 }, },
70+
weapon = { type = "Rune", "Adds 6 to 10 Cold Damage", statOrder = { 825 }, },
71+
armour = { type = "Rune", "+12% to Cold Resistance", statOrder = { 951 }, },
7272
},
7373
["Storm Rune"] = {
74-
weapon = { "Adds 1 to 20 Lightning Damage", statOrder = { 826 }, },
75-
armour = { "+12% to Lightning Resistance", statOrder = { 952 }, },
74+
weapon = { type = "Rune", "Adds 1 to 20 Lightning Damage", statOrder = { 826 }, },
75+
armour = { type = "Rune", "+12% to Lightning Resistance", statOrder = { 952 }, },
7676
},
7777
["Iron Rune"] = {
78-
weapon = { "20% increased Physical Damage", statOrder = { 822 }, },
79-
armour = { "20% increased Armour, Evasion and Energy Shield", statOrder = { 1370 }, },
78+
weapon = { type = "Rune", "20% increased Physical Damage", statOrder = { 822 }, },
79+
armour = { type = "Rune", "20% increased Armour, Evasion and Energy Shield", statOrder = { 1370 }, },
8080
},
8181
["Body Rune"] = {
82-
weapon = { "Leeches 3% of Physical Damage as Life", statOrder = { 961 }, },
83-
armour = { "+25 to maximum Life", statOrder = { 871 }, },
82+
weapon = { type = "Rune", "Leeches 3% of Physical Damage as Life", statOrder = { 961 }, },
83+
armour = { type = "Rune", "+25 to maximum Life", statOrder = { 871 }, },
8484
},
8585
["Mind Rune"] = {
86-
weapon = { "Leeches 2% of Physical Damage as Mana", statOrder = { 967 }, },
87-
armour = { "+20 to maximum Mana", statOrder = { 873 }, },
86+
weapon = { type = "Rune", "Leeches 2% of Physical Damage as Mana", statOrder = { 967 }, },
87+
armour = { type = "Rune", "+20 to maximum Mana", statOrder = { 873 }, },
8888
},
8989
["Rebirth Rune"] = {
90-
weapon = { "Gain 20 Life per Enemy Killed", statOrder = { 964 }, },
91-
armour = { "Regenerate 0.3% of Life per second", statOrder = { 1627 }, },
90+
weapon = { type = "Rune", "Gain 20 Life per Enemy Killed", statOrder = { 964 }, },
91+
armour = { type = "Rune", "Regenerate 0.3% of Life per second", statOrder = { 1627 }, },
9292
},
9393
["Inspiration Rune"] = {
94-
weapon = { "Gain 10 Mana per Enemy Killed", statOrder = { 969 }, },
95-
armour = { "15% increased Mana Regeneration Rate", statOrder = { 965 }, },
94+
weapon = { type = "Rune", "Gain 10 Mana per Enemy Killed", statOrder = { 969 }, },
95+
armour = { type = "Rune", "15% increased Mana Regeneration Rate", statOrder = { 965 }, },
9696
},
9797
["Stone Rune"] = {
98-
weapon = { "Causes 25% increased Stun Buildup", statOrder = { 974 }, },
99-
armour = { "+40 to Stun Threshold", statOrder = { 984 }, },
98+
weapon = { type = "Rune", "Causes 25% increased Stun Buildup", statOrder = { 974 }, },
99+
armour = { type = "Rune", "+40 to Stun Threshold", statOrder = { 984 }, },
100100
},
101101
["Vision Rune"] = {
102-
weapon = { "+100 to Accuracy Rating", statOrder = { 827 }, },
103-
armour = { "10% increased Life and Mana Recovery from Flasks", statOrder = { 5906 }, },
102+
weapon = { type = "Rune", "+100 to Accuracy Rating", statOrder = { 827 }, },
103+
armour = { type = "Rune", "10% increased Life and Mana Recovery from Flasks", statOrder = { 5906 }, },
104104
},
105105
}

0 commit comments

Comments
 (0)