advanced-poe-filter-parser 0.2.4 → 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/.node-version +1 -1
- package/lib/parser.js +1430 -834
- package/package.json +1 -1
- package/src/advanced-poe-filter.pegjs +64 -38
- package/test/parser.test.js +71 -41
package/package.json
CHANGED
|
@@ -83,9 +83,9 @@ commentline = _* '#' [^\n]* br
|
|
|
83
83
|
condition =
|
|
84
84
|
conditionClass
|
|
85
85
|
/ conditionBaseType
|
|
86
|
-
/ conditionProphecy
|
|
87
86
|
/ conditionDropLevel
|
|
88
87
|
/ conditionItemLevel
|
|
88
|
+
/ conditionAreaLevel
|
|
89
89
|
/ conditionGemLevel
|
|
90
90
|
/ conditionGemQualityType
|
|
91
91
|
/ conditionStackSize
|
|
@@ -95,62 +95,86 @@ condition =
|
|
|
95
95
|
/ conditionSockets
|
|
96
96
|
/ conditionSocketGroup
|
|
97
97
|
/ conditionRarity
|
|
98
|
-
/
|
|
99
|
-
/
|
|
98
|
+
/ conditionBaseDefencePercentile
|
|
99
|
+
/ conditionBaseArmour
|
|
100
|
+
/ conditionBaseEnergyShield
|
|
101
|
+
/ conditionBaseEvasion
|
|
102
|
+
/ conditionBaseWard
|
|
100
103
|
/ conditionFracturedItem
|
|
101
104
|
/ conditionSynthesisedItem
|
|
102
105
|
/ conditionCorrupted
|
|
106
|
+
/ conditionMirrored
|
|
103
107
|
/ conditionIdentified
|
|
108
|
+
/ conditionScourged
|
|
104
109
|
/ conditionShapedMap
|
|
105
110
|
/ conditionElderMap
|
|
106
111
|
/ conditionBlightedMap
|
|
112
|
+
/ conditionUberBlightedMap
|
|
107
113
|
/ conditionHeight
|
|
108
114
|
/ conditionWidth
|
|
115
|
+
/ conditionCorruptedMods
|
|
116
|
+
/ conditionEnchantmentPassiveNum
|
|
109
117
|
/ conditionHasExplicitMod
|
|
118
|
+
/ conditionHasEaterOfWorldsImplicit
|
|
119
|
+
/ conditionHasSearingExarchImplicit
|
|
110
120
|
/ conditionAnyEnchantment
|
|
111
121
|
/ conditionHasEnchantment
|
|
112
122
|
/ conditionHasInfluence
|
|
113
123
|
/ conditionEnchantmentPassiveNode
|
|
114
124
|
/ conditionAlternateQuality
|
|
115
125
|
/ conditionReplica
|
|
126
|
+
/ conditionArchnemesisMod
|
|
116
127
|
|
|
117
128
|
// Condition Attributes
|
|
118
|
-
conditionClass
|
|
119
|
-
conditionBaseType
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
conditionGemLevel
|
|
124
|
-
conditionGemQualityType
|
|
125
|
-
conditionStackSize
|
|
126
|
-
conditionMapTier
|
|
127
|
-
conditionQuality
|
|
128
|
-
conditionLinkedSockets
|
|
129
|
-
conditionSockets
|
|
130
|
-
conditionSocketGroup
|
|
131
|
-
conditionRarity
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
129
|
+
conditionClass = attr:'Class' __ val:conditionValueArray { return { lineType: 'condition', attr, val} }
|
|
130
|
+
conditionBaseType = attr:'BaseType' __ val:conditionValueArray { return { lineType: 'condition', attr, val} }
|
|
131
|
+
conditionDropLevel = attr:'DropLevel' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
132
|
+
conditionItemLevel = attr:'ItemLevel' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
133
|
+
conditionAreaLevel = attr:'AreaLevel' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
134
|
+
conditionGemLevel = attr:'GemLevel' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
135
|
+
conditionGemQualityType = attr:'GemQualityType' __ val:conditionValueArray { return { lineType: 'condition', attr, val} }
|
|
136
|
+
conditionStackSize = attr:'StackSize' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
137
|
+
conditionMapTier = attr:'MapTier' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
138
|
+
conditionQuality = attr:'Quality' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
139
|
+
conditionLinkedSockets = attr:'LinkedSockets' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
140
|
+
conditionSockets = attr:'Sockets' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
141
|
+
conditionSocketGroup = attr:'SocketGroup' __ val:conditionValueSocketRGBW { return { lineType: 'condition', attr, val} }
|
|
142
|
+
conditionRarity = attr:'Rarity' __ val:conditionValueRarity { return { lineType: 'condition', attr, val} }
|
|
143
|
+
conditionBaseDefencePercentile = attr:'BaseDefencePercentile' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
144
|
+
conditionBaseArmour = attr:'BaseArmour' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
145
|
+
conditionBaseEnergyShield = attr:'BaseEnergyShield' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
146
|
+
conditionBaseEvasion = attr:'BaseEvasion' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
147
|
+
conditionBaseWard = attr:'BaseWard' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
148
|
+
conditionFracturedItem = attr:'FracturedItem' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
|
|
149
|
+
conditionSynthesisedItem = attr:'SynthesisedItem' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
|
|
150
|
+
conditionCorrupted = attr:'Corrupted' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
|
|
151
|
+
conditionMirrored = attr:'Mirrored' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
|
|
152
|
+
conditionIdentified = attr:'Identified' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
|
|
153
|
+
conditionScourged = attr:'Scourged' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
|
|
154
|
+
conditionShapedMap = attr:'ShapedMap' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
|
|
155
|
+
conditionElderMap = attr:'ElderMap' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
|
|
156
|
+
conditionBlightedMap = attr:'BlightedMap' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
|
|
157
|
+
conditionUberBlightedMap = attr:'UberBlightedMap' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
|
|
158
|
+
conditionHeight = attr:'Height' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
159
|
+
conditionWidth = attr:'Width' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
160
|
+
conditionCorruptedMods = attr:'CorruptedMods' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
161
|
+
conditionEnchantmentPassiveNum = attr:'EnchantmentPassiveNum' __ val:conditionValueNumber { return { lineType: 'condition', attr, val} }
|
|
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} }
|
|
165
|
+
conditionAnyEnchantment = attr:'AnyEnchantment' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
|
|
166
|
+
conditionHasEnchantment = attr:'HasEnchantment' __ val:conditionValueNumericAndArray { return { lineType: 'condition', attr, val} }
|
|
167
|
+
conditionHasInfluence = attr:'HasInfluence' __ val:conditionValueArrayOrNone { return { lineType: 'condition', attr, val} }
|
|
168
|
+
conditionEnchantmentPassiveNode = attr:'EnchantmentPassiveNode' __ val:conditionValueArray { return { lineType: 'condition', attr, val} }
|
|
169
|
+
conditionAlternateQuality = attr:'AlternateQuality' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
|
|
170
|
+
conditionReplica = attr:'Replica' __ val:conditionValueBoolean { return { lineType: 'condition', attr, val} }
|
|
171
|
+
conditionArchnemesisMod = attr:'ArchnemesisMod' __ val:conditionValueArray { return { lineType: 'condition', attr, val} }
|
|
172
|
+
|
|
150
173
|
|
|
151
174
|
// Condition Values
|
|
152
175
|
conditionValueArray = operator:(matchOperator __)? names:names { return operator ? { ope: operator[0], vals: names } : { ope: '=', vals: names } }
|
|
153
176
|
conditionValueArrayOrNone = conditionValueArray / val:'None' { return val ? { ope: undefined, val: 'None' } : { ope, vals } }
|
|
177
|
+
conditionValueNumericAndArray = pre:((numOperator __ num __) / (matchOperator __))? names:names { return pre ? (pre.length === 4 ? { numeric: { ope: pre[0], val: pre[2] }, vals: names } : { ope: pre[0], vals: names } ) : { ope: '=', vals: names } }
|
|
154
178
|
conditionValueNumber = operator:numOperator __ num:num { return `${operator} ${num}` }
|
|
155
179
|
conditionValueSocketRGBW = socketRGBW
|
|
156
180
|
conditionValueRarity = operator:(numOperator __)? rarity:rarity { return operator ? `${operator[0]} ${rarity}` : rarity }
|
|
@@ -167,6 +191,7 @@ action =
|
|
|
167
191
|
/ actionPlayAlertSound
|
|
168
192
|
/ actionPlayAlertSoundPositional
|
|
169
193
|
/ actionDisableDropSound
|
|
194
|
+
/ actionEnableDropSound
|
|
170
195
|
/ actionCustomAlertSound
|
|
171
196
|
/ actionMinimapIcon
|
|
172
197
|
/ actionPlayEffect
|
|
@@ -178,8 +203,9 @@ actionSetBackgroundColor = attr:'SetBackgroundColor' __ val:actionVa
|
|
|
178
203
|
actionSetFontSize = attr:'SetFontSize' __ val:actionValueFontSize { return { lineType: 'action', attr, val } }
|
|
179
204
|
actionPlayAlertSound = attr:'PlayAlertSound' __ val:actionValueSound { return { lineType: 'action', attr, val } }
|
|
180
205
|
actionPlayAlertSoundPositional = attr:'PlayAlertSoundPositional' __ val:actionValueSound { return { lineType: 'action', attr, val } }
|
|
181
|
-
actionDisableDropSound = attr:'DisableDropSound'
|
|
182
|
-
|
|
206
|
+
actionDisableDropSound = attr:'DisableDropSound' { return { lineType: 'action', attr, val: true } }
|
|
207
|
+
actionEnableDropSound = attr:'EnableDropSound' { return { lineType: 'action', attr, val: true } }
|
|
208
|
+
actionCustomAlertSound = attr:'CustomAlertSound' __ val:actionValueCustomSound { return { lineType: 'action', attr, val } }
|
|
183
209
|
actionMinimapIcon = attr:'MinimapIcon' __ val:actionValueMinimapIcon { return { lineType: 'action', attr, val } }
|
|
184
210
|
actionPlayEffect = attr:'PlayEffect' __ val:actionValuePlayEffect { return { lineType: 'action', attr, val } }
|
|
185
211
|
|
|
@@ -220,8 +246,8 @@ actionFunctionMinus = name:'Minus' '(' num:num ')' &{ return 0 <= num && num <=
|
|
|
220
246
|
actionValueColor = color / actionFunctionColor
|
|
221
247
|
actionValueFontSize = fontSize / actionFunctionFontSize
|
|
222
248
|
actionValueSound = id:soundId volume:(__ soundVolume)? { return { id, volume: volume ? parseInt(volume[1], 10) : undefined } }
|
|
249
|
+
actionValueCustomSound = filePath:string volume:(__ soundVolume)? { return { filePath, volume: volume ? parseInt(volume[1], 10) : undefined } }
|
|
223
250
|
actionValueBoolean = boolean
|
|
224
|
-
actionValueFilePath = string
|
|
225
251
|
actionValueMinimapIcon = size:minimapIconSize __ color:minimapIconColor __ shape:minimapIconShape { return { size, color, shape } }
|
|
226
252
|
actionValuePlayEffect = color:playEffectColor temp:(__ 'Temp')? { return temp ? { color, temp: true } : { color, temp: false } }
|
|
227
253
|
|
package/test/parser.test.js
CHANGED
|
@@ -103,9 +103,9 @@ 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
|
|
108
|
+
AreaLevel < 30
|
|
109
109
|
GemLevel = 10
|
|
110
110
|
GemQualityType "Superior"
|
|
111
111
|
StackSize < 11
|
|
@@ -115,20 +115,30 @@ Show "Section1"
|
|
|
115
115
|
Sockets = 5
|
|
116
116
|
SocketGroup RGB
|
|
117
117
|
Rarity = Rare
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
BaseDefencePercentile > 50
|
|
119
|
+
BaseArmour > 40
|
|
120
|
+
BaseEnergyShield > 41
|
|
121
|
+
BaseEvasion > 42
|
|
122
|
+
BaseWard > 43
|
|
120
123
|
FracturedItem False
|
|
121
124
|
SynthesisedItem False
|
|
122
125
|
Corrupted True
|
|
126
|
+
Mirrored True
|
|
123
127
|
Identified True
|
|
128
|
+
Scourged True
|
|
124
129
|
ShapedMap True
|
|
125
130
|
ElderMap True
|
|
126
131
|
BlightedMap True
|
|
132
|
+
UberBlightedMap True
|
|
127
133
|
Height > 1
|
|
128
134
|
Width > 2
|
|
129
|
-
|
|
135
|
+
CorruptedMods >= 1
|
|
136
|
+
EnchantmentPassiveNum > 5
|
|
137
|
+
HasExplicitMod "Foo" "Bar"
|
|
138
|
+
HasEaterOfWorldsImplicit >= 4
|
|
139
|
+
HasSearingExarchImplicit >= 4
|
|
130
140
|
AnyEnchantment True
|
|
131
|
-
HasEnchantment "
|
|
141
|
+
HasEnchantment "Foo" "Bar"
|
|
132
142
|
HasInfluence "Shaper" "Elder"
|
|
133
143
|
EnchantmentPassiveNode "Damage while you have a Herald" "Projectile Damage"
|
|
134
144
|
AlternateQuality True
|
|
@@ -138,25 +148,30 @@ Show "Section1"
|
|
|
138
148
|
SetBackgroundColor 106 107 108
|
|
139
149
|
SetFontSize 30
|
|
140
150
|
PlayAlertSound 16 300
|
|
141
|
-
|
|
142
|
-
CustomAlertSound "C\\foobar\\sound.mp3"
|
|
151
|
+
EnableDropSound
|
|
152
|
+
CustomAlertSound "C\\foobar\\sound.mp3" 300
|
|
143
153
|
MinimapIcon 0 Red Circle
|
|
144
154
|
PlayEffect Red
|
|
155
|
+
ArchnemesisMod "Toxic"
|
|
145
156
|
Show "Section2"
|
|
146
157
|
Class "Life Flasks" "Mana Flasks" "Hybrid Flasks"
|
|
147
158
|
BaseType "Two-Toned Boots" "Spiked Gloves" "Gripped Gloves" "Fingerless Silk Gloves" "Bone Helmet"
|
|
148
|
-
Prophecy "Foo" "Bar"
|
|
149
159
|
SocketGroup W
|
|
150
160
|
Rarity Rare
|
|
151
|
-
HasExplicitMod "
|
|
152
|
-
|
|
161
|
+
HasExplicitMod == "Foo" "Bar"
|
|
162
|
+
HasEnchantment == "Foo" "Bar"
|
|
163
|
+
HasInfluence == "Shaper" "Elder"
|
|
153
164
|
SetBorderColor 100 101 102 200
|
|
154
165
|
SetTextColor 103 104 105 201
|
|
155
166
|
SetBackgroundColor 106 107 108 202
|
|
156
167
|
PlayAlertSound 2
|
|
168
|
+
DisableDropSound
|
|
169
|
+
CustomAlertSound "C\\foobar\\sound.mp3"
|
|
157
170
|
MinimapIcon Medium Red Circle
|
|
158
171
|
PlayEffect Blue Temp
|
|
159
172
|
Show "Section3"
|
|
173
|
+
HasExplicitMod >= 2 "Foo" "Bar"
|
|
174
|
+
HasEnchantment >= 2 "Foo" "Bar"
|
|
160
175
|
HasInfluence None
|
|
161
176
|
SetBorderColor Negate()
|
|
162
177
|
SetTextColor Grayscale()
|
|
@@ -187,9 +202,9 @@ Unset "Section6"
|
|
|
187
202
|
conditions: {
|
|
188
203
|
Class: { ope: '=', vals: ['Maps'] },
|
|
189
204
|
BaseType: { ope: '=', vals: ['Sacrificial Garb'] },
|
|
190
|
-
Prophecy: { ope: '==', vals: ['Foo'] },
|
|
191
205
|
DropLevel: '> 85',
|
|
192
206
|
ItemLevel: '>= 70',
|
|
207
|
+
AreaLevel: '< 30',
|
|
193
208
|
GemLevel: '= 10',
|
|
194
209
|
GemQualityType: { ope: '=', vals: ['Superior'] },
|
|
195
210
|
StackSize: '< 11',
|
|
@@ -199,24 +214,35 @@ Unset "Section6"
|
|
|
199
214
|
Sockets: '= 5',
|
|
200
215
|
SocketGroup: 'RGB',
|
|
201
216
|
Rarity: '= Rare',
|
|
202
|
-
|
|
203
|
-
|
|
217
|
+
BaseDefencePercentile: '> 50',
|
|
218
|
+
BaseArmour: '> 40',
|
|
219
|
+
BaseEnergyShield: '> 41',
|
|
220
|
+
BaseEvasion: '> 42',
|
|
221
|
+
BaseWard: '> 43',
|
|
204
222
|
FracturedItem: false,
|
|
205
223
|
SynthesisedItem: false,
|
|
206
224
|
Corrupted: true,
|
|
225
|
+
Mirrored: true,
|
|
207
226
|
Identified: true,
|
|
227
|
+
Scourged: true,
|
|
208
228
|
ShapedMap: true,
|
|
209
229
|
ElderMap: true,
|
|
210
230
|
BlightedMap: true,
|
|
231
|
+
UberBlightedMap: true,
|
|
211
232
|
Height: '> 1',
|
|
212
233
|
Width: '> 2',
|
|
213
|
-
|
|
234
|
+
CorruptedMods: '>= 1',
|
|
235
|
+
EnchantmentPassiveNum: '> 5',
|
|
236
|
+
HasExplicitMod: { ope: '=', vals: ['Foo', 'Bar'] },
|
|
237
|
+
HasEaterOfWorldsImplicit: '>= 4',
|
|
238
|
+
HasSearingExarchImplicit: '>= 4',
|
|
214
239
|
AnyEnchantment: true,
|
|
215
|
-
HasEnchantment: { ope: '=', vals: ['
|
|
240
|
+
HasEnchantment: { ope: '=', vals: ['Foo', 'Bar'] },
|
|
216
241
|
HasInfluence: { ope: '=', vals: ['Shaper', 'Elder'] },
|
|
217
242
|
EnchantmentPassiveNode: { ope: '=', vals: ['Damage while you have a Herald', 'Projectile Damage'] },
|
|
218
243
|
AlternateQuality: true,
|
|
219
244
|
Replica: true,
|
|
245
|
+
ArchnemesisMod: { ope: '=', vals: ['Toxic'] },
|
|
220
246
|
},
|
|
221
247
|
actions: {
|
|
222
248
|
SetBorderColor: { rgb: { r: 100, g: 101, b: 102 }, alpha: 255 },
|
|
@@ -224,8 +250,8 @@ Unset "Section6"
|
|
|
224
250
|
SetBackgroundColor: { rgb: { r: 106, g: 107, b: 108 }, alpha: 255 },
|
|
225
251
|
SetFontSize: 30,
|
|
226
252
|
PlayAlertSound: { id: '16', volume: 300 },
|
|
227
|
-
|
|
228
|
-
CustomAlertSound: 'C\\foobar\\sound.mp3',
|
|
253
|
+
EnableDropSound: true,
|
|
254
|
+
CustomAlertSound: { filePath: 'C\\foobar\\sound.mp3', volume: 300 },
|
|
229
255
|
MinimapIcon: { size: 'Largest', color: 'Red', shape: 'Circle' },
|
|
230
256
|
PlayEffect: { color: 'Red', temp: false },
|
|
231
257
|
},
|
|
@@ -237,9 +263,9 @@ Unset "Section6"
|
|
|
237
263
|
offset: 0,
|
|
238
264
|
},
|
|
239
265
|
end: {
|
|
240
|
-
line:
|
|
266
|
+
line: 54,
|
|
241
267
|
column: 1,
|
|
242
|
-
offset:
|
|
268
|
+
offset: 1542,
|
|
243
269
|
},
|
|
244
270
|
},
|
|
245
271
|
},
|
|
@@ -250,10 +276,10 @@ Unset "Section6"
|
|
|
250
276
|
conditions: {
|
|
251
277
|
Class: { ope: '=', vals: ['Life Flasks', 'Mana Flasks', 'Hybrid Flasks'] },
|
|
252
278
|
BaseType: { ope: '=', vals: ['Two-Toned Boots', 'Spiked Gloves', 'Gripped Gloves', 'Fingerless Silk Gloves', 'Bone Helmet'] },
|
|
253
|
-
Prophecy: { ope: '=', vals: ['Foo', 'Bar'] },
|
|
254
279
|
SocketGroup: 'W',
|
|
255
280
|
Rarity: 'Rare',
|
|
256
|
-
HasExplicitMod: { ope: '
|
|
281
|
+
HasExplicitMod: { ope: '==', vals: ['Foo', 'Bar'] },
|
|
282
|
+
HasEnchantment: { ope: '==', vals: ['Foo', 'Bar'] },
|
|
257
283
|
HasInfluence: { ope: '==', vals: ['Shaper', 'Elder'] },
|
|
258
284
|
},
|
|
259
285
|
actions: {
|
|
@@ -261,20 +287,22 @@ Unset "Section6"
|
|
|
261
287
|
SetTextColor: { rgb: { r: 103, g: 104, b: 105 }, alpha: 201 },
|
|
262
288
|
SetBackgroundColor: { rgb: { r: 106, g: 107, b: 108 }, alpha: 202 },
|
|
263
289
|
PlayAlertSound: { id: '2', volume: undefined },
|
|
290
|
+
DisableDropSound: true,
|
|
291
|
+
CustomAlertSound: { filePath: 'C\\foobar\\sound.mp3', volume: undefined },
|
|
264
292
|
MinimapIcon: { size: 'Medium', color: 'Red', shape: 'Circle' },
|
|
265
293
|
PlayEffect: { color: 'Blue', temp: true },
|
|
266
294
|
},
|
|
267
295
|
branches: [],
|
|
268
296
|
location: {
|
|
269
297
|
start: {
|
|
270
|
-
line:
|
|
298
|
+
line: 54,
|
|
271
299
|
column: 1,
|
|
272
|
-
offset:
|
|
300
|
+
offset: 1542,
|
|
273
301
|
},
|
|
274
302
|
end: {
|
|
275
|
-
line:
|
|
303
|
+
line: 70,
|
|
276
304
|
column: 1,
|
|
277
|
-
offset:
|
|
305
|
+
offset: 2205,
|
|
278
306
|
},
|
|
279
307
|
},
|
|
280
308
|
},
|
|
@@ -283,6 +311,8 @@ Unset "Section6"
|
|
|
283
311
|
name: 'Section3',
|
|
284
312
|
activity: 'Show',
|
|
285
313
|
conditions: {
|
|
314
|
+
HasExplicitMod: { numeric: { ope: '>=', val: 2 }, vals: ['Foo', 'Bar'] },
|
|
315
|
+
HasEnchantment: { numeric: { ope: '>=', val: 2 }, vals: ['Foo', 'Bar'] },
|
|
286
316
|
HasInfluence: { ope: undefined, val: 'None' },
|
|
287
317
|
},
|
|
288
318
|
actions: {
|
|
@@ -295,14 +325,14 @@ Unset "Section6"
|
|
|
295
325
|
branches: [],
|
|
296
326
|
location: {
|
|
297
327
|
start: {
|
|
298
|
-
line:
|
|
328
|
+
line: 70,
|
|
299
329
|
column: 1,
|
|
300
|
-
offset:
|
|
330
|
+
offset: 2205,
|
|
301
331
|
},
|
|
302
332
|
end: {
|
|
303
|
-
line:
|
|
333
|
+
line: 79,
|
|
304
334
|
column: 1,
|
|
305
|
-
offset:
|
|
335
|
+
offset: 2516,
|
|
306
336
|
},
|
|
307
337
|
},
|
|
308
338
|
},
|
|
@@ -321,14 +351,14 @@ Unset "Section6"
|
|
|
321
351
|
branches: [],
|
|
322
352
|
location: {
|
|
323
353
|
start: {
|
|
324
|
-
line:
|
|
354
|
+
line: 79,
|
|
325
355
|
column: 1,
|
|
326
|
-
offset:
|
|
356
|
+
offset: 2516,
|
|
327
357
|
},
|
|
328
358
|
end: {
|
|
329
|
-
line:
|
|
359
|
+
line: 85,
|
|
330
360
|
column: 1,
|
|
331
|
-
offset:
|
|
361
|
+
offset: 2736,
|
|
332
362
|
},
|
|
333
363
|
},
|
|
334
364
|
},
|
|
@@ -345,14 +375,14 @@ Unset "Section6"
|
|
|
345
375
|
branches: [],
|
|
346
376
|
location: {
|
|
347
377
|
start: {
|
|
348
|
-
line:
|
|
378
|
+
line: 85,
|
|
349
379
|
column: 1,
|
|
350
|
-
offset:
|
|
380
|
+
offset: 2736,
|
|
351
381
|
},
|
|
352
382
|
end: {
|
|
353
|
-
line:
|
|
383
|
+
line: 89,
|
|
354
384
|
column: 1,
|
|
355
|
-
offset:
|
|
385
|
+
offset: 2878,
|
|
356
386
|
},
|
|
357
387
|
},
|
|
358
388
|
},
|
|
@@ -368,14 +398,14 @@ Unset "Section6"
|
|
|
368
398
|
branches: [],
|
|
369
399
|
location: {
|
|
370
400
|
start: {
|
|
371
|
-
line:
|
|
401
|
+
line: 89,
|
|
372
402
|
column: 1,
|
|
373
|
-
offset:
|
|
403
|
+
offset: 2878,
|
|
374
404
|
},
|
|
375
405
|
end: {
|
|
376
|
-
line:
|
|
406
|
+
line: 92,
|
|
377
407
|
column: 1,
|
|
378
|
-
offset:
|
|
408
|
+
offset: 2984,
|
|
379
409
|
},
|
|
380
410
|
},
|
|
381
411
|
},
|