Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ChallengeModifier

Hierarchy

Implements

Index

Constructors

constructor

Properties

challenge

challenge: number = 0

How much "challenge" this modifier adds (or subtracts!). Defaults to 0. Added to the result of apply.

Readonly id

Optional Readonly imagePath

imagePath: undefined | string

Protected Optional Readonly options

Game options to be applied when this modifier is active

Readonly random

Optional tooltipArgs

tooltipArgs: keyof any[]

Readonly weight

weight: number

How often this modifier should be chosen compared to the others

Methods

getOptions

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

    • Default value resolve: boolean = false

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

getRandom

Readonly getTooltip

  • Parameters

    Returns ITooltip

initialize

  • initialize(): void

isEnabledForPlayer

  • isEnabledForPlayer(_entity: Entity): boolean

uninitialize

  • uninitialize(): void

Generated using TypeDoc