Body, Mind & Soul — API Reference
    Preparing search index...

    Function _clampStackCountUpperPrivate

    • Private

      Clamp a stack count to upper bound (maxStacks) only, preserving negative values if present. Used by addStack outcome to maintain its original behavior of not enforcing a lower bound.

      Parameters

      • current: number

        Proposed stack count

      • max: number | null

        Maximum stacks (null = no upper bound)

      Returns number

      Clamped value in [current, max]