Skip to content

five-on-it / packages/missions/src/schema / ObjectActor

Variable: ObjectActor ​

const ObjectActor: ZodObject<{ at: ZodString; broken: ZodOptional<ZodBoolean>; fuse: ZodOptional<ZodNumber>; id: ZodString; items: ZodOptional<ZodArray<ZodObject<{ count: ZodDefault<ZodNumber>; item: ZodString; }, $strict>>>; kind: ZodEnum<{ bomb: "bomb"; car_jack: "car_jack"; dumpster: "dumpster"; fuse_box: "fuse_box"; generator: "generator"; laptop: "laptop"; safe: "safe"; workbench: "workbench"; }>; needs: ZodOptional<ZodString>; placed: ZodDefault<ZodBoolean>; radius: ZodOptional<ZodNumber>; seconds: ZodOptional<ZodNumber>; size: ZodOptional<ZodEnum<{ large: "large"; medium: "medium"; small: "small"; }>>; type: ZodLiteral<"object">; }, $strict>

Defined in: packages/missions/src/schema.ts:665

A device a mission puts down at a place (GAME_DESIGN §5.5, §9): a bomb (placed: armed, its fuse running from the mission's start, going off as big as its size; not placed: the site a plant objective plants it at, from the item needs names, used up; defuse names it), a laptop on its table (hack), a fuse_box (its power cut switches off the security cameras and the street lamps within its radius), a safe holding items (cracked by holding the key at its front), a generator (broken until repaired), a workbench or a car_jack (worked), a dumpster (a body dragged to it is hidden in it, the key held: hide). Each is worked by holding the interaction key for its seconds (its kind's when absent), with an item answering to needs when it says (a tool). placed: false keeps one out of the world until a spawnObject (or a plant) puts it there; removeObject takes it away. Rules hear object:<id>.planted|defused| exploded|hacked|off|on|repaired|used|cracked|stashed. Gone when the mission ends.