Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ActualItem

Hierarchy

  • ActualItem

Implements

Index

Constructors

constructor

  • Parameters

    • Optional itemType: ItemType | undefined
    • Default value quality: ItemQuality = ItemQuality.Random

    Returns ActualItem

Properties

containedItems

containedItems: IItemArray

containedWithin

containedWithin: IContainer

decay

decay: number

disassembly

disassembly: IItemArray

equippedPid

equippedPid: EquipType

id

id: number

legendary

legendary: IItemLegendary

maxDur

maxDur: number

minDur

minDur: number

order

order: number

quality

quality: ItemQuality

quickSlot

quickSlot: number

renamed

renamed: string

tatteredMap

tatteredMap: TatteredMap

type

type: ItemType

weight

weight: number

weightCapacity

weightCapacity: number

Methods

acquireNotify

  • acquireNotify(player: IPlayer): void

changeInto

damage

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

    • Optional modifier: number

    Returns void

description

dropInWater

  • dropInWater(player: IPlayer): void

getDecayMax

  • getDecayMax(): number
  • Returns number

getDisassemblyWeight

  • getDisassemblyWeight(): number

getEquipSlot

getLocation

  • getLocation(): IPointZ | undefined

getSerializationProperties

  • getSerializationProperties(_: string): Array<string>

getTotalWeight

  • getTotalWeight(): number

initializeMap

  • initializeMap(): void

isDamaged

  • isDamaged(): boolean
  • Returns boolean

isDecayed

  • isDecayed(): boolean
  • Returns boolean

isEquipped

  • isEquipped(): boolean
  • Returns boolean

onUnserialized

  • onUnserialized(): void

placeOnTile

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

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

    Returns boolean

rename

  • rename(): void
  • Returns void

returns

  • returns(): boolean
  • Returns boolean

setDisassemblyAndWeight

  • setDisassemblyAndWeight(): void

setQuality

spawnCreatureOnItem

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

spawnOnBreak

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

spawnOnDecay

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

Generated using TypeDoc