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

    Function split

    • Split copper currency into multiple currencies favoring the one with highest rates.

      Parameters

      • cp: number

        Copper

      • Optionaloptions: { omit?: CoinType[]; pad?: boolean; standard?: boolean } = {}

        Additional options

        • Optionalomit?: CoinType[]

          Omit these types from the result. Baseline currency can not be omitted.

        • Optionalpad?: boolean

          Pad return value by including zeroed currencies

        • Optionalstandard?: boolean

          If true, no coinage of greater value than the pf1.config.currency.standard standard currency is included.

      Returns Record<CoinType, number>

      The various currencies.