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

    Class CreateConsumablePrompt

    Hierarchy

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

    Constructors

    • Parameters

      • options: any

      Returns CreateConsumablePrompt

    Properties

    cl: number
    identified: boolean
    sl: number
    uses: number
    DEFAULT_OPTIONS: {
        actions: {
            create: (
                ...this: any,
                event: PointerEvent,
                target: HTMLElement,
            ) => void;
            scribe: (...this: any, event: PointerEvent, target: HTMLElement) => void;
        };
        classes: string[];
        form: { closeOnSubmit: boolean; submitOnChange: boolean };
        id: string;
        position: { width: number };
        tag: string;
        window: { icon: string };
    } = ...
    PARTS: { config: { template: string }; footer: { template: string } } = ...

    Accessors

    • get item(): ItemSpellPF

      Returns ItemSpellPF

    • get promise(): Promise<any>

      Returns Promise<any>

    • get title(): any

      Returns any

    • get type(): string

      Returns string

    Methods

    • Returns void

    • Get price for consumable type

      Rounds to standard currency precision

      Parameters

      • type: "potion" | "scroll" | "wand" | "scribe"

      Returns undefined | number

    • Returns void

    • Parameters

      • options: {} = {}

      Returns {}

    • Parameters

      • options: object
      • event: Event

      Returns void

    • Actions performed after closing the Application. Post-close steps are not awaited by the close process.

      Parameters

      • options: any

        Provided render options

      Returns void

    • Parameters

      • options: any
      • context: any

      Returns any

    • Parameters

      • options: any
      • context: any

      Returns Promise<any>

    • Prepare context that is specific to only a single rendered part.

      It is recommended to augment or mutate the shared context so that downstream methods like _onRender have visibility into the data that was used for rendering. It is acceptable to return a different context object rather than mutating the shared context at the expense of this transparency.

      Parameters

      • partId: any

        The part being rendered

      • options: any

        Options which configure application rendering behavior

      • context: any

        Shared context provided by _prepareContext

      Returns any

      Context data for a specific part

    • Protected

      Create Potion

      Parameters

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

      Returns void

    • Protected

      Create Spell

      Parameters

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

      Returns void

    • Parameters

      • __namedParameters: {} = {}

      Returns Promise<any>