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

    NPC Sheet

    An Actor sheet for NPC type characters in the game system. Extends the base ActorSheetPF class.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

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

    Track the set of item filters which are applied

    _skillsLocked: any
    _warnedAppV1: boolean = true
    ACTIONS: {
        __proto__: null;
        adjustQuantity: Object;
        browse: Object;
        carryItem: Object;
        convertCurrency: Object;
        createItem: Object;
        createSkill: Object;
        createSubSkill: Object;
        defensesCard: Object;
        deleteItem: Object;
        deleteSkill: Object;
        displayItemCard: Object;
        dupeItem: Object;
        editCondition: Object;
        editItem: Object;
        editResistances: Object;
        editSenses: Object;
        editSkill: Object;
        editTraits: Object;
        equipItem: Object;
        giveItem: Object;
        journal: Object;
        levelUp: Object;
        pointBuy: Object;
        rest: Object;
        rollAbility: Object;
        rollBAB: Object;
        rollCasterLevel: Object;
        rollConcentration: Object;
        rollInit: Object;
        rollSave: Object;
        rollSkill: Object;
        selectAlignment: Object;
        spellConfig: Object;
        splitItem: Object;
        toggleCondition: Object;
        toggleFilter: Object;
        toggleIdentified: Object;
        toggleItemSummary: Object;
        toggleLock: Object;
        togglePrepared: Object;
        useGenericAttack: Object;
        useItem: Object;
    } = ...

    Temporary action mapping until AppV2 conversion.

    BASE_APPLICATION: typeof ActorSheetPF = ...

    Remove with AppV2 conversion

    EDIT_TRACKING: string[] = ...

    Which fields to track edits for

    WHEEL_UPDATE_SCOPES: string[] = ...

    Accessors

    • get template(): | "systems/pf1/templates/actors/limited-sheet.hbs"
      | "systems/pf1/templates/actors/npc-sheet-lite.hbs"

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

      Returns
          | "systems/pf1/templates/actors/limited-sheet.hbs"
          | "systems/pf1/templates/actors/npc-sheet-lite.hbs"

    Methods

    • Parameters

      • event: DragEvent

        Drag start event

      • type:
            | "initiative"
            | "attack"
            | "cl"
            | "bab"
            | "cmb"
            | "concentration"
            | "abilityScore"
            | "defenses"
      • OptionalsubType: string

        Type specific subtype

      • Optionaldataset: object

        Whole dataset

      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>

    • Add some extra data when rendering the sheet to reduce the amount of logic required within the template.

      Returns Promise<
          {
              actor: ActorPF;
              choices: {};
              config: ./config.mjs;
              cssClass: string;
              document: ActorPF;
              editable: boolean;
              effects: EmbeddedCollection<ActiveEffect<"base" | ModuleSubType>, ActorPF>;
              hasHD: boolean;
              isCharacter: boolean;
              isGM: boolean;
              itemTypes: ItemTypesMap;
              limited: boolean;
              options: Options;
              owner: boolean;
              race: null | {};
              skillsLocked: boolean;
              sourceData: {};
              unchainedActions: SettingInitializedType<"core", KeyFor<"core">>;
              units: {
                  distance: {
                      overland: "PF1.Distance.miShort" | "PF1.Distance.kmShort";
                      tactical: "PF1.Distance.ftShort" | "PF1.Distance.mShort";
                  };
                  weight: string;
              };
              usesAnySpellbook: boolean;
          },
      >