five-on-it / packages/missions/src/schema / Item
Variable: Item
constItem:ZodObject<{actions:ZodDefault<ZodArray<ZodEnum<{drop:"drop";give:"give";use:"use"; }>>>;heal:ZodOptional<ZodNumber>;id:ZodString;name:ZodString;price:ZodOptional<ZodNumber>;stack:ZodDefault<ZodNumber>;tags:ZodDefault<ZodArray<ZodString>>; },$strict>
Defined in: packages/missions/src/schema.ts:70
An item a mission defines (GAME_DESIGN §7.4), known to the whole room from the start (the level may lay it out too): its id, unique in the game and apart from the common items', its name, its tags (what locks and conditions check), how many stack in a slot, what may be done with it (use, drop, give into a container) and, used, the hit points it heals.