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

    Class BaseCharacterModel

    Base data model for character-type actors (Character & NPC)

    Hierarchy (View Summary)

    Index

    General

    abilities: Record<string, AbilityData>
    ac:
        | undefined
        | {
            natural: { base: number; enh: number; misc: number; total: number };
            normal: { base: number; enh: number; misc: number; total: number };
            shield: { base: number; enh: number; misc: number; total: number };
        }
    altCurrency: Record<string, number>
    attributes: {
        ac: { normal: { ability: string }; touch: { ability: string } };
        acNotes: string;
        attack: { meleeAbility: string; rangedAbility: string };
        cmbAbility: string;
        cmd: { dexAbility: string; strAbility: string };
        cmdNotes: string;
        encumbrance: {
            carriedWeight: number;
            level: number;
            levels: {
                carry: number;
                drag: number;
                heavy: number;
                light: number;
                medium: number;
                overhead: number;
            };
        };
        energyDrain: number;
        hp: { nonlethal: number; offset: number; temp: number };
        hpAbility: string;
        init: { ability: string; value: number };
        naturalAC: number;
        quadruped: boolean;
        saveNotes: string;
        savingThrows: Record<string, SaveData>;
        speed: {
            burrow: { base: number };
            climb: { base: number };
            fly: {
                base: number;
                maneuverability: "good" | "average" | "clumsy" | "poor" | "perfect";
            };
            land: { base: number };
            swim: { base: number };
        };
        sr: { formula: string };
        srNotes: string;
        vigor: { offset: number; temp: number };
        wounds: { offset: number };
    }
    config: {}
    currency: Record<string, number>
    details: {
        age: string;
        alignment: "tn" | "lg" | "ng" | "cg" | "ln" | "cn" | "le" | "ne" | "ce";
        biography: { value: string };
        bonusFeatFormula: string;
        bonusSkillRankFormula: string;
        carryCapacity: {
            bonus: { user: number };
            multiplier: { base: number; user: number };
        };
        deity: string;
        gender: string;
        height: string;
        notes: { value: string };
        weight: string;
        xp: { value: number };
    }
    parent: ActorPF
    skills: Record<string, SkillModel>
    spells: Record<string, SpellbookModel>
    traits: {
        ageCategory: "adult" | "young" | "middleAge" | "old" | "venerable";
        armorProf: Set<string>;
        aura: { custom: string };
        ci: Set<string>;
        cres: string;
        di: Set<string>;
        dv: Set<string>;
        fastHealing: string;
        hardness: number;
        languages: Set<
            | "dark"
            | "aboleth"
            | "abyssal"
            | "aklo"
            | "ancientosiriani"
            | "androffan"
            | "aquan"
            | "auran"
            | "azlanti"
            | "boggard"
            | "brethedan"
            | "canto"
            | "catfolk"
            | "celestial"
            | "common"
            | "cyclops"
            | "draconic"
            | "drowsign"
            | "druidic"
            | "dtang"
            | "dwarven"
            | "dziriak"
            | "ekekeh"
            | "elderthing"
            | "elven"
            | "erutaki"
            | "firstspeech"
            | "gholgan"
            | "giant"
            | "gnoll"
            | "gnome"
            | "goblin"
            | "grippli"
            | "grioth"
            | "gug"
            | "halfling"
            | "hallit"
            | "honla"
            | "hwan"
            | "ib"
            | "ignan"
            | "infernal"
            | "iobaran"
            | "jandelayan"
            | "jistka"
            | "kasatha"
            | "kelish"
            | "kuru"
            | "lashunta"
            | "migo"
            | "minatan"
            | "minkaian"
            | "munavri"
            | "nagaji"
            | "necril"
            | "orc"
            | "orvian"
            | "osiriani"
            | "polyglot"
            | "protean"
            | "reptoid"
            | "rougarou"
            | "sakvroth"
            | "samsaran"
            | "sasquatch"
            | "senzar"
            | "shadowtongue"
            | "shae"
            | "shoanti"
            | "shobhad"
            | "skald"
            | "sphinx"
            | "strix"
            | "sylvan"
            | "syrinx"
            | "taldane"
            | "tekritanin"
            | "tengu"
            | "terran"
            | "thassilonian"
            | "tien"
            | "treant"
            | "triaxian"
            | "undercommon"
            | "urdefhan"
            | "vanaran"
            | "varisian"
            | "varki"
            | "vegepygmy"
            | "vishkanya"
            | "vudrani"
            | "wayang"
            | "yaddithian"
            | "yithian",
        >;
        regen: string;
        senses: {
            bs: { value: number };
            bse: { value: number };
            custom: string;
            dv: { value: number };
            ll: { enabled: boolean; multiplier: { bright: number; dim: number } };
            ls: { value: number };
            lv: { value: number };
            sc: { value: number };
            si: boolean;
            sid: boolean;
            ths: { value: number };
            tr: { value: number };
            ts: { value: number };
        };
        size: | "dim"
        | "med"
        | "fine"
        | "tiny"
        | "sm"
        | "lg"
        | "huge"
        | "grg"
        | "col";
        stature: "long"
        | "tall";
        weaponProf: Set<string>;
    }
    • get _skillTargets(): string[]
      Internal

      Retrieve valid skill change targets for this actor.

      Returns string[]

      • Skill target array
    • get sourceInfo(): Record<string, SourceInfoGroup>

      Returns Record<string, SourceInfoGroup>

      • This is for conversion compatibility and is not meant to work.
      • Remove before next release
    • Add getters for values that are fine calculating themselves

      Returns void

    • Internal

      Computes encumbrance values for this actor.

      Returns MobilityPenaltyResult

      The resulting penalties from encumbrance.

    • Parameters

      • changed: any
      • context: any

      Returns void

    • Internal

      Finalize data in spellbooks

      Returns void

    • Protected

      Finalize preparing armor, weapon, and language proficiencies and other traits.

      Returns void

    • Internal

      Collect some basic spellbook info so it doesn't need to be gathered again for each spellbook.

      Returns { books: Record<string, Spellbook>; spells: ItemSpellPF[] }

      Spellbook cache

    • Returns void

    • Internal

      Prepare spellbook data

      Returns void

    • Prepare changes specific to this actor type

      Parameters

      • changes: any

      Returns void

    • Internal

      Calculate maximum health

      Parameters

      Returns void

    • Protected

      Prepare natural reach for melee range and for reach weapons.

      Returns void

    • Protected

      Calculate overland speeds.

      Returns void

    • Returns void

    • Prepare Skills

      Returns void

    • Internal

      Returns void

    • Protected

      Reset class skills & background skills.

      Returns void

    • Called at end of ()

      Returns void

    • Calculate current carry capacity limits.

      Returns { heavy: number; light: number; medium: number }

      • Capacity info
    • Internal

      Returns number

      • Total coin weight in lbs
    • Returns { di: Set<string>; dr: any; dv: Set<string>; er: any; h: number }

    • Checks if there's any matching proficiency

      Parameters

      • item: ItemEquipmentPF

        The item to check for.

      Returns boolean

      Whether the actor is proficient with that item.

    • Test if actor is proficient with specified weapon.

      Parameters

      • item: ItemPF

        Item to test

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

        Additional options

        • Optionaloverride?: boolean

          Allow item's proficiency override to influence the result.

      Returns boolean

      • Proficiency state
    • Protected

      Prepare total CMB value.

      Returns void

      Move all the logic here to the Change system.

    • Prepare data post embedded documents have been prepared.

      This is before changes and before prepareDerivedData()

      Returns void

    • Returns void

    • Prepare data post change application.

      Returns void

    • Base actor class with minimal functionality.

      Provides only caching of .itemTypes and nothing else.

      Returns void

    • Parameters

      • source: any

      Returns void

    Document

    • Prepare actor.changeFlags alterations.

      Returns void