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

    A sheet for character type actors.

    Hierarchy (View Summary)

    Index

    Properties

    _activeEdits: Record<string, string> = {}
    _filters: Record<string, Record<string, Set<string>>> = ...

    Track the set of item filters which are applied

    _hiddenElems: Record<string, boolean> = {}

    Track hidden elements of the sheet.

    _itemUpdates: object[] = []

    Track item updates from the actor sheet.

    constructor: typeof ActorSheetPF
    INPUT_LOCKOUT: number = 150

    Small delay to prevent click-through, such as from opening the sheet from a token with triple click (e.g. faulty mouse or user)

    PARTS: {
        form: {
            root: boolean;
            scrollable: string[];
            template: null;
            templates: string[];
        };
    } = ...
    PRELOAD_TEMPLATES: string[] = ...
    SHEET_CONFIG: { label: string; makeDefault: boolean; types: string[] } = ...
    TABS: {
        primary: { initial: string; tabs: { id: string; label: string }[] };
        skills: { tabs: never[] };
        spellbooks: { tabs: never[] };
    } = ...

    Configuration of application tabs, with an entry per tab group.

    {}

    Accessors

    • get isEdit(): boolean

      Returns boolean

    • get isPlay(): boolean

      Returns boolean

    • get itemValueDenomination(): "gp" | "cp" | "pp" | "sp"

      Which currency denomination to use for items

      Returns "gp" | "cp" | "pp" | "sp"

    Methods

    • Parameters

      • context: any
      • valueAdjust: number = 0

      Returns void

    • Internal

      Adjust item before addition, overriding data

      Parameters

      • item: ItemPF

        Temporary item document before creation

      • data: any

      Returns void

    • Internal

      Parameters

      • data: object

        Item data

      • source: ItemPF

        Source item

      Returns void

    • Internal

      Filters item by sheet section config.

      Parameters

      • item: Item<"base" | ModuleSubType>

        Item to filter

      • section: object

        Section to filter by

      Returns boolean

    • Parameters

      • context: any

      Returns void

    • Opens a dialog to edit a skill.

      Parameters

      • skillId: string

        The id of the skill in question.

      • OptionalsubSkillId: string

        The id of the subskill, if appropriate.

      Returns Promise<void>

    • Internal

      Filter inventory section

      Called in ()

      Parameters

      • category: object

        Category data

      • section: SectionData

        Section data

      • filters: Set<string>

        Active filters

      Returns void

    • Internal

      Focuses certain tab based on provided item.

      Parameters

      • item: object | Item<"base" | ModuleSubType>

        Item document or raw data for such

      Returns void

    • Protected

      Parameters

      • fullId: string

        Target ID

      • context: object

        Context object to store data into

      Returns Promise<void>

      • If provided ID is invalid.
    • Internal

      Test if interaction should be blocked to eliminate doubleclicks or similar.

      Parameters

      • event: PointerEvent

      Returns boolean

      • True if should lock, false otherwise.
    • Experimental

      Dynamic Tooltips

      Parameters

      • event: PointerEvent
      • target: HTMLElement

      Returns boolean

    • Nameless Change Event

      Handler for any change event that did not target an element with name.

      Parameters

      • event: Event
      • target: HTMLElement

      Returns boolean

      • True if the change was handled, false otherwise.
    • Parameters

      • event: any

      Returns void

    • Internal

      Submit input value

      Parameters

      • event: Event
      • target: HTMLElement
      • OptionalnewValue: any

      Returns Promise<void>

    • Protected

      Finalize Wheel Update

      Parameters

      • target: HTMLElement

      Returns object | undefined

      • object with wheel element info, undefined if this is not valid element
    • Protected

      Handle input

      Parameters

      • event: PointerEvent

        Triggering event

      • target: HTMLElement

      Returns void

    • Experimental

      Weight Tooltips

      Parameters

      • event: PointerEvent
      • target: HTMLElement

      Returns Promise<void>

      Convert into extended tooltip?

    • Protected

      Alter span text value before committing.

      Parameters

      • name: string

        Update path

      • value: number

        Numeric value

      • str: string

        Original string from input

      • el: HTMLElement

        Input element

      Returns any

    • Prepare duplicate item data

      Parameters

      • itemData: object
      • options: { original?: ItemPF; rename?: boolean } = {}

      Returns void

    • Parameters

      • context: any

      Returns void

    • Protected

      Parameters

      • item: object

        Item render data

      • section: object

        Item section

      • context: object

        Render context

      Returns void

    • Protected

      Organize and classify Owned Items

      Parameters

      • context: object

        Render context

      Returns void

    • Protected

      Prepare item section

      Parameters

      • section: object

      Returns void

    • Internal

      Calculate used and available skill ranks.

      Parameters

      • context: object

        HBS context

      Returns void

    • Internal

      Prepare adventure/background skill distinction if needed.

      Parameters

      • context: object

      Returns void

    • Internal

      Insert a spell into the spellbook object when rendering the character sheet

      Parameters

      • data: object

        The Actor data being prepared

      • spells: any[]

        The spell data being prepared

      • bookKey: string

        The key of the spellbook being prepared

      Returns object

      • Spellbook data
    • Protected

      Parameters

      • context: object

        Context

      Returns void

    • Protected

      Toggle inline display of an item's summary/description by expanding or hiding info div

      Parameters

      • event: any
      • elem: HTMLElement

        The element to open. Likely will have the item class in CSS.

      • root0: { animation?: boolean } = {}

      Returns Promise<void>

    • Parameters

      • __namedParameters: { inLowestDenomination?: boolean; recursive?: boolean } = {}

      Returns number

    • Parameters

      • __namedParameters: { inLowestDenomination?: boolean; recursive?: boolean } = {}

      Returns number

    • Parameters

      Returns void

    • Protected

      Prepare item data for display.

      Parameters

      • item: ItemPF

        Original document

      Returns object

      • Data fed to the sheet