mwg API
    Preparing search index...

    Class Charges

    Index
    max: number
    • banks turns of regeneration time, converting whole regenRate-sized chunks into charges

      Parameters

      • turns: number = 1

      Returns void

    • Restores charges directly, outside the normal regen path - a killing blow or a crit refunding one on the spot. Capped at max.

      Parameters

      • amount: number = 1

      Returns number

      how many were actually added, which is less than amount once max is hit

    • Parameters

      • cost: number

      Returns boolean

      false, spending nothing, if cost is not affordable right now

    • Charges held, and progress banked towards the next one.

      The banked progress matters as much as the count: without it, saving and loading part way to a recharge would silently reset that wait, so a player could refresh a wand a little faster by reloading. max and regenRate are definitions, supplied fresh.

      Returns { current: number; progress: number }