Hierarchy

  • ActionUse

Constructors

Properties

action: ItemAction

The action this action use is based on.

actor: ActorPF

The actor this action use is based on.

item: ItemPF

The item this action use is based on.

The shared data object holding all relevant data for this action use.

token: TokenDocument

The actor this action use is based on.

Methods

  • Determines conditional parts used in a specific attack.

    Parameters

    • atk: object

      The attack used.

    • Optional index: number

      The index of the attack, in order of enabled attacks.

    Returns object

    The conditional parts used.

  • Adds combat property labels to an attack's chat card.

    Returns string[]

    The resulting property labels.

  • Adds generic property labels to an attack's chat card.

    Returns string[]

    The resulting property labels.

  • Alters roll (and shared) data based on user input during the attack's dialog.

    Parameters

    • form: object | JQuery<HTMLElement> = {}

      The attack dialog's jQuery form data or FormData object

    Returns void

  • Checks all requirements to make the attack. This is after the attack dialog's data has been parsed.

    Returns number | Promise<number>

    0 if successful, otherwise one of the ERR_REQUIREMENT constants.

  • Returns Promise<number>

    • 0 when successful, otherwise one of the ERR_REQUIREMENT constants.
  • Generates metadata for this attack for the chat card to store.

    Returns object

    The resulting metadata object.

  • Subtracts ammo for this attack.

    Parameters

    • Optional value: number = 1

      How much ammo to subtract.

    Returns Promise<any>

Generated using TypeDoc