PARACOSM AGENTOS | API Reference v0.9.1202
Home Simulation API Docs GitHub npm
Home Simulation API Docs GitHub npm AgentOS Discord
paracosm - v0.9.1202
    Preparing search index...

    Interface AgentHealth

    interface AgentHealth {
        alive: boolean;
        boneDensityBase?: number;
        boneDensityPct?: number;
        conditions: string[];
        cumulativeRadiationMsv?: number;
        deathCause?: string;
        deathTime?: number;
        psychScore: number;
        survival?: Record<string, number>;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown

      Scenario-defined health fields beyond the standard set

    Index
    alive: boolean
    boneDensityBase?: number

    Immutable starting bone density, captured on first progression tick so the decay curve targets a stable baseline rather than recursively re-decaying its own output (scenario-specific, used by Mars/Lunar physics modules).

    boneDensityPct?: number

    Bone density percentage (scenario-specific, used by Mars/Lunar)

    conditions: string[]
    cumulativeRadiationMsv?: number

    Cumulative radiation exposure in millisieverts (scenario-specific, used by Mars/Lunar)

    deathCause?: string
    deathTime?: number
    psychScore: number
    survival?: Record<string, number>

    The person's chance of having survived each cause of death so far, in a run whose scenario keeps one death die for each cause for a person's whole life (setup.mortalityDice: 'life'). Each step multiplies a cause's entry by one minus that step's chance of it. Absent in any other run.