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

    Class default

    Hierarchy (View Summary)

    Index
    _sortedSwings: any[] | undefined
    • get transferredEffects(): ActiveEffect[]

      The full list of ActiveEffect documents this item contributes to the owning actor, including effects from sockets, keywords, and the item's own effects array. Subclasses override. Returns [] by default.

      Returns ActiveEffect[]

    • get transfersEffects(): boolean

      Whether this item currently transfers its effects to the owning actor. Subclasses override to implement item-type-specific logic.

      Returns boolean

    • Returns any

    • Returns 0 by default; override or extend for advantage/disadvantage stages.

      Returns number

    • Get all available ActiveEffects for trigger applyEffect outcomes. Includes both effects on this action item and effects on the owning actor.

      Returns { id: string; name: string }[]

    • Returns void

    • Resolve this action for a combatant, advancing through the swing sequence.

      Parameters

      • combatantId: string

        The ID of the combatant using this action

      • currentSwingIndex: number = 0

        The index of the current swing to resolve

      • downs: object[]

        The mutable downs array from the advance cycle

      • OptionalactionData: object

        The full tracker action data object

      Returns Promise<void>

    • Convert the schema to a plain object.

      The built in toObject() method will ignore derived data when using Data Models. This additional method will instead use the spread operator to return a simplified version of the data.

      Returns object

      Plain object either via deepClone or the spread operator.

    • Returns { description: any; formula: any; isSocketable: any }

    • Parameters

      • source: any
      • options: any

      Returns any