@@ -151,12 +151,12 @@ class CelesteSplitter {
151
151
if new. chapterStarted && !old. chapterStarted && !new. chapterComplete {
152
152
var event = Event (
153
153
. normal( " enter chapter " , specificity: 0 ) ,
154
- . normal( " enter chapter \( new. chapter) " , specificity: 0 )
154
+ . normal( " enter chapter \( new. chapter) " , specificity: 1 )
155
155
)
156
156
switch new. mode {
157
- case . Normal: event. add ( variant: . normal( " enter a-side \( new. chapter) " , specificity: 0 ) )
158
- case . BSide: event. add ( variant: . normal( " enter b-side \( new. chapter) " , specificity: 0 ) )
159
- case . CSide: event. add ( variant: . normal( " enter c-side \( new. chapter) " , specificity: 0 ) )
157
+ case . Normal: event. add ( variant: . normal( " enter a-side \( new. chapter) " , specificity: 2 ) )
158
+ case . BSide: event. add ( variant: . normal( " enter b-side \( new. chapter) " , specificity: 2 ) )
159
+ case . CSide: event. add ( variant: . normal( " enter c-side \( new. chapter) " , specificity: 2 ) )
160
160
default : break
161
161
}
162
162
@@ -175,12 +175,12 @@ class CelesteSplitter {
175
175
if !new. chapterStarted && old. chapterStarted && !old. chapterComplete {
176
176
var event : Event = Event (
177
177
. normal( " leave chapter " , specificity: 0 ) ,
178
- . normal( " leave chapter \( old. chapter) " , specificity: 0 )
178
+ . normal( " leave chapter \( old. chapter) " , specificity: 1 )
179
179
)
180
180
switch new. mode {
181
- case . Normal: event. add ( variant: . normal( " leave a-side \( old. chapter) " , specificity: 0 ) )
182
- case . BSide: event. add ( variant: . normal( " leave b-side \( old. chapter) " , specificity: 0 ) )
183
- case . CSide: event. add ( variant: . normal( " leave c-side \( old. chapter) " , specificity: 0 ) )
181
+ case . Normal: event. add ( variant: . normal( " leave a-side \( old. chapter) " , specificity: 2 ) )
182
+ case . BSide: event. add ( variant: . normal( " leave b-side \( old. chapter) " , specificity: 2 ) )
183
+ case . CSide: event. add ( variant: . normal( " leave c-side \( old. chapter) " , specificity: 2 ) )
184
184
default : break
185
185
}
186
186
@@ -196,12 +196,12 @@ class CelesteSplitter {
196
196
if new. chapterComplete && !old. chapterComplete {
197
197
var event : Event = Event (
198
198
. normal( " complete chapter " , specificity: 0 ) ,
199
- . normal( " complete chapter \( old. chapter) " , specificity: 0 )
199
+ . normal( " complete chapter \( old. chapter) " , specificity: 1 )
200
200
)
201
201
switch new. mode {
202
- case . Normal: event. add ( variant: . normal( " complete a-side \( old. chapter) " , specificity: 0 ) )
203
- case . BSide: event. add ( variant: . normal( " complete b-side \( old. chapter) " , specificity: 0 ) )
204
- case . CSide: event. add ( variant: . normal( " complete c-side \( old. chapter) " , specificity: 0 ) )
202
+ case . Normal: event. add ( variant: . normal( " complete a-side \( old. chapter) " , specificity: 2 ) )
203
+ case . BSide: event. add ( variant: . normal( " complete b-side \( old. chapter) " , specificity: 2 ) )
204
+ case . CSide: event. add ( variant: . normal( " complete c-side \( old. chapter) " , specificity: 2 ) )
205
205
default : break
206
206
}
207
207
events. append ( event)
@@ -213,8 +213,8 @@ class CelesteSplitter {
213
213
if new. chapterCassette && !old. chapterCassette {
214
214
events. append ( Event (
215
215
. normal( " collect cassette " , specificity: 0 ) ,
216
- . normal( " collect chapter \( new. chapter) cassette " , specificity: 0 ) ,
217
- . normal( " \( new. fileCassettes) total cassettes " , specificity: 0 ) ,
216
+ . normal( " collect chapter \( new. chapter) cassette " , specificity: 1 ) ,
217
+ . normal( " \( new. fileCassettes) total cassettes " , specificity: 1 ) ,
218
218
// compat:
219
219
. legacy( " cassette " ) ,
220
220
. legacy( " chapter \( new. chapter) cassette " )
@@ -223,8 +223,8 @@ class CelesteSplitter {
223
223
if new. chapterHeart && !old. chapterHeart {
224
224
events. append ( Event (
225
225
. normal( " collect heart " , specificity: 0 ) ,
226
- . normal( " collect chapter \( new. chapter) heart " , specificity: 0 ) ,
227
- . normal( " \( new. fileHearts) total hearts " , specificity: 0 ) ,
226
+ . normal( " collect chapter \( new. chapter) heart " , specificity: 1 ) ,
227
+ . normal( " \( new. fileHearts) total hearts " , specificity: 1 ) ,
228
228
// compat:
229
229
. legacy( " heart " ) ,
230
230
. legacy( " chapter \( new. chapter) heart " )
@@ -233,8 +233,8 @@ class CelesteSplitter {
233
233
if new. chapterStrawberries > old. chapterStrawberries {
234
234
events. append ( Event (
235
235
. normal( " collect strawberry " , specificity: 0 ) ,
236
- . normal( " \( new. chapterStrawberries) chapter strawberries " , specificity: 0 ) ,
237
- . normal( " \( new. fileStrawberries) file strawberries " , specificity: 0 ) ,
236
+ . normal( " \( new. chapterStrawberries) chapter strawberries " , specificity: 1 ) ,
237
+ . normal( " \( new. fileStrawberries) file strawberries " , specificity: 1 ) ,
238
238
// compat:
239
239
. legacy( " strawberry " )
240
240
) )
0 commit comments