Token Document extension

Hierarchy

  • TokenDocument
    • TokenDocumentPF

Constructors

  • Parameters

    • Optionaldata: any

      Initial data provided to construct the Token document (default: {})

    • Optionalcontext: any

      The parent Scene document to which this Token belongs

    Returns TokenDocumentPF

Properties

detectionModes: undefined | any[]

Accessors

  • get allowedMovement(): null | Set<string>
  • Experimental

    Allowed movement modes.

    Returns null | Set<string>

    • Hook this up in token HUD movement action selection.
    • Returns null if there's no restrictions (e.g. no actor).

Methods

  • Internal

    Parameters

    • data: object

      Creation data

    • context: object

      Context

    • user: User

      Triggering user

    Returns Promise<void>

  • Handle actor size during token creation.

    TODO: This has overlapping functionality with Actor.getTokenDocument() that needs to be unified

    Returns void

  • Internal

    Parameters

    • changed: object

      Changed data

    • context: object

      Context

    • user: User

      Triggering user

    Returns Promise<void>

  • Hijack Token health bar rendering to include temporary and temp-max health in the bar display

    Parameters

    • barName: string

      Bar name

    • Optionaloptions: { alternative?: string } = {}

      Additional options

      • Optionalalternative?: string

        Alt bar path to use

    Returns null | object

    • Attribute to be displayed if any Synced with Foundry v12.331
  • Prepare data related to this Document itself, before any embedded Documents or derived data is computed.

    Returns void

  • Called by getTrackedAttributes() when not dealing with data models.

    Parameters

    • data: any
    • path: any[] = []

    Returns any

MMNEPVFCICPMFPCPTTAAATR