advanced-poe-filter-parser 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "advanced-poe-filter-parser",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "keywords": [
5
5
  "path-of-exile",
6
6
  "filter-of-kalandra",
@@ -83,7 +83,6 @@ commentline = _* '#' [^\n]* br
83
83
  condition =
84
84
  conditionClass
85
85
  / conditionBaseType
86
- / conditionProphecy
87
86
  / conditionDropLevel
88
87
  / conditionItemLevel
89
88
  / conditionAreaLevel
@@ -101,8 +100,6 @@ condition =
101
100
  / conditionBaseEnergyShield
102
101
  / conditionBaseEvasion
103
102
  / conditionBaseWard
104
- / conditionShaperItem
105
- / conditionElderItem
106
103
  / conditionFracturedItem
107
104
  / conditionSynthesisedItem
108
105
  / conditionCorrupted
@@ -118,17 +115,19 @@ condition =
118
115
  / conditionCorruptedMods
119
116
  / conditionEnchantmentPassiveNum
120
117
  / conditionHasExplicitMod
118
+ / conditionHasEaterOfWorldsImplicit
119
+ / conditionHasSearingExarchImplicit
121
120
  / conditionAnyEnchantment
122
121
  / conditionHasEnchantment
123
122
  / conditionHasInfluence
124
123
  / conditionEnchantmentPassiveNode
125
124
  / conditionAlternateQuality
126
125
  / conditionReplica
126
+ / conditionArchnemesisMod
127
127
 
128
128
  // Condition Attributes
129
129
  conditionClass = attr:'Class' __ val:conditionValueArray { return { lineType: 'condition', attr, val} }
130
130
  conditionBaseType = attr:'BaseType' __ val:conditionValueArray { return { lineType: 'condition', attr, val} }
131
- conditionProphecy = attr:'Prophecy' __ val:conditionValueArray { return { lineType: 'condition', attr, val} }
132
131
  conditionDropLevel = attr:'DropLevel' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
133
132
  conditionItemLevel = attr:'ItemLevel' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
134
133
  conditionAreaLevel = attr:'AreaLevel' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
@@ -146,8 +145,6 @@ conditionBaseArmour = attr:'BaseArmour' __ val:condition
146
145
  conditionBaseEnergyShield = attr:'BaseEnergyShield' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
147
146
  conditionBaseEvasion = attr:'BaseEvasion' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
148
147
  conditionBaseWard = attr:'BaseWard' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
149
- conditionShaperItem = attr:'ShaperItem' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
150
- conditionElderItem = attr:'ElderItem' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
151
148
  conditionFracturedItem = attr:'FracturedItem' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
152
149
  conditionSynthesisedItem = attr:'SynthesisedItem' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
153
150
  conditionCorrupted = attr:'Corrupted' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
@@ -163,12 +160,16 @@ conditionWidth = attr:'Width' __ val:condition
163
160
  conditionCorruptedMods = attr:'CorruptedMods' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
164
161
  conditionEnchantmentPassiveNum = attr:'EnchantmentPassiveNum' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
165
162
  conditionHasExplicitMod = attr:'HasExplicitMod' __ val:conditionValueNumericAndArray { return { lineType: 'condition', attr, val} }
163
+ conditionHasEaterOfWorldsImplicit = attr:'HasEaterOfWorldsImplicit' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
164
+ conditionHasSearingExarchImplicit = attr:'HasSearingExarchImplicit' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
166
165
  conditionAnyEnchantment = attr:'AnyEnchantment' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
167
166
  conditionHasEnchantment = attr:'HasEnchantment' __ val:conditionValueNumericAndArray { return { lineType: 'condition', attr, val} }
168
167
  conditionHasInfluence = attr:'HasInfluence' __ val:conditionValueArrayOrNone { return { lineType: 'condition', attr, val} }
169
168
  conditionEnchantmentPassiveNode = attr:'EnchantmentPassiveNode' __ val:conditionValueArray { return { lineType: 'condition', attr, val} }
170
169
  conditionAlternateQuality = attr:'AlternateQuality' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
171
170
  conditionReplica = attr:'Replica' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
171
+ conditionArchnemesisMod = attr:'ArchnemesisMod' __ val:conditionValueArray { return { lineType: 'condition', attr, val} }
172
+
172
173
 
173
174
  // Condition Values
174
175
  conditionValueArray = operator:(matchOperator __)? names:names { return operator ? { ope: operator[0], vals: names } : { ope: '=', vals: names } }
@@ -103,7 +103,6 @@ test('parse : all actions and conditions', (t) => {
103
103
  Show "Section1"
104
104
  Class "Maps"
105
105
  BaseType "Sacrificial Garb"
106
- Prophecy == "Foo"
107
106
  DropLevel > 85
108
107
  ItemLevel >= 70
109
108
  AreaLevel < 30
@@ -121,8 +120,6 @@ Show "Section1"
121
120
  BaseEnergyShield > 41
122
121
  BaseEvasion > 42
123
122
  BaseWard > 43
124
- ShaperItem True
125
- ElderItem False
126
123
  FracturedItem False
127
124
  SynthesisedItem False
128
125
  Corrupted True
@@ -138,6 +135,8 @@ Show "Section1"
138
135
  CorruptedMods >= 1
139
136
  EnchantmentPassiveNum > 5
140
137
  HasExplicitMod "Foo" "Bar"
138
+ HasEaterOfWorldsImplicit >= 4
139
+ HasSearingExarchImplicit >= 4
141
140
  AnyEnchantment True
142
141
  HasEnchantment "Foo" "Bar"
143
142
  HasInfluence "Shaper" "Elder"
@@ -153,10 +152,10 @@ Show "Section1"
153
152
  CustomAlertSound "C\\foobar\\sound.mp3" 300
154
153
  MinimapIcon 0 Red Circle
155
154
  PlayEffect Red
155
+ ArchnemesisMod "Toxic"
156
156
  Show "Section2"
157
157
  Class "Life Flasks" "Mana Flasks" "Hybrid Flasks"
158
158
  BaseType "Two-Toned Boots" "Spiked Gloves" "Gripped Gloves" "Fingerless Silk Gloves" "Bone Helmet"
159
- Prophecy "Foo" "Bar"
160
159
  SocketGroup W
161
160
  Rarity Rare
162
161
  HasExplicitMod == "Foo" "Bar"
@@ -203,7 +202,6 @@ Unset "Section6"
203
202
  conditions: {
204
203
  Class: { ope: '=', vals: ['Maps'] },
205
204
  BaseType: { ope: '=', vals: ['Sacrificial Garb'] },
206
- Prophecy: { ope: '==', vals: ['Foo'] },
207
205
  DropLevel: '> 85',
208
206
  ItemLevel: '>= 70',
209
207
  AreaLevel: '< 30',
@@ -221,8 +219,6 @@ Unset "Section6"
221
219
  BaseEnergyShield: '> 41',
222
220
  BaseEvasion: '> 42',
223
221
  BaseWard: '> 43',
224
- ShaperItem: true,
225
- ElderItem: false,
226
222
  FracturedItem: false,
227
223
  SynthesisedItem: false,
228
224
  Corrupted: true,
@@ -238,12 +234,15 @@ Unset "Section6"
238
234
  CorruptedMods: '>= 1',
239
235
  EnchantmentPassiveNum: '> 5',
240
236
  HasExplicitMod: { ope: '=', vals: ['Foo', 'Bar'] },
237
+ HasEaterOfWorldsImplicit: '>= 4',
238
+ HasSearingExarchImplicit: '>= 4',
241
239
  AnyEnchantment: true,
242
240
  HasEnchantment: { ope: '=', vals: ['Foo', 'Bar'] },
243
241
  HasInfluence: { ope: '=', vals: ['Shaper', 'Elder'] },
244
242
  EnchantmentPassiveNode: { ope: '=', vals: ['Damage while you have a Herald', 'Projectile Damage'] },
245
243
  AlternateQuality: true,
246
244
  Replica: true,
245
+ ArchnemesisMod: { ope: '=', vals: ['Toxic'] },
247
246
  },
248
247
  actions: {
249
248
  SetBorderColor: { rgb: { r: 100, g: 101, b: 102 }, alpha: 255 },
@@ -266,7 +265,7 @@ Unset "Section6"
266
265
  end: {
267
266
  line: 54,
268
267
  column: 1,
269
- offset: 1514,
268
+ offset: 1542,
270
269
  },
271
270
  },
272
271
  },
@@ -277,7 +276,6 @@ Unset "Section6"
277
276
  conditions: {
278
277
  Class: { ope: '=', vals: ['Life Flasks', 'Mana Flasks', 'Hybrid Flasks'] },
279
278
  BaseType: { ope: '=', vals: ['Two-Toned Boots', 'Spiked Gloves', 'Gripped Gloves', 'Fingerless Silk Gloves', 'Bone Helmet'] },
280
- Prophecy: { ope: '=', vals: ['Foo', 'Bar'] },
281
279
  SocketGroup: 'W',
282
280
  Rarity: 'Rare',
283
281
  HasExplicitMod: { ope: '==', vals: ['Foo', 'Bar'] },
@@ -299,12 +297,12 @@ Unset "Section6"
299
297
  start: {
300
298
  line: 54,
301
299
  column: 1,
302
- offset: 1514,
300
+ offset: 1542,
303
301
  },
304
302
  end: {
305
- line: 71,
303
+ line: 70,
306
304
  column: 1,
307
- offset: 2208,
305
+ offset: 2205,
308
306
  },
309
307
  },
310
308
  },
@@ -327,14 +325,14 @@ Unset "Section6"
327
325
  branches: [],
328
326
  location: {
329
327
  start: {
330
- line: 71,
328
+ line: 70,
331
329
  column: 1,
332
- offset: 2208,
330
+ offset: 2205,
333
331
  },
334
332
  end: {
335
- line: 80,
333
+ line: 79,
336
334
  column: 1,
337
- offset: 2519,
335
+ offset: 2516,
338
336
  },
339
337
  },
340
338
  },
