tormenta20 - v0.0.0
    Preparing search index...

    Class Comodo

    A Cômodo (headquarters room) in Tormenta20.

    A catalog of rooms a group can build inside their base, each granting a passive bonus to residents. Some have a prerequisito (e.g. another cômodo, or a minimum porte). Only catalog data lives here — see BaseTipo.

    Comodo.find("biblioteca")
    

    Hierarchy

    • BaseModel
      • Comodo
    Index

    Constructors

    • Parameters

      • _row: Record<string, unknown>

      Returns Comodo

    Accessors

    • get createdAt(): string

      ISO 8601 timestamp of record creation.

      Returns string

    • get effects(): unknown[]

      JSON array of typed mechanical effect objects.

      Returns unknown[]

    • get id(): string

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

      Returns string

    • get livroId(): string

      Slug of the sourcebook this record was published in (e.g. "t20_eja").

      Returns string

    • get name(): string

      Display name.

      Returns string

    • get prerequisito(): string | null

      Free-text or id of a prerequisite cômodo/porte, if any.

      Returns string | null

    • get updatedAt(): string

      ISO 8601 timestamp of last update.

      Returns string

    Methods

    • Returns a plain-object representation of this record.

      Returns {
          description: string | null;
          effects: unknown[];
          id: string;
          name: string;
          prerequisito: string | null;
      }