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

    Function adjustStackCount

    • Adjust the stack count of a stackable active effect. Clamps the result to [0, maxStacks] and updates the effect document. Handles both actor-owned and party-held (via partyEffectLink) effects.

      This is a shared helper used by both the actor sheet's quick controls and the party sheet for per-member stack adjustments.

      Parameters

      • actor: Actor

        The actor that owns the effect or a partyEffectLink pointing to it

      • effectId: string

        The ID of the stackable effect to adjust

      • delta: number

        The change in stack count (can be positive or negative)

      Returns Promise<any>

      The updated effect, or null if not found