tormenta20 - v0.0.0
    Preparing search index...

    Class Condicao

    A Condição (status condition) in Tormenta20.

    Condicao.all()
    Condicao.medo().all()
    Condicao.find("abalado")

    const abalado = Condicao.find("abalado")!
    abalado.escalatesTo // "apavorado" (next condition in the fear chain)

    Hierarchy

    • BaseModel
      • Condicao
    Index

    Constructors

    • Parameters

      • _row: Record<string, unknown>

      Returns Condicao

    Accessors

    • get createdAt(): string

      ISO 8601 timestamp of record creation.

      Returns string

    • get effects(): unknown[]

      JSON array of mechanical effect objects.

      Returns unknown[]

    • get escalatesTo(): string | null

      ID of the more severe condition this escalates to, or null.

      Returns string | null

    • get id(): string

      Unique string identifier (e.g. "espada_longa", "guerreiro").

      Returns string

    • get name(): string

      Display name.

      Returns string

    • get updatedAt(): string

      ISO 8601 timestamp of last update.

      Returns string

    Methods

    • Returns a plain-object representation of this record.

      Returns {
          condition_type: CondicaoType | null;
          description: string | null;
          effects: unknown[];
          escalates_to: string | null;
          id: string;
          name: string;
      }