Skip to content

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

Variable: ShopActor ​

const ShopActor: ZodObject<{ at: ZodString; id: ZodString; kind: ZodDefault<ZodEnum<{ counter: "counter"; terminal: "terminal"; vending: "vending"; }>>; sells: ZodArray<ZodObject<{ item: ZodString; price: ZodOptional<ZodNumber>; }, $strict>>; type: ZodLiteral<"shop">; }, $strict>

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

A shop at a place (GAME_DESIGN §5.5, §14): a counter the interaction key opens into a panel of what it sells, each at its price (else the game's, else the item's own), paid in the player's Cash. Rules hear item:<item>.bought.