Skip to content

Commit fd61868

Browse files
Wires77Tonkat
authored andcommitted
Export base items (PathOfBuildingCommunity#1235)
* Export base items * Fixup hidden items * Remove Launch.lua debug lines * Fix tests * Bad at math
1 parent cd35a6e commit fd61868

30 files changed

+1586
-1204
lines changed

spec/System/TestItemParse_spec.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
describe("TestItemParse", function()
22
local function raw(s, base)
3-
base = base or "Arcane Robe"
3+
base = base or "Arcane Raiment"
44
return "Rarity: Rare\nName\n"..base.."\n"..s
55
end
66

@@ -243,9 +243,9 @@ describe("TestItemParse", function()
243243
Corrupted
244244
]])
245245
item:BuildAndParseRaw()
246-
assert.are.equals(45, item.requirements.strMod)
247-
assert.are.equals(111, item.requirements.dexMod)
248-
assert.are.equals(71, item.requirements.intMod)
246+
assert.are.equals(35, item.requirements.strMod)
247+
assert.are.equals(86, item.requirements.dexMod)
248+
assert.are.equals(55, item.requirements.intMod)
249249

250250
end)
251251

src/Data/Bases/amulet.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ itemBases["Gold Amulet"] = {
7272
implicitModTypes = { { "drop" }, },
7373
req = { level = 35, },
7474
}
75+
itemBases["Pearlescent Amulet"] = {
76+
type = "Amulet",
77+
tags = { amulet = true, default = true, },
78+
implicit = "+(7-10)% to all Elemental Resistances",
79+
implicitModTypes = { { "elemental", "fire", "cold", "lightning", "resistance" }, },
80+
req = { level = 30, },
81+
}
7582
itemBases["Dusk Amulet"] = {
7683
type = "Amulet",
7784
tags = { amulet = true, default = true, },
@@ -100,3 +107,10 @@ itemBases["Tenebrous Amulet"] = {
100107
implicitModTypes = { { }, { }, },
101108
req = { },
102109
}
110+
itemBases["Distorted Amulet"] = {
111+
type = "Amulet",
112+
tags = { amulet = true, default = true, },
113+
implicit = "-1 Prefix Modifier allowed\n-1 Suffix Modifier allowed",
114+
implicitModTypes = { { }, { }, },
115+
req = { },
116+
}

src/Data/Bases/axe.lua

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ itemBases["Hook Axe"] = {
1919
implicit = "Gain 1 Rage on Hit",
2020
implicitModTypes = { { }, },
2121
weapon = { PhysicalMin = 5, PhysicalMax = 14, CritChanceBase = 5, AttackRateBase = 1.45, Range = 11, },
22-
req = { str = 10, },
22+
req = { str = 9, },
2323
}
2424
itemBases["Bearded Axe"] = {
2525
type = "One Handed Axe",
@@ -28,7 +28,7 @@ itemBases["Bearded Axe"] = {
2828
tags = { axe = true, onehand = true, ezomyte_basetype = true, weapon = true, one_hand_weapon = true, default = true, },
2929
implicitModTypes = { },
3030
weapon = { PhysicalMin = 8, PhysicalMax = 21, CritChanceBase = 5, AttackRateBase = 1.45, Range = 11, },
31-
req = { level = 10, str = 20, dex = 10, },
31+
req = { level = 10, str = 17, dex = 9, },
3232
}
3333
itemBases["Extended Cleaver"] = {
3434
type = "One Handed Axe",
@@ -38,7 +38,7 @@ itemBases["Extended Cleaver"] = {
3838
implicit = "Has no Accuracy Penalty from Range",
3939
implicitModTypes = { { }, },
4040
weapon = { PhysicalMin = 8, PhysicalMax = 25, CritChanceBase = 5, AttackRateBase = 1.5, Range = 11, },
41-
req = { level = 16, str = 30, dex = 14, },
41+
req = { level = 16, str = 25, dex = 12, },
4242
}
4343
itemBases["Bandit Hatchet"] = {
4444
type = "One Handed Axe",
@@ -47,7 +47,7 @@ itemBases["Bandit Hatchet"] = {
4747
tags = { axe = true, onehand = true, maraketh_basetype = true, weapon = true, one_hand_weapon = true, default = true, },
4848
implicitModTypes = { },
4949
weapon = { PhysicalMin = 13, PhysicalMax = 31, CritChanceBase = 5, AttackRateBase = 1.5, Range = 11, },
50-
req = { level = 20, str = 37, dex = 16, },
50+
req = { level = 20, str = 30, dex = 14, },
5151
}
5252
itemBases["Crescent Axe"] = {
5353
type = "One Handed Axe",
@@ -56,7 +56,7 @@ itemBases["Crescent Axe"] = {
5656
tags = { axe = true, onehand = true, maraketh_basetype = true, weapon = true, one_hand_weapon = true, default = true, },
5757
implicitModTypes = { },
5858
weapon = { PhysicalMin = 18, PhysicalMax = 37, CritChanceBase = 6.5, AttackRateBase = 1.4, Range = 11, },
59-
req = { level = 26, str = 48, dex = 20, },
59+
req = { level = 26, str = 38, dex = 17, },
6060
}
6161
itemBases["Carving Hatchet"] = {
6262
type = "One Handed Axe",
@@ -65,7 +65,7 @@ itemBases["Carving Hatchet"] = {
6565
tags = { axe = true, onehand = true, vaal_basetype = true, weapon = true, one_hand_weapon = true, default = true, },
6666
implicitModTypes = { },
6767
weapon = { PhysicalMin = 19, PhysicalMax = 44, CritChanceBase = 5, AttackRateBase = 1.5, Range = 11, },
68-
req = { level = 33, str = 60, dex = 25, },
68+
req = { level = 33, str = 47, dex = 20, },
6969
}
7070
itemBases["Sacrificial Axe"] = {
7171
type = "One Handed Axe",
@@ -75,7 +75,7 @@ itemBases["Sacrificial Axe"] = {
7575
implicit = "Gain (28-35) Mana per Enemy Killed",
7676
implicitModTypes = { { "resource", "mana" }, },
7777
weapon = { PhysicalMin = 20, PhysicalMax = 42, CritChanceBase = 5, AttackRateBase = 1.5, Range = 11, },
78-
req = { level = 37, str = 67, dex = 27, },
78+
req = { level = 37, str = 52, dex = 22, },
7979
}
8080
itemBases["Boarding Hatchet"] = {
8181
type = "One Handed Axe",
@@ -84,7 +84,7 @@ itemBases["Boarding Hatchet"] = {
8484
tags = { axe = true, onehand = true, weapon = true, one_hand_weapon = true, default = true, },
8585
implicitModTypes = { },
8686
weapon = { PhysicalMin = 24, PhysicalMax = 55, CritChanceBase = 5, AttackRateBase = 1.55, Range = 11, },
87-
req = { level = 45, str = 81, dex = 33, },
87+
req = { level = 45, str = 63, dex = 26, },
8888
}
8989
itemBases["Fury Cleaver"] = {
9090
type = "One Handed Axe",
@@ -94,7 +94,7 @@ itemBases["Fury Cleaver"] = {
9494
implicit = "10% increased Damage taken",
9595
implicitModTypes = { { }, },
9696
weapon = { PhysicalMin = 30, PhysicalMax = 62, CritChanceBase = 5, AttackRateBase = 1.55, Range = 11, },
97-
req = { level = 48, str = 86, dex = 35, },
97+
req = { level = 48, str = 67, dex = 27, },
9898
}
9999
itemBases["Battle Axe"] = {
100100
type = "One Handed Axe",
@@ -103,7 +103,7 @@ itemBases["Battle Axe"] = {
103103
tags = { axe = true, onehand = true, weapon = true, one_hand_weapon = true, default = true, },
104104
implicitModTypes = { },
105105
weapon = { PhysicalMin = 28, PhysicalMax = 65, CritChanceBase = 5, AttackRateBase = 1.5, Range = 11, },
106-
req = { level = 52, str = 93, dex = 37, },
106+
req = { level = 52, str = 72, dex = 29, },
107107
}
108108
itemBases["Profane Cleaver"] = {
109109
type = "One Handed Axe",
@@ -112,7 +112,7 @@ itemBases["Profane Cleaver"] = {
112112
tags = { axe = true, onehand = true, weapon = true, one_hand_weapon = true, default = true, },
113113
implicitModTypes = { },
114114
weapon = { PhysicalMin = 26, PhysicalMax = 69, CritChanceBase = 5, AttackRateBase = 1.5, Range = 11, },
115-
req = { level = 54, str = 96, dex = 38, },
115+
req = { level = 54, str = 75, dex = 30, },
116116
}
117117
itemBases["Dread Hatchet"] = {
118118
type = "One Handed Axe",
@@ -121,7 +121,7 @@ itemBases["Dread Hatchet"] = {
121121
tags = { axe = true, onehand = true, weapon = true, one_hand_weapon = true, default = true, },
122122
implicitModTypes = { },
123123
weapon = { PhysicalMin = 34, PhysicalMax = 79, CritChanceBase = 5, AttackRateBase = 1.5, Range = 11, },
124-
req = { level = 65, str = 116, dex = 45, },
124+
req = { level = 65, str = 89, dex = 36, },
125125
}
126126

127127
itemBases["Splitting Greataxe"] = {
@@ -140,7 +140,7 @@ itemBases["Light Halberd"] = {
140140
tags = { axe = true, ezomyte_basetype = true, two_hand_weapon = true, weapon = true, twohand = true, default = true, },
141141
implicitModTypes = { },
142142
weapon = { PhysicalMin = 10, PhysicalMax = 25, CritChanceBase = 5, AttackRateBase = 1.25, Range = 13, },
143-
req = { str = 10, },
143+
req = { str = 9, },
144144
}
145145
itemBases["Executioner Greataxe"] = {
146146
type = "Two Handed Axe",
@@ -150,7 +150,7 @@ itemBases["Executioner Greataxe"] = {
150150
implicit = "Culling Strike",
151151
implicitModTypes = { { }, },
152152
weapon = { PhysicalMin = 10, PhysicalMax = 41, CritChanceBase = 5, AttackRateBase = 1.2, Range = 13, },
153-
req = { level = 10, str = 20, dex = 10, },
153+
req = { level = 10, str = 17, dex = 9, },
154154
}
155155
itemBases["Arched Greataxe"] = {
156156
type = "Two Handed Axe",
@@ -159,7 +159,7 @@ itemBases["Arched Greataxe"] = {
159159
tags = { axe = true, maraketh_basetype = true, two_hand_weapon = true, weapon = true, twohand = true, default = true, },
160160
implicitModTypes = { },
161161
weapon = { PhysicalMin = 17, PhysicalMax = 59, CritChanceBase = 5, AttackRateBase = 1.15, Range = 13, },
162-
req = { level = 16, str = 30, dex = 14, },
162+
req = { level = 16, str = 25, dex = 12, },
163163
}
164164
itemBases["Elegant Glaive"] = {
165165
type = "Two Handed Axe",
@@ -168,7 +168,7 @@ itemBases["Elegant Glaive"] = {
168168
tags = { axe = true, maraketh_basetype = true, two_hand_weapon = true, weapon = true, twohand = true, default = true, },
169169
implicitModTypes = { },
170170
weapon = { PhysicalMin = 19, PhysicalMax = 64, CritChanceBase = 5, AttackRateBase = 1.2, Range = 13, },
171-
req = { level = 20, str = 37, dex = 16, },
171+
req = { level = 20, str = 30, dex = 14, },
172172
}
173173
itemBases["Savage Greataxe"] = {
174174
type = "Two Handed Axe",
@@ -178,7 +178,7 @@ itemBases["Savage Greataxe"] = {
178178
implicit = "Gain (34-43) Life per Enemy Killed",
179179
implicitModTypes = { { "resource", "life" }, },
180180
weapon = { PhysicalMin = 23, PhysicalMax = 70, CritChanceBase = 5, AttackRateBase = 1.2, Range = 13, },
181-
req = { level = 27, str = 50, dex = 21, },
181+
req = { level = 27, str = 39, dex = 17, },
182182
}
183183
itemBases["Rending Halberd"] = {
184184
type = "Two Handed Axe",
@@ -187,7 +187,7 @@ itemBases["Rending Halberd"] = {
187187
tags = { axe = true, vaal_basetype = true, two_hand_weapon = true, weapon = true, twohand = true, default = true, },
188188
implicitModTypes = { },
189189
weapon = { PhysicalMin = 27, PhysicalMax = 91, CritChanceBase = 6.5, AttackRateBase = 1.2, Range = 13, },
190-
req = { level = 33, str = 60, dex = 25, },
190+
req = { level = 33, str = 47, dex = 20, },
191191
}
192192
itemBases["Jagged Greataxe"] = {
193193
type = "Two Handed Axe",
@@ -197,7 +197,7 @@ itemBases["Jagged Greataxe"] = {
197197
implicit = "(15-25)% chance to cause Bleeding on Hit",
198198
implicitModTypes = { { "bleed", "physical", "attack", "ailment" }, },
199199
weapon = { PhysicalMin = 43, PhysicalMax = 99, CritChanceBase = 5, AttackRateBase = 1.15, Range = 13, },
200-
req = { level = 40, str = 72, dex = 29, },
200+
req = { level = 40, str = 56, dex = 23, },
201201
}
202202
itemBases["Reaver Glaive"] = {
203203
type = "Two Handed Axe",
@@ -206,7 +206,7 @@ itemBases["Reaver Glaive"] = {
206206
tags = { axe = true, two_hand_weapon = true, weapon = true, twohand = true, default = true, },
207207
implicitModTypes = { },
208208
weapon = { PhysicalMin = 43, PhysicalMax = 113, CritChanceBase = 5, AttackRateBase = 1.2, Range = 13, },
209-
req = { level = 45, str = 81, dex = 33, },
209+
req = { level = 45, str = 63, dex = 26, },
210210
}
211211
itemBases["Ember Greataxe"] = {
212212
type = "Two Handed Axe",
@@ -215,7 +215,7 @@ itemBases["Ember Greataxe"] = {
215215
tags = { axe = true, two_hand_weapon = true, weapon = true, twohand = true, default = true, },
216216
implicitModTypes = { },
217217
weapon = { FireMin = 58, FireMax = 154, CritChanceBase = 5, AttackRateBase = 1.2, Range = 13, },
218-
req = { level = 50, str = 89, dex = 36, },
218+
req = { level = 50, str = 70, dex = 28, },
219219
}
220220
itemBases["Ceremonial Halberd"] = {
221221
type = "Two Handed Axe",
@@ -225,7 +225,7 @@ itemBases["Ceremonial Halberd"] = {
225225
implicit = "Cannot use Projectile Attacks",
226226
implicitModTypes = { { }, },
227227
weapon = { PhysicalMin = 53, PhysicalMax = 123, CritChanceBase = 5, AttackRateBase = 1.2, Range = 13, },
228-
req = { level = 52, str = 93, dex = 37, },
228+
req = { level = 52, str = 72, dex = 29, },
229229
}
230230
itemBases["Monument Greataxe"] = {
231231
type = "Two Handed Axe",
@@ -234,7 +234,7 @@ itemBases["Monument Greataxe"] = {
234234
tags = { axe = true, two_hand_weapon = true, weapon = true, twohand = true, default = true, },
235235
implicitModTypes = { },
236236
weapon = { PhysicalMin = 48, PhysicalMax = 143, CritChanceBase = 5, AttackRateBase = 1.2, Range = 13, },
237-
req = { level = 57, str = 102, dex = 40, },
237+
req = { level = 57, str = 79, dex = 32, },
238238
}
239239
itemBases["Vile Greataxe"] = {
240240
type = "Two Handed Axe",
@@ -243,5 +243,5 @@ itemBases["Vile Greataxe"] = {
243243
tags = { axe = true, two_hand_weapon = true, weapon = true, twohand = true, default = true, },
244244
implicitModTypes = { },
245245
weapon = { PhysicalMin = 59, PhysicalMax = 155, CritChanceBase = 5, AttackRateBase = 1.2, Range = 13, },
246-
req = { level = 65, str = 116, dex = 45, },
246+
req = { level = 65, str = 89, dex = 36, },
247247
}

0 commit comments

Comments
 (0)