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

    Function addActionLogEntry

    • Thin proxy for posting entries to the Action Log. Imported by trigger-outcomes.mjs and cards-deck.mjs to avoid circular dependency on the apps/ directory.

      Config: type string — entry type; one of "damage", "restore", "check", "rest", "chat", "cardDraw", "shuffle", "negate" (default "chat") actorName string — name of the actor involved targetName string|null — optional target name (default null) content string — main entry text / flavor (default "") rollTotal number|null — optional total roll value (default null) rollBreakdown object|null — serialized Roll breakdown: { originalFormula, formula, substitutions, terms } (default null) drawnCards object[]|null — array of drawn card objects: { name, img, description, value } (default null) loserCards object[]|null — array of discarded/loser card objects (default null) restSummary string[]|null — array of restoration lines shown on hover (default null) visibility string — "public" (all users), "gm" (GM only), or "self" (GM + ownerId user) (default "public") ownerId string|null — ID of the user who should see "self" visibility entries (default null) timestamp number — Unix timestamp in ms (default Date.now()) round number|null — combat round (default current combat round or null) down number|null — combat down (default current combat down or null) id string — unique entry ID (default randomID())

      Parameters

      • entry: object

        Entry data with shape above

      • Optionalopts: { remote?: boolean; skipSave?: boolean }

        Options for this addEntry call

        • Optionalremote?: boolean

          True when received via socket; skips re-emit

        • OptionalskipSave?: boolean

          True when bulk-loading persisted entries on startup

      Returns void