File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ struct Event {
2222 mutating func add( variant: String ) {
2323 self . variants. insert ( variant)
2424 }
25+ mutating func add( variants: String ... ) {
26+ for variant in variants {
27+ self . variants. insert ( variant)
28+ }
29+ }
2530}
2631
2732extension Event : ExpressibleByArrayLiteral {
@@ -125,6 +130,13 @@ class CelesteSplitter {
125130 case . CSide: event. add ( variant: " leave c-side \( old. chapter) " )
126131 default : break
127132 }
133+ event. add ( variants: " reset chapter " , " reset chapter \( old. chapter) " )
134+ switch new. mode {
135+ case . Normal: event. add ( variant: " reset a-side \( old. chapter) " )
136+ case . BSide: event. add ( variant: " reset b-side \( old. chapter) " )
137+ case . CSide: event. add ( variant: " reset c-side \( old. chapter) " )
138+ default : break
139+ }
128140 events. append ( event)
129141 }
130142 if new. chapterComplete && !old. chapterComplete {
You can’t perform that action at this time.
0 commit comments