mwg API
    Preparing search index...

    Function convertToCharges

    • Spends cost from a StatBlock pool and converts it into charges of a different resource at rate per charge - "channel mana into a battery" - all-or-nothing the same way spend itself is: nothing is spent, and no charge is gained, unless the full cost is affordable.

      Parameters

      Returns number

      the charges actually gained, capped by charges' own max (0 when the spend failed)