five-on-it / packages/missions/src/schema / RaceObjective
Variable: RaceObjective
constRaceObjective:ZodObject<{checkpoint:ZodOptional<ZodBoolean>;countdown:ZodDefault<ZodNumber>;failText:ZodOptional<ZodString>;hint:ZodOptional<ZodString>;id:ZodString;laps:ZodOptional<ZodNumber>;marker:ZodOptional<ZodString>;next:ZodOptional<ZodObject<{done:ZodOptional<ZodUnion<readonly [ZodString,ZodString]>>;failed:ZodOptional<ZodUnion<readonly [ZodString,ZodString]>>; },$strict>>;path:ZodString;rivals:ZodDefault<ZodArray<ZodString>>;team:ZodOptional<ZodString>;text:ZodOptional<ZodString>;timeLimit:ZodOptional<ZodNumber>;verb:ZodLiteral<"race">; },$strict>
Defined in: packages/missions/src/schema.ts:917
Race a path (GAME_DESIGN §20): through its gates in order, laps times (the path's laps when absent), against its rivals (driver actors, who race it too); done when the player crosses the finish first, failed when a rival does. The rivals wait countdown seconds at the start. Rules hear race:<objective>.gate, .lap and .finish.