• Simplifies formula to very basic level.

    Parameters

    • formula: string

      Formula

    • OptionalrollData: object = {}

      Roll data

    • Optionaloptions: { strict?: boolean } = {}

      Additional options

      • Optionalstrict?: boolean

        Attempt to return something even slightly valid even with bad formulas

    Returns string

    • Simpler formula
    • On invalid formula