Skip to content

five-on-it / packages/sim/src/weapons / weaponOfItem

Function: weaponOfItem() ​

weaponOfItem(def): number

Defined in: packages/sim/src/weapons.ts:250

The weapon an item is, by its index in the table: the fists for none, or an item that is no weapon.

Parameters ​

def ​

ItemDef | undefined

Returns ​

number