File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import Game, { Team } from '../../../playback/Game'
33import Match from '../../../playback/Match'
44import { CurrentMap , StaticMap } from '../../../playback/Map'
55import Round from '../../../playback/Round'
6- import Bodies from '../../../playback/Bodies'
6+ import Bodies , { Body } from '../../../playback/Bodies'
77import { BATTLECODE_YEAR , DIRECTIONS , TEAM_COLOR_NAMES } from '../../../constants'
88import { nativeAPI } from '../runner/native-api-wrapper'
99import { Vector } from '../../../playback/Vector'
@@ -180,6 +180,13 @@ function verifyMap(map: CurrentMap, bodies: Bodies): string {
180180 `>= 3 away`
181181 )
182182 }
183+
184+ if ( body . robotType === schema . RobotType . CAT ) {
185+ if ( ! map . staticMap . catWaypoints . get ( body . id ) || map . staticMap . catWaypoints . get ( body . id ) ?. length === 0 ) {
186+ return `Cat with id ${ body . id } has no waypoints`
187+ }
188+ }
189+
183190 }
184191
185192 return ''
You can’t perform that action at this time.
0 commit comments