tormenta20 - v0.0.0
    Preparing search index...

    Variable PmCapConst

    PmCap: {
        forAbility(
            params: {
                characterLevel: number;
                classLevel?: number | null;
                sourceClass?: string | null;
            },
        ): number;
    } = ...

    Rules utilities for PM (Mana Points) cap calculations.

    Type Declaration

    • forAbility: function
      • Returns the effective PM cap for a class ability or power.

        When a power's PM cost scales with a specific class level (e.g. Arcanista's Magia Aprimorada), the cap is the character's level in that class. Otherwise it falls back to the total character level.

        Parameters

        • params: {
              characterLevel: number;
              classLevel?: number | null;
              sourceClass?: string | null;
          }
          • characterLevel: number

            Total character level (sum of all class levels)

          • OptionalclassLevel?: number | null

            Character's level in the class that provides the ability, or null

          • OptionalsourceClass?: string | null

            ID of the class that provides the ability, or null

        Returns number

        The PM cap as an integer

        PmCap.forAbility({ characterLevel: 10, classLevel: 6, sourceClass: "arcanista" }) // 6
        PmCap.forAbility({ characterLevel: 10, classLevel: null, sourceClass: null }) // 10