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

    Class default

    Hierarchy

    • any
      • default
    Index
    • Returns default

    • Classify which actions and effects are affected by advancing steps downs. Returns live DataModel instances so callers can use .actor, .combatant, etc.

      Parameters

      • steps: number

      Returns { expiredEffects: TrackerEffectModel[]; resolvingActions: TrackerActionModel[] }

    • Find a live TrackerActionModel across all downs.

      Parameters

      • downNumber: any
      • actionId: any

      Returns any

    • Find a live CombatDownModel by its downNumber.

      Parameters

      • downNumber: any

      Returns any

    • Find a live TrackerEffectModel across all downs.

      Parameters

      • downNumber: any
      • effectId: any

      Returns any

    • Find the index of the first non-empty down after index 0, or -1 if none. Used by advanceToNextResolution to determine step count.

      Returns any

    • Returns { bms: any }

    • Redistribute all actions and effects in a plain-object downs array to their correct down slots by resolutionTime. Mutates the array in place. Called from _preUpdate before Foundry validation.

      Parameters

      • downs: object[]

        Plain-object downs array from toObject()

      Returns void