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

  • any
    • PointBuyCalculator

Constructors

Properties

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

The actors current ability scores.

Type declaration

  • key: string
  • name: string
  • value: any
max: number

The maximum value an ability score can be set to.

min: number

The minimum value an ability score can be set to.

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

Type declaration

  • actions: {
        control: ((event, target) => Promise<void>);
    }
    • control: ((event, target) => Promise<void>)
        • (event, target): Promise<void>
        • Internal

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

          Parameters

          • event: any
          • target: any

          Returns Promise<void>

          Static

  • classes: string[]
  • form: {
        closeOnSubmit: boolean;
        handler: (() => Promise<void>);
        submitOnChange: boolean;
        submitOnClose: boolean;
    }
    • closeOnSubmit: boolean
    • handler: (() => Promise<void>)
        • (): Promise<void>
        • Internal

          Update the actors ability scores based on the current input values.

          Returns Promise<void>

          Static

    • submitOnChange: boolean
    • submitOnClose: boolean
  • position: {
        width: number;
    }
    • width: number
  • sheetConfig: boolean
  • tag: string
  • window: {
        minimizable: boolean;
        resizable: boolean;
    }
    • minimizable: boolean
    • resizable: boolean
PARTS: {
    footer: {
        template: string;
    };
    form: {
        template: string;
    };
} = ...

Type declaration

  • footer: {
        template: string;
    }
    • template: string
  • form: {
        template: string;
    }
    • template: string

Accessors

Methods

  • Internal

    Returns Promise<{
        abilities: {
            key: string;
            name: string;
            value: any;
        }[];
        buttons: {
            icon: string;
            label: string;
            type: string;
        }[];
        closest: string;
        invalidPoints: boolean;
        limits: ({
            key: string;
            label: string;
            points: number;
        } | {
            key: string;
            label: string;
            points: number;
        } | {
            key: string;
            label: string;
            points: number;
        } | {
            key: string;
            label: string;
            points: number;
        })[];
        max: number;
        min: number;
        points: number;
    }>

    Inherit Doc

    Async

  • Internal

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

    Parameters

    • event: any
    • target: any

    Returns Promise<void>

    Static

Generated using TypeDoc