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

    An Actor sheet for player character type actors in the PF system. Extends the base ActorSheetPF class.

    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.

    _skillsLocked: boolean = true

    Whether the skills are currently locked.

    _skillsLocked: any

    Accessors

    • get currentPrimaryTab(): null | string

      Returns null | string

    • get currentSpellbookKey(): string

      Returns string

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

      Which currency denomination to use for items

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

    • get template(): string

      Get the correct HTML template path to use for rendering this particular sheet

      Returns string

    Methods

    • 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

    • Protected

      Determine if the item can have its range shown on this sheet.

      Parameters

      • item: Item<"base" | ModuleSubType>

      Returns boolean

    • Internal

      Submit input value

      Parameters

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

      Returns Promise<void>

    • Parameters

      • form: HTMLElement

      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.
    • 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

    • Protected

      Non-action button clicks

      Parameters

      • event: PointerEvent

        Triggering event

      • target: HTMLElement

        Click target

      Returns boolean

      • True if the click was handled, false otherwise
    • Protected

      Non-action context clicks

      Parameters

      • event: PointerEvent

        Triggering event

      • target: HTMLElement

        Click target

      Returns boolean

      • True if this click was handled, false otherwise
    • Protected

      Handle right-click actions

      Parameters

      • event: PointerEvent
      • target: HTMLElement

      Returns boolean

      • True if click was handled, false otherwise.
    • Protected

      Finalize Wheel Update

      Parameters

      • target: HTMLElement

      Returns undefined | object

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

      Pointer Enter event handler delegate

      Parameters

      • event: PointerEvent

      Returns void

    • Internal

      Pointer Leave event handler delegate

      Parameters

      • event: PointerEvent

      Returns void

    • Protected

      Handle input

      Parameters

      • event: PointerEvent

        Triggering event

      • target: HTMLElement
      • callback: Function

        Submission handler

      Returns any

    • 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

      Returns any

    • Prepare duplicate item data

      Parameters

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

      Returns void

    • Protected

      Prepare encumbrance data for display

      Returns object

      • An object describing the character's encumbrance level
    • Protected

      Prepare item data for display.

      Parameters

      • item: ItemPF

        Original document

      Returns object

      • Data fed to the sheet
    • 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

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

      Parameters

      • elem: HTMLElement

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

      • Optionalanimation: boolean = {}

        Whether to animate expansion and collapse or not.

      Returns Promise<void>

    • Parameters

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

      Returns number

    • Parameters

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

      Returns number