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

    Class ItemConditional

    Conditional modifier bundle.

    Hierarchy

    • any
      • ItemConditional
    Index

    General

    _id: string
    default: boolean

    false

    modifiers: any
    name?: string

    Document

    parent: ItemAction
    metadata: Readonly<{ label: "Conditional"; name: "Conditional" }> = ...

    Metadata mimicking Foundry documents

    • get id(): string

      Returns string

    • get uuid(): string

      Retrieve UUID

      Relies on pf1.component.Action.getEmbeddedDocument | Action#getEmbeddedDocument() to function with fromUuid() and similar functions.

      Returns string

    • Internal

      Returns void

    • Delete conditional

      Returns Promise<any>

    • Internal

      Returns void

    • Update conditional

      Parameters

      • updateData: object
      • options: object = {}

      Returns Promise<any>

    • Create new conditional

      Parameters

      • data:
            | Partial<
                {
                    _id: string;
                    default: boolean;
                    modifiers: Partial<
                        {
                            _id: string;
                            critical: string;
                            damageType: string[];
                            formula: Formula;
                            subTarget: string;
                            target: string;
                            type: | "untyped"
                            | "untypedPerm"
                            | "dodge"
                            | "racial"
                            | "circumstance"
                            | "base"
                            | "deflection"
                            | "resist"
                            | "haste"
                            | "trait"
                            | "enh"
                            | "size"
                            | "inherent"
                            | "morale"
                            | "luck"
                            | "sacred"
                            | "insight"
                            | "profane"
                            | "competence"
                            | "alchemical";
                        },
                    >[];
                    name: string;
                },
            >
            | Partial<
                {
                    _id: string;
                    default: boolean;
                    modifiers: Partial<
                        {
                            _id: string;
                            critical: string;
                            damageType: string[];
                            formula: Formula;
                            subTarget: string;
                            target: string;
                            type: | "untyped"
                            | "untypedPerm"
                            | "dodge"
                            | "racial"
                            | "circumstance"
                            | "base"
                            | "deflection"
                            | "resist"
                            | "haste"
                            | "trait"
                            | "enh"
                            | "size"
                            | "inherent"
                            | "morale"
                            | "luck"
                            | "sacred"
                            | "insight"
                            | "profane"
                            | "competence"
                            | "alchemical";
                        },
                    >[];
                    name: string;
                },
            >[]

        Data to create conditional(s) from.

      • context: { parent: Action } = {}

        Context data

        • parent: Action

          Parent action to add the conditional to.

      Returns Proimise<ItemConditional[]>

      • Created conditionals
      • If no valid parent is defined.
    • Internal

      Parameters

      • data: object

      Returns void