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

    Class ActionDialog

    Action Dialog

    Hierarchy

    • any
      • ActionDialog
    Index

    Properties

    ammoUsage: Record<string, AttackAmmoUsage>
    base: { cl: number; sl: number }
    conditionals: {
        [key: string]: { conditional: ItemConditional; enabled: boolean };
    }
    features:
        | Set<
            | "lowLightVision"
            | "seeInDarkness"
            | "seeInvisibility"
            | "immuneToMorale"
            | "loseDexToAC"
            | "noMediumEncumbrance"
            | "noHeavyEncumbrance"
            | "mediumArmorFullSpeed"
            | "heavyArmorFullSpeed"
            | "noAblScore.str"
            | "noAblScore.dex"
            | "noAblScore.con"
            | "noAblScore.int"
            | "noAblScore.wis"
            | "noAblScore.cha"
            | "powerAttack"
            | "piranhaStrike"
            | "deadlyAim"
            | "haste"
            | "pointBlankShot"
            | "rapidShot"
            | "manyshot"
            | "doubleSlice"
            | "weaponFinesse",
        >
        | undefined
    LABELS: { haste: any; manyshot: any; rapidShot: any } = ...
    rollData: object & {
        action?: { held?: "1h" | "2h" | "oh" };
        cl?: number;
        item?: { held?: "1h" | "2h" | "oh" };
        sl?: number;
    }
    useOptions: UseOptions
    DEFAULT_FULL_ATTACK: boolean = true

    Accessors

    • get action(): Action

      Returns Action

    • get actionUse(): ActionUse

      Returns ActionUse

    • get damageMult(): number | null

      Returns number | null

    • 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.