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

    Class Alignment

    Alignment helper functions.

    Index

    Constructors

    • Parameters

      • alignment: any

        The alignment string to parse

      Returns Alignment

    Properties

    alignment: any

    Accessors

    • get chaotic(): boolean

      Returns boolean

    • get evil(): boolean

      Returns boolean

    • get good(): boolean

      Returns boolean

    • get lawful(): boolean

      Returns boolean

    • get neutral(): boolean

      Returns boolean

    • get trueNeutral(): boolean

      Returns boolean

    Methods

    • Returns the number of steps between two different alignments

      Parameters

      • alignment: string | Alignment

        The alignment to compare it to

      Returns number

      • The number of steps between the two alignments
    • Returns the alignment string.

      Returns any

      • The alignment string, e.g. "lg", "n", "ce"
    • Turn an arbitrary input into an alignment object, if possible.

      Parameters

      • align: string | Alignment

        Alignment string or instance.

      Returns Alignment

      • An alignment instance
    • Returns the number of steps between two different alignments.

      Parameters

      • alignment1: string | Alignment

        The base alignment

      • alignment2: string | Alignment

        The alignment to compare it to

      Returns number

      • The number of steps between the two alignments