@@ -353,14 +351,14 @@ Unset "Section6"
353
351
  branches: [],
354
352
  location: {
355
353
  start: {
356
- line: 80,
354
+ line: 79,
357
355
  column: 1,
358
- offset: 2519,
356
+ offset: 2516,
359
357
  },
360
358
  end: {
361
- line: 86,
359
+ line: 85,
362
360
  column: 1,
363
- offset: 2739,
361
+ offset: 2736,
364
362
  },
365
363
  },
366
364
  },
@@ -377,14 +375,14 @@ Unset "Section6"
377
375
  branches: [],
378
376
  location: {
379
377
  start: {
380
- line: 86,
378
+ line: 85,
381
379
  column: 1,
382
- offset: 2739,
380
+ offset: 2736,
383
381
  },
384
382
  end: {
385
- line: 90,
383
+ line: 89,
386
384
  column: 1,
387
- offset: 2881,
385
+ offset: 2878,
388
386
  },
389
387
  },
390
388
  },
@@ -400,14 +398,14 @@ Unset "Section6"
400
398
  branches: [],
401
399
  location: {
402
400
  start: {
403
- line: 90,
401
+ line: 89,
404
402
  column: 1,
405
- offset: 2881,
403
+ offset: 2878,
406
404
  },
407
405
  end: {
408
- line: 93,
406
+ line: 92,
409
407
  column: 1,
410
- offset: 2987,
408
+ offset: 2984,
411
409
  },
412
410
  },
413
411
  },