Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IItem

Hierarchy

Implemented by

Index

Properties

containedWithin

containedWithin: IContainer | null

Optional decay

decay: number

Optional disassembly

disassembly: IItemArray

Optional equippedPid

equippedPid: number

id

id: number

Optional legendary

legendary: IItemLegendary

Optional maxDur

maxDur: number

Optional minDur

minDur: number

Optional order

order: number

Optional quality

quality: ItemQuality

Optional quickSlot

quickSlot: number

Optional renamed

renamed: string

Optional tatteredMap

tatteredMap: TatteredMap

type

type: ItemType

weight

weight: number

Methods

acquireNotify

  • acquireNotify(player: IPlayer): void
  • Parameters

    Returns void

changeInto

  • Parameters

    Returns void

damage

  • damage(modifier?: number): void
  • Parameters

    • Optional modifier: number

    Returns void

description

dropInWater

  • dropInWater(player: IPlayer): void
  • Parameters

    Returns void

getDecayMax

  • getDecayMax(): number
  • Returns number

getDisassemblyWeight

  • getDisassemblyWeight(): number
  • Returns number

getEquipSlot

  • Returns EquipType | undefined

getLocation

  • getLocation(): IPointZ | undefined
  • Returns IPointZ | undefined

getTotalWeight

  • getTotalWeight(): number
  • Returns number

initializeMap

  • initializeMap(): void
  • Returns void

isDamaged

  • isDamaged(): boolean
  • Returns boolean

isDecayed

  • isDecayed(): boolean
  • Returns boolean

isEquipped

  • isEquipped(): boolean
  • Returns boolean

placeOnTile

  • placeOnTile(x: number, y: number, z: number, force: boolean): void
  • Parameters

    • x: number
    • y: number
    • z: number
    • force: boolean

    Returns void

rename

  • rename(): void
  • Returns void

returns

  • returns(): void
  • Returns void

setDisassemblyAndWeight

  • setDisassemblyAndWeight(): void
  • Returns void

setQuality

  • Parameters

    Returns void

spawnCreatureOnItem

  • spawnCreatureOnItem(creatureType: CreatureType | undefined): number | null
  • Parameters

    Returns number | null

spawnOnBreak

  • spawnOnBreak(): number | null
  • Returns number | null

spawnOnDecay

  • spawnOnDecay(): number | null
  • Returns number | null

Generated using TypeDoc