Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Merchant

Hierarchy

Implements

Index

Constructors

constructor

Properties

Optional after

after: Milestone[]

Readonly id

Optional Readonly imagePath

imagePath: undefined | string

isGlobal

isGlobal: boolean = false

Whether this milestone modifier is host-exclusive, IE, clients connecting to a server can't select this modifier.

Modifiers with custom options: IGameOptions are always host-exclusive.

Readonly random

Methods

getGroup

getOptions

  • getOptions(resolve?: boolean): undefined | ({} & { milestoneModifiers?: undefined })
  • Parameters

    • Default value resolve: boolean = false

    Returns undefined | ({} & { milestoneModifiers?: undefined })

getRandom

initialize

  • initialize(): void

isEnabledForPlayer

  • isEnabledForPlayer(entity: Entity): any

uninitialize

  • uninitialize(): void

Object literals

options

options: object

npcs

npcs: object

merchants

merchants: object

initialItems

initialItems: RandomRange[] = [new RandomRange(this.random, -2, -2).setLimit(1)]

priceMultiplier

priceMultiplier: Mergeable<number> & number = Merge.MULTIPLY(0.9)

Generated using TypeDoc