Pathfinder 1e for Foundry VTT
    Preparing search index...

    Class ActionDialog

    Action Dialog

    Hierarchy

    • HandlebarsApplication<this> & ApplicationV2<
          RenderContext,
          Configuration,
          RenderOptions,
          this,
      >
      • ActionDialog
    Index

    Properties

    ammoUsage: Record<string, AttackAmmoUsage>
    attributes: Record<string, string>
    base: object
    conditionals: object
    flags: Record<string, boolean> | undefined
    rollData: object
    useOptions: any
    DEFAULT_FULL_ATTACK: boolean = true

    Accessors

    • get action(): Action

      Returns Action

    • get actionUse(): ActionUse

      Returns ActionUse

    • get actor(): ActorPF

      Returns ActorPF

    • get damageMult(): number | null

      Returns number | null

    • get item(): ItemPF | undefined

      Returns ItemPF | undefined

    • get noPenaltyIncrements(): number
      Experimental

      Number of Increments with No Penalty

      Returns number

    • get object(): Action

      Returns Action

    • get promise(): Promise<any>

      Returns Promise<any>

    Methods

    • Change Attribute

      Parameters

      • event: PointerEvent
      • target: HTMLElement

      Returns void

      Relabel

    • Toggle Conditional

      Parameters

      • event: PointerEvent
      • target: HTMLElement

      Returns void

    • Toggle Flag

      Parameters

      • event: PointerEvent
      • target: HTMLElement
      • render: boolean = false

        Re-render after

      Returns void

    • Handle Popover (Ammo Menu) Toggling

      Parameters

      • event: ToggleEvent

      Returns void

    • Reset Extra Attacks Visualization

      Undim extra attacks when single attack button hover ends

      Returns void

    • Parameters

      • type: any
      • enabled: boolean = true

      Returns void

    • Unfocus Elements

      This is called by every click to ensure ammo selection is closed.

      Parameters

      • event: PointerEvent

      Returns void

    • Visualize Extra Attacks State

      Dim extra attacks when hovering single attack button

      Returns void

    • Experimental

      Get Current Range Penalty

      Returns number

      • Penalty, 0 or higher
    • Returns void

    • Returns void

    • Internal

      Set ammo type attack at index

      Parameters

      • attackIndex: number
      • ammoId: string = null

      Returns void

    • Returns Promise<any>

      • Attack configuration object or null if rejected
    • Initialize application and wait for its result.

      This simply initializes the application with provided options, renders it and returns app.promise

      Parameters

      • actionUse: ActionUse

        Action Use instance

      • Optionaloptions: object = {}

        Application options

      Returns Promise<void | object>

      • Resolved configuration, or void if cancelled.