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

    Class PointBuyCalculator

    An application offering the user an interface to use the point-buy rules described in the Pathfinder CRB to determine their characters ability scores.

    Hierarchy

    • HandlebarsApplication<this> & DocumentSheetV2<
          any,
          RenderContext<any>,
          Configuration<any>,
          RenderOptions,
          this,
      >
      • PointBuyCalculator
    Index

    Constructors

    Properties

    abilities: { key: string; name: string; value: number }[]

    The actors current ability scores.

    max: number

    Maximum possible ability score value.

    min: number

    Minimum possible ability score value.

    DEFAULT_OPTIONS: {
        actions: {
            control: (...this: any, event: any, target: any) => Promise<void>;
        };
        classes: string[];
        form: {
            closeOnSubmit: boolean;
            handler: (...this: any) => Promise<void>;
            submitOnChange: boolean;
            submitOnClose: boolean;
        };
        position: { width: number };
        sheetConfig: boolean;
        tag: string;
        window: { icon: string; minimizable: boolean; resizable: boolean };
    } = ...
    PARTS: { footer: { template: string }; form: { template: string } } = ...

    Accessors

    Methods

    • Protected

      Returns Promise<
          {
              abilities: { key: string; name: string; value: number }[];
              buttons: { icon: string; label: string; type: string }[];
              closest: string;
              invalidPoints: boolean;
              limits: (
                  | { key: string; label: "Low Fantasy"; points: 10 }
                  | { key: string; label: "Standard Fantasy"; points: 15 }
                  | { key: string; label: "High Fantasy"; points: 20 }
                  | { key: string; label: "Epic Fantasy"; points: 25 }
              )[];
              max: number;
              min: number;
              points: number;
          },
      >

    • Internal

      Update ability score value display and remaining points on subtract/add operations.

      Parameters

      • ...this: any
      • event: any
      • target: any

      Returns Promise<void>