Hierarchy

Constructors

  • Parameters

    • formula: string

      The string formula to parse

    • Optional data: any

      The data object against which to parse attributes within the formula (default: {})

    • Optional options: InexactPartial<EvaluationOptions>

      (default: {})

    Returns RollPF

Accessors

  • get dice(): DiceTerm[]
  • Return an Array of the individual DiceTerm instances contained within this Roll. Override to recognize dice in SizeRollTerm.

    Returns DiceTerm[]

Methods

  • Render the tooltip HTML for a RollPF instance

    Returns Promise<string>

    The rendered HTML tooltip as a string

  • Private

    Split a formula by identifying its outer-most parenthetical and math terms

    Parameters

    • _formula: string

      The raw formula to split

    Returns string[]

    An array of terms, split on parenthetical terms

  • Parameters

    • formula: any
    • data: {} = {}
      • context: any
      • options: {
            suppressError: boolean;
        } = ...
        • suppressError: boolean

      Returns Evaluated<Roll<{}>>

    • Parameters

      • formula: any
      • data: any

      Returns number

    • Parameters

      • terms: any

      Returns any

    Generated using TypeDoc