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

    Loot sheet for npc type actors.

    Hierarchy (View Summary)

    Index

    General

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

    actor: ActorPF
    constructor: typeof ActorSheetPF
    document: ActorPF
    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: {
        canBeDefault: boolean;
        label: string;
        makeDefault: boolean;
        types: string[];
    } = ...
    TABS: { primary: { initial: string; tabs: { id: string; label: string }[] } } = ...
    • get isEdit(): boolean

      Returns boolean

    • get isLocked(): boolean

      Returns boolean

    • get isPlay(): boolean

      Returns boolean

    • get isView(): boolean

      Returns boolean

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

      Which currency denomination to use for items

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

    • get mode(): SheetMode

      Sheet Mode

      Returns SheetMode

    • Parameters

      • context: any
      • valueAdjust: number = 0

      Returns void

    • Protected

      Given an object that will later update the item to create and a existent item in the actor, this function will make sure some relevant properties are kept the same by inheriting the current state from source item.

      Parameters

      • itemData: object

        The data that will later update the item to create.

      • sourceItem: ItemPF<BaseItemModel>

        The existent item in the actor.

      Returns void

      ActorSheetPF#_onDropItem.

    • Internal

      Filters item by sheet section config.

      Parameters

      • item: any

        Item to filter

      • section: object

        Section to filter by

      Returns boolean

    • Parameters

      • options: 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

    • Protected

      Focuses certain tab based on provided item.

      Parameters

      • item: any

        Item document or raw data for such

      Returns void

    • Protected

      Given an item, it returns a list of items that will be removed alongside.

      Parameters

      Returns { name: string; type: string; uuid: string }[]

      List of items that will be also removed.

    • Protected

      Parameters

      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

      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

    • Prepare item section

      Parameters

      • section: any

      Returns void

    • Replace Item Handling

      Parameters

      Returns boolean

      • True if this function handled the item, false otherwise.
    • 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 any

    • Internal

      Converts currencies of the given category to the given currency type

      Parameters

      • Optionalcategory: "currency" | "altCurrency" = "currency"

        Currency category, altCurrency is for weightless

      • Optionaltype: "gp" | "cp" | "pp" | "sp" = "pp"

        Target currency.

      Returns Promise<any> | undefined

      Updated document or undefined if no update occurred.

    • Parameters

      Returns void

    Containers