@@ -86,7 +86,7 @@ export default class FrcEventsApiClient extends GenericApiClient {
8686 if ( winner !== null && winner !== undefined ) return winner ;
8787
8888 // The score details endpoint is season-specific
89- if ( season !== 2024 ) {
89+ if ( season !== 2025 ) {
9090 throw new Error ( 'Unable to handle game-specific tiebreak rules for '
9191 + 'other seasons' ) ;
9292 }
@@ -110,8 +110,8 @@ export default class FrcEventsApiClient extends GenericApiClient {
110110 //
111111
112112 if ( red . techFoulCount === undefined || blue . techFoulCount === undefined
113- || red . endGameTotalStagePoints === undefined
114- || blue . endGameTotalStagePoints === undefined
113+ || red . endGameBargePoints === undefined
114+ || blue . endGameBargePoints === undefined
115115 || red . autoPoints === undefined || blue . autoPoints === undefined
116116 ) return null ;
117117
@@ -123,11 +123,11 @@ export default class FrcEventsApiClient extends GenericApiClient {
123123 if ( red . autoPoints > blue . autoPoints ) return 'red' ;
124124 if ( blue . autoPoints > red . autoPoints ) return 'blue' ;
125125
126- // 3. Alliance with the most stage points wins
127- if ( red . endGameTotalStagePoints
128- > blue . endGameTotalStagePoints ) return 'red' ;
129- if ( blue . endGameTotalStagePoints
130- > red . endGameTotalStagePoints ) return 'blue' ;
126+ // 3. Alliance with the most barge points wins
127+ if ( red . endGameBargePoints
128+ > blue . endGameBargePoints ) return 'red' ;
129+ if ( blue . endGameBargePoints
130+ > red . endGameBargePoints ) return 'blue' ;
131131
132132 //
133133 // End season specific logic
0 commit comments