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

    Hierarchy

    • any
      • SpellbookModel
    Index

    Constructors

    Properties

    ability: string
    arcaneSpellFailure: boolean
    autoSpellLevelCalculation: boolean
    autoSpellLevels: undefined | boolean
    baseDCFormula: string
    casterType: undefined | string
    castPerDayAllOffsetFormula: string
    cl: { formula: string; offsetFormula: string }
    class: string
    clNotes: string
    concentrationFormula: string
    concentrationNotes: string
    domainSlotValue: number
    hasCantrips: boolean
    hasProgressionChoices: undefined | boolean
    hybrid: boolean = false
    inUse: boolean
    isSchool: undefined | boolean
    kind: string
    levels: Record<
        string,
        {
            base: number;
            castPerDayOffsetFormula: string;
            preparedOffsetFormula: string;
        },
    >
    maxSpellLevel: undefined | number
    minSpellLevel: undefined | number
    mode: string
    name: string
    noAbilityLimit: boolean
    prepared: boolean = false
    preparedAllOffsetFormula: string
    pure: boolean = false
    range: undefined | SpellRanges
    spellPoints: {
        maxFormula: string;
        restoreFormula: string;
        useSystem: boolean;
        value: number;
    }
    spellSlotAbilityBonusFormula: string
    spontaneous: boolean = false

    Accessors

    • get id(): string

      Book ID

      Returns string

    • set id(value: string): void

      Parameters

      • value: string

      Returns void

    • get isPrepared(): boolean

      Returns boolean

    • get isSemiSpontaneous(): boolean

      Returns boolean

    • get isSpontaneous(): boolean

      Returns boolean

    • get items(): ItemSpellPF[]

      Retrieve associated spell items

      Returns ItemSpellPF[]

    • get label(): string

      Label

      Returns string

    • get psychic(): boolean

      Returns boolean

    • get spellPreparationMode(): string

      Returns string

    • get spells(): {}

      Returns {}

    • get unlimitedCantrips(): boolean

      Can cantrips be cast unlimited number of times?

      Returns boolean

    • get usesSpellpoints(): boolean

      Returns boolean

    Methods

    • Internal

      Finalize data

      Parameters

      • OptionalrollData: object

        Roll data instance

      • cache: Spellbook

        Pre-calculated data for re-use from _generateSpellbookCache

      Returns undefined

    • Prepare base data

      Called by BaseCharacterModel#prepareBaseData()

      Parameters

      • key: string

        Book ID

      Returns void

    • Returns void

    • Data dependent on other items and actor

      Returns void

    • Return spell slot modifier from ability score modifier.

      Parameters

      • mod: number

        The associated ability modifier.

      • level: number

        Spell level.

      Returns number

      Amount of spell levels to increase.

      pf1.models.actor.components.SpellbookModel.getAbilitySlotMod(2, 1); // => 1
      pf1.models.actor.components.SpellbookModel.getAbilitySlotMod(6, 1); // => 2
      pf1.models.actor.components.SpellbookModel.getAbilitySlotMod(6, 7); // => 0
    • Parameters

      • source: any

      Returns void