five-on-it / packages/sim/src/items / ItemDef
Interface: ItemDef
Defined in: packages/sim/src/items.ts:47
An item: what a game names, what a slot holds.
Properties
actions
actions: readonly
ItemAction[]
Defined in: packages/sim/src/items.ts:57
What may be done with it.
armour?
optionalarmour?:number
Defined in: packages/sim/src/items.ts:70
Used, the body armour it puts on (gear.ts: a vest's points; the suit's); it is used up.
escape?
optionalescape?:EscapeKind
Defined in: packages/sim/src/items.ts:76
Used, what it is of the escape kit (escape.ts): the grappling hook, the paraglider, the cash cannon, a crew contract.
gadget?
optionalgadget?:"jammer"|"burner"|"scout"|"disguise"|"plates"
Defined in: packages/sim/src/items.ts:74
Used, the gadget it is (GADGET_KINDS): what @foi/ai's police make of it (a gadget event).
gear?
optionalgear?:GearKind
Defined in: packages/sim/src/items.ts:72
Used, what it is as gear (gear.ts): a gas mask put on or off (kept), the juggernaut suit, an adrenaline shot.
heal?
optionalheal?:number
Defined in: packages/sim/src/items.ts:59
Used, the hit points it gives back (a first-aid kit); it is used up.
id
id:
string
Defined in: packages/sim/src/items.ts:49
Its id: lower-case words joined by underscores (first_aid, a mission's office_key).
look?
optionallook?:"box"|"laptop"|"toolbox"|"bomb"|"briefcase"|"crowbar"|"cash_bag"
Defined in: packages/sim/src/items.ts:68
How it is drawn in the hand and on the ground (HANDHELD_LOOKS): none for a plain item.
name
name:
string
Defined in: packages/sim/src/items.ts:51
Its name as players read it (First-aid kit).
price?
optionalprice?:number
Defined in: packages/sim/src/items.ts:61
What a shop asks for one ($), unless the game sets its own price; absent: DEFAULT_PRICE.
stack
stack:
number
Defined in: packages/sim/src/items.ts:55
How many fit in one slot.
tags
tags: readonly
string[]
Defined in: packages/sim/src/items.ts:53
The tags missions and locks check (key:door:office, keycard:red).
weapon?
optionalweapon?:string
Defined in: packages/sim/src/items.ts:66
Held in the selected slot, the weapon it arms the character with: a name of the weapon table (pistol, rocket launcher); none for an item that is not a weapon (held, the fists).