Apply Damage Prompt

Handles damage application UX when adjustment is desired.

Calls ActorPF#applyDamage when finally committing changes.

Called primarily from ActorPF.applyDamage

Hierarchy

  • any
    • ApplyDamage

Constructors

Properties

asNonlethal: boolean
asWounds: boolean
critMult: number
damageOptions: { asNonlethal: any; asWounds: any; critMult: any; dualHeal: any }
instances: any[]
isHealing: boolean
reduction: number
resolve: Function
targets: Collection<object>
value: number
DEFAULT_OPTIONS: {
    actions: {
        apply: (
            ...this: any,
            event: Event,
            target: HTMLElement,
        ) => Promise<void>;
    };
    classes: string[];
    position: { height: string; width: number };
    tag: string;
    window: { minimizable: boolean; resizable: boolean };
} = ...
PARTS: { footer: { template: string }; form: { template: string } } = ...
resolve: any

Accessors

Methods

  • Internal

    Update target data based on form data and recalculate values.

    Parameters

    • targetId: string
    • Optionaldata: object

      Update data

    Returns void

  • Apply health change

    Parameters

    • ...this: any
    • event: Event
    • target: HTMLElement

    Returns Promise<void>

  • Parameters

    • options: object

      Options passed to apply damage

    • OptionalrenderOptions: object = {}

      Render options passed to the application.

    Returns Promise<null | object>

    • Null if cancelled, object describing applied settings.