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

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

Properties

_filters: Set<any>

Track the set of item filters which are applied

_hiddenElems: {}

Track hidden elements of the sheet.

Type declaration

    _renderedInner: boolean

    Whether inner part of this sheet has been rendered already.

    _submitQueued: boolean

    Whether a submit has been queued in any way.

    effectiveSearch: {}

    Type declaration

      searchCompositioning: boolean

      Item search

      searchDelay: number
      searchDelayEvent: null | Timeout
      searchRefresh: boolean

      Accessors

      • get inCharacterGeneration(): boolean
      • Private

        Determine if this actor is in character generation state.

        Returns boolean

        True if character generation guides are desirable.

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

      • get featTypeData(): Object
      • Returns an object containing feature type specific data relevant to feature organization.

        Returns Object

        Static

      Methods

      • Parameters

        • event: any
        • __namedParameters: {
              preventClose: undefined | boolean;
              preventRender: undefined | boolean;
              updateData: undefined | null;
          } = {}
          • preventClose: undefined | boolean
          • preventRender: undefined | boolean
          • updateData: undefined | null

        Returns Promise<void>

      • Parameters

        • damages: Object

          The traits object containing both custom text input and more structured resistances

        • damageType: string

          The type of resistance to check ("dr" or "eres" for damage reduction or energy resistance, respectively)

        Returns Object

        • An object of key-value pairs of string labels for the actor sheet
      • Parameters

        • skillset: any

        Returns {
            adventure: {
                skills: {};
            };
            all: {
                skills: {};
            };
            background: {
                skills: {};
            };
        }

        • adventure: {
              skills: {};
          }
          • skills: {}
          • all: {
                skills: {};
            }
            • skills: {}
            • background: {
                  skills: {};
              }
              • skills: {}
            • Add some extra data when rendering the sheet to reduce the amount of logic required within the template.

              Returns Promise<InsertKeys<{
                  actor: ActorPF;
                  cssClass: string;
                  data: {
                      _id: null | string;
                      data: object;
                      effects: ({ _id: string | null; changes: EffectChangeData[]; disabled: boolean; duration: { startTime: number | null; seconds: number | undefined; combat: string | undefined; rounds: number | undefined; turns: number | undefined; startRound: number | undefined; startTurn: number | undefined; }; ... 5 more ...; flags: Record<....)[];
                      flags: Record<string, unknown>;
                      folder: null | string;
                      img: null | string;
                      items: ({ _id: string | null; name: string; type: string; img: string | null; data: object; effects: { _id: string | null; changes: EffectChangeData[]; disabled: boolean; duration: { ...; }; ... 5 more ...; flags: Record<...> & CoreFlags; }[]; folder: string | null; sort: number; permission: Partial<...>; flags: Record<...>...)[];
                      name: string;
                      permission: Partial<Record<string, 0 | 1 | 2 | 3>>;
                      sort: number;
                      token: {
                          img: null | string;
                          randomImg: boolean;
                      } & {};
                      type: string;
                  };
                  document: ActorPF;
                  editable: boolean;
                  effects: {
                      _id: null | string;
                      changes: EffectChangeData[];
                      disabled: boolean;
                      duration: { startTime: number | null; seconds: number | undefined; combat: string | undefined; rounds: number | undefined; turns: number | undefined; startRound: number | undefined; startTurn: number | undefined; };
                      flags: Record<string, unknown> & CoreFlags;
                      icon: undefined | null | string;
                      label: string;
                      origin: undefined | string;
                      tint: undefined | null | string;
                      transfer: boolean;
                  }[];
                  items: {
                      _id: null | string;
                      data: object;
                      effects: ({ _id: string | null; changes: EffectChangeData[]; disabled: boolean; duration: { startTime: number | null; seconds: number | undefined; combat: string | undefined; rounds: number | undefined; turns: number | undefined; startRound: number | undefined; startTurn: number | undefined; }; ... 5 more ...; flags: Record<....)[];
                      flags: Record<string, unknown>;
                      folder: null | string;
                      img: null | string;
                      name: string;
                      permission: Partial<Record<string, 0 | 1 | 2 | 3>>;
                      sort: number;
                      type: string;
                  }[];
                  limited: boolean;
                  options: Options;
                  owner: boolean;
                  title: string;
              }, OmitByValue<{
                  config: config;
                  cssClass: string;
                  editable: boolean;
                  hasRace: boolean;
                  isCharacter: boolean;
                  isGM: boolean;
                  limited: boolean;
                  owner: boolean;
                  race: null | PropertiesToSource<ItemDataBaseProperties>;
                  skillsLocked: boolean;
                  sourceData: {};
                  useBGSkills: unknown;
                  usesAnySpellbook: boolean;
              }, never>>>

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

              Parameters

              • elem: JQuery<HTMLElement>

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

              • Optional instant: boolean = {}

                Whether to instantly show the expansion (true), or animate it (false)

              Returns void

            Generated using TypeDoc