advanced-poe-filter-parser 0.9.10 → 0.9.12
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/lib/parser.cjs +1055 -1015
- package/lib/parser.d.ts +1 -0
- package/lib/parser.mjs +1055 -1015
- package/package.json +1 -1
- package/src/advanced-poe-filter.pegjs +3 -1
package/package.json
CHANGED
|
@@ -90,6 +90,7 @@ condition =
|
|
|
90
90
|
/ conditionTransfiguredGem
|
|
91
91
|
/ conditionStackSize
|
|
92
92
|
/ conditionMapTier
|
|
93
|
+
/ conditionWaystoneTier
|
|
93
94
|
/ conditionQuality
|
|
94
95
|
/ conditionLinkedSockets
|
|
95
96
|
/ conditionSockets
|
|
@@ -136,6 +137,7 @@ conditionGemLevel = attr:'GemLevel' __ val:condition
|
|
|
136
137
|
conditionTransfiguredGem = attr:'TransfiguredGem' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
|
|
137
138
|
conditionStackSize = attr:'StackSize' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
138
139
|
conditionMapTier = attr:'MapTier' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
140
|
+
conditionWaystoneTier = attr:'WaystoneTier' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
139
141
|
conditionQuality = attr:'Quality' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
140
142
|
conditionLinkedSockets = attr:'LinkedSockets' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
141
143
|
conditionSockets = attr:'Sockets' __ val:conditionValueSocketType { return { lineType: 'condition', attr, val} }
|
|
@@ -188,7 +190,7 @@ conditionValueNumericAndArray = pre:((numOperator __ num __) / (matchOperator __
|
|
|
188
190
|
}
|
|
189
191
|
}
|
|
190
192
|
conditionValueNumber = operator:numOperator __ num:num { return { ope: operator, val: num } }
|
|
191
|
-
conditionValueSocketType = operator:(numOperator __)? num:(num)? socketTypes:socketTypes { return operator ? { ope: operator[0], val: `${num ?
|
|
193
|
+
conditionValueSocketType = operator:(numOperator __)? num:(num)? socketTypes:socketTypes { return operator ? { ope: operator[0], val: `${num == undefined ? '' : num}${socketTypes}` } : { ope: '=', val: `${num == undefined ? '' : num}${socketTypes}` } }
|
|
192
194
|
conditionValueRarity = operator:(numOperator __)? rarity:rarity { return operator ? { ope: operator[0], val: rarity } : { ope: '=', val: rarity } }
|
|
193
195
|
conditionValueBoolean = boolean
|
|
194
196
|
conditionValueImplicitModTier = operator:numOperator __ modTier:implicitModTier { return { ope: operator, val: modTier } }
|