Class ActionSource

A combat-based action resource in the game (e.g. a free run or free kill).

Constructors

  • Parameters

    • source:
          | Familiar
          | Item
          | Skill
          | (Familiar | Item | Skill)[]

      Source(s) of the action (e.g. item, skill, or familiar needed).

    • potential: (() => number)

      Function returning how many times this action can be used.

        • (): number
        • Returns number

    • macro: Macro

      Macro to execute this action in combat.

    • constraints: ActionConstraints = {}

      Constraints required for this action to be available.

    Returns ActionSource

Properties

constraints: ActionConstraints
macro: Macro
potential: (() => number)
source:
    | Familiar
    | Item
    | Skill
    | (Familiar | Item | Skill)[]

Methods

  • Perform all preparation necessary to make this action available. Throws an error if preparation fails.

    Parameters

    • OptionalotherRequirements: Requirement

      Any other equipment requirements.

    Returns void

  • Perform all preparation necessary to make this action available.

    Parameters

    • OptionalotherRequirements: Requirement

      Any other equipment requirements.

    Returns boolean

    Whether preparation succeeded.