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

    Class Conditions

    The singleton registry of condition types. At runtime this registry is accessible as pf1.registry.conditions.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    model: Condition

    The class each of this registry's content is expected to be an instance of.

    _defaultData: {
        bleed: {
            aliases: readonly ["bleeding"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.L6DTocj1PbOtuspU";
            name: "Bleeding";
            showInAction: false;
            showInDefense: false;
            texture: "systems/pf1/icons/conditions/bleed.svg";
        };
        blind: {
            aliases: readonly ["blinded", "blinding"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.A9KUpd2bsdZZsQqj";
            mechanics: {
                changes: readonly [{ formula: -2; target: "ac"; type: "untyped" }];
                contexts: readonly ["skill.per", "skill.spl"];
                flags: readonly ["loseDexToAC"];
            };
            name: "Blind";
            texture: "icons/svg/blind.svg";
        };
        burning: {
            aliases: readonly ["burn", "burned"];
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.z8Dd3sCQEXas82Vz";
            name: "Burning";
            showInAction: false;
            showInDefense: false;
            texture: "systems/pf1/icons/conditions/burning.svg";
        };
        burrow: {
            aliases: readonly ["burrowing", "burrowed"];
            name: "EFFECT.StatusBurrow";
            texture: "icons/svg/mole.svg";
            track: "movement";
        };
        climb: {
            aliases: readonly ["climbing"];
            name: "Climbing";
            texture: "systems/pf1/icons/conditions/climbing.svg";
            track: "movement";
        };
        confused: {
            aliases: readonly ["confuse", "confusing"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.J2yma0xciBKRUh9t";
            name: "Confused";
            showInDefense: false;
            texture: "systems/pf1/icons/conditions/confused.svg";
        };
        cowering: {
            aliases: readonly ["cower"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.eNW5geiJqrnAjjNu";
            mechanics: {
                changes: readonly [{ formula: -2; target: "ac"; type: "untyped" }];
                flags: readonly ["loseDexToAC"];
            };
            name: "Cowering";
            showInAction: false;
            texture: "systems/pf1/icons/conditions/cowering.svg";
        };
        dazed: {
            aliases: readonly ["daze", "dazing"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.2A6Gk60pLDKR2zT0";
            name: "Dazed";
            showInAction: false;
            texture: "systems/pf1/icons/conditions/dazed.svg";
        };
        dazzled: {
            aliases: readonly ["dazzle", "dazzling"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.xHUnCadQ2qYsfvV0";
            mechanics: {
                changes: readonly [{ formula: -1; target: "attack"; type: "untyped" }];
                contexts: readonly ["skill.per"];
            };
            name: "Dazzled";
            showInAction: false;
            showInDefense: false;
            texture: "systems/pf1/icons/conditions/dazzled.svg";
        };
        dead: {
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.YvycF7bsU1hPm4pX";
            name: "Dead";
            showInBuffsTab: false;
            texture: "icons/svg/skull.svg";
            track: "dying";
        };
        deaf: {
            aliases: readonly ["deafen", "deafened", "deafening"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.3uIamlB0L1UZUwoF";
            mechanics: {
                changes: readonly [{ formula: -4; target: "init"; type: "untyped" }];
                contexts: readonly ["savingThrow.will", "skill.per", "skill.spl"];
            };
            name: "Deaf";
            showInAction: false;
            texture: "icons/svg/deaf.svg";
        };
        disabled: {
            aliases: readonly ["disable", "disabling"];
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.dtHHibCiKZzdjyvp";
            name: "Disabled";
            showInDefense: false;
            statuses: readonly ["staggered"];
            texture: "systems/pf1/icons/conditions/disabled.svg";
            track: "dying";
        };
        dying: {
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.zG6xEGMIerpbnND0";
            mechanics: {
                changes: readonly [
                    {
                        continuous: true;
                        formula: 0;
                        operator: "set";
                        priority: 1001;
                        target: "dex";
                        type: "untypedPerm";
                    },
                ];
                flags: readonly ["loseDexToAC"];
            };
            name: "Dying";
            showInDefense: false;
            texture: "systems/pf1/icons/conditions/dying.svg";
            track: "dying";
        };
        entangled: {
            aliases: readonly ["entangle", "entangling"];
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.oxmugd8SoxVjvRRl";
            mechanics: {
                changes: readonly [
                    { formula: -4; target: "dexPen"; type: "untyped" },
                    { formula: -2; target: "attack"; type: "untyped" },
                ];
            };
            name: "Entangled";
            texture: "icons/svg/net.svg";
        };
        exhausted: {
            aliases: readonly ["exhaust", "exhausting"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.ITxxh53qgl74wWcE";
            mechanics: {
                changes: readonly [
                    { formula: -6; target: "strPen"; type: "untyped" },
                    { formula: -6; target: "dexPen"; type: "untyped" },
                ];
            };
            name: "Exhausted";
            showInDefense: false;
            texture: "systems/pf1/icons/conditions/exhausted.svg";
            track: "lethargy";
        };
        fatigued: {
            aliases: readonly ["fatigue", "fatiguing"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.AVaxTNildXRzYnQm";
            mechanics: {
                changes: readonly [
                    { formula: -2; target: "strPen"; type: "untyped" },
                    { formula: -2; target: "dexPen"; type: "untyped" },
                ];
            };
            name: "Fatigued";
            showInDefense: false;
            texture: "icons/svg/unconscious.svg";
            track: "lethargy";
        };
        flatFooted: {
            aliases: readonly ["flatfooted"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.eSvkrrl3US7RJTai";
            mechanics: { flags: readonly ["loseDexToAC"] };
            name: "Flat-Footed";
            showInAction: false;
            texture: "systems/pf1/icons/conditions/flat-footed.svg";
        };
        fly: {
            aliases: readonly ["flying"];
            name: "EFFECT.StatusFlying";
            texture: "icons/svg/wing.svg";
            track: "movement";
        };
        frightened: {
            aliases: readonly ["frighten", "frightening"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.uqpJ7ZMnWF5qjOTl";
            mechanics: {
                changes: readonly [
                    { formula: -2; target: "attack"; type: "untyped" },
                    { formula: -2; target: "allSavingThrows"; type: "untyped" },
                    { formula: -2; target: "skills"; type: "untyped" },
                    { formula: -2; target: "allChecks"; type: "untyped" },
                ];
            };
            name: "Frightened";
            showInAction: false;
            texture: "systems/pf1/icons/conditions/frightened.svg";
            track: "fear";
        };
        grappled: {
            aliases: readonly ["grapple", "grappling"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.i4gHNAVajJWs4cFI";
            mechanics: {
                changes: readonly [
                    { formula: -4; target: "dexPen"; type: "untyped" },
                    { formula: -2; target: "attack"; type: "untyped" },
                    { formula: 2; target: "grapple"; type: "untyped" },
                ];
            };
            name: "Grappled";
            texture: "systems/pf1/icons/conditions/grappled.svg";
        };
        helpless: {
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.6dtCytJsNkO8Hwq4";
            mechanics: {
                changes: readonly [
                    {
                        continuous: true;
                        formula: 0;
                        operator: "set";
                        priority: 1001;
                        target: "dex";
                        type: "untypedPerm";
                    },
                ];
                flags: readonly ["loseDexToAC"];
            };
            name: "Helpless";
            showInAction: false;
            texture: "systems/pf1/icons/conditions/helpless.svg";
        };
        hover: {
            aliases: readonly ["hovering"];
            name: "EFFECT.StatusHover";
            texture: "icons/svg/wingfoot.svg";
            track: "movement";
        };
        incorporeal: {
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.acqGBiMxTbXZ47zU";
            mechanics: {
                changes: readonly [
                    {
                        formula: 0;
                        operator: "set";
                        priority: -10;
                        target: "nac";
                        type: "base";
                    },
                    {
                        formula: "max(1, @abilities.cha.mod)";
                        operator: "add";
                        target: "ac";
                        type: "deflection";
                    },
                ];
            };
            name: "Incorporeal";
            showInAction: false;
            showInDefense: false;
            texture: "systems/pf1/icons/conditions/incorporeal.svg";
        };
        invisible: {
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.Wr2ZWUZcyVWQ4GtX";
            name: "Invisible";
            showInDefense: false;
            texture: "icons/svg/invisible.svg";
        };
        nauseated: {
            aliases: readonly ["nausea", "nauseating"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.ySiyyK1BMAyKPY4I";
            name: "Nauseated";
            texture: "systems/pf1/icons/conditions/nauseated.svg";
        };
        panicked: {
            aliases: readonly ["panic", "panicking"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.nGTsTfpWcJTTU3rk";
            mechanics: {
                changes: readonly [
                    { formula: -2; target: "attack"; type: "untyped" },
                    { formula: -2; target: "allSavingThrows"; type: "untyped" },
                    { formula: -2; target: "skills"; type: "untyped" },
                    { formula: -2; target: "allChecks"; type: "untyped" },
                ];
            };
            name: "Panicked";
            texture: "icons/svg/terror.svg";
            track: "fear";
        };
        paralyzed: {
            aliases: readonly ["paralyze", "paralyzing"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.24p2Koq4FFCLDKnj";
            mechanics: {
                changes: readonly [
                    {
                        continuous: true;
                        formula: 0;
                        operator: "set";
                        priority: 1001;
                        target: "dex";
                        type: "untypedPerm";
                    },
                    {
                        continuous: true;
                        formula: 0;
                        operator: "set";
                        priority: 1001;
                        target: "str";
                        type: "untypedPerm";
                    },
                ];
                flags: readonly ["loseDexToAC"];
            };
            name: "Paralyzed";
            showInAction: false;
            statuses: readonly ["helpless"];
            texture: "systems/pf1/icons/conditions/paralyzed.svg";
        };
        petrified: {
            aliases: readonly ["petrify", "petrifying"];
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.ayGQWwbrhAc99pkH";
            mechanics: {
                changes: readonly [
                    {
                        continuous: true;
                        formula: 0;
                        operator: "set";
                        priority: 1001;
                        target: "dex";
                        type: "untypedPerm";
                    },
                ];
                flags: readonly ["loseDexToAC"];
            };
            name: "Petrified";
            showInAction: false;
            showInDefense: false;
            statuses: readonly ["helpless", "unconscious"];
            texture: "systems/pf1/icons/conditions/petrified.svg";
        };
        pinned: {
            aliases: readonly ["pin", "pinning"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.poCq8gXdDi5leaMT";
            mechanics: {
                changes: readonly [
                    {
                        continuous: true;
                        formula: "min(0, @abilities.dex.mod)";
                        operator: "set";
                        priority: 1001;
                        target: "dexMod";
                        type: "untyped";
                    },
                    { formula: -4; target: "ac"; type: "untyped" },
                    { formula: -4; target: "cmd"; type: "untyped" },
                ];
                flags: readonly ["loseDexToAC"];
            };
            name: "Pinned";
            showInAction: false;
            texture: "systems/pf1/icons/conditions/pinned.svg";
        };
        prone: {
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.VbagnIPQS523dwxa";
            mechanics: {
                changes: readonly [
                    { formula: -4; target: "mattack"; type: "untyped" },
                ];
            };
            name: "Prone";
            texture: "icons/svg/falling.svg";
        };
        shaken: {
            aliases: readonly ["shaking"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.XxLUswkCuXnXmA5T";
            mechanics: {
                changes: readonly [
                    { formula: -2; target: "attack"; type: "untyped" },
                    { formula: -2; target: "allSavingThrows"; type: "untyped" },
                    { formula: -2; target: "skills"; type: "untyped" },
                    { formula: -2; target: "allChecks"; type: "untyped" },
                ];
            };
            name: "Shaken";
            showInAction: false;
            showInDefense: false;
            texture: "systems/pf1/icons/conditions/shaken.svg";
            track: "fear";
        };
        sickened: {
            aliases: readonly ["sick", "sickening"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.7LwCMwrX3tchvrjW";
            mechanics: {
                changes: readonly [
                    { formula: -2; target: "attack"; type: "untyped" },
                    { formula: -2; target: "wdamage"; type: "untyped" },
                    { formula: -2; target: "allSavingThrows"; type: "untyped" },
                    { formula: -2; target: "skills"; type: "untyped" },
                    { formula: -2; target: "allChecks"; type: "untyped" },
                ];
            };
            name: "Sickened";
            showInAction: false;
            showInDefense: false;
            texture: "systems/pf1/icons/conditions/sickened.svg";
        };
        sleep: {
            aliases: readonly ["sleeping, asleep"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: null;
            mechanics: {
                changes: readonly [
                    {
                        continuous: true;
                        formula: 0;
                        operator: "set";
                        priority: 1001;
                        target: "dex";
                        type: "untypedPerm";
                    },
                ];
                flags: readonly ["loseDexToAC"];
            };
            name: "Sleeping";
            showInAction: false;
            statuses: readonly ["helpless", "unconscious"];
            texture: "icons/svg/sleep.svg";
        };
        squeezing: {
            aliases: readonly ["squeeze"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.jzeZ0Uf31CAMZra9";
            mechanics: {
                changes: readonly [
                    { formula: -4; target: "ac"; type: "untyped" },
                    { formula: -4; target: "attack"; type: "untyped" },
                ];
            };
            name: "Squeezing";
            texture: "systems/pf1/icons/conditions/squeezing.svg";
        };
        stable: {
            aliases: readonly ["stabilize", "stabilized"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.krgVb43Vd62dqpYr";
            mechanics: {
                changes: readonly [
                    {
                        continuous: true;
                        formula: 0;
                        operator: "set";
                        priority: 1001;
                        target: "dex";
                        type: "untypedPerm";
                    },
                ];
                flags: readonly ["loseDexToAC"];
            };
            name: "Stable";
            showInAction: false;
            showInDefense: false;
            texture: "systems/pf1/icons/conditions/stable.svg";
            track: "dying";
        };
        staggered: {
            aliases: readonly ["stagger", "staggering"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.TTp8q9Vb2PNAujWu";
            name: "Staggered";
            texture: "systems/pf1/icons/conditions/staggered.svg";
        };
        stunned: {
            aliases: readonly ["stun", "stunning"];
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.ZgsBPY0uVCVl6SGh";
            mechanics: {
                changes: readonly [{ formula: -2; target: "ac"; type: "untyped" }];
                flags: readonly ["loseDexToAC"];
            };
            name: "Stunned";
            showInAction: false;
            texture: "icons/svg/stoned.svg";
        };
        swim: {
            aliases: readonly ["swimming"];
            name: "Swimming";
            texture: "systems/pf1/icons/actions/swim.svg";
            track: "movement";
        };
        unconscious: {
            hud: { exclude: readonly ["haunt", "trap", "vehicle"] };
            journal: "Compendium.pf1.rules.JournalEntry.NSqfXaj4MevUR2uJ.JournalEntryPage.kHwbZ38VHCa1wkUF";
            mechanics: {
                changes: readonly [
                    {
                        continuous: true;
                        formula: 0;
                        operator: "set";
                        priority: 1001;
                        target: "dex";
                        type: "untypedPerm";
                    },
                ];
                flags: readonly ["loseDexToAC"];
            };
            name: "Unconscious";
            statuses: readonly ["helpless"];
            texture: "systems/pf1/icons/conditions/unconscious.svg";
        };
    } = ...

    An array of data used to initialize this registry.

    HUD_EXCLUDE_INANIMATE: { exclude: readonly ["haunt", "trap", "vehicle"] } = ...
    model: typeof Condition = Condition

    The class each of this registry's content is expected to be an instance of.

    SET_TO_ZERO: {
        continuous: true;
        formula: 0;
        operator: "set";
        priority: 1001;
        type: "untypedPerm";
    } = ...
    TRACKS: readonly ["dying", "fear", "lethargy", "movement"] = ...

    An array of allowed tracks of condition advancement.

    Accessors

    • get name(): string

      The name of the registry

      Returns string

    • get tracks(): string[]

      The allowed tracks.

      Returns string[]

    Methods

    • Get all conditions that have belong to a given track

      Parameters

      • track: string

        The given track to check for

      Returns string[]

      • An array of all conditions in the given track
    • Experimental

      Get condition by ID, including any that have it as alias.

      Parameters

      • id: string

      Returns void | Condition

    • Returns an object of the registry's contents, with the id as key and the name as value.

      Parameters

      • Optionaloptions: { sort?: boolean } = {}

        Additional options

        • Optionalsort?: boolean

          Sort result

      Returns { [id: string]: string }

      The names of each value in the registry, by id

    • Protected

      Localize registry and all their entries.

      Called in i18nInit.

      Returns void

    • Registers a new instance of Model with the registry, using a partial of its data as the base.

      Parameters

      • namespace: string

        The namespace for which this value is registered.

      • id: string

        The unique key of the value.

      • value: object

        A Partial of the data to use as the base for the new value.

      Returns Registry<any>

      The registry itself, after the value has been registered.

      pf1.registry.damageTypes.register("my-module", "my-damage-type", {
      name: "My Damage Type",
      img: "icons/svg/damage.svg",
      category: "physical",
      });
    • Sets the value of a key in the registry.

      Parameters

      • id: string

        ID of the value to set.

      • content: Condition

        The value to set.

      Returns Registry<any>

      The registry itself, after the value has been set.

    • Protected

      Post-registry initialization entry preparation

      Returns void

    • Returns the contents of this registry as object, using ids as keys.

      Parameters

      • Optionalsource: boolean = false

        Whether to include the source data instead of its prepared data for each value.

      Returns { [id: string]: object }

      The data of each value in the registry, by id

    • Get all tracks and their conditions

      Returns string[][]

      • Condition tracks
    • Unregisters a value from the registry, or if no id is provided, all values belonging to the namespace.

      Parameters

      • namespace: string

        The namespace for which this value is unregistered.

      • Optionalid: string

        The unique key of the value, or undefined to unregister all values belonging to the namespace.

      Returns